/* 
 * Nextgen Community Council - Core Stylesheet
 * Brand Color Palette:
 * --primary: #0D5CAB (Primary Blue)
 * --sky: #2D9CDB (Sky Blue)
 * --ocean: #0B3F75 (Deep Ocean Blue)
 * --purple: #9C27B0 (Purple Accent)
 * --cyan: #4FC3F7 (Cyan)
 * --light-bg: #F7FAFD
 * --card-bg: #FFFFFF
 * --border: #E6EEF5
 * --dark-text: #2F3B4A
 * --light-text: #6C7A89
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0D5CAB;
    --sky: #2D9CDB;
    --ocean: #0B3F75;
    --purple: #9C27B0;
    --cyan: #4FC3F7;
    --light-bg: #F7FAFD;
    --card-bg: #FFFFFF;
    --border: #E6EEF5;
    --dark-text: #2F3B4A;
    --light-text: #6C7A89;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(13, 92, 171, 0.05), 0 2px 4px -1px rgba(13, 92, 171, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(13, 92, 171, 0.08), 0 4px 6px -2px rgba(13, 92, 171, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(13, 92, 171, 0.1), 0 10px 10px -5px rgba(13, 92, 171, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(230, 238, 245, 0.6);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ocean);
}

/* --------------------------------------------------
   1. Interactive Preloader
   -------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #FFFFFF 0%, #F5F9FD 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
    opacity: 1;
}

#preloader.loaded {
    transform: translateY(-100%);
    opacity: 0;
}

.loader-container {
    text-align: center;
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(11, 63, 117, 0.05);
}

.loader-logo-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    width: 90px;
    height: 90px;
    position: absolute;
    z-index: 2;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-spinner {
    width: 130px;
    height: 130px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--purple);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: absolute;
}

.loader-spinner-outer {
    width: 160px;
    height: 160px;
    border: 2px dashed var(--sky);
    border-left: 2px solid var(--purple);
    border-right: 2px solid var(--cyan);
    border-radius: 50%;
    animation: spin-reverse 3s linear infinite;
    position: absolute;
}

.loader-icon-box {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.loader-icon-box i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}

.loader-icon-box.icon-changed i {
    transform: scale(0.1) rotate(-60deg);
    opacity: 0;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ocean);
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--sky) 0%, var(--primary) 50%, var(--purple) 100%);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.loader-percent {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* --------------------------------------------------
   2. Header & Navigation (Sticky & Transparent Blur)
   -------------------------------------------------- */
.top-header {
    background-color: var(--ocean);
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 400;
}

.top-header a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.top-header a:hover {
    color: var(--cyan);
}

.navbar-brand img {
    height: 42px;
    transition: var(--transition);
}

.main-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 8px 0;
}

.main-navbar.navbar-scrolled {
    padding: 6px 0;
    box-shadow: var(--shadow-md);
}

.navbar-nav {
    gap: 4px;
}
@media (min-width: 1200px) {
    .navbar-nav {
        gap: 8px;
    }
}
@media (min-width: 1400px) {
    .navbar-nav {
        gap: 12px;
    }
}
.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--dark-text) !important;
    padding: 5px 8px !important;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-item.show .nav-link {
    color: var(--primary) !important;
    background-color: rgba(13, 92, 171, 0.05);
}

.navbar-nav .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    margin-top: 8px;
    animation: dropdownFade 0.3s ease;
}

