/* FamilyTree Modern Frontend Design System */
:root {
    --primary: #059345;
    /* Official Theme Green */
    --primary-light: #06a14c;
    --secondary: #d4a017;
    /* Brighter gold to complement the cream */
    --accent: #f3e7c1;
    /* Official Theme Parchment */
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(5, 147, 69, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Open Sans', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 18px !important;
    }
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.7rem;
    }

    .top-bar .nav-container {
        padding: 0 1rem;
    }

    .top-marquee {
        display: block !important;
        width: 100%;
        overflow: hidden;
    }

    .top-social {
        display: none;
    }
}

.top-bar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-marquee {
    flex: 1;
    overflow: hidden;
}

.top-social {
    display: flex;
    gap: 1.2rem;
    padding-left: 2rem;
}

.top-social a {
    color: white;
    transition: transform 0.3s ease;
    display: inline-block;
}

.top-social a:hover {
    transform: scale(1.2);
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    height: 110px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 80px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

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

.nav-logo img {
    height: 90px;
    width: auto;
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 45px;
    }
}

.nav-logo-cross {
    height: 30px !important;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    align-items: center;
    height: 100%;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem 0;
        /* Vertical padding only */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid var(--glass-border);
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        display: none !important;
    }
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

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

.nav-links>li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
    height: 100%;
}

.mobile-actions {
    display: none !important;
}

