/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #003366;
    --accent-color: #ff9900;
    --light-color: #f4f4f4;
    --dark-color: #333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
}

.btn-small {
    padding: 5px 15px;
    font-size: 0.9rem;
}

section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2.5rem;
}

/* Header */
/* Top Header Styles */
.top-header {
    background: linear-gradient(135deg, #2E86AB 0%, #1B5E7F 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
}

.acm-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    background: white;
    color: #2E86AB;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.main-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.university {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.header-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Header Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .acm-logo {
        gap: 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 10px;
    }
    
    .university {
        font-size: 9px;
    }
    
    .header-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-nav ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 15px;
    }
    
    .main-title {
        font-size: 18px;
    }
    
    .header-nav ul {
        gap: 15px;
    }
    
    .header-nav ul li a {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* Hero Section with Slideshow Background */
.hero {
    position: relative;
    height: 500px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-slideshow .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Hero Slideshow Navigation and Indicators */
.hero .slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.hero .indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero .indicator.active {
    background-color: #fff;
    transform: scale(1.2);
    border-color: #fff;
}

.hero .indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero .slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.hero .slide-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero .slide-nav.prev {
    left: 30px;
}

.hero .slide-nav.next {
    right: 30px;
}

/* Responsive Design for Hero Slideshow */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero .slide-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero .slide-nav.prev {
        left: 15px;
    }
    
    .hero .slide-nav.next {
        right: 15px;
    }
    
    .hero .indicator {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero .slide-nav.prev {
        left: 10px;
    }
    
    .hero .slide-nav.next {
        right: 10px;
    }
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px;
    margin: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Events Section */
.events {
    background-color: #fff;
}

/* Calendar Styles */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.calendar-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
    padding: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 10px;
    background-color: var(--light-color);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e0e0e0;
}

.calendar-day {
    background-color: #fff;
    min-height: 80px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background-color: #f0f8ff;
}

.calendar-day.other-month {
    background-color: #f9f9f9;
    color: #ccc;
}

.calendar-day.today {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
}

.calendar-day.has-event {
    background-color: #e6f3ff;
    border-left: 4px solid var(--primary-color);
}

.calendar-day.has-event:hover {
    background-color: #cce7ff;
}

.day-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.event-indicator {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-details-panel {
    max-width: 800px;
    margin: 20px auto 0;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-details-panel h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.selected-event {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.selected-event:hover {
    background: #e8f4fd;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.selected-event .click-hint {
    color: #007bff;
    font-size: 0.9em;
    font-style: italic;
    margin-top: 10px;
    display: block;
}

.selected-event .event-actions {
    margin-top: 10px;
    text-align: center;
}

.selected-event h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.selected-event .event-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.selected-event .event-meta i {
    margin-right: 5px;
}

/* Legacy event styles for backward compatibility */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.event {
    display: flex;
    background-color: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-wrap: wrap;
}

.event:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    order: 0;
    z-index: 1;
}

.event-date .month {
    font-size: 1.2rem;
    font-weight: bold;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
}

.event-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    order: 1;
}

.event-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.event-details {
    padding: 20px;
    flex: 1;
    order: 2;
}

.event-details h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.event-time, .event-location {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.event-time i, .event-location i {
    margin-right: 5px;
}

.admin-section {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 5px;
}

.admin-section h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.admin-section p {
    margin-bottom: 20px;
}

/* Leadership Section */
.leadership {
    background-color: var(--light-color);
}

.leadership > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.leadership-team {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.leader {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
}

.leader:hover {
    transform: translateY(-5px);
}

.leader-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.leader-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.leader-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.leader-id {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    margin: 10px;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .event {
        flex-direction: column;
    }

    .event-date {
        padding: 10px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}