.dropdown-item {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 6px 16px;
    color: var(--dark-text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(13, 92, 171, 0.04);
    color: var(--primary);
    transform: translateX(4px);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Action Buttons */
.btn-donate-now {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.80rem;
    border: none;
    border-radius: 30px;
    padding: 6px 14px !important;
    box-shadow: 0 4px 15px rgba(13, 92, 171, 0.3);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-donate-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
    filter: brightness(1.1);
}

/* --------------------------------------------------
   3. Hero Carousel (Swiper & Animation)
   -------------------------------------------------- */
.hero-slider {
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 500px;
}

.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 63, 117, 0.4) 0%, rgba(11, 63, 117, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Custom Gradient Button */
.btn-premium-grad {
    background: linear-gradient(135deg, var(--sky) 0%, var(--primary) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(45, 156, 219, 0.3);
    transition: var(--transition);
}

.btn-premium-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 92, 171, 0.4);
    color: #FFFFFF;
}

.btn-premium-outline {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background: transparent;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-premium-outline:hover {
    background-color: #FFFFFF;
    color: var(--ocean);
    transform: translateY(-2px);
}

/* --------------------------------------------------
   4. Glassmorphism & Cards Design
   -------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: #FFFFFF;
    border-color: rgba(45, 156, 219, 0.3);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.1) 0%, rgba(13, 92, 171, 0.1) 100%);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.glass-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #FFFFFF;
    transform: scale(1.1) rotate(5deg);
}

/* --------------------------------------------------
   5. SVG Section Dividers & Waves
   -------------------------------------------------- */
.section-divider {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    margin-top: -1px;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.bg-ocean-divider {
    background-color: var(--ocean);
}

/* --------------------------------------------------
   6. Statistics Counter Section
   -------------------------------------------------- */
.counter-box {
    text-align: center;
    padding: 30px 20px;
}

.counter-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    display: inline-block;
}

.counter-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
}

/* --------------------------------------------------
   7. Crowdfunding Progress & Campaigns
   -------------------------------------------------- */
.progress-bar-container {
    background: var(--border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sky) 0%, var(--primary) 50%, var(--purple) 100%);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.donor-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text);
}

.donor-stat-row span strong {
    color: var(--dark-text);
}

/* --------------------------------------------------
   8. Premium Timeline Widget
   -------------------------------------------------- */
.timeline-flow {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border);
}

.timeline-node {
    position: relative;
    margin-bottom: 40px;
}

.timeline-node::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 3px rgba(13, 92, 171, 0.2);
}

/* --------------------------------------------------
   9. PVC ID Card (PVC CSS badge)
   -------------------------------------------------- */
.pvc-card-container {
    width: 320px;
    height: 500px;
    perspective: 1000px;
    margin: 20px auto;
}

.pvc-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
}

.pvc-card.flipped {
    transform: rotateY(180deg);
}