@media (max-width: 1024px) {
    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        width: 100%;
        height: auto;
        border-bottom: 1px solid #f8fafc;
    }

    .mobile-actions {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem;
        gap: 1rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 1.5rem;
    }

    .mobile-actions .btn-login {
        padding: 0.6rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links i {
    font-size: 0.7rem;
    margin-top: 1px;
    /* Micro-adjustment for visual center */
}

/* Dropdown */
.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    z-index: 1100;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown a:hover {
    background: var(--accent);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Replaces manual margins for consistent spacing */
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.75rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-login-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-login-outline:hover {
    background: var(--primary);
    color: white !important;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.2);
}

.ml-4 {
    margin-left: 1rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 85vh;
    /* Increased height */
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    border-color: white;
}

.slider-arrow.prev {
    left: 40px;
}

.slider-arrow.next {
    right: 40px;
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .hero-slider {
        height: 60vh;
    }
}

/* Cards */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

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

@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

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

/* Welcome Section */
.welcome-section {
    background: #f3e7c1;
    border-bottom: 1px solid #f1f5f9;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .welcome-img-border-top,
    .welcome-img-border-bottom {
        display: none;
    }
}

.welcome-img-container {
    position: relative;
}

.welcome-img-border-top {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 8px solid var(--primary);
    /* Increased thickness for premium feel */
    border-left: 8px solid var(--primary);
    z-index: 0;
}

.welcome-img-border-bottom {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 8px solid #049244;
    /* Increased thickness */
    border-right: 8px solid #049244;
    z-index: 0;
}

.welcome-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.welcome-sub {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.welcome-title {
    font-size: 34px;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 24px;
    }
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.welcome-text-muted {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Feature Cards & Content */
.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.card-text-muted {
    color: var(--text-muted);
}

/* Page Components */
.page-header {
    position: relative;
    background-image: url('../../../front/page-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    text-align: center;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(243 231 193 / 52%) 0%, rgb(0 0 0 / 36%) 100%);
    backdrop-filter: blur(0px);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white !important;
    text-transform: capitalize;
    letter-spacing: 4px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .page-header-title {
        font-size: 1.8rem !important;
        /* Aggressive reduction */
        letter-spacing: 2px;
        line-height: 1.2;
    }

    .page-header-p {
        font-size: 0.95rem !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

.page-header-p {
    opacity: 0.9;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header .container {
        padding: 0 1.5rem;
    }

    .page-header-title {
        font-size: 1.6rem !important;
        /* Consistently reduced for inner page headers */
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .page-header-p {
        font-size: 0.9rem;
        max-width: 100%;
        margin: 1rem auto 0;
    }

    .page-header {
        padding: 40px 0;
    }

    .committee-directory-section {
        padding: 45px 0 0 !important;
        background: #f8fafc;
    }
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
        text-align: center;
    }
}

.highlight-box {
    margin-top: 2rem;
    padding: 2.5rem;
    background: var(--accent);
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

.highlight-box p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary);
}

.img-fluid-rounded {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Contact & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.1);
}

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

.map-placeholder {
    width: 100%;
    height: 450px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* News & Events Details */
.news-item-large {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.news-date-alt {
    background: var(--secondary) !important;
    color: var(--primary) !important;
}

.news-date-alt span {
    font-size: 1.8rem;
}

.news-date-alt small {
    font-weight: 600;
    text-transform: uppercase;
}

.news-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.news-title-large {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

/* History & Timeline */
.history-card {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.history-icon-float {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    border: 5px solid white;
    box-shadow: var(--shadow-sm);
}

.history-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
}

.history-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0.2;
    z-index: 0;
}

.timeline-node {
    text-align: center;
    width: 250px;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

/* Committee */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.member-card {
    text-align: center;
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

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

.member-photo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #f1f5f9;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.member-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.member-position {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.cta-section {
    background: white;
    border-top: 1px solid #f1f5f9;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: scale(1.03);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.gallery-date {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Genealogy Tree */
.tree-container {
    overflow-x: auto;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
}

.tf-tree ul {
    padding-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.tf-tree>ul {
    padding-top: 0;
}

.tf-tree li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 10px 0 10px;
}

.tf-tree li::before {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 20px;
    background: #e2e8f0;
}

.tf-tree>ul>li::before {
    display: none;
}

.tf-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    height: 2px;
    background: #e2e8f0;
    width: 100%;
    left: 0;
}

.tf-tree>ul>li::after {
    display: none;
}

.tf-tree li:first-child::after {
    left: 50%;
    width: 50%;
}

.tf-tree li:last-child::after {
    width: 50%;
}

.tf-tree li:only-child::after {
    display: none;
}

.tf-tree li>ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.children-collapsed {
    display: none !important;
}

.branch-btn {
    padding: 0.65rem 2rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.branch-btn.active,
.branch-btn:hover {
    background: var(--primary);
    color: white !important;
}

.branch-btns-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tree-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem;
    background: var(--accent);
    border-radius: 30px;
    border: 1px dashed var(--primary);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* News Section */
.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: scale(1.02);
}

.news-date {
    background: var(--primary);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.news-date span {
    font-size: 1.5rem;
    font-weight: 700;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Footer */
/* Footer Redesign: Modern Heritage Identity */
footer {
    background: linear-gradient(135deg, #059345 0%, #034b23 100%);
    color: white;
    padding: 100px 0 0;
    position: relative;
    margin-top: 80px;
    /* Space for CTA overlap */
}

.footer-cta-container {
    position: absolute;
    top: -130px;
    left: 0;
    right: 0;
    z-index: 10;
}

.footer-cta-card {
    background: var(--accent);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-cta-card {
        padding: 2rem 1.5rem;
    }

    .navbar {
        height: 70px;
    }

    .mobile-actions .btn-login {

        max-width: 140px;
    }

    .nav-links a {
        padding: 0rem 1.5rem;
    }


    .mobile-actions {

        padding: 0rem 0rem;

    }

    .nav-links>li {
        display: flex;
        align-items: flex-start;
        height: 100%;
        margin-left: 10px;
    }


    .mobile-actions .btn-login {
        padding: 10px 10px 10px 10px;

    }

    a.btn-login.btn-login-outline {
        display: flex;
        justify-content: center;
    }

    a.btn-login {
        display: flex;
        justify-content: center;
    }

    .news-tab-item h4 {

        font-size: 15px !important;
    }


}

.footer-cta-text h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer-cta-text h3 {
        font-size: 1.4rem;
    }

    .footer-cta-text p {
        font-size: 0.95rem;
    }
}

.footer-cta-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 60px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1.2;
    letter-spacing: -0.5px;
    padding-top: 14px;
}

.footer-p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: white !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .footer-cta-container {
        position: relative;
        top: 0;
        margin-bottom: 0px;
        /* Overlap effect without absolute positioning issues */
    }

    footer {
        padding-top: 40px;
    }

    .footer-cta-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Heritage & Our Family Section */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.heritage-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.heritage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.heritage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 70, 35, 0.95), rgba(0, 102, 51, 0.6), transparent);
    color: white;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

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

.heritage-card:hover img {
    transform: scale(1.15);
}

.heritage-card:hover .heritage-overlay {
    transform: translateY(0);
    padding-bottom: 3rem;
}

.heritage-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heritage-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .heritage-card {
        height: 350px;
    }
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .news-item {
        flex-direction: column;
    }

    .news-date {
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
    }
}

/* Modern Tabbed News Showcase */
.news-showcase-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    margin-top: 0rem;
}

.news-showcase-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
}

.news-showcase-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.news-showcase-item.active {
    opacity: 1;
    visibility: visible;
}

.news-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
}

.news-showcase-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white !important;
}

.news-showcase-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.news-tab-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-tab-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #0000000a;
}

