/* ========================================
   PH-IDEAS Home Page Styles
   Design: Modern, Bold, Health-Focused
   ======================================== */

:root {
    /* --primary-blue: #0066CC;
    --dark-blue: #003D7A; */
    --primary-blue: #003087;
    --dark-blue: #1F3A60;
    --primary-orange: #C17508;
    --teal-accent: #00A99D;
    --light-blue: #E6F2FF;
    --gray-50: #F8FAFB;
    --gray-100: #F1F4F7;
    --gray-200: #E4E9EF;
    --gray-600: #6C757D;
    --gray-900: #1A1F36;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* Typography */
* {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;  */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif;
    font-weight: 700;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

/* Animated gradient orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #F7941E 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00A99D 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0066CC 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    animation: slideInLeft 0.8s ease-out;
}

.title-line:nth-child(2) {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-text {
    background: var(--primary-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* Hero Statistics */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 1rem;
}

.stat-link {
    text-decoration: none;
    color:white;
}
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.5s; }
.stat-card:nth-child(2) { animation-delay: 0.6s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(247, 148, 30, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #F7941E;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Metrics Navigation */
.quick-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 1s backwards;
}

.quick-metrics-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.metric-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-link i {
    font-size: 1.25rem;
}

.metric-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(247, 148, 30, 0.5);
}

.metric-link span {
    line-height: 1;
}

.hero-source-footer {
text-align: center;
margin-bottom: 2rem;
}

.impact-source-footer {
text-align: left;
margin-bottom: 2rem;
}
/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn > * {
    position: relative;
    z-index: 1;
}

.cta-btn.primary {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 16px rgba(247, 148, 30, 0.3);
}

.cta-btn.primary:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 148, 30, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-blue);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-buttons .cta-btn.secondary {
    color: white;
}
.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-btn.primary .arrow-icon {
    transition: transform 0.3s ease;
    color: white;

}
.cta-btn.secondary.arrow-icon {
    transition: transform 0.3s ease;
    color: var(--primary-blue);
}

.cta-btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 2.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #0066CC 0%, #00A99D 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   IMPACT SECTION
   ======================================== */

.impact-section {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-orange) 50%, transparent 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.impact-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.progress-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease-out;
}

.impact-card:nth-child(2) .progress-ring-fill {
    stroke: var(--primary-orange);
}

.impact-card:nth-child(3) .progress-ring-fill {
    stroke: var(--teal-accent);
}

.impact-card:nth-child(4) .progress-ring-fill {
    stroke: var(--primary-blue);
}

.impact-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.impact-card:nth-child(2) .impact-icon {
    background: linear-gradient(135deg, var(--primary-orange), #FFB84D);
}

.impact-content {
    text-align: center;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.impact-detail {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ========================================
   DATA PREVIEW SECTION
   ======================================== */

.data-preview-section {
    background: white;
}

.data-preview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.chart-container {
    background: var(--gray-50);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem;
    border-radius: 12px;
}

.chart-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn.active {
    background: var(--primary-blue);
    color: white;
}

.chart-btn:hover:not(.active) {
    background: var(--gray-100);
}

#trendChart {
    max-height: 400px;
}

.chart-footer {
    margin-top: 1rem;
    text-align: center;
}

.data-source {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Demographics Panel */
.demographics-panel {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 24px;
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.demo-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap:0.5rem;
}

.demo-header h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: white;
}


.demo-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: row;
    padding-bottom: 1.25rem;
    padding-top: 1.25rem;
}

.demo-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin: 0;
    white-space: nowrap;
}

.demo-dropdown {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    background-color: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    min-width: 120px;
}

.demo-dropdown:hover {
    border-color: var(--light-blue);
}

.demo-dropdown:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.demo-stat {
    margin-bottom: 1.5rem;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    transition: width 1.5s ease-out;
    flex: 1;
}

.demo-percent {
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
}

.demo-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.demo-link:hover {
    gap: 1rem;
}

/* Additional styling for loading state */
.demographics-panel.loading {
    opacity: 0.6;
    pointer-events: none;
}

.demographics-panel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e5e5e5;
    border-top-color: #0066CC;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.demo-bar {
    transition: width 1s ease-out, background-color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .demo-controls {
        width: auto;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .demo-control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .demo-dropdown {
        flex: 1;
        min-width: auto;
    }
}

