/* ===== CSS Custom Properties ===== */
:root {
    --color-primary: #003366;
    --color-primary-dark: #002244;
    --color-primary-light: #0077cc;
    --color-accent: #17a2b8;
    --color-dark: #001f3f;
    --color-dark-light: #002b55;
    --color-light: #f0f6fc;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
}

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

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

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

/* ===== Utility Classes ===== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.bg-light-custom {
    background-color: var(--color-light);
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--color-primary);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: var(--color-white);
    margin: 0 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.top-bar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    margin: 0 3px;
}

.top-bar .social-icons a:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.top-bar .auth-links a {
    color: var(--color-white);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
}

.top-bar .auth-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.top-bar .auth-links .btn-register {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.top-bar .auth-links .btn-register:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===== Main Navbar ===== */
.main-navbar {
    background: var(--color-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1030;
}

.main-navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.main-navbar .navbar-brand img {
    max-height: 55px;
    transition: var(--transition);
}

.main-navbar .navbar-brand span {
    font-size: 1.15rem !important;
}

.main-navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-dark) !important;
    padding: 10px 12px !important;
    position: relative;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--color-primary-dark) !important;
}

/* Navbar Dropdown */
.main-navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 5px;
    min-width: 200px;
}

.main-navbar .dropdown-item {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
    background: var(--color-primary);
    color: #fff;
}

.main-navbar .dropdown-divider {
    margin: 4px 0;
}

@media (min-width: 992px) {
    .main-navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.navbar-toggler {
    border: 2px solid var(--color-primary);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 51, 102, 0.85)),
                url('../images/hero-banner.jpg') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .highlight {
    color: var(--color-accent);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-section .btn-hero {
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn-primary-custom {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    font-weight: 600;
}

.btn-accent:hover {
    background: #138496;
    border-color: #138496;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-primary-custom {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-weight: 600;
}

.btn-outline-primary-custom:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== Cards ===== */
.card-custom {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-custom .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-custom .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-custom:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-custom .date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-custom .card-body {
    padding: 25px;
}

.card-custom .card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.card-custom .card-title a {
    color: var(--color-dark);
}

.card-custom .card-title a:hover {
    color: var(--color-primary-dark);
}

.card-custom .card-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-custom .card-footer-custom {
    padding: 15px 25px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-custom .read-more {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-custom .read-more:hover {
    color: var(--color-accent);
}

/* ===== About Section ===== */
.about-section .about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-section .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-section .about-img:hover img {
    transform: scale(1.03);
}

.about-section .about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.about-section .about-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.about-section .about-content p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.about-section .about-features {
    margin-top: 20px;
}

.about-section .about-features .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.about-section .about-features .feature-item i {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-right: 12px;
    margin-top: 3px;
}

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(rgba(0, 31, 63, 0.9), rgba(0, 51, 102, 0.9)),
                url('../images/hero-banner.jpg') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
    color: var(--color-white);
}

.page-banner h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-banner .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page-banner .breadcrumb-item a {
    color: var(--color-accent);
}

.page-banner .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Committee Section ===== */
.committee-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.committee-card .member-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.committee-card:hover .member-img {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.committee-card h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.committee-card .designation {
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.committee-card .social-links a {
    color: var(--color-text-muted);
    margin: 0 5px;
    font-size: 1rem;
}

.committee-card .social-links a:hover {
    color: var(--color-primary);
}

/* ===== Contact Section ===== */
.contact-info-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-card .info-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-info-card .info-item h6 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.contact-info-card .info-item p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* ===== Forms ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.form-label {
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 5px;
}

/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    padding: 40px 20px;
}

.auth-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .auth-logo img {
    max-height: 60px;
    margin-bottom: 10px;
}

.auth-card .auth-logo h4 {
    color: var(--color-dark);
    margin-bottom: 5px;
}

.auth-card .auth-logo p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--color-dark);
    border-color: var(--color-border);
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 6px;
}

.pagination .page-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.site-footer h5 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.site-footer p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.site-footer .footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
}

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

.site-footer .footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.site-footer .footer-links li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.site-footer .footer-links li a i {
    margin-right: 8px;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.site-footer .footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.site-footer .footer-contact .contact-item i {
    color: var(--color-primary);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1rem;
}

.site-footer .footer-contact .contact-item p {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.site-footer .footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ===== Members Directory ===== */
.member-card {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.member-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.member-card .member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--color-primary);
}

.member-card .member-info h6 {
    margin-bottom: 2px;
}

.member-card .member-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-border);
}

.no-results h4 {
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

/* ===== Flash Messages ===== */
.flash-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 450px;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Placeholder Image ===== */
.placeholder-img {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 60vh;
    }

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

    .section-padding {
        padding: 60px 0;
    }

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

    .main-navbar .navbar-collapse {
        background: var(--color-white);
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .top-bar .social-icons {
        display: none;
    }

    .page-banner {
        padding: 60px 0;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 30px 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .card-custom .card-img-wrapper {
        height: 180px;
    }
}
