/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #09115e;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: #09115e;
    background: rgba(9, 17, 94, 0.1);
}

.nav-link.active {
    color: #09115e;
    background: rgba(9, 17, 94, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #09115e 0%, #3498db 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-text {
    text-align: left;
}

.hero-subtitle-container {
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    padding-left: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #09115e;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text {
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2rem;
    color: #09115e;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    margin: 0;
}

.milestone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.milestone img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.milestone-content h3 {
    color: #09115e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Social Section */
.social-section {
    padding: 80px 0;
    background: #09115e;
    color: white;
    text-align: center;
}

.social-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.social-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link img {
    width: 30px;
    height: 30px;
}

/* Leadership Pages */
.leadership-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #09115e 0%, #3498db 100%);
    color: white;
    text-align: center;
}

.leadership-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.leadership-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.leadership-section {
    padding: 80px 0;
    background: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Fixed Leadership Grid Layout */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.leader-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.leader-card:hover {
    transform: translateY(-5px);
}

/* Vice Presidents Grid - Now properly aligned */
.vice-presidents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vice-presidents-grid .leader-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.vice-presidents-grid .leader-card .leader-info {
    text-align: center;
}

.leader-image {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.leader-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.vice-presidents-grid .leader-image img {
    width: 120px;
    height: 120px;
}

.leader-info h2,
.leader-info h3 {
    color: #09115e;
    margin-bottom: 0.5rem;
}

.position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Committee Section */
.committee-section {
    padding: 80px 0;
    background: white;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.committee-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.committee-member {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.committee-member:hover {
    transform: translateY(-2px);
}

.committee-member h3 {
    color: #09115e;
    margin-bottom: 0.5rem;
}

.committee-member .position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.copyright-footer {
    background: #09115e;
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 40px 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 2rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    .hero-content-left {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        order: 1;
    }

    .hero-image {
        padding-left: 0;
        margin: 1rem auto;
        max-width: 320px;
        width: 90%;
        order: 2;
    }

    .hero-text {
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
        order: 1;
    }

    .hero-subtitle-container {
        text-align: center;
        padding: 0 20px;
        order: 2;
    }

    .hero-buttons {
        justify-content: center;
        margin: 1.5rem auto;
        max-width: 400px;
        width: 100%;
        order: 3;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .milestone {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .milestone img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    /* Fixed mobile leadership layout */
    .leadership-grid {
        gap: 2rem;
        padding: 0 10px;
        width: calc(100% - 20px);
        max-width: 100%;
        box-sizing: border-box;
    }

    .vice-presidents-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .leader-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        margin: 0 auto;
        width: calc(100% - 20px);
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
        overflow: hidden;
        min-width: 0;
    }

    .leader-image {
        margin: 0 auto;
        flex-shrink: 0;
    }

    .leader-info {
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .committee-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1rem;
        width: 100%;
    }

    .committee-member {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 1.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Container fixes for mobile - prevent overflow */
    .container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .leadership-section .container {
        padding: 0 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .committee-section .container {
        padding: 0 5px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    /* Enhanced mobile hero layout */
    .hero {
        padding: 100px 35px 60px;
    }

    .hero-container {
        padding: 0 25px;
        max-width: 100%;
    }

    .hero-text {
        padding: 0 15px;
    }

    .hero-subtitle-container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-image {
        margin: 1rem auto;
        max-width: 280px;
        width: 85%;
    }

    .hero-buttons {
        margin: 1.5rem auto;
        max-width: 350px;
    }

    /* Better milestone layout on mobile */
    .milestone {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .milestone img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto 1rem auto;
        display: block;
    }

    .milestone-content {
        text-align: center;
    }

    /* Leadership cards mobile optimization */
    .leader-image img {
        width: 120px;
        height: 120px;
    }

    .vice-presidents-grid .leader-image img {
        width: 120px;
        height: 120px;
    }

    .leader-card {
        padding: 1rem;
        margin: 0 auto 1rem auto;
        width: calc(100% - 20px);
        max-width: calc(100vw - 30px);
        box-sizing: border-box;
        overflow: hidden;
        min-width: 0;
    }

    .contact-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        display: block;
        text-align: center;
        margin: 0.5rem auto 0 auto;
        max-width: 200px;
    }

    /* Better container padding */
    .container {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .leadership-section .container,
    .committee-section .container {
        padding: 0 10px;
        width: calc(100% - 20px);
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Committee members on mobile */
    .committee-member {
        padding: 1.5rem 1rem;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.nav-link:focus,
.btn:focus,
.contact-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .social-section,
    .footer {
        display: none;
    }

    .about-section,
    .leadership-section,
    .committee-section {
        background: white;
        box-shadow: none;
    }
}
