/* =========================================
   SiteKit - Premium Look & Feel
   Inspired by Charitics NGO Template
   ========================================= */

/* CSS Custom Properties - New Charitics-Inspired Palette */
:root {
    /* Primary Colors - Teal/Green */
    --primary-color: #f58634;
    --primary-dark: #156b51;
    --primary-light: #25a57d;
    --primary-gradient: linear-gradient(135deg, #1d8a68 0%, #156b51 100%);
    /* Secondary/Accent Colors - Orange */
    --secondary-color: #f58634;
    --secondary-dark: #e07428;
    --secondary-light: #f99b52;
    --secondary-gradient: linear-gradient(135deg, #f58634 0%, #e07428 100%);
    /* Logo Accent Color - Bright Orange */
    --logo-accent: #eb5310;
    --logo-accent-dark: #d44a0e;
    --logo-accent-light: #f56a2e;
    --logo-accent-gradient: linear-gradient(135deg, #f56a2e 0%, #eb5310 100%);
    /* Neutral Colors */
    --dark-bg: #0c1923;
    --dark-secondary: #132a3a;
    --text-dark: #1e2a38;
    --text-body: #4a5568;
    --text-muted: #6c757d;
    --text-light: #a0aec0;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    /* Dynamic Layout Colors (overridden by ThemeViewComponent) */
    --navbar-bg: #edeee9;
    --body-bg: #edeee9;
    --menu-item-color: #374151;
    --footer-bg: #0c1923;
    --footer-bottom-bg: #f37e49;
    /* Effects */
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* Base Typography */
html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
    /* Slate-50 base */
    /* Premium Mesh Gradient */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(245, 134, 52, 0.12), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(21, 107, 81, 0.10), transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(102, 126, 234, 0.08), transparent 40%);
    background-attachment: fixed;
}


/* Headings - Clean and Bold */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1,
.h1 {
    font-size: 2.5rem;
}

h2,
.h2 {
    font-size: 2rem;
}

h3,
.h3 {
    font-size: 1.5rem;
}

h4,
.h4 {
    font-size: 1.25rem;
}

h5,
.h5 {
    font-size: 1.1rem;
}

h6,
.h6 {
    font-size: 1rem;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Lead text */
.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
}

main {
    flex: 1;
    padding-bottom: 60px;
    /* Gap before footer */
}

/* Focus States */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 138, 104, 0.25);
}

/* =========================================
   Navigation - Premium Glass & Gradient
   ========================================= */

/* Override the default bg-gradient-primary for the navbar to allow our custom glass style */
nav.navbar.bg-gradient-primary {
    /* Background is handled by var(--navbar-bg) in .navbar rule */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--navbar-bg);
    /* Uses dynamic variable */
}

/* Scrolled State - Slightly more opaque or different shadow */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Logo container */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-right: 3rem;
    margin-left: -12px;
    color: #1e293b;
}

