/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Color Palette */
    --primary-color: #4A90E2;
    --secondary-color: #F39C12;
    --accent-color: #E74C3C;
    --success-color: #27AE60;
    --info-color: #9B59B6;
    
    /* Light Shades */
    --primary-light: #E3F2FD;
    --secondary-light: #FFF3E0;
    --accent-light: #FFEBEE;
    --success-light: #E8F5E8;
    --info-light: #F3E5F5;
    
    /* Dark Shades */
    --primary-dark: #1976D2;
    --secondary-dark: #E67E22;
    --accent-dark: #C62828;
    --success-dark: #1B5E20;
    --info-dark: #7B1FA2;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #212529;
    
    /* Fonts */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-root: 16px;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --card-padding: 2rem;
    
    /* Border Radius */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  overflow-x: hidden;
    font-family: var(--font-family);
    font-size: var(--font-size-root);
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--gray);
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

/* Conservative font sizes for key elements */
.navbar-brand {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--white) !important;
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light), var(--info-light));
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== CARDS & COMPONENTS ===== */
.service-card, .feature-card, .program-card, .facility-card,
.case-study-card, .blog-card, .price-card, .team-member,
.review-card, .activity-card, .age-group-card, .objective-card,
.assessment-card, .safety-card, .health-card, .emergency-card,
.certification-card, .career-item, .info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--card-padding);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--light-gray);
}

.service-card:hover, .feature-card:hover, .program-card:hover,
.facility-card:hover, .case-study-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card img, .facility-card img, .program-card img,
.case-study-card img, .blog-card img {
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* ===== PRICE CARDS ===== */
.price-card {
    border: 2px solid var(--light-gray);
    transition: border-color 0.3s ease;
}

.price-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price-card ul {
    list-style: none;
    padding: 0;
}

.price-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.price-card li:last-child {
    border-bottom: none;
}

/* ===== TEAM SECTION ===== */
.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

/* ===== REVIEWS SLIDER ===== */
.reviews-swiper {
    padding-bottom: 3rem;
}

.review-card {
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
}

/* ===== PROCESS SECTION ===== */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 50%;
}

.timeline-year {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-control {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== FAQ ACCORDION ===== */
.accordion-item {
    border: 1px solid var(--light-gray);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-button {
    background: var(--primary-light);
    border: none;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* ===== GALLERY ===== */
.gallery img {
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-gray) !important;
    color: var(--white);
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    background: var(--light-gray);
    border-radius: 0;
    padding: 1rem 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item:hover img {
    opacity: 1;
}

/* ===== UTILITIES ===== */
.bg-light {
    background-color: var(--light-gray) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-warning {
    color: var(--secondary-color) !important;
}

.text-danger {
    color: var(--accent-color) !important;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== CUSTOM GRID ===== */
.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 991.98px) {
    .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== SECTION SPACING ===== */
section {
    padding: var(--section-padding);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
} 