/* Section background colors for visual separation */
.about, .membership {
    background-color: #f5f5f5; /* light gray */
}
/* Global Styles */
:root {
    --primary-color: #0066b3; /* IEEE blue */
    --accent-color: #ffcc00; /* Gold for HKN */
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #444;
    --white: #fff;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Single column layout for About and Membership sections */
.about-content.single-column,
.membership-content.single-column {
    display: block;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0055a4;
    color: var(--white);
}

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

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

/* Header Styles */
header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 10px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text ul {
    margin-left: 20px;
    list-style-type: disc;
}

.about-text ul li {
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
}

.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

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

.event-details {
    padding: 20px;
}

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

.event-location, .event-time {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.event-location i, .event-time i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.view-all-events {
    text-align: center;
}

.ieee-events-note {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(0, 102, 179, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    text-align: center;
}

.ieee-link {
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s;
}

.ieee-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Officers Section */
.officers {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.officers-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
}

.officer-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.officer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.officer-position {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Media Queries for Officers Grid */
@media (max-width: 992px) {
    .officers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .officers-grid.three-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .officers-grid, .officers-grid.three-column {
        grid-template-columns: 1fr;
    }
}

/* Membership Section */
.membership-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.membership-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.membership-text h3:first-child {
    margin-top: 0;
}

.membership-text p {
    margin-bottom: 15px;
}

.membership-text ul {
    margin-left: 20px;
    list-style-type: disc;
    margin-bottom: 20px;
}

.membership-text ul li {
    margin-bottom: 8px;
}

.apply-cta {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(0, 102, 179, 0.1);
    border-radius: 10px;
    text-align: center;
}

.membership-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: #0070ba;
    margin-bottom: 10px;
}

.social-media {
    margin-top: 30px;
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
    font-size: 24px;
    color: #0070ba;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #003e65;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .membership-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .about-image,
    .membership-image {
        order: -1;
    }

    .about-image img,
    .membership-image img {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
        z-index: -1;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0;
        margin-bottom: 20px;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .officers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}