.pvc-front, .pvc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pvc-front {
    background: linear-gradient(135deg, var(--ocean) 0%, var(--primary) 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.pvc-back {
    background: #FFFFFF;
    color: var(--dark-text);
    transform: rotateY(180deg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
}

.pvc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.pvc-header img {
    height: 35px;
}

.pvc-header span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
}

.pvc-photo-box {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
}

.pvc-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pvc-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.pvc-id {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.pvc-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    font-size: 0.8rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.15);
    padding: 12px;
    border-radius: 12px;
}

.pvc-back-terms {
    font-size: 0.75rem;
    color: var(--light-text);
    line-height: 1.4;
}

.pvc-qr-section {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.pvc-qr-section img {
    width: 80px;
    height: 80px;
}

/* --------------------------------------------------
   10. Footer Section
   -------------------------------------------------- */
.premium-footer {
    background-color: var(--ocean);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background particles */
.premium-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(45, 156, 219, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(79, 195, 247, 0.03) 0%, transparent 50%);
    animation: footerBgFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes footerBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.premium-footer h5 {
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.premium-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--sky), var(--cyan));
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-footer .col-lg-2:hover h5::after,
.premium-footer .col-lg-3:hover h5::after,
.premium-footer .col-lg-4:hover h5::after {
    width: 60px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

/* Footer Links - Interactive */
.premium-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.premium-footer ul li {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 4px 0;
}

.premium-footer ul li:hover {
    background: rgba(255, 255, 255, 0.04);
    padding-left: 8px;
}

.premium-footer ul li a {
    display: inline-block;
}

.premium-footer ul li:hover a {
    color: var(--cyan) !important;
    transform: translateX(4px);
}

.premium-footer ul li:hover a .fa-chevron-right {
    animation: chevronBounce 0.5s ease;
}

@keyframes chevronBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Footer Social Links - Brand Color Hover */
.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    margin-right: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.footer-social-link:hover::before {
    transform: scale(1);
}

.footer-social-link:hover {
    transform: translateY(-5px) rotate(8deg) !important;
    box-shadow: 0 8px 25px rgba(45, 156, 219, 0.3);
    border-color: transparent;
}

/* Brand color social hovers */
.footer-social-link[title='Facebook']:hover::before { background: #1877F2; }
.footer-social-link[title='Twitter']:hover::before { background: #1DA1F2; }
.footer-social-link[title='LinkedIn']:hover::before { background: #0A66C2; }
.footer-social-link[title='Instagram']:hover::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social-link[title='WhatsApp']:hover::before { background: #25D366; }

/* Footer Contact Details - Interactive */
.premium-footer .col-lg-3:last-child p {
    transition: all 0.3s ease;
    padding: 8px 10px;
    border-radius: 8px;
    margin-left: -10px;
    cursor: default;
}

.premium-footer .col-lg-3:last-child p:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.premium-footer .col-lg-3:last-child p:hover .text-cyan,
.premium-footer .col-lg-3:last-child p:hover i {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Footer Bottom - Animated Divider */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    border-radius: 3px;
    animation: footerDividerGlow 3s ease-in-out infinite;
}

@keyframes footerDividerGlow {
    0%, 100% { width: 80px; opacity: 0.6; }
    50% { width: 160px; opacity: 1; }
}

.footer-bottom a {
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.footer-bottom a:hover::after {
    width: 100%;
}

.footer-bottom a:hover {
    color: var(--cyan) !important;
    transform: none;
}

/* --------------------------------------------------
   11. Google Translate Complete Stealth Mode
   -------------------------------------------------- */
#google_translate_element,
.goog-te-banner-frame, 
.goog-te-balloon-frame,
.goog-te-menu-frame,
.goog-te-menu2,
.goog-te-menu-value,
.goog-te-gadget,
.goog-te-gadget-icon,
.goog-te-gadget-simple,
.goog-te-spinner-pos,
.goog-te-combo,
#goog-gt-tt,
.goog-tooltip,
.goog-text-highlight,
.skiptranslate,
iframe.skiptranslate,
body > .skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

font[style*="background-color"] {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--sky) 0%, var(--primary) 50%, var(--purple) 100%);
    z-index: 100001;
    transition: width 0.1s linear;
}

/* --------------------------------------------------
   12. Interactive Navigation Link Animations
   -------------------------------------------------- */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 15px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

.dropdown-animated {
    animation: dropdownSlideIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes dropdownSlideIn {
    0% { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1.0); }
}

/* Top social icons */
.top-social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-social-icons a:hover {
    background: var(--cyan);
    color: var(--ocean) !important;
    transform: translateY(-2px) rotate(8deg);
}

/* --------------------------------------------------
   13. Button Ripple Effect & Animations
   -------------------------------------------------- */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-bounce {
    animation: iconBounce 2s infinite ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --------------------------------------------------
   14. Back To Top & Floating Buttons
   -------------------------------------------------- */
.back-to-top-btn {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(13, 92, 171, 0.3);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
    color: #FFFFFF;
}

.float-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.float-whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer SVG wave divider */
.footer-wave-svg {
    width: 100%;
    line-height: 0;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.footer-wave-svg svg {
    display: block;
    width: 100%;
    height: 80px;
    filter: drop-shadow(0 -4px 6px rgba(11, 63, 117, 0.15));
}

/* --------------------------------------------------
   15. Custom Scrollbar & Interactive Focus
   -------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F7FAFD;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--purple) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ocean);
}

.tilt-card {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* Animated Floating Inputs */
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 92, 171, 0.15) !important;
    transform: translateY(-2px);
}

/* Designer Link interactive badge */
.designer-link {
    color: #4FC3F7 !important; /* Cyan */
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding: 3px 10px;
    border-radius: 30px;
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.05);
}

.designer-link:hover {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--sky) 0%, var(--purple) 100%);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4), 0 0 0 3px rgba(156, 39, 176, 0.2);
    border-color: transparent;
    transform: translateY(-3px) scale(1.08);
}

.animate-pulse {
    animation: heartPulse 1.2s infinite alternate ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 1; text-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }
}

/* Mobile responsive padding & wrapping adjustments */
@media (max-width: 767px) {
    .premium-footer {
        padding-bottom: 110px !important; /* Ensure content is not blocked by floating widgets on mobile */
    }
    .designer-link {
        margin-top: 5px;
        display: inline-flex;
    }
}

/* ==========================================================================
   Nextgen Community Council Redesign Styles (Brand Alignment CSS)
   ========================================================================== */

/* 1. Dynamic Hero Slider */
.hero-slide-custom {
    min-height: 580px;
    background: #0c1524; /* Deep Slate Navy matching logo theme */
    position: relative;
    display: flex;
    align-items: center;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
}
.hero-image-curve {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-left: 6px solid var(--primary); /* Logo primary blue border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: sliderBlobMorph 12s ease-in-out infinite alternate;
}
@keyframes sliderBlobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    33% { border-radius: 50% 50% 70% 30% / 50% 40% 60% 50%; }
    66% { border-radius: 40% 60% 50% 50% / 30% 60% 40% 70%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
.text-orange {
    color: var(--primary) !important;
}
.bg-orange {
    background-color: var(--primary) !important;
}

/* 2. About Us Layout */
.about-image-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 400px;
    margin: 0 auto;
}
.about-image-back {
    width: 85%;
    height: 85%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.85;
}
.about-play-overlay {
    position: absolute;
    top: 42.5%;
    left: 42.5%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--sky); /* Sky Blue from logo */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(45, 156, 219, 0.6);
    animation: playPulse 2s infinite;
}
@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 156, 219, 0.7); transform: translate(-50%, -50%) scale(0.95); }
    70% { box-shadow: 0 0 0 15px rgba(45, 156, 219, 0); transform: translate(-50%, -50%) scale(1); }
    100% { box-shadow: 0 0 0 0 rgba(45, 156, 219, 0); transform: translate(-50%, -50%) scale(0.95); }
}
.about-image-front {
    width: 50%;
    height: 50%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    border: 6px solid #fff;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.about-box-icon {
    width: 50px;
    height: 50px;
    background: rgba(45, 156, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    font-size: 20px;
    flex-shrink: 0;
}

/* 3. Interactive Impact Area Cards */
.impact-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 92, 171, 0.12);
    border-color: rgba(13, 92, 171, 0.2);
}
.impact-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
}

