/* 
 * 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);
}


