* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Better text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent font size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Prevent horizontal overflow */
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* Better touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
}

/* Prevent images and elements from overflowing */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure containers don't overflow */
.container,
.hero-content {
    max-width: 100%;
    overflow: visible;
}

.services-section,
.mission-vision,
.programs-section,
.permits-section,
.news-section,
.contact-section,
.stats-section {
    max-width: 100%;
}

/* Hero Section - Enhanced */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 0;
    padding-top: 0;
    z-index: 1;
    /* Enhanced visual effects */
    isolation: isolate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Subtle zoom animation */
    animation: heroImageZoom 20s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
}

@keyframes heroImageZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.85) 0%, 
        rgba(118, 75, 162, 0.75) 50%,
        rgba(243, 133, 206, 0.65) 100%);
    z-index: 2;
    /* Animated gradient overlay */
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Additional decorative overlay for depth */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at 70% 70%, rgba(243, 133, 206, 0.2) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    /* Enhanced glassmorphism effect */
    backdrop-filter: blur(2px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    /* Enhanced text shadow for better readability */
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(102, 126, 234, 0.3);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Letter spacing for elegance */
    letter-spacing: -0.02em;
    /* Subtle animation */
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.8vw, 1.6rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.98;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Enhanced text shadow */
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 0, 0, 0.15);
    /* Subtle animation */
    animation: fadeInUp 1s ease-out 0.4s both;
    /* Letter spacing for readability */
    letter-spacing: 0.01em;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: rgba(243, 133, 206, 0.3);
    touch-action: manipulation;
    user-select: none;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.primary {
    background: linear-gradient(135deg, #F385CE, #e91e63);
    border-color: transparent;
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(243, 133, 206, 0.4);
}

/* Clock Widget - Enhanced */
.clock-widget {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1rem 1.75rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 4;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 8px rgba(255, 255, 255, 0.1) inset;
    /* Enhanced glassmorphism */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Subtle pulse animation */
    animation: clockPulse 3s ease-in-out infinite;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@keyframes clockPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 2px 8px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset,
            0 2px 12px rgba(255, 255, 255, 0.15) inset;
    }
}

.clock-widget:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 2px 12px rgba(255, 255, 255, 0.15) inset;
}

/* Main Content Section */
.main-content {
    padding: 2rem 0;
    /*background: linear-gradient(to bottom, #f8f9fa, #ffffff);*/
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    /*padding: 0 1rem;*/
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Services Slider - Enhanced */
.services-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(243, 133, 206, 0.08) inset,
        0 2px 8px rgba(243, 133, 206, 0.05) inset;
    border: 1.5px solid rgba(243, 133, 206, 0.15);
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-section:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(243, 133, 206, 0.12) inset,
        0 4px 12px rgba(243, 133, 206, 0.08) inset;
    transform: translateY(-2px);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
    /* Gradient text effect */
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback */
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 2rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slider-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    background: #fff;
    width: 100%;
    transition: all 0.3s ease;
}

.slider-container:hover {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(243, 133, 206, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    will-change: transform;
}

.slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    color: white;
    padding: 2.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.slide-description {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Slider Controls - Enhanced */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: rgba(243, 133, 206, 0.3);
    touch-action: manipulation;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(243, 133, 206, 0.2) inset;
    color: #667eea;
    border-color: rgba(243, 133, 206, 0.3);
}

.slider-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-dots {
    position: relative;
    margin: 0.75rem auto 0;
    transform: none;
    left: auto;
    bottom: auto;
    display: flex;
    width: fit-content;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    white-space: nowrap;
}

.slider-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #22d3ee);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35);
    transition: left 0.35s cubic-bezier(0.51, 0.92, 0.24, 1.1), width 0.35s cubic-bezier(0.51, 0.92, 0.24, 1.1);
    pointer-events: none;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.slider-dot:hover {
    background: rgba(79, 70, 229, 0.55);
    transform: scale(1.05);
}

.slider-dot.active {
    background: rgba(79, 70, 229, 0.2);
}

/* Pulse effect for active dot */
.slider-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #667eea, #F385CE);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Mission & Vision - Enhanced */
.mission-vision {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(243, 133, 206, 0.08) inset,
        0 2px 8px rgba(243, 133, 206, 0.05) inset;
    border: 1.5px solid rgba(243, 133, 206, 0.15);
    height: fit-content;
    position: sticky;
    top: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.mission-vision:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(243, 133, 206, 0.12) inset,
        0 4px 12px rgba(243, 133, 206, 0.08) inset;
    transform: translateY(-2px);
}

.mission-vision h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    /* Gradient text effect */
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback */
    color: #2c3e50;
    letter-spacing: -0.01em;
}