.navbar-brand.has-logo {
    background: transparent;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.navbar-brand.has-logo:hover {
    transform: translateY(-1px);
}

.navbar-brand.has-logo .site-logo {
    height: 45px;
    display: block;
    transition: transform 0.3s ease;
}

/* Navbar nav - menu items spacing */
.navbar .navbar-nav {
    gap: 0.5rem;
}

/* Menu links - Premium Look */
.navbar .navbar-nav .nav-link {
    color: #475569;
    /* Slate-600 */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    z-index: 1;
}

/* Hover/Focus/Active State with Gradient Text & Subtle Background */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary-color);
    /* Fallback */
    background: linear-gradient(135deg, rgba(29, 138, 104, 0.1) 0%, rgba(29, 138, 104, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(29, 138, 104, 0.1);
    transform: translateY(-1px);
}

/* Gradient Text Effect for consistent premium feel */
.navbar .navbar-nav .nav-link:hover span,
.navbar .navbar-nav .nav-link.active span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Note: To make the gradient text work, we might need to wrap text in span, 
   but for now, applying color directly is safer if <span> isn't in markup.
   Let's use a simpler gradient background approach for the ITEM itself.
*/

/* Alternative: Minimal Gradient Underline on Hover */
.navbar .navbar-nav .nav-link::after {
    display: none;
    /* Remove old underline */
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================
   Dropdown Menus – Premium Professional Style
   ========================================= */

/* Dropdown toggle caret — real icon element */
.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Hide any residual ::after from Bootstrap */
.navbar .navbar-nav .nav-dropdown-toggle::after {
    display: none !important;
}

.navbar .navbar-nav .dropdown.show .dropdown-arrow,
.navbar .navbar-nav .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* The dropdown menu container */
.dropdown-menu-modern {
    border: none;
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem !important;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    animation: dropdownSlideIn 0.25s ease-out;
    transform-origin: top center;
    overflow: hidden;
}

/* Top accent line */
.dropdown-menu-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 12px 12px 0 0;
}

/* Slide-in animation */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown items */
.dropdown-menu-modern .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-menu-modern .dropdown-item:hover,
.dropdown-menu-modern .dropdown-item:focus {
    background: linear-gradient(90deg, rgba(29, 138, 104, 0.08) 0%, rgba(29, 138, 104, 0.02) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-menu-modern .dropdown-item:active {
    background: rgba(29, 138, 104, 0.12);
    color: var(--primary-dark);
}

/* Item icon */
.dropdown-item-icon {
    font-size: 0.7rem;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.dropdown-menu-modern .dropdown-item:hover .dropdown-item-icon {
    color: var(--primary-color);
    transform: translateX(2px);
}

/* Item text */
.dropdown-menu-modern .dropdown-item span {
    flex: 1;
}

/* Divider inside dropdown */
.dropdown-menu-modern .dropdown-divider {
    border-color: #f1f5f9;
    margin: 0.35rem 0;
}

/* Desktop: Open dropdown on hover */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        animation: dropdownSlideIn 0.25s ease-out;
    }

    /* Keep dropdown visible when hovering it */
    .navbar .nav-item.dropdown:hover>.nav-dropdown-toggle {
        color: var(--primary-color);
        background: linear-gradient(135deg, rgba(29, 138, 104, 0.1) 0%, rgba(29, 138, 104, 0.05) 100%);
    }

    /* Invisible bridge to prevent gap between toggle and menu */
    .navbar .dropdown-menu-modern {
        margin-top: 0 !important;
        padding-top: 0.75rem;
    }

    .navbar .dropdown-menu-modern::after {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
        background: transparent;
    }
}

/* Mobile: Full-width dropdown */
@media (max-width: 991.98px) {
    .dropdown-menu-modern {
        border-radius: 8px;
        margin: 0.25rem 0 !important;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.03);
        backdrop-filter: none;
        animation: none;
        padding: 0.25rem 0;
    }

    .dropdown-menu-modern::before {
        display: none;
    }

    .dropdown-menu-modern .dropdown-item {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        border-left: 2px solid transparent;
    }

    .dropdown-menu-modern .dropdown-item:hover {
        transform: none;
        border-left-color: var(--primary-color);
    }
}

/* Page Banner / Breadcrumb Section */
.page-banner {
    position: relative;
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 9rem 0 5rem;
    /* Increased top padding for floating navbar */
    margin-top: 0;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(12, 25, 35, 0.85) 0%,
            rgba(12, 25, 35, 0.75) 100%);
}

.page-banner-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.page-banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.page-banner .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.page-banner .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
}

.page-banner .breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.page-banner .breadcrumb-item.active {
    color: var(--secondary-color);
}

.page-banner .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "›";
    font-size: 1.2rem;
    padding: 0 0.75rem;
}

/* Legacy page-header styles (keep for compatibility) */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    color: var(--text-dark);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* Account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-title {
    line-height: 1.2;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
}

