/* Color Palette */
:root {
    --primary: #0f172a;
    --accent: #fb923c;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --gray-bg: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 5%;
    background: var(--primary);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
span { color: var(--accent); }

.nav-links { display: flex; list-style: none; }
.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links li a:hover { color: var(--accent); }

.menu-toggle { display: none; font-size: 1.5rem; }

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(0deg,rgb(0, 0, 0) 0% , rgba(15, 23, 42, 0.1) 90%),url("assets/bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero-schedule {
    height: 90vh;
    background: linear-gradient(0deg,rgb(0, 0, 0) 0% , rgba(15, 23, 42, 0.1) 90%),url("assets/bg-2.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-schedule h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 1rem; }
.hero-schedule p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; opacity: 0.9; }

.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; opacity: 0.9; }

.btn-primary { background: var(--accent); color: white; padding: 1rem 2rem; text-decoration: none; border-radius: 8px; font-weight: bold; display: inline-block; margin: 5px; transition: 0.3s; }
.btn-outline { border: 2px solid white; color: white; padding: 1rem 2rem; text-decoration: none; border-radius: 8px; font-weight: bold; display: inline-block; margin: 5px; transition: 0.3s; }
.btn-primary:hover { background: #e67e22; }

/* Sections */
.container { max-width: 1100px; margin: auto; padding: 5rem 1.5rem; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--primary); margin-bottom: 3rem; }

/* About Us Root Section */
.aboutus {
    background: #ffffff;
    overflow: hidden;
    padding: 60px 0;
}

/* Flexbox Container */
.aboutus-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px 20px;
    overflow: hidden;
}

/* Image Styling with Animation */
.aboutus-image {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content:center;
}

.aboutus-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 30px;
    box-shadow: 25px 25px 0px rgba(45, 106, 79, 0.1); /* Soft PVA Green Shadow */
    animation: float 6s ease-in-out infinite; /* Floating effect */
}
.aboutus-image .image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 30px;
    box-shadow: 25px 25px 0px rgba(45, 106, 79, 0.1); /* Soft PVA Green Shadow */
    animation: float-2 6s ease-in-out infinite; /* Floating effect */
}

/* Floating Animation */
@keyframes float {
    0% { transform: translatey(0px); }
    50% { transform: translatey(-20px); }
    100% { transform: translatey(0px); }
}
@keyframes float-2 {
    0% { transform: translatey(0px); }
    50% { transform: translateX(-10px); }
    100% { transform: translateX(0px); }
}

/* Content Area */
.aboutus-content {
    flex: 1;
    overflow: hidden;
}

.registration-no {
    display: inline-block;
    background: rgba(214, 40, 40, 0.1); /* Soft PVA Red background */
    color: #d62828; /* PVA Red */
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1b4332; /* Deep PVA Green */
    margin-bottom: 25px;
    line-height: 1.1;
}

.aboutus-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* Feature Highlights Grid */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.highlight {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    border-left: 5px solid #2d6a4f; /* PVA Green */
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1b4332;
    transition: 0.3s;
}

.highlight:hover {
    background: #2d6a4f;
    color: #fff;
    transform: scale(1.05);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .aboutus-container {
        flex-direction: column-reverse; /* Text first on mobile */
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .aboutus-image img {
        max-width: 100%;
        box-shadow: 15px 15px 0px rgba(45, 106, 79, 0.1);
    }
}

/* .officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 0.5fr));
    gap: 40px;
} */
.officials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers cards if the row isn't full */
    gap: 30px;
    margin-top: 20px;
    overflow:hidden;
}

/* .card {
    background: var(--white);
    padding: 10px;
    border: 1px solid #ddd;
    border-top: 4px solid var(--pva-green);
    border-radius: 8px;
} */

.officials-grid .card {
    flex: 1 1 300px; /* Grows, shrinks, and sets a base width of 300px */
    max-width: 400px; /* Prevents cards from getting too wide on desktop */
    background: var(--white);
    padding: 25px;
    border: 1px solid #ddd;
    border-top: 5px solid var(--pva-green);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
/* Executive Committee Styling */
.leadership-tier {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.tier-group {
    background: #f1f8f5;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--pva-green);
}

.tier-group h3 {
    color: var(--pva-red);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.tier-group ul {
    list-style: none;
}

.tier-group li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.sub-heading {
    text-align: center;
    color: var(--pva-green);
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

/* new vice president css */

.leadership-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-label {
    text-align: center;
    color: #2d6a4f; /* PVA Green */
    margin: 40px 0 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.leadership-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    overflow: hidden;
}

.profile-card {
    display: flex;
    background: #fff;
    width: 100%;
    max-width: 550px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 106, 79, 0.1);
}

.profile-img {
    width: 180px;
    min-width: 180px;
}


.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-details h4 {
    color: #1b4332;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.role {
    color: #d62828; /* PVA Red */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.achievement, .credentials {
    font-size: 0.9rem;
    color: #555;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.credentials li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.credentials li::before {
    content: "•";
    color: #2d6a4f;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-img {
        width: 100%;
        height: 250px;
    }
    .credentials li {
        padding-left: 0;
    }
    .credentials li::before {
        display: none;
    }
}

/* Container for all cards */
.ec-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Individual Card Style */
.member-card {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center;
    width: 200px;
    min-height: 100px; /* Ensures all cards are the same height */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #2d6a4f; /* PVA Green */
}

/* Image Container */
.card-image {
    flex: 1; /* Takes up available space */
    display: flex;
    align-items: center; /* Centers image vertically in the space */
    margin-bottom: 10px;
}

.card-image img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* Info Section forced to the bottom */
.card-info {
    margin-top: auto; /* Pushes this div to the very bottom of the flex container */
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.member-name {
    font-weight: 600;
    color: #1e293b; /* Dark Slate */
    font-size: 0.95rem;
    line-height: 1.4;
}

.member-name small {
    display: block; /* Puts titles on a new line */
    color: #64748b;
    font-weight: 400;
}

.ec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.ec-item {
    background: white;
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

/* .ec-item:hover {
    transform: translateY(-3px);
    border-color: var(--pva-green);
} */

/* Responsive fix for EC */
@media (max-width: 768px) {
    .leadership-tier {
        grid-template-columns: 1fr;
    }
}

.bg-light { background: var(--light-gray); }
.status-msg { margin-bottom: 20px; font-style: italic; color: #555; }

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: var(--pva-green); color: white; padding: 12px; text-align: left; }
td { padding: 12px; border-bottom: 1px solid #ddd; }

/* Table */
.table-container { overflow-x: auto; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 1.2rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: var(--primary); color: white; text-transform: uppercase; font-size: 0.8rem; }

/* Form */
.registration-section { background: var(--gray-bg); }
.contact-form { max-width: 600px; margin: auto; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, select, textarea { padding: 1rem; border: 1px solid #cbd5e1; border-radius: 8px; width: 100%; font-size: 1rem; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 1rem; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 1.1rem; transition: 0.3s; }
.btn-submit:hover { background: #334155; }

/* Footer */
footer { background: var(--primary); color: white; padding: 3rem 0; text-align: center; }
.socials { margin-top: 1rem; font-size: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem 0;
    }
    .nav-links.active { display: flex; }
    .form-row { grid-template-columns: 1fr; }
}