.mission-vision h2:first-child {
    margin-top: 0;
}

.mission-vision h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #F385CE, #e91e63);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.mission-vision h2:hover::after {
    width: 65px;
}

.mission-vision p {
    color: #4a5568;
    margin-bottom: 0;
    line-height: 1.5;
    text-align: justify;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.mission-vision .highlight {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(243, 133, 206, 0.12) 100%);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border-left: 5px solid;
    border-image: linear-gradient(135deg, #667eea, #F385CE) 1;
    margin: 0.75rem 0 1rem 0;
    box-shadow: 
        0 4px 12px rgba(243, 133, 206, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-vision .highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.mission-vision .highlight:hover {
    transform: translateX(4px);
    box-shadow: 
        0 6px 16px rgba(243, 133, 206, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mission-vision .highlight:hover::before {
    left: 100%;
}

.mission-vision .highlight p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.instructions-section {
margin-top: 3rem;
}

.instruction-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.25rem;
margin-top: 1.5rem;
}

.instruction-card {
background: #ffffff;
border-radius: 1rem;
padding: 1.5rem;
border: 1px solid #e2e8f0;
box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}

.instruction-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.75rem;
}

.instruction-list {
padding-left: 1.25rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
}

.instruction-list li {
line-height: 1.4;
color: #334155;
}


/* Statistics Section */
.stats-section {
    margin-top: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem 1rem;
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Environmental Programs Section */
.programs-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(243, 133, 206, 0.1);
    margin-bottom: 2rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(243, 133, 206, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #F385CE, #e91e63);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 133, 206, 0.2);
}

.program-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.program-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.program-card p {
    color: #5a6c7d;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.program-card ul {
    list-style: none;
    padding: 0;
}

.program-card li {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.program-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #F385CE;
    font-weight: bold;
}

/* Permits Section */
.permits-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(243, 133, 206, 0.1);
    margin-bottom: 2rem;
}

.permits-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.permit-category {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(243, 133, 206, 0.1);
}

.permit-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #F385CE;
    padding-bottom: 0.25rem;
}

.permit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.permit-item {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid #F385CE;
    transition: all 0.3s ease;
}

.permit-item:hover {
    background: rgba(243, 133, 206, 0.05);
    transform: translateX(5px);
}

.permit-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.permit-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* News Section */
.news-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(243, 133, 206, 0.1);
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 133, 206, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(243, 133, 206, 0.2);
}

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    height: 150px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1rem;
}

.news-date {
    font-size: 0.8rem;
    color: #F385CE;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.news-card.featured .news-content h3 {
    font-size: 1.3rem;
}