.bg-accent {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 50px;
    right: 20%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* =========================================
   Cards
   ========================================= */
.card-modern {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.card-modern .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-placeholder i {
    font-size: 3rem;
    color: #a0aec0;
}

.card-modern .card-body {
    padding: 1.5rem;
}

.card-modern .card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.card-modern .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.75rem;
    color: #fff;
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
}

/* =========================================
   Badges & Soft Backgrounds
   ========================================= */
.bg-primary-soft {
    background-color: rgba(29, 138, 104, 0.1) !important;
}

.bg-success-soft {
    background-color: rgba(72, 187, 120, 0.1) !important;
}

.bg-secondary-soft {
    background-color: rgba(245, 134, 52, 0.1) !important;
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary-accent {
    color: var(--secondary-color) !important;
}

/* =========================================
   Section Headers
   ========================================= */
.section-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* =========================================
   Articles
   ========================================= */
.article-detail {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
}

.article-title {
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.article-body.prose {
    font-size: 1.05rem;
    color: var(--text-body);
}

.article-body.prose p {
    margin-bottom: 1.5rem;
}

.article-body.prose h2,
.article-body.prose h3,
.article-body.prose h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-image img {
    border-radius: var(--border-radius);
}

/* =========================================
   Committee Members
   ========================================= */
.member-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.member-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.photo-placeholder i {
    font-size: 3rem;
    color: #fff;
}

.member-name {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.member-designation {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* =========================================
   Contact Page – Map
   ========================================= */
.contact-map-section {
    position: relative;
    z-index: 1;
}

.contact-map {
    width: 100%;
    height: 400px;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .contact-map {
        height: 280px;
    }
}

/* =========================================
   Contact Page – Quick Info Cards
   ========================================= */

.contact-quick-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
}

.contact-quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.contact-quick-card:hover::before {
    height: 6px;
}

.contact-quick-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-quick-icon.email-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.contact-quick-icon.phone-icon {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.contact-quick-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.contact-quick-card:hover .contact-quick-icon {
    transform: scale(1.1);
}

.contact-quick-card h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.contact-quick-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-quick-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact-quick-card a:hover {
    color: var(--primary-dark);
}

/* =========================================
   Contact Page – Form Card
   ========================================= */
.contact-form-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-form-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* Success alert */
.contact-success-alert {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border: 1px solid #c6f6d5;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-success-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-success-icon i {
    color: #fff;
    font-size: 1.25rem;
}

/* Submit button */
.contact-submit-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}

.contact-submit-btn:hover::after {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
}

/* =========================================
   Contact Page – Info Sidebar Card
   ========================================= */
.contact-info-card {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    color: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card h4,
.contact-info-card h6 {
    color: #fff;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-info-card a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-info-card a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.contact-icon i {
    font-size: 1.2rem;
}

/* Decorative shapes in info card */
.contact-card-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.contact-shape-1 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -60px;
}

.contact-shape-2 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: 40%;
}

/* =========================================
   Honeypot Anti-Bot Field
   ========================================= */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   Contact Page – Form Controls
   ========================================= */
.form-floating>.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 1rem 0.75rem;
}

.form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(29, 138, 104, 0.1);
}

.form-floating>label {
    padding: 1rem 0.75rem;
}

/* =========================================
   Contact Page – Responsive
   ========================================= */
@media (max-width: 991.98px) {

    .contact-form-card,
    .contact-info-card {
        padding: 1.75rem;
    }

    .contact-quick-card {
        padding: 1.5rem 1.25rem;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: var(--bg-light);
}

.cta-card {
    background: var(--secondary-gradient);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 134, 52, 0.4);
}

.btn-secondary {
    background: var(--primary-color);
    border: none;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 138, 104, 0.4);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-outline-success {
    border-color: #48bb78;
    color: #48bb78;
}

.btn-outline-success:hover {
    background: #48bb78;
    border-color: #48bb78;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* =========================================
   Footer - Enhanced with Floating Contact Bar
   ========================================= */
.footer-modern {
    background: var(--footer-bg);
    color: var(--text-light);
    position: relative;
}

/* Floating Contact Bar - Attractive Card Style */
.footer-contact-bar-wrapper {
    position: relative;
    background: transparent;
    padding-top: 0;
    margin-top: 0;
}

.footer-contact-bar {
    background: #f37e49;
    padding: 1.75rem 2.5rem;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(243, 126, 73, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.15);
    max-width: 1296px;
    margin: -50px auto 0;
    position: relative;
    z-index: 10;
}

.footer-contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-bar .contact-item:hover {
    opacity: 0.85;
}

.footer-contact-bar .contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-bar .contact-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.footer-contact-bar .contact-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-bar .contact-value {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Divider between contact items */
.footer-contact-bar .contact-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
}

.footer-top {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer Logo - Rounded Rectangle with Accent (matching Navbar) */
.footer-brand {
    color: #fff;
    display: inline-block;
}

.footer-brand.has-logo {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 8px 16px 8px 20px;
    border-radius: 12px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(235, 83, 16, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(235, 83, 16, 0.15);
    overflow: hidden;
}

/* Left accent stripe */
.footer-brand.has-logo::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 4px;
    background: var(--logo-accent-gradient);
    border-radius: 0 3px 3px 0;
}

/* No bottom pointer for this design */
.footer-brand.has-logo::after {
    display: none;
}

.footer-brand.has-logo img {
    filter: none;
    height: 40px;
    display: block;
}

.footer-brand:not(.has-logo) img {
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '›';
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Recent News in Footer */
.footer-news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-news-image {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.footer-news-item:hover .footer-news-image img {
    transform: scale(1.1);
}

.footer-news-content {
    flex: 1;
    min-width: 0;
}

.footer-news-title {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.footer-news-item:hover .footer-news-title {
    color: var(--primary-color);
}

.footer-news-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-news-date i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

/* Footer contact column icons - white color */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon i {
    color: #fff;
    font-size: 1rem;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Bottom - Orange Background */
.footer-bottom {
    background: var(--footer-bottom-bg);
    padding: 1.25rem 0;
}

.footer-bottom .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
}

/* =========================================
   Empty States
   ========================================= */
.empty-state {
    padding: 3rem 2rem;
}

.empty-state i {
    opacity: 0.5;
}

/* =========================================
   Utilities
   ========================================= */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* =========================================
   Site Header/Logo Styles
   ========================================= */
.site-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-name {
    font-size: 1.25rem;
}

/* Hide site name when logo contains org name */
.navbar-brand.has-logo .site-name {
    display: none;
}

@media (max-width: 576px) {
    .site-logo {
        height: 35px;
    }

    .site-name {
        font-size: 1rem;
    }
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-banner {
        min-height: 400px;
        padding: 7rem 0 3rem;
    }

    .page-banner-title {
        font-size: 2.25rem;
    }

    .footer-top {
        padding: 3rem 0 2rem;
    }

    .article-detail,
    .content-card,
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }

    /* Navbar brand on mobile */
    .navbar-brand.has-logo {
        padding: 4px 8px;
    }

    .navbar-brand.has-logo .site-logo {
        height: 32px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem !important;
    }

    .page-banner {
        min-height: 300px;
        padding: 6rem 0 2.5rem;
    }

    .page-banner-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .member-photo img,
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .footer-heading {
        margin-top: 1.5rem;
    }

    /* Mobile navbar collapse background */
    .navbar-collapse {
        background: rgba(12, 25, 35, 0.95);
        margin: 0.5rem -1rem -0.5rem;
        padding: 1rem;
        border-radius: 0 0 12px 12px;
    }

    .navbar.scrolled .navbar-collapse {
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

/* =========================================
   Directory Pages
   ========================================= */

/* --- Section Header --- */
.directory-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.directory-section-header .section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    margin-bottom: 0.5rem;
}

.directory-section-header .section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.directory-section-header .section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Directory Group Card (Index Page) --- */
.directory-group-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.directory-group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
}

.directory-group-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.directory-group-card:hover::before {
    height: 6px;
}

.directory-group-card-body {
    padding: 2rem 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.directory-group-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(29, 138, 104, 0.25);
}

.directory-group-card:hover .directory-group-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 18px rgba(29, 138, 104, 0.35);
}

.directory-group-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.directory-group-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    background: rgba(29, 138, 104, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.directory-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    transition: var(--transition-fast);
}

.directory-group-card:hover .directory-group-title {
    color: var(--primary-color);
}

.directory-group-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.directory-group-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.directory-group-members {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.directory-group-members i {
    font-size: 1rem;
    color: var(--primary-color);
}

.directory-group-arrow {
    width: 36px;
    height: 36px;
    background: rgba(29, 138, 104, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.directory-group-arrow i {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.directory-group-card:hover .directory-group-arrow {
    background: var(--primary-gradient);
}

.directory-group-card:hover .directory-group-arrow i {
    color: #fff;
    transform: translateX(2px);
}

/* --- Directory Detail Header Card --- */
.directory-detail-header {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.directory-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.directory-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.directory-detail-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    background: rgba(29, 138, 104, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.directory-detail-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.directory-detail-count i {
    color: var(--secondary-color);
}

.directory-detail-desc {
    color: var(--text-body);
    line-height: 1.75;
    font-size: 1rem;
}

.directory-detail-desc p:last-child {
    margin-bottom: 0;
}

/* --- Member Card (Cards Mode) --- */
.dir-member-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    text-align: center;
    position: relative;
}

.dir-member-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dir-member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.dir-member-card:hover::after {
    opacity: 1;
}

.dir-member-card-body {
    padding: 2rem 1.5rem 1.5rem;
}

.dir-member-photo {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
}

.dir-member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.dir-member-photo .photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: 0;
}

.dir-member-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(29, 138, 104, 0.25);
}

.dir-member-placeholder i {
    font-size: 2.5rem;
    color: #fff;
}

.dir-member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.dir-member-designation {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dir-member-org {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.dir-member-area {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dir-member-area i {
    color: var(--secondary-color);
}

/* Contact Pill Buttons */
.dir-member-contact {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dir-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.dir-contact-pill.phone {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
}

.dir-contact-pill.phone:hover {
    background: #38a169;
    color: #fff;
}

.dir-contact-pill.email {
    background: rgba(245, 134, 52, 0.1);
    color: var(--secondary-dark);
}

.dir-contact-pill.email:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Social Links Row */
.dir-member-social {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.dir-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    background: var(--bg-light);
    color: var(--text-muted);
}

.dir-social-link:hover {
    transform: translateY(-2px);
    color: #fff;
}

.dir-social-link.facebook:hover {
    background: #1877f2;
}

.dir-social-link.linkedin:hover {
    background: #0a66c2;
}

.dir-social-link.twitter:hover {
    background: #1da1f2;
}

.dir-social-link.youtube:hover {
    background: #ff0000;
}

.dir-social-link.website:hover {
    background: var(--primary-color);
}

/* --- Member Table (List Mode) --- */
.directory-table-wrapper {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.directory-table {
    margin-bottom: 0;
}

.directory-table thead {
    background: var(--primary-gradient);
}

.directory-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    border: none;
    white-space: nowrap;
}

.directory-table tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.directory-table tbody tr:last-child {
    border-bottom: none;
}

.directory-table tbody tr:hover {
    background: rgba(29, 138, 104, 0.03);
}

.directory-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.92rem;
    color: var(--text-body);
    border: none;
}

.dir-table-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dir-table-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.dir-table-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dir-table-avatar-placeholder i {
    color: #fff;
    font-size: 1.1rem;
}

.dir-table-name {
    font-weight: 600;
    color: var(--text-dark);
}

.dir-table-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dir-table-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.dir-table-social {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
}

.dir-table-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-fast);
    background: var(--bg-light);
    color: var(--text-muted);
}

.dir-table-social a:hover {
    transform: translateY(-2px);
    color: #fff;
}

.dir-table-social a.facebook:hover {
    background: #1877f2;
}

.dir-table-social a.linkedin:hover {
    background: #0a66c2;
}

.dir-table-social a.twitter:hover {
    background: #1da1f2;
}

.dir-table-social a.youtube:hover {
    background: #ff0000;
}

.dir-table-social a.website:hover {
    background: var(--primary-color);
}

/* --- Empty State --- */
.directory-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.directory-empty-icon {
    width: 90px;
    height: 90px;
    background: var(--bg-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.directory-empty-icon i {
    font-size: 2.5rem;
    color: var(--text-light);
}

.directory-empty h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.directory-empty p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Search & Filter Bar --- */
.directory-filter-bar {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.directory-filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.directory-search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.directory-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.directory-search-box .form-control {
    padding-left: 2.75rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    font-size: 0.92rem;
    height: 44px;
    transition: var(--transition-fast);
}

.directory-search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(29, 138, 104, 0.1);
}

.directory-type-select {
    position: relative;
    min-width: 160px;
}

.directory-type-select i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.directory-type-select .form-select {
    padding-left: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    font-size: 0.92rem;
    height: 44px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.directory-type-select .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(29, 138, 104, 0.1);
}

.directory-search-btn {
    height: 44px;
    padding: 0 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.directory-clear-btn {
    height: 44px;
    width: 44px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.directory-results-info {
    margin-bottom: 1.25rem;
    padding: 0.6rem 1rem;
    background: rgba(29, 138, 104, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
    color: var(--text-body);
}

@media (max-width: 767.98px) {
    .directory-filter-form {
        flex-direction: column;
    }

    .directory-search-box,
    .directory-type-select {
        width: 100%;
        min-width: unset;
    }

    .directory-filter-form .directory-search-btn {
        width: 100%;
    }

    .directory-clear-btn {
        width: 100%;
    }
}

/* --- Fade-in Animation --- */
@keyframes dirFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dir-animate {
    animation: dirFadeInUp 0.5s ease forwards;
    opacity: 0;
}

.dir-animate:nth-child(1) {
    animation-delay: 0.05s;
}

.dir-animate:nth-child(2) {
    animation-delay: 0.10s;
}

.dir-animate:nth-child(3) {
    animation-delay: 0.15s;
}

.dir-animate:nth-child(4) {
    animation-delay: 0.20s;
}

.dir-animate:nth-child(5) {
    animation-delay: 0.25s;
}

.dir-animate:nth-child(6) {
    animation-delay: 0.30s;
}

.dir-animate:nth-child(7) {
    animation-delay: 0.35s;
}

.dir-animate:nth-child(8) {
    animation-delay: 0.40s;
}

.dir-animate:nth-child(9) {
    animation-delay: 0.45s;
}

.dir-animate:nth-child(10) {
    animation-delay: 0.50s;
}

.dir-animate:nth-child(11) {
    animation-delay: 0.55s;
}

.dir-animate:nth-child(12) {
    animation-delay: 0.60s;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .directory-detail-header {
        padding: 1.5rem;
    }

    .dir-member-card-body {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .directory-group-card-body {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .directory-group-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .directory-group-icon i {
        font-size: 1.25rem;
    }

    .dir-member-photo {
        width: 90px;
        height: 90px;
    }

    .directory-detail-header {
        padding: 1.25rem;
    }

    .directory-table thead th {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .directory-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}