/* 4. Campaigns Cards */
.campaign-custom-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}
.campaign-custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 92, 171, 0.15);
}
.progress-bar-custom {
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill-custom {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--sky) 100%);
    border-radius: 3px;
}
.btn-donate-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 0px !important;
}
.btn-donate-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* 5. Blogs Cards */
.blog-custom-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}
.blog-custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.blog-custom-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 5px;
    z-index: 5;
}

/* 6. Static Banner Call-To-Action */
.static-cta-banner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
}
.static-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 63, 117, 0.85); /* Deep ocean overlay */
    z-index: 1;
}
.static-cta-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* 7. Interactive Partners Slider */
.partner-logo-link {
    transition: all 0.3s ease;
    padding: 10px;
    display: inline-block;
}
.partner-logo-img {
    max-height: 48px;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}
.partner-logo-link:hover .partner-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}
.partner-logo-link:hover {
    transform: translateY(-3px);
}

/* ==================================================================
   PHASE 1: Language Switcher Buttons (Top Header)
   ================================================================== */
.top-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.top-lang-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}
.top-lang-btn.active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--ocean) !important;
    box-shadow: 0 3px 10px rgba(79,195,247,0.4);
}
.top-divider {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}
.top-social-link {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.top-social-link:hover {
    color: var(--cyan) !important;
    transform: translateY(-2px);
}
.top-portal-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.top-portal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156,39,176,0.35);
    filter: brightness(1.1);
}
/* Dropdown lang-select-btn active state */
.lang-select-btn.active {
    color: var(--primary) !important;
    font-weight: 700;
    background: rgba(13,92,171,0.06) !important;
}

/* ==================================================================
   PHASE 2: Hero Slider Enhancements
   ================================================================== */
.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.hero-slide-dot {
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes dotBlink {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title-word-highlight {
    color: var(--cyan);
    position: relative;
}
.hero-title-word-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
    animation: underlineGrow 0.8s ease 0.5s both;
}
@keyframes underlineGrow {
    from { width: 0; }
    to { width: 100%; }
}
.swiper-slide-active .hero-content {
    animation: heroContentIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Slide progress dots custom */
.swiper-pagination-bullet {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: var(--cyan);
}

/* ==================================================================
   PHASE 3: Crowdfunding Section (Home & Dedicated Page)
   ================================================================== */
.crowdfunding-section {
    background: linear-gradient(135deg, #0B3F75 0%, #0D5CAB 50%, #1a237e 100%);
    position: relative;
    overflow: hidden;
}
.crowdfunding-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79,195,247,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(156,39,176,0.06) 0%, transparent 50%);
    animation: bgFloat 15s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bgFloat {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(2%,-2%); }
}
.campaign-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
.campaign-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--sky), var(--cyan), var(--purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.campaign-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.campaign-card:hover::before {
    opacity: 1;
}
.campaign-card .progress-bar-fill {
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}
.campaign-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}
.campaign-category-tag {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cf-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.cf-section-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
}