/* ========================================
   QUICK LINKS SECTION (Simplified Services)
   ======================================== */

.quick-links-section {
    background: white;
    padding: 4rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .quick-links-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-link-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px;
}

.quick-link-card:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1);
}

.quick-link-card:nth-child(2) .quick-link-icon {
    background: linear-gradient(135deg, var(--primary-orange), #FFB84D);
}

.quick-link-card:nth-child(3) .quick-link-icon {
    background: linear-gradient(135deg, var(--teal-accent), #00C9BA);
}

.quick-link-card:nth-child(4) .quick-link-icon {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.quick-link-card:nth-child(5) .quick-link-icon {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.quick-link-card:nth-child(6) .quick-link-icon {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.quick-link-card h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.quick-link-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}


/* ========================================
   RESOURCE FINDER SECTION
   ======================================== */

.resource-finder-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    position: relative;
    overflow: hidden;
}

.resource-finder-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(247, 148, 30, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.finder-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.finder-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.finder-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.finder-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1.5rem;
    color: var(--gray-600);
    font-size: 1.25rem;
}

#resourceSearch {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
}

#resourceSearch:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(247, 148, 30, 0.1);
}

.search-btn {
    padding: 1.25rem 2rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 148, 30, 0.3);
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.quick-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.quick-filter-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.finder-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.location-pin {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FFB84D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 32px rgba(247, 148, 30, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(247, 148, 30, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(247, 148, 30, 0.6);
    }
}

.location-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    background: var(--gray-50);
    position: relative;
}

.blog-carousel {
    position: relative;
    overflow: hidden;
    padding: 1rem 3rem;
}

.blog-carousel:hover .blog-carousel-track {
    animation-play-state: paused;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--gray-900);
    font-size: 1.25rem;
    opacity: 0;
}

.blog-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.blog-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 320px;
}

@media (min-width: 1400px) {
    .blog-card {
        flex: 0 0 calc(25% - 1.5rem);
    }
}

@media (max-width: 1200px) {
    .blog-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-category {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.blog-meta i {
    color: var(--primary-orange);
}

.blog-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 1rem;
    color: var(--primary-orange);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: gray
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-900);
    border: 2px solid var(--gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-blue);
    /* width: 32px;
    border-radius: 6px; */
}

.blog-cta {
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    background: white;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 3rem;
}

.testimonials-carousel:hover .carousel-btn {
    opacity: 1;
}

.testimonials-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    flex: 0 0 calc(33.333% - 1.35rem);
    /* min-width: 320px; */
}

@media (min-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 1.35rem);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    background: white;
}

.quote-mark {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-900);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), #FFB84D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ========================================
   CTA BANNER SECTION
   ======================================== */

.cta-banner-section {
    background: white;
    padding: 3rem 0;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FFB84D 100%);
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 16px 48px rgba(247, 148, 30, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cta-banner-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-banner-content p {
    font-size: 1.25rem;
    color: white;
    opacity: 0.95;
}

.cta-banner-buttons {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.cta-banner .cta-btn.primary {
    background: white;
    color: var(--primary-orange);
}

.cta-banner .cta-btn.primary:hover {
    background: var(--gray-100);
    color: var(--primary-orange);
}

.cta-banner .cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-blue);
    border-color: white;
}