.news-content p {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.read-more {
    color: #F385CE;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e91e63;
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(243, 133, 206, 0.1);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info h3,
.contact-hours h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #F385CE;
    padding-bottom: 0.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(243, 133, 206, 0.05);
    border-radius: 10px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item div {
    color: #5a6c7d;
    line-height: 1.5;
}

.contact-item strong {
    color: #2c3e50;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(243, 133, 206, 0.05);
    border-radius: 10px;
}

.day {
    font-weight: 600;
    color: #2c3e50;
}

.time {
    color: #F385CE;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-vision {
        position: static;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .permits-categories {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-row: span 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Tablets and Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    /* Hero Section - More Compact */
    .hero-section {
        margin-top: 0;
        padding-top: 0;
        min-height: 60vh;
        height: auto;
    }
    
    .hero-background {
        animation: none; /* Disable zoom on mobile for performance */
    }
    
    .hero-overlay {
        animation: none; /* Disable gradient animation on mobile */
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        backdrop-filter: blur(1px);
    }

    .hero-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.25;
        margin-bottom: 1rem;
        text-shadow: 
            2px 2px 6px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(0, 0, 0, 0.3);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
        text-shadow: 
            1px 1px 3px rgba(0, 0, 0, 0.4),
            0 0 10px rgba(0, 0, 0, 0.2);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Clock Widget - Enhanced mobile positioning */
    .clock-widget {
        position: absolute;
        top: 1rem;
        right: 1rem;
        left: auto;
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
        max-width: calc(100% - 2rem);
        border-radius: 16px;
        box-shadow: 
            0 6px 24px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }

    /* Main Content - Compact */
    .container {
        padding: 0 0.75rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    /* Sections - Compact */
    .services-section,
    .mission-vision,
    .programs-section,
    .permits-section,
    .news-section,
    .contact-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        width: 100%;
        overflow: hidden;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    /* Slider - Compact */
    .slider-container {
        width: 100%;
        max-width: 100%;
    }
    
    .slide {
        width: 100%;
        min-width: 100%;
    }
    
    .slide img {
        height: 220px;
        width: 100%;
        object-fit: contain;
        object-position: center;
        background: #f5f5f5;
    }
    
    /* Always show overlay on mobile - disable hover */
    .slide-overlay {
        transform: translateY(0) !important;
        background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.85));
        padding: 1.5rem 1rem;
    }
    
    .slide:hover .slide-overlay {
        transform: translateY(0) !important;
    }
    
    .slide-title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .slide-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .slider-nav.prev {
        left: 0.35rem;
    }

    .slider-nav.next {
        right: 0.35rem;
    }

    .slider-dots {
        padding: 0.8rem 0.8rem;
        gap: 0.35rem;
        bottom: 0.9rem;
    }

    .slider-dot {
        width: 11px;
        height: 11px;
    }

    .slider-dot.active {
        width: 12px;
        height: 12px;
    }

    .slide-overlay {
        padding: 1rem;
    }

    .slide-title {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
    }

    .slide-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* Mission & Vision - Compact */
    .mission-vision {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .mission-vision h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .mission-vision h2::after {
        width: 50px;
        height: 3px;
    }

    .mission-vision p {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .mission-vision .highlight {
        padding: 1rem;
        margin: 0.75rem 0;
        border-radius: 12px;
        border-left-width: 4px;
    }

    /* Programs - Compact */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .program-card {
        padding: 1rem;
    }

    .program-icon {
        font-size: 1.8rem;
        margin-bottom: 0.35rem;
    }

    .program-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .program-card p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .program-card li {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    /* Stats - Compact */
    .stats-section {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .stat-item {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Permits - Compact */
    .permits-categories {
        gap: 0.85rem;
    }

    .permit-category {
        padding: 1rem;
    }

    .permit-category h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .permit-item {
        padding: 0.65rem;
        margin-bottom: 0.4rem;
    }

    .permit-name {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .permit-desc {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* News Cards - Compact */
    .news-image {
        height: 140px;
    }

    .news-card.featured .news-image {
        height: 140px;
    }

    .news-content {
        padding: 0.85rem;
    }

    .news-date {
        font-size: 0.75rem;
    }

    .news-content h3 {
        font-size: 0.95rem;
        margin: 0.35rem 0;
    }

    .news-content p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .read-more {
        font-size: 0.8rem;
    }

    /* Contact - Compact */
    .contact-info h3,
    .contact-hours h3 {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
    }

    .contact-item {
        padding: 0.75rem;
        margin-bottom: 0.65rem;
    }

    .contact-icon {
        font-size: 1.3rem;
    }

    .contact-item div {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .hours-item {
        padding: 0.75rem;
        margin-bottom: 0.4rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .day {
        font-size: 0.85rem;
    }

    .time {
        font-size: 0.85rem;
    }
}

/* Mobile Portrait (480px and below) - VERY COMPACT */
@media (max-width: 480px) {
    /* Hero Section - Ultra Compact */
    .hero-section {
        min-height: 50vh;
        height: auto;
    }

    .hero-content {
        padding: 0.75rem;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.85rem;
        line-height: 1.3;
    }

    .cta-button {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        max-width: 100%;
        border-radius: 25px;
    }

    /* Clock Widget - Compact */
    .clock-widget {
        position: absolute;
        top: 0.4rem;
        right: 0.4rem;
        font-size: 0.6rem;
        padding: 0.4rem 0.6rem;
        max-width: 60%;
        border-radius: 6px;
    }

    /* Main Content - Ultra Compact */
    .main-content {
        padding: 0.75rem 0;
    }

    .container {
        padding: 0 0.5rem;
    }

    /* Sections - Ultra Compact */
    .services-section,
    .mission-vision,
    .programs-section,
    .permits-section,
    .news-section,
    .contact-section,
    .stats-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
        width: 100%;
        overflow: hidden;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    /* Slider - Ultra Compact */
    .slider-container {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .slide {
        width: 100%;
        min-width: 100%;
    }
    
    .slide img {
        height: 180px;
        width: 100%;
        object-fit: contain;
        object-position: center;
        background: #f5f5f5;
    }
    
    /* Always show overlay on mobile - disable hover */
    .slide-overlay {
        transform: translateY(0) !important;
        background: linear-gradient(transparent 15%, rgba(0, 0, 0, 0.85));
        padding: 1.25rem 0.875rem;
    }
    
    .slide:hover .slide-overlay {
        transform: translateY(0) !important;
    }
    
    .slide-title {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }
    
    .slide-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .slider-nav.prev {
        left: 0.2rem;
    }

    .slider-nav.next {
        right: 0.2rem;
    }

    .slide-overlay {
        padding: 0.75rem;
    }

    .slide-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .slide-description {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .slider-dots {
        padding: 0.55rem 0.55rem;
        gap: 0.22rem;
        bottom: 0.65rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 11px;
        height: 11px;
    }


    /* Mission & Vision - Ultra Compact */
    .mission-vision {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .mission-vision h2 {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem);
        margin-bottom: 0.6rem;
        padding-bottom: 0.4rem;
    }

    .mission-vision h2::after {
        width: 40px;
        height: 3px;
    }

    .mission-vision p {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .mission-vision .highlight {
        padding: 0.85rem;
        margin: 0.5rem 0;
        border-radius: 10px;
        border-left-width: 4px;
    }

    /* Programs - Ultra Compact */
    .programs-grid {
        gap: 0.65rem;
    }

    .program-card {
        padding: 0.75rem;
    }

    .program-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .program-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .program-card p {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        line-height: 1.35;
    }

    .program-card ul {
        margin-top: 0.3rem;
    }

    .program-card li {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
        line-height: 1.3;
    }

    /* Stats - Ultra Compact */
    .stats-section {
        padding: 1rem 0.75rem;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .stat-item {
        padding: 0.85rem 0.5rem;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Permits - Ultra Compact */
    .permits-categories {
        gap: 0.65rem;
    }

    .permit-category {
        padding: 0.75rem;
    }

    .permit-category h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        padding-bottom: 0.2rem;
    }

    .permit-item {
        padding: 0.5rem;
        margin-bottom: 0.3rem;
        border-radius: 6px;
    }

    .permit-name {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }

    .permit-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* News Cards - Ultra Compact */
    .news-image {
        height: 120px;
    }

    .news-card.featured .news-image {
        height: 120px;
    }

    .news-content {
        padding: 0.65rem;
    }

    .news-date {
        font-size: 0.7rem;
    }

    .news-content h3 {
        font-size: 0.9rem;
        margin: 0.3rem 0;
        line-height: 1.3;
    }

    .news-content p {
        font-size: 0.75rem;
        line-height: 1.35;
        margin-bottom: 0.4rem;
    }

    .read-more {
        font-size: 0.75rem;
    }

    /* Contact - Ultra Compact */
    .contact-info h3,
    .contact-hours h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.2rem;
    }

    .contact-item {
        padding: 0.65rem;
        margin-bottom: 0.5rem;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        border-radius: 6px;
    }

    .contact-icon {
        font-size: 1.1rem;
    }

    .contact-item div {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .contact-item strong {
        font-size: 0.85rem;
    }

    .hours-item {
        padding: 0.65rem;
        margin-bottom: 0.3rem;
        border-radius: 6px;
    }

    .day {
        font-size: 0.8rem;
    }

    .time {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (360px and below) - MAXIMUM COMPACT */
@media (max-width: 360px) {
    /* Hero - Maximum Compact */
    .hero-section {
        min-height: 45vh;
    }

    .hero-content {
        padding: 1rem 0.75rem;
    }

    .hero-title {
        font-size: clamp(1.2rem, 7vw, 1.6rem);
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        border-radius: 40px;
    }

    /* Clock Widget - Enhanced for small screens */
    .clock-widget {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.6rem;
        padding: 0.6rem 0.85rem;
        border-radius: 14px;
        max-width: calc(100% - 1.5rem);
    }

    /* Sections */
    .container {
        padding: 0 0.4rem;
    }

    .services-section,
    .mission-vision,
    .programs-section,
    .permits-section,
    .news-section,
    .contact-section,
    .stats-section {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    /* Slider */
    .slider-container {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .slide {
        width: 100%;
        min-width: 100%;
    }
    
    .slide img {
        height: 160px;
        width: 100%;
        object-fit: contain;
        object-position: center;
        background: #f5f5f5;
    }
    
    /* Always show overlay on mobile - disable hover */
    .slide-overlay {
        transform: translateY(0) !important;
        background: linear-gradient(transparent 10%, rgba(0, 0, 0, 0.85));
        padding: 1rem 0.75rem;
    }
    
    .slide:hover .slide-overlay {
        transform: translateY(0) !important;
    }

    .slider-nav {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .slide-title {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .slide-description {
        font-size: 0.7rem;
        line-height: 1.25;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Programs */
    .program-card {
        padding: 0.6rem;
    }

    .program-icon {
        font-size: 1.3rem;
    }

    .program-card h3 {
        font-size: 0.95rem;
    }

    .program-card p {
        font-size: 0.75rem;
    }

    .program-card li {
        font-size: 0.7rem;
    }

    /* News */
    .news-image {
        height: 100px;
    }

    .news-content {
        padding: 0.5rem;
    }

    .news-content h3 {
        font-size: 0.85rem;
    }

    .news-content p {
        font-size: 0.7rem;
    }

    /* Contact */
    .contact-item {
        padding: 0.5rem;
    }

    .contact-icon {
        font-size: 1rem;
    }

    .contact-item div,
    .day,
    .time {
        font-size: 0.75rem;
    }
}

/* ========================================
   TOUCH & ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Ensure minimum touch target size (44x44px recommended by Apple/Google) */
@media (hover: none) and (pointer: coarse) {
    /* This targets touch devices */
    
    .read-more,
    .news-card a,
    .slide a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Better tap highlighting for links */
    a {
        -webkit-tap-highlight-color: rgba(243, 133, 206, 0.2);
    }

    /* Disable hover transform on program cards (use tap instead) */
    .program-card:hover {
        transform: none;
    }

    .news-card:hover {
        transform: none;
    }

    /* Make sure buttons have good contrast */
    .cta-button,
    .slider-nav {
        outline-offset: 2px;
    }

    /* Improve slider dot touch targets on mobile */
    .slider-dot {
        padding: 10px 0;
        margin: 0;
        min-height: 24px;
    }
}

/* Focus styles for keyboard navigation accessibility */
a:focus,
button:focus,
.slider-nav:focus,
.slider-dot:focus {
    outline: 2px solid #F385CE;
    outline-offset: 2px;
}

/* Prevent text selection on UI elements */
.slider-nav,
.slider-dot,
.cta-button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing between sections */


.main-content > .container > div:last-child {
    margin-bottom: 0;
}

.start-button {
display: inline-block;
margin-top: 15px;
padding: 10px 20px;
background-color: #3399ff;
color: white;
font-weight: 600;
text-decoration: none;
border-radius: 6px;
transition: background-color 0.3s;
}

.start-button:hover {
background-color: #007acc;
}

/* Service Modal Styles */
.service-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
    isolation: isolate;
    pointer-events: auto;
}

.service-modal-overlay.show,
.service-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.service-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    padding: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
    position: relative;
    z-index: 100000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Large screens - ensure modal doesn't get too wide */
@media (min-width: 1400px) {
    .service-modal-content {
        max-width: 1400px;
        width: 90%;
    }
}

.service-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
    background: transparent;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.service-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 100000;
    line-height: 1;
}

.service-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.service-modal-content .instruction-card {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.service-modal-content .instruction-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

/* Three Column Layout */
.service-modal-content .three-column-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
    align-items: stretch;
}

.service-modal-content .requirements-section {
    margin-bottom: 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3399ff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.service-modal-content .requirements-section::-webkit-scrollbar {
    width: 4px;
}

.service-modal-content .requirements-section::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal-content .requirements-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.service-modal-content .requirements-subtitle {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.service-modal-content .instruction-list {
    margin-bottom: 0.5rem;
    padding-left: 1.1rem;
    flex: 1;
    min-height: 0;
}

.service-modal-content .instruction-list li {
    margin-bottom: 0.35rem;
    line-height: 1.4;
    color: #334155;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure requirements sections have consistent max height */
.service-modal-content .requirements-section .instruction-list {
    max-height: none;
    overflow: visible;
}

.service-modal-content .note-text {
    margin: 0.5rem 0 0 0;
    padding: 0.6rem;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.4;
}

.service-modal-content .section-title {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

/* Tree Requirements Dropdown Styles */
.service-modal-content .tree-requirements-container {
    margin-bottom: 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3399ff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.service-modal-content .tree-requirements-container.native-container {
    border-left-color: #16a34a;
}

.service-modal-content .tree-requirements-container.non-native-container {
    border-left-color: #2563eb;
}

.service-modal-content .tree-requirements-container::-webkit-scrollbar {
    width: 4px;
}

.service-modal-content .tree-requirements-container::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal-content .tree-requirements-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.service-modal-content .tree-requirements-container .tree-type-dropdown-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0.5rem;
}

.service-modal-content .tree-requirements-container .tree-type-dropdown-item:last-child {
    margin-bottom: 0;
}

/* Direct content styling (no dropdown) */
.service-modal-content .tree-requirements-container .tree-requirements-content {
    margin-top: 0;
}

.service-modal-content .tree-requirements-container .requirements-subtitle {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.service-modal-content .tree-type-dropdown-item {
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.service-modal-content .tree-type-toggle {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: none;
    border-bottom: 2px solid #3399ff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    text-align: left;
    flex-shrink: 0;
}

.service-modal-content .tree-type-toggle:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #3399ff;
}

.service-modal-content .tree-type-toggle:active {
    transform: scale(0.98);
}

.service-modal-content .tree-type-toggle span:first-child {
    flex: 1;
}

.service-modal-content .dropdown-arrow {
    font-size: 0.85rem;
    color: #3399ff;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.service-modal-content .tree-requirements-content {
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

.service-modal-content .documents-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.6rem 0;
}

.service-modal-content .tree-requirements-content .instruction-list {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
}

.service-modal-content .tree-requirements-content .instruction-list li {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.service-modal-content .tree-requirements-content .note-text {
    margin: 0.4rem 0 0 0;
    padding: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.service-modal-content .start-button {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 10px 20px;
    background-color: #3399ff;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.service-modal-content .start-button:hover {
    background-color: #007acc;
}

/* Tablet Responsive for Modals */
@media (max-width: 1024px) and (min-width: 769px) {
    .service-modal-content .three-column-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .service-modal-overlay {
        padding: 0.1rem;
    }

    .service-modal-content {
        max-width: 100%;
        width: 98%;
        max-height: calc(100vh - 80px);
        padding: 0.2rem;
        border-radius: 8px;
    }

    .service-modal-close {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
        top: 0.3rem;
        right: 0.3rem;
    }

    .service-modal-content .instruction-title {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .service-modal-content .section-title {
        font-size: 0.8rem;
        margin: 0.3rem 0 0.2rem 0;
    }

    .service-modal-content .instruction-list {
        margin-bottom: 0.3rem;
        padding-left: 0.8rem;
    }

    .service-modal-content .instruction-list li {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        line-height: 1.25;
    }

    .service-modal-content .requirements-section {
        padding: 0.3rem;
        margin-bottom: 0.35rem;
    }

    .service-modal-content .requirements-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .service-modal-content .note-text {
        font-size: 0.65rem;
        padding: 0.3rem;
        margin-top: 0.3rem;
        line-height: 1.25;
    }

    .service-modal-content .tree-requirements-container {
        margin-bottom: 0.35rem;
        padding: 0.3rem;
    }

    .service-modal-content .tree-requirements-content {
        padding: 0;
    }

    .service-modal-content .documents-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        margin-top: 0;
    }

    .service-modal-content .tree-requirements-content .instruction-list {
        margin-bottom: 0.25rem;
        padding-left: 0.8rem;
    }

    .service-modal-content .tree-requirements-content .instruction-list li {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    /* Stack columns on mobile */
    .service-modal-content .three-column-layout {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        margin-bottom: 0.3rem;
    }

    .service-modal-content .requirements-section,
    .service-modal-content .tree-requirements-container {
        margin-bottom: 0;
        height: auto;
        max-height: none;
    }

    .service-modal-content .start-button {
        padding: 7px 14px;
        font-size: 0.75rem;
        width: 100%;
        margin-top: 0.3rem;
        display: block;
        text-align: center;
    }
    
    /* Minimize nested lists in mobile */
    .service-modal-content .instruction-list ul {
        margin-top: 0.2rem;
        padding-left: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .service-modal-content .instruction-list ul li {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }
    
    /* Minimize instruction card spacing */
    .service-modal-content .instruction-card {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .service-modal-overlay {
        padding: 0.1rem;
    }

    .service-modal-content {
        padding: 0.15rem;
        border-radius: 6px;
        max-height: calc(100vh - 80px);
    }

    .service-modal-close {
        width: 22px;
        height: 22px;
        font-size: 0.85rem;
        top: 0.25rem;
        right: 0.25rem;
    }

    .service-modal-content .instruction-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .service-modal-content .section-title {
        font-size: 0.75rem;
        margin: 0.25rem 0 0.15rem 0;
    }

    .service-modal-content .instruction-list {
        padding-left: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .service-modal-content .instruction-list li {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .service-modal-content .requirements-section {
        padding: 0.25rem;
        margin-bottom: 0.3rem;
    }

    .service-modal-content .requirements-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .service-modal-content .note-text {
        font-size: 0.6rem;
        padding: 0.25rem;
        margin-top: 0.25rem;
        line-height: 1.2;
    }

    .service-modal-content .tree-requirements-container {
        margin-bottom: 0.3rem;
        padding: 0.25rem;
    }

    .service-modal-content .tree-requirements-content {
        padding: 0;
    }

    .service-modal-content .documents-subtitle {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .service-modal-content .tree-requirements-content .instruction-list {
        margin-bottom: 0.2rem;
        padding-left: 0.7rem;
    }

    .service-modal-content .tree-requirements-content .instruction-list li {
        font-size: 0.6rem;
        margin-bottom: 0.12rem;
        line-height: 1.15;
    }

    /* Ensure single column on small mobile */
    .service-modal-content .three-column-layout {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        margin-bottom: 0.25rem;
    }

    .service-modal-content .requirements-section,
    .service-modal-content .tree-requirements-container {
        height: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 0;
    }

    .service-modal-content .start-button {
        padding: 6px 12px;
        font-size: 0.7rem;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .service-modal-content .instruction-list ul {
        margin-top: 0.15rem;
        padding-left: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .service-modal-content .instruction-list ul li {
        font-size: 0.6rem;
        margin-bottom: 0.12rem;
        line-height: 1.15;
    }
    
    /* Minimize instruction card spacing */
    .service-modal-content .instruction-card {
        margin: 0;
        padding: 0;
    }
}