/* ==================================================================
   PHASE 4: FAQ Page Enhancements
   ================================================================== */
.faq-search-box {
    position: relative;
    max-width: 520px;
    margin: 0 auto 40px;
}
.faq-search-box input {
    padding-left: 48px;
    height: 52px;
    border-radius: 30px;
    border: 2px solid var(--border);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}
.faq-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13,92,171,0.1);
    transform: none;
}
.faq-search-box .faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 1rem;
    pointer-events: none;
}
.faq-contact-cta {
    background: linear-gradient(135deg, var(--ocean), var(--primary));
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.faq-contact-cta::before {
    content: '?';
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    font-family: var(--font-heading);
    line-height: 1;
}
.faq-category-pill {
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 30px;
    border: 2px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--light-text);
    background: #fff;
    transition: all 0.25s ease;
}
.faq-category-pill:hover,
.faq-category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13,92,171,0.25);
}

/* ==================================================================
   PHASE 5: Gallery Masonry & Lightbox
   ================================================================== */
.gallery-masonry {
    columns: 3;
    column-gap: 16px;
}
@media (max-width: 992px) { .gallery-masonry { columns: 2; } }
@media (max-width: 576px) { .gallery-masonry { columns: 1; } }
.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 16px;
}
.gallery-masonry-item:hover img {
    transform: scale(1.06);
}
.gallery-masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,63,117,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border-radius: 16px;
}
.gallery-masonry-item:hover .gallery-masonry-overlay {
    opacity: 1;
}
.gallery-zoom-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.25s ease;
    margin-left: auto;
    margin-top: auto;
    position: absolute;
    top: 12px; right: 12px;
    opacity: 0;
    transform: scale(0.7);
}
.gallery-masonry-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ==================================================================
   PHASE 6: Team Page Enhancements
   ================================================================== */
.team-card-enhanced {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
}
.team-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.team-card-enhanced:hover::before {
    transform: scaleX(1);
}
.team-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13,92,171,0.12);
    border-color: rgba(13,92,171,0.15);
}
.team-photo-ring {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary), var(--purple)) border-box;
    overflow: hidden;
    margin: 0 auto;
    transition: transform 0.4s ease;
}
.team-card-enhanced:hover .team-photo-ring {
    transform: scale(1.08);
}
.team-dept-filter-btn {
    padding: 7px 20px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--light-text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.team-dept-filter-btn:hover,
.team-dept-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,92,171,0.25);
}

/* ==================================================================
   PHASE 7: Testimonials Carousel
   ================================================================== */
.testimonial-card-enhanced {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.testimonial-card-enhanced::before {
    content: '\201C';
    position: absolute;
    top: 16px; left: 20px;
    font-size: 5rem;
    color: rgba(13,92,171,0.06);
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card-enhanced:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(13,92,171,0.15);
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.testimonial-author-img {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

/* ==================================================================
   PHASE 8: Programs Page
   ================================================================== */
.program-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13,92,171,0.1);
    border-color: rgba(13,92,171,0.2);
}
.program-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.program-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.program-card:hover .program-card-image img {
    transform: scale(1.08);
}
.program-card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.program-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.program-detail-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.program-detail-step:last-child {
    border-bottom: none;
}
.program-step-num {
    width: 40px; height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

/* ==================================================================
   PHASE 9: About Page - Our Journey Timeline
   ================================================================== */
.journey-timeline {
    position: relative;
    padding: 20px 0;
}
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--purple));
    transform: translateX(-50%);
    border-radius: 3px;
}
@media (max-width: 768px) {
    .journey-timeline::before { left: 24px; }
}
.journey-node {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    margin-bottom: 40px;
    position: relative;
}
.journey-node.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}
@media (max-width: 768px) {
    .journey-node, .journey-node.right {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 60px;
    }
}
.journey-node-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    background: #fff;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}
.journey-node.right .journey-node-dot {
    border-color: var(--purple);
}
.journey-node:hover .journey-node-dot {
    transform: translateX(-50%) scale(1.5);
    background: var(--primary);
}
@media (max-width: 768px) {
    .journey-node-dot { left: 24px; }
}
.journey-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 380px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.journey-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(13,92,171,0.2);
}
.journey-year-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* ==================================================================
   PHASE 10: Core Values - Flip Cards
   ================================================================== */