.news-tab-item:hover {
    background: var(--accent);
    transform: translateX(10px);
}

.news-tab-item.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(10px);
}

.news-tab-item h4 {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1.15rem;
}

.news-tab-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-tab-item.active h4,
.news-tab-item.active p {
    color: white !important;
}

@media (max-width: 992px) {
    .news-showcase-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .news-showcase-content {
        height: 350px;
    }
}

/* Global Utilities */
.text-center {
    text-align: center !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

/* Genealogy Select a Family Design */
.family-selector-section {
    background-color: #f3e7c1;
    /* Parchment Color */
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png');
    padding: 80px 0;
    text-align: center;
}

.family-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.family-card {
    background: linear-gradient(145deg, #7d6b5d 0%, #4a3b33 100%);
    border-radius: 25px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
}

.family-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #8e7a6a 0%, #5a4b43 100%);
}

.family-card-icon-frame {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.family-card-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.family-card h4 {
    color: #f3e7c1 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

.family-card.active {
    background: linear-gradient(145deg, #059345 0%, #034b23 100%);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .family-card {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 375px) {
    .family-card {
        width: 130px;
        height: 130px;
        padding: 15px;
    }

    .family-card-icon-frame {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
}

h2.text-center {
    text-align: center;
    font-size: 2.2rem;
    /* Scaled down base */
}

@media (max-width: 768px) {

    h2.text-center,
    .section-title {
        text-align: center !important;
        font-size: 21px !important;
        margin-bottom: 0px !important;
    }

    .introduction-text,
    .welcome-text {
        text-align: center !important;
        font-size: 1.05rem !important;
        line-height: 1.6;
    }

    .section-grid {
        grid-template-columns: 1fr !important;
    }

    .news-showcase-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0rem 1rem;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
        color: white;
    }

    .news-showcase-wrapper {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    footer {

        margin-top: 0px !important;
    }

    .news-mag-title {
        font-size: 19px !important;

        margin-bottom: 10px !important;
    }
}

/* Awards & Honours */
.page-header.awards-header {
    background: linear-gradient(135deg, #034b23 0%, #059345 100%);
}

.hall-excellence-title {
    font-weight: 800;
    color: var(--primary);
}

.nomination-box {
    border-radius: 20px;
    border-left: 5px solid var(--secondary);
    padding-left: 15px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.btn-nominate {
    padding: 0.6rem 2rem;
    margin-top: 10px;
}

.honor-card {
    border-radius: 25px;
}

.honor-card.academic {
    background: #fdfbf7;
}

.honor-card.professional {
    background: #f7f9fd;
}

.honor-icon-circle {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.honor-icon-circle.academic-icon {
    color: var(--secondary);
}

.honor-icon-circle.professional-icon {
    color: #0d6efd;
}

.excellence-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
}

/* Family Events */
.featured-event-card {
    border-radius: 30px;
}

.event-img-featured {
    object-fit: cover;
}

.featured-badge {
    width: fit-content;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.featured-event-title {
    font-weight: 800;
}

.event-card {
    border-radius: 20px;
}

.event-card-img {
    height: 250px;
    object-fit: cover;
}

.cta-section.primary-bg {
    background: var(--primary);
    color: white;
}

.cta-text-narrow {
    max-width: 700px;
    margin: 0 auto;
}

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

/* Genealogy Tree Viewer */
.tree-page-header {
    padding: 40px 0;
}

.tree-header-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.btn-back-families {
    padding: 0.5rem 1.5rem;
}

.tree-header-title {
    margin: 0;
    font-size: 2.5rem;
}

.tree-section-parchment {
    background-color: #f3e7c1;
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png');
    min-height: 80vh;
}

.tree-container-fluid {
    padding: 0 4rem;
}

.tree-scroll-container {
    overflow-x: auto;
    padding: 4rem 0;
}

.empty-state-icon-frame {
    margin: 0 auto 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--primary);
}

.tree-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.btn-login-large {
    padding: 1rem 2.5rem;
}

/* Premium Alternating Magazine Layout */
.news-mag-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

.news-mag-item {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-mag-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(5, 147, 69, 0.1);
}

.news-mag-item.reverse {
    flex-direction: row-reverse;
}

.news-mag-img-wrapper {
    flex: 0 0 50%;
    position: relative;
    min-height: 350px;
}

.news-mag-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-mag-content {
    flex: 0 0 50%;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-mag-date {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    width: fit-content;
}

@media (max-width: 768px) {
    .news-mag-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem;
    }

    .news-mag-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

.news-mag-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-mag-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.btn-read-more i {
    transition: transform 0.3s;
}

.btn-read-more:hover {
    color: var(--primary);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {

    .news-mag-item,
    .news-mag-item.reverse {
        flex-direction: column;
    }

    .news-mag-img-wrapper {
        min-height: 250px;
    }

    .news-mag-content {
        padding: 2.5rem 1.5rem;
    }
}



.news-related-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    border-radius: 10px;
    width: fit-content;
}

.news-related-icon {
    color: var(--primary);
}

.news-related-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.empty-state-large-icon {
    font-size: 4rem;
}

.empty-state-full {
    grid-column: 1 / -1;
}

/* Homepage Specific */
.heritage-text-white-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.empty-state-icon-sm {
    font-size: 2rem;
}

/* Committee Page Default Placeholder */
.committee-placeholder-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

/* Premium Committee Card Design */
.committee-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.committee-card-premium {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.committee-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(5, 147, 69, 0.12);
}

.committee-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary) 0%, #059345 100%);
}

.committee-premium-portrait {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 6px solid #f8fafc;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.committee-premium-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.committee-premium-name {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .committee-premium-name {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .committee-premium-role {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .committee-premium-info {
        padding: 1rem;
    }
}

.committee-premium-info {
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.committee-premium-line {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.committee-premium-line:last-child {
    margin-bottom: 0;
}

.committee-premium-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 1px;
}

.committee-design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .committee-design-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .committee-design-grid {
        grid-template-columns: 1fr;
    }
}

.committee-member-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

.committee-portrait {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.committee-role-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.committee-details {
    flex: 1;
}

.committee-member-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.committee-info-line {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.committee-info-line strong {
    color: var(--dark);
    font-weight: 600;
}

.committee-info-line a {
    color: #0ea5e9;
    text-decoration: none;
}

.committee-info-line a:hover {
    text-decoration: underline;
}

.committee-placeholder-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

/* Contact Page */
.btn-contact-submit {
    width: 100%;
    border: none;
}

.section-no-pt {
    padding-top: 0;
}


section.section.py-0.awd {
    padding-top: 0;
}

.committee-premium-line a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

/* Gallery Vanilla JS Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-lightbox.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 300;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
}

.gallery-card {
    cursor: zoom-in;
}

/* Celebrations Section */
.celebration-section {
    background: #fff;
    padding: 0px 0 80px;
}

.celebration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 991px) {
    .celebration-grid {
        grid-template-columns: 1fr;
    }
}

.celebration-col-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    justify-content: center;
}

.celebration-col-title i {
    font-size: 2rem;
    color: var(--secondary);
}

.event-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card-premium {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .event-card-premium {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.event-card-premium:hover {
    transform: translateX(10px);
    border-color: var(--secondary);
    background: white;
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    min-width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(5, 147, 69, 0.1);
}

.event-date-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.event-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

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

/* Committee Directory */
.committee-directory-section {
    padding: 80px 0;
    background: #f8fafc;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

.directory-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.directory-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.directory-info {
    flex-grow: 1;
}

.directory-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-main);
}

.directory-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.directory-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.directory-house {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.directory-phone {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.directory-phone:hover {
    text-decoration: underline;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* House Visit Section */
.house-visit-section {
    padding: 0px 0 80px;
    background: #fff;
}

.visit-log {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    gap: 2rem;
    transition: all 0.3s ease;
}

.visit-item:hover {
    transform: scale(1.02);
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.visit-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.visit-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .visit-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .visit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
}

.visit-main h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-main);
}

.visit-main p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.visit-date {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visit-status {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    text-align: right;
}

@media (max-width: 768px) {
    .visit-status {
        text-align: left;
    }
}

/* Home News Showcase Extra Styles */
.news-tag {
    display: inline-block;
    color: var(--primary);
    background: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.news-showcase-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.news-showcase-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}


section.section.bg-white.fam {
    padding-bottom: 0;
}