.cta-banner .cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .data-preview-content {
        grid-template-columns: 1fr;
    }
    
    .finder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-carousel-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .hero-home {
        min-height: auto;
        padding: 6rem 1rem 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-source-footer,
    .impact-source-footer{
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .quick-links-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .chart-container,
    .demographics-panel {
        padding: 1.5rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-carousel {
        padding: 1rem 1rem;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .blog-carousel-track {
        grid-template-columns: 1fr;
    }
    
    .finder-card {
        padding: 2rem;
    }
    
    .finder-search {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-banner {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }
    
    .cta-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-banner-buttons .cta-btn {
        width: 100%;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .impact-card,
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .quick-filters {
        justify-content: center;
    }
}

/* Animation classes for intersection observer */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   INSTAGRAM SECTION
   ======================================== */

/* Instagram Section */
.instagram-section {
    background: white;
    padding: 6rem 0;
}

.instagram-feed-wrapper {
    margin: 3rem 0;
    padding: 0 60px;
    position: relative;
}

/* ========================================
   CAROUSEL WRAPPER
   ======================================== */

.instagram-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

/* Show arrows on hover (desktop) */
.instagram-carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

/* ========================================
   CAROUSEL CONTAINER
   ======================================== */

.instagram-feed-container {
    overflow: hidden;
    width: 100%;
}

/* Force horizontal layout */
.instagram-feed-container .juicer-feed {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0.5rem 0 !important;
}

/* ========================================
   CAROUSEL ARROWS
   ======================================== */

.instagram-carousel-wrapper .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.instagram-carousel-wrapper .carousel-btn:hover {
background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.instagram-carousel-wrapper .carousel-btn.prev {
    left: -60px;
}

.instagram-carousel-wrapper .carousel-btn.next {
    right: -60px;
}

.instagram-carousel-wrapper .carousel-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.instagram-carousel-wrapper .carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Hide Juicer's arrows completely */
.juicer-feed .slick-prev,
.juicer-feed .slick-next,
.slick-arrow, .slick-prev, .slick-next {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Use only custom arrows */
.instagram-carousel-wrapper .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--gray-200);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

/* ========================================
   CAROUSEL INDICATORS (DOTS)
   Matching blog/testimonials style
   ======================================== */

#instagramCarouselIndicators {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0;
}

#instagramCarouselIndicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

#instagramCarouselIndicators .indicator:hover {
    background: var(--primary-blue);
    transform: scale(1.2);
}

#instagramCarouselIndicators .indicator.active {
    background: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   POST CARDS
   ======================================== */

.instagram-feed-container .feed-item {
    flex: 0 0 calc(33.333% - 1.35rem) !important;
    min-width: 320px !important;
    max-width: 400px !important;
    background: white !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
}

.instagram-feed-container .feed-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-orange) !important;
}

/* ========================================
   POST IMAGES
   ======================================== */

.instagram-feed-container .j-image {
    border-radius: 0 !important;
    overflow: hidden !important;
    height: 280px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.instagram-feed-container .j-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.instagram-feed-container .feed-item:hover .j-image img {
    transform: scale(1.05) !important;
}

/* ========================================
   POST TEXT - FULL TEXT BELOW IMAGE
   ======================================== */

.instagram-feed-container .j-text {
    display: block !important;
    background: white !important;
    padding: 1.5rem !important;
    color: #1A1F36 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
    overflow: visible !important;
    max-height: none !important;
}

.instagram-feed-container .j-text p {
    color: #1A1F36 !important;
    background: transparent !important;
    margin: 0 !important;
}

/* ========================================
   POST METADATA
   ======================================== */

.instagram-feed-container .j-meta {
    background: white !important;
    padding: 0 1.5rem 1rem !important;
    font-size: 0.875rem !important;
    color: #6C757D !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.instagram-feed-container .j-date {
    color: #6C757D !important;
    font-weight: 600 !important;
}

/* ========================================
   VIEW ON INSTAGRAM BUTTON
   ======================================== */

.instagram-feed-container .j-view-on {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    margin: 0 1.5rem 1.5rem !important;
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%) !important;
    color: white !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
}

.instagram-feed-container .j-view-on:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(225, 48, 108, 0.4) !important;
}

/* ========================================
   INSTAGRAM CTA BUTTON
   ======================================== */

.instagram-cta {
    text-align: center;
    margin-top: 3rem;
}

.instagram-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #E1306C 0%, #F77737 50%, #FCAF45 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
}

.instagram-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.4);
}

/* ========================================
   FIX POPUP Z-INDEX
   ======================================== */

.j-modal,
.j-overlay,
.j-lightbox,
.j-popup {
    z-index: 99999 !important;
    position: fixed !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .instagram-feed-wrapper {
        padding: 0 50px;
    }
    
    .instagram-feed-container .feed-item {
        flex: 0 0 calc(50% - 1rem) !important;
        min-width: 280px !important;
    }
    
    .instagram-carousel-wrapper .carousel-btn.prev {
        left: -50px;
    }
    
    .instagram-carousel-wrapper .carousel-btn.next {
        right: -50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .instagram-section {
        padding: 4rem 0;
    }
    
    .instagram-feed-wrapper {
        padding: 0 48px;
        margin: 2rem 0;
    }
    
    .instagram-feed-container .feed-item {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .instagram-feed-container .juicer-feed {
        gap: 1.5rem !important;
    }
    
    .instagram-carousel-wrapper .carousel-btn {
        opacity: 1 !important;
        width: 40px;
        height: 40px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .instagram-carousel-wrapper .carousel-btn i {
        font-size: 1rem;
    }
    
    .instagram-carousel-wrapper .carousel-btn.prev {
        left: -48px;
    }
    
    .instagram-carousel-wrapper .carousel-btn.next {
        right: -48px;
    }
    
    .instagram-feed-container .j-image {
        height: 240px !important;
    }
    
    .instagram-cta .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    #instagramCarouselIndicators {
        gap: 0.5rem;
    }
    
    #instagramCarouselIndicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    #instagramCarouselIndicators .indicator.active {
        width: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .instagram-feed-wrapper {
        padding: 0 40px;
    }
    
    .instagram-carousel-wrapper .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .instagram-carousel-wrapper .carousel-btn.prev {
        left: -40px;
    }
    
    .instagram-carousel-wrapper .carousel-btn.next {
        right: -40px;
    }
        .instagram-carousel-wrapper .carousel-btn i {
        font-size: 0.9rem;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 48, 135, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: var(--primary-orange);
    transform: translateX(-50%) translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(193, 117, 8, 0.4);
}

.back-to-top-btn:active {
    transform: translateX(-50%) translateY(-3px) scale(0.95);
}

.back-to-top-btn i {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top-btn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        width: 44px;
        height: 44px;
        bottom: 16px;
        font-size: 1rem;
    }
}

.back-to-top-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top-btn:hover .back-to-top-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 75px;
}

/* ========================================
   QUICK NAVIGATION SIDEBAR - NO SCROLLBAR FIX
   ======================================== */

/* Trigger Button - Fixed on Right Side */
.quick-nav-trigger {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1.25rem 0.625rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 999;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 16px rgba(0, 48, 135, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-nav-trigger:hover {
    background: var(--primary-orange);
    right: 2px;
    box-shadow: -6px 6px 20px rgba(193, 117, 8, 0.4);
}

.quick-nav-trigger i {
    font-size: 0.875rem;
    animation: slideLeft 1.5s ease-in-out infinite;
}

@keyframes slideLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
}

/* Sidebar Panel - COMPACT FLOATING */
.quick-nav-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: -280px;
    width: 280px;
    max-height: 80vh;
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.quick-nav-panel.open {
    right: 0;
}

/* Custom scrollbar for panel only */
.quick-nav-panel::-webkit-scrollbar {
    width: 6px;
}

.quick-nav-panel::-webkit-scrollbar-track {
    background: transparent;
}

.quick-nav-panel::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.quick-nav-panel::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Header - COMPACT */
.quick-nav-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 12px 0 0 0;
}

.quick-nav-header h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.quick-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Content - COMPACT */
.quick-nav-content {
    padding: 1rem;
}

/* Navigation Links - COMPACT */
.quick-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--gray-50);
    border-left: 3px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.quick-nav-link i {
    color: var(--primary-blue);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.quick-nav-link:hover {
    background: white;
    border-left-color: var(--primary-orange);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-nav-link:hover i {
    transform: translateX(3px);
    color: var(--primary-orange);
}

/* CTA Section - COMPACT */
.quick-nav-cta {
    background: linear-gradient(135deg, var(--light-blue) 0%, #E8F4FF 100%);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 2px solid var(--primary-blue);
}

.quick-nav-cta h3 {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}

.quick-nav-cta p {
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.quick-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.2);
    width: 100%;
}

.quick-nav-btn:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 117, 8, 0.3);
}

.quick-nav-btn i {
    transition: transform 0.3s ease;
}

.quick-nav-btn:hover i {
    transform: translateX(3px);
}

/* Overlay */
.quick-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-nav-panel {
        width: 260px;
        right: -260px;
        max-height: 75vh;
    }
    
    .quick-nav-header h2 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .quick-nav-panel {
        width: 240px;
        right: -240px;
        max-height: 70vh;
    }
    
    .quick-nav-trigger {
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .quick-nav-content {
        padding: 0.875rem;
    }
}