.value-flip-card-container {
    perspective: 1200px;
    height: 220px;
}
.value-flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.value-flip-card-container:hover .value-flip-card {
    transform: rotateY(180deg);
}
.value-flip-front, .value-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border);
}
.value-flip-front {
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.value-flip-back {
    background: linear-gradient(135deg, var(--primary), var(--ocean));
    color: #fff;
    transform: rotateY(180deg);
    border-color: transparent;
}

/* ==================================================================
   PHASE 11: Mission-Vision Page Enhancements
   ================================================================== */
.mv-icon-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}
.mv-icon-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed;
    opacity: 0.4;
    animation: spin 8s linear infinite;
}
.mv-mission .mv-icon-ring { background: rgba(13,92,171,0.08); color: var(--primary); }
.mv-mission .mv-icon-ring::before { border-color: var(--primary); }
.mv-vision .mv-icon-ring { background: rgba(156,39,176,0.08); color: var(--purple); }
.mv-vision .mv-icon-ring::before { border-color: var(--purple); }
.president-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.president-card::before {
    content: '\201C';
    position: absolute;
    top: -10px; left: 20px;
    font-size: 10rem;
    color: rgba(13,92,171,0.04);
    font-family: Georgia, serif;
    line-height: 1;
}
.president-photo {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(white,white) padding-box,
                linear-gradient(135deg, var(--primary), var(--purple)) border-box;
}

/* ==================================================================
   PHASE 12: Services Enhanced
   ================================================================== */
.svc-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13,92,171,0.1) !important;
}
.how-we-work-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.how-we-work-step:hover {
    border-color: rgba(13,92,171,0.2);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}
.how-step-num {
    width: 48px; height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

/* ==================================================================
   PHASE 13: Downloads / Govt Certificates
   ================================================================== */
.cert-preview-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.cert-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13,92,171,0.2);
}
.cert-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.doc-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(22,163,74,0.1);
    color: #16A34A;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

/* ==================================================================
   PHASE 14: Global Responsive Improvements
   ================================================================== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.4rem; }
    .cf-section-title { font-size: 1.8rem; }
    .journey-timeline::before { left: 24px; }
    .journey-node, .journey-node.right {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 60px;
    }
    .journey-node-dot { left: 24px; transform: none; }
    .journey-node:hover .journey-node-dot { transform: scale(1.4); }
    .journey-card { max-width: 100%; }
    .value-flip-card-container { height: 200px; }
    .president-card { padding: 28px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-slider { height: 500px; min-height: 400px; }
    .cf-section-title { font-size: 1.6rem; }
    .campaign-card { padding: 18px; }
    .gallery-masonry { columns: 2; }
    .top-header .col-md-5 { gap: 6px !important; }
    .top-lang-btn { font-size: 0.68rem; padding: 2px 7px; }
    .top-portal-btn { display: none; }
    .program-card-image { height: 180px; }
    .faq-contact-cta { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .gallery-masonry { columns: 1; }
    .value-flip-card-container { height: auto; min-height: 180px; }
}

/* ==================================================================
   PHASE 15: Micro-animations & Global Interactive Styles
   ================================================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.section-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.count-ring {
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(13,92,171,0.1), rgba(156,39,176,0.1));
    color: var(--primary);
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 3px rgba(13,92,171,0.12);
    transition: all 0.4s ease;
}
.count-ring:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(13,92,171,0.15);
}
.interactive-row-hover {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 10px;
}
.interactive-row-hover:hover {
    background: rgba(13,92,171,0.03);
    transform: translateX(4px);
}
/* Gradient text utility */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Glowing border on focus */
.glow-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,92,171,0.2), 0 0 15px rgba(13,92,171,0.1);
}

/* Progress bar for campaign cards */
.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sky, #2D9CDB), var(--primary, #0D5CAB));
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* Interactive Footer Credit Link */
.footer-credit-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #FFB703 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    background: rgba(255, 183, 3, 0.12) !important;
    border: 1px solid rgba(255, 183, 3, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
}
.footer-credit-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 183, 3, 0.3) !important;
    border-color: #FFB703 !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4) !important;
    padding-left: 12px !important;
    text-decoration: none !important;
}
.footer-credit-link:active {
    transform: translateY(0) scale(0.98) !important;
}



