/* Common styles for responsive about pages */

/* Fix right margin and zoom issues */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Theme colors consistent with about-us.html */
:root {
    --mountain-darker: #553231;
    --mountain: #6A3E3D;
    --mountain-lighter: #886564;
    --water-darker: #26496B;
    --water: #305B86;
    --water-lighter: #597C9E;
    --sun-darker: #B77A0A;
    --sun: #E5990C;
    --sun-lighter: #EAAD3D;
    --plant-darker: #5A6D28;
    --plant: #718832;
    --plant-lighter: #8DA05B;
    --monotone-dark: #1A112E;
    --monotone-light: #F3E8D3;
    --primary-color: #553231;
    --primary-dark: #3d2524;
    --secondary-color: #EAAD3D;
    --success-color: #597C9E;
    --water: #597C9E;
    --water-darker: #4a6785;
    --sun: #EAAD3D;
    --sun-darker: #d4941f;
}

/* Fix container width for all device sizes */
.container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--sun), var(--water));
    width: 0%;
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--monotone-dark) -50%, var(--water-darker) 0%, var(--water) 30%, var(--water-lighter) 80%, var(--monotone-dark) 150%) !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #fff 50%, var(--sun) 200%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.breadcrumb-custom {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none; /* Firefox */
}

.breadcrumb-custom::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.breadcrumb-custom a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.breadcrumb-custom i.divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    font-size: 12px;
    flex-shrink: 0;
}

.breadcrumb-custom span {
    color: var(--sun-lighter);
    font-weight: 600;
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 30px;
}

.section-title .subtitle {
    color: var(--sun);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    font-family: 'Playfair Display', serif;
    color: var(--monotone-dark);
}

.section-title.text-center h2:after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--sun);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    color: #666;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--sun);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    transform: translateY(100px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--water);
    color: white;
}

/* Background colors */
.bg-light {
    background-color: #f8f9fa;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--water-darker), var(--water));
    padding: 60px 0;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
}

.btn-premium {
    display: inline-block;
    padding: 12px 28px;
    background: var(--sun);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-premium i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-premium:hover {
    background: #fff;
    color: var(--sun-darker);
    border-color: var(--sun);
    transform: translateY(-3px);
}

.btn-premium:hover i {
    transform: translateX(5px);
}

/* Enrollment Statistics Common Styles */
.enrollment-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--water);
}

.enrollment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.enrollment-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-summary-card {
    background: linear-gradient(135deg, var(--water) 0%, var(--water-darker) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stats-summary-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-summary-card p {
    margin: 0;
    opacity: 0.9;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    margin-top: 5px;
}

.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.trend-neutral {
    color: #6c757d;
}

.chart-container {
    height: 400px;
    position: relative;
}

.year-selector {
    margin-bottom: 20px;
}

.year-selector .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.year-selector .btn.active {
    background-color: var(--water);
    border-color: var(--water);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-section {
        padding: 70px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title .subtitle {
        font-size: 0.8rem;
    }
    
    .breadcrumb-custom {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .breadcrumb-custom i.divider {
        margin: 0 5px;
        font-size: 10px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .btn-premium {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title .subtitle {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
}
