/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: hsl(199, 62%, 47%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(199, 62%, 85%);
    --secondary-foreground: hsl(199, 62%, 47%);
    --accent: hsl(199, 62%, 55%);
    --accent-foreground: hsl(0, 0%, 100%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 43%);
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 43%);
    --border: hsl(0, 0%, 90%);
    --input: hsl(0, 0%, 90%);
    --ring: hsl(199, 62%, 47%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(199, 62%, 47%), hsl(199, 62%, 55%));
    --gradient-hero: linear-gradient(135deg, hsl(199, 62%, 47%), hsl(199, 62%, 65%));
    
    /* Shadows */
    --shadow-card: 0 4px 6px -1px hsl(199 62% 47% / 0.1), 0 2px 4px -2px hsl(199 62% 47% / 0.1);
    --shadow-lg: 0 10px 15px -3px hsl(199 62% 47% / 0.1), 0 4px 6px -4px hsl(199 62% 47% / 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius: 0.75rem;

    /* Fixed header clearance */
    --header-offset: 12.5rem;
}

@media (min-width: 768px) {
    :root {
        --header-offset: 10rem;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Utility Classes */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container-custom {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 2rem;
    }
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .top-bar-content {
        flex-direction: row;
    }
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .contact-info {
        justify-content: flex-start;
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--secondary);
}

.separator {
    display: none;
}

@media (min-width: 640px) {
    .separator {
        display: inline;
    }
}

.social-email {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.email-text {
    display: none;
}

@media (min-width: 768px) {
    .email-text {
        display: inline;
    }
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    color: var(--primary-foreground);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--secondary);
}

.icon {
    width: 1rem;
    height: 1rem;
}

/* Main Navigation */
.main-nav {
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.main-nav .container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .main-nav .container-custom {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: visible;
    min-width: 0;
    width: 100%;
}

/* Ensure proper spacing on single page mode */
body.single-page-mode .nav-content {
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
    max-width: fit-content;
    margin-right: auto;
}

/* Reduce logo section size on single page mode */
body.single-page-mode .logo-section {
    max-width: 80px;
    gap: 0.5rem;
}

body.single-page-mode .logo-image {
    width: 3.5rem;
    height: 3.5rem;
}

/* Ensure fees section has proper isolation */
#fees.branch-fees,
.fees .branch-fees {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

#kisauni-fees,
#shakani-fees {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
}

/* Ensure fees section container prevents any header overflow */
#fees {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
}

#fees .container-custom {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Prevent header logo text from appearing anywhere in fees section */
#fees .logo-text,
#fees ~ * .logo-text,
body.single-page-mode #fees .logo-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.logo-image {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .logo-image {
        width: 5rem;
        height: 5rem;
    }
}

@media (min-width: 1024px) {
    .logo-image {
        width: 5.5rem;
        height: 5.5rem;
    }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.logo-text {
    display: none;
    min-width: 0;
    max-width: fit-content;
    white-space: nowrap;
}

/* Hide logo text on single page mode to prevent collisions */
body.single-page-mode .logo-text {
    display: none !important;
}

/* Also hide logo text on fees page specifically */
#fees .logo-text,
.fees .logo-text,
body:has(#fees.page-isolated) .logo-text {
    display: none !important;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
    
    /* Still hide on single page mode even on larger screens */
    body.single-page-mode .logo-text {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    /* Hide logo text on single page mode */
    body.single-page-mode .logo-text {
        display: none !important;
    }
}

.logo-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo-title {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .logo-title {
        font-size: 1.125rem;
    }
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
    min-width: 0;
    margin-left: auto;
    padding-left: 2rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        gap: 1.5rem;
        padding-left: 2rem;
    }
}

@media (min-width: 1280px) {
    .desktop-nav {
        gap: 2rem;
        padding-left: 3rem;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.3s ease-out;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: var(--accent);
}

.btn-outline {
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-hero {
    background-color: var(--background);
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
    height: auto;
}

.btn-course {
    width: 100%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-course:hover {
    background-color: var(--accent);
}

.btn-newsletter {
    background-color: var(--background);
    color: var(--primary);
    font-weight: 600;
    min-width: 140px;
    width: auto;
    padding: 0.625rem 1.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.875rem;
    overflow: visible;
    text-overflow: clip;
}

.btn-newsletter:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-newsletter:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Success state - green background with white text */
.btn-newsletter[style*="background-color: #10b981"],
.btn-newsletter[style*="background-color: rgb(16, 185, 129)"] {
    color: white !important;
    font-weight: 600;
}

/* Warning state - orange background with white text */
.btn-newsletter[style*="background-color: #f59e0b"],
.btn-newsletter[style*="background-color: rgb(245, 158, 11)"] {
    color: white !important;
    font-weight: 600;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: var(--header-offset);
    padding-bottom: 4rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding-bottom: 6rem;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('assets/background.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(199, 62%, 47%, 0.95), hsl(199, 62%, 47%, 0.9), hsl(199, 62%, 47%, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-text {
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-cta {
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.tab-btn.active {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.content-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.content-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.content-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* About Section */
.about {
    background-color: rgba(0, 0, 0, 0.02);
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.image-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--muted);
}

.about-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 1024px) {
    .image-container {
        aspect-ratio: 5 / 4;
    }
}

.stats-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
}

@media (min-width: 768px) {
    .stats-badge {
        display: block;
    }
}

.stats-number {
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0;
}

.stats-label {
    font-size: 0.875rem;
    margin: 0;
}

.about-text {
    animation: fadeIn 0.6s ease-out;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.title-underline {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--accent);
    border-radius: 9999px;
}

.text-content {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.text-content p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

.motto {
    color: var(--primary);
    font-weight: 600;
    font-style: italic;
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-gallery-item {
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.about-gallery-img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    display: block;
}

.stat-card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Courses Section */
.courses {
    background-color: white;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto 1rem;
}

.courses-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    border-radius: var(--radius);
    border: 2px solid transparent;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out forwards;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
    border-color: var(--primary);
}

.course-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.1);
}

.age-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.course-content {
    padding: 1.5rem;
}

.course-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.course-icon {
    padding: 0.5rem;
    border-radius: var(--radius);
    background-color: rgba(199, 62%, 47%, 0.1);
}

.course-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.course-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

/* Statistics Section */
.statistics {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    animation: fadeIn 0.6s ease-out forwards;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
}

.stat-icon .icon {
    width: 2rem;
    height: 2rem;
}

.stat-number-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.statistics .stat-number {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-foreground);
    display: inline-block;
}

@media (min-width: 768px) {
    .statistics .stat-number {
        font-size: 3rem;
    }
}

.statistics .stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.statistics .stat-suffix {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-foreground);
    display: inline-block;
    margin-left: 0.25rem;
}

@media (min-width: 768px) {
    .statistics .stat-suffix {
        font-size: 3rem;
    }
}

/* Fees Section */
.fees {
    background-color: white;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .fees {
        padding: 6rem 0;
    }
}

/* Branch Selector */
.branch-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.branch-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition-smooth);
    background-color: var(--muted);
    color: var(--foreground);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
}

.branch-btn:hover {
    background-color: rgba(199, 62%, 47%, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.branch-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.branch-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Branch Fees Container */
.branch-fees {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.branch-fees.active {
    display: block;
}

.branch-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.branch-header-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(199, 62%, 47%, 0.05), rgba(199, 62%, 47%, 0.02));
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    isolation: isolate;
}

@media (min-width: 768px) {
    .branch-header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
    }
}

.branch-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .branch-header-left {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

.fee-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    flex-shrink: 0;
    align-self: center;
}

.fee-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
    background-color: var(--accent);
}

.fee-download-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 767px) {
    .fee-download-btn {
        width: 100%;
        justify-content: center;
    }
}

.branch-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .branch-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .branch-title {
        font-size: 2rem;
    }
}

.branch-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

@media (min-width: 768px) {
    .branch-meta {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
}

.branch-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.branch-badge.secondary {
    background-color: var(--accent);
}

.branch-separator {
    display: none;
    color: var(--muted-foreground);
    font-size: 1rem;
    margin: 0 0.25rem;
}

@media (min-width: 768px) {
    .branch-separator {
        display: inline;
    }
}

.branch-address {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (min-width: 768px) {
    .branch-address {
        max-width: 300px;
    }
}

/* Fee Sections */
.fee-section {
    margin-bottom: 3rem;
}

.fee-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .fee-section-title {
        font-size: 1.875rem;
    }
}

/* Yearly Table */
.yearly-table {
    font-size: 0.8125rem;
    border: 2px solid var(--primary);
}

.yearly-table th,
.yearly-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.yearly-table th {
    border-bottom: 2px solid var(--primary);
    background-color: var(--muted);
}

.yearly-table th:first-child,
.yearly-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.yearly-table tbody tr:hover {
    background-color: rgba(199, 62%, 47%, 0.03);
}

@media (min-width: 768px) {
    .yearly-table {
        font-size: 0.875rem;
    }
    
    .yearly-table th,
    .yearly-table td {
        padding: 1rem;
    }
}

/* Installment Sections */
.installment-section {
    margin-bottom: 2rem;
}

.installment-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(199, 62%, 47%, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0.25rem;
}

@media (min-width: 768px) {
    .installment-title {
        font-size: 1.25rem;
    }
}

.installment-table {
    margin-top: 1rem;
    border: 2px solid var(--primary);
}

.installment-table th,
.installment-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--border);
}

.installment-table th {
    border-bottom: 2px solid var(--primary);
    background-color: var(--muted);
}

.installment-table th:first-child,
.installment-table td:first-child {
    text-align: left;
}

.installment-table td[rowspan] {
    vertical-align: middle;
    font-weight: 500;
}

.installment-table tbody tr:hover {
    background-color: rgba(199, 62%, 47%, 0.03);
}

/* Fee Notes */
.fee-notes {
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 3rem 0;
    border-left: 4px solid var(--primary);
}

.notes-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
}

.notes-list {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--foreground);
    line-height: 1.8;
}

.notes-list li {
    margin-bottom: 0.75rem;
}

.notes-list li:last-child {
    margin-bottom: 0;
}

.fees-content {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .fees-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fee-table-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
    animation: fadeIn 0.6s ease-out forwards;
}

.fee-table-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.fee-table-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-table-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-foreground);
}

.fee-level-badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.fee-table thead {
    background-color: var(--muted);
}

.fee-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--primary);
}

.fee-table td {
    padding: 1rem;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.fee-table tbody tr:hover {
    background-color: var(--muted);
}

.fee-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
}

.fee-total {
    background-color: rgba(199, 62%, 47%, 0.05);
    border-top: 2px solid var(--primary);
}

.fee-total td {
    font-size: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: 2px solid var(--primary);
    font-weight: 600;
}

.fee-total td strong {
    color: var(--primary);
    font-size: 1.125rem;
}

.fee-info {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .fee-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fee-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fee-info-card {
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition-smooth);
    animation: fadeIn 0.6s ease-out forwards;
}

.fee-info-card:hover {
    background-color: rgba(199, 62%, 47%, 0.05);
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-card);
}

.fee-info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-info-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.fee-info-content {
    flex: 1;
}

.fee-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.fee-info-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}

.fee-info-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* Downloads Section */
.downloads {
    background-color: white;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .downloads {
        padding: 6rem 0;
    }
}

.downloads-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .downloads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-card {
    background-color: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.6s ease-out forwards;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.download-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: rgba(199, 62%, 47%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.download-icon .icon {
    width: 2rem;
    height: 2rem;
}

.download-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.download-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.download-btn {
    width: 100%;
    justify-content: center;
}

.download-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Fee Structure Branch Buttons */
.fee-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.fee-branch-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.fee-branch-btn:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fee-branch-btn .icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .fee-download-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .fee-branch-btn {
        flex: 1;
        min-width: 0;
    }
}

/* Announcements Section */
.announcements {
    background-color: var(--muted);
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .announcements {
        padding: 6rem 0;
    }
}

.announcements-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.announcement-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    animation: fadeIn 0.6s ease-out forwards;
    border-left: 4px solid var(--primary);
}

.announcement-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(0.25rem);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.announcement-badge {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.announcement-badge.urgent {
    background-color: #ef4444;
    color: white;
    animation: pulse 2s infinite;
}

.announcement-badge.high {
    background-color: #f59e0b;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.announcement-date {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
}

.announcement-text {
    font-size: 0.875rem;
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
}

/* Locations Section */
.locations {
    background-color: var(--muted);
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .locations {
        padding: 6rem 0;
    }
}

.locations-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.location-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
    animation: fadeIn 0.6s ease-out forwards;
}

.location-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.location-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.location-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.location-badge {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.location-badge.secondary {
    background-color: var(--accent);
}

.location-info {
    padding: 1rem 1.5rem;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.location-detail:last-child {
    margin-bottom: 0;
}

.location-detail .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.location-address {
    font-weight: 500;
    color: var(--foreground);
    margin: 0;
}

.location-city {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

.location-phone {
    color: var(--foreground);
    font-weight: 500;
    margin: 0;
    font-size: 0.875rem;
}

.location-email {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    font-size: 0.875rem;
}

.location-email:hover {
    text-decoration: underline;
}

.map-container {
    margin: 0 1.5rem 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 0.5rem;
}

.location-actions {
    padding: 0 1.5rem 1.5rem;
}

.location-actions .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(199, 62%, 85%, 0.2));
    position: relative;
    overflow: hidden;
}

.cta-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decoration {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(3rem);
}

.decoration-1 {
    top: 0;
    right: 0;
    background-color: rgba(199, 62%, 47%, 0.05);
    transform: translate(50%, -50%);
}

.decoration-2 {
    bottom: 0;
    left: 0;
    background-color: rgba(199, 62%, 55%, 0.05);
    transform: translate(-50%, 50%);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.cta-text {
    animation: fadeIn 0.6s ease-out;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cta-subtitle {
        font-size: 1.25rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.contact-cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.contact-card-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.contact-info {
    font-weight: 500;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-about {
    grid-column: span 2;
}

@media (min-width: 1024px) {
    .footer-about {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    display: block;
}

.footer-logo-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.footer-logo-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: var(--primary-foreground);
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-social-link .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.footer-link:hover {
    color: white;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-contact-item .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.footer-email {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-email:hover {
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.newsletter-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

@media (min-width: 640px) {
    .newsletter-content {
        max-width: 42rem;
    }
}

.newsletter-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .newsletter-input {
        min-width: 0;
        flex: 1 1 0;
        max-width: 200px;
    }
    
    .btn-newsletter {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

.newsletter-or {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    padding: 0 0.5rem;
    white-space: nowrap;
}

@media (max-width: 639px) {
    .newsletter-or {
        padding: 0.25rem 0;
    }
}

.newsletter-input {
    flex: 1;
    height: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    min-width: 0;
}

@media (max-width: 639px) {
    .newsletter-input {
        width: 100%;
    }
    
    .btn-newsletter {
        width: 100%;
        min-width: 100%;
    }
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Copyright */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .statistics .stat-number {
        font-size: 1.5rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .fee-table-title {
        font-size: 1.125rem;
    }
    
    .fee-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .fee-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .branch-selector {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .branch-btn {
        width: 100%;
        justify-content: center;
    }
    
    .branch-title {
        font-size: 1.25rem;
    }
    
    .yearly-table {
        font-size: 0.75rem;
    }
    
    .yearly-table th,
    .yearly-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .installment-table th,
    .installment-table td {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .installment-title {
        font-size: 1rem;
    }
    
    .fee-notes {
        padding: 1rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

/* Single Page Mode - Isolated Section */
body.single-page-mode {
    overflow-x: hidden;
}

.page-isolated {
    min-height: calc(100vh - 140px);
    position: relative;
    padding-top: 2rem !important;
    padding-bottom: 4rem !important;
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

/* Hero section adjustments when isolated */
.page-isolated.hero {
    padding-top: var(--header-offset) !important;
    min-height: calc(100vh - var(--header-offset));
    display: flex !important;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .page-isolated.hero {
        align-items: center;
    }
}

.page-isolated.hero .hero-content {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
}

/* About section adjustments when isolated */
.page-isolated.about {
    padding: 4rem 0 !important;
}

@media (min-width: 768px) {
    .page-isolated.about {
        padding: 6rem 0 !important;
    }
}

/* Courses section adjustments when isolated */
.page-isolated.courses {
    padding: 4rem 0 !important;
}

@media (min-width: 768px) {
    .page-isolated.courses {
        padding: 6rem 0 !important;
    }
}

/* Locations section adjustments when isolated */
.page-isolated.locations {
    padding: 4rem 0 !important;
}

@media (min-width: 768px) {
    .page-isolated.locations {
        padding: 6rem 0 !important;
    }
}

/* Fees section adjustments when isolated */
.page-isolated.fees {
    padding: 4rem 0 !important;
}

@media (min-width: 768px) {
    .page-isolated.fees {
        padding: 6rem 0 !important;
    }
}

/* Downloads section adjustments when isolated */
.page-isolated.downloads {
    padding: 4rem 0 !important;
}

@media (min-width: 768px) {
    .page-isolated.downloads {
        padding: 6rem 0 !important;
    }
}

/* Announcements section adjustments when isolated */
.page-isolated.announcements {
    padding: 4rem 0 !important;
}

@media (min-width: 768px) {
    .page-isolated.announcements {
        padding: 6rem 0 !important;
    }
}

/* CTA/Admission section adjustments when isolated */
.page-isolated.cta {
    padding: 4rem 0 !important;
    min-height: auto;
}

@media (min-width: 768px) {
    .page-isolated.cta {
        padding: 6rem 0 !important;
    }
}

/* Add back to home indicator */
.page-isolated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1;
}

/* Ensure main container has proper spacing when in single page mode */
body.single-page-mode main {
    min-height: calc(100vh - 140px);
    width: 100%;
    overflow-x: hidden;
}

body.single-page-mode main > section {
    width: 100%;
    box-sizing: border-box;
}

body.single-page-mode main > section.page-isolated {
    display: block;
    width: 100%;
    overflow: visible;
}

body.single-page-mode main > section.page-isolated > .container-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    body.single-page-mode main > section.page-isolated > .container-custom {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    body.single-page-mode main > section.page-isolated > .container-custom {
        padding: 4rem 2rem;
    }
}

/* Ensure sections have proper spacing when isolated */
body.single-page-mode main > section.page-isolated:not(.hero) {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

body.single-page-mode main > section.page-isolated.hero {
    padding-bottom: 4rem;
}

/* Fix specific section layouts when isolated */
body.single-page-mode .page-isolated.about .about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    body.single-page-mode .page-isolated.about .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

body.single-page-mode .page-isolated.locations .locations-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    body.single-page-mode .page-isolated.locations .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body.single-page-mode .page-isolated.fees .fees-content {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    body.single-page-mode .page-isolated.fees .fees-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

body.single-page-mode .page-isolated .section-header {
    margin-bottom: 2rem;
}

body.single-page-mode .page-isolated .section-title {
    margin-bottom: 1rem;
}

/* Ensure statistics section displays properly when isolated */
body.single-page-mode .page-isolated.statistics {
    padding: 4rem 0 !important;
    min-height: auto;
}

@media (min-width: 768px) {
    body.single-page-mode .page-isolated.statistics {
        padding: 6rem 0 !important;
    }
}

/* Fix courses grid when isolated */
body.single-page-mode .page-isolated.courses .courses-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    body.single-page-mode .page-isolated.courses .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    body.single-page-mode .page-isolated.courses .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix downloads grid when isolated */
body.single-page-mode .page-isolated.downloads .downloads-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    body.single-page-mode .page-isolated.downloads .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    body.single-page-mode .page-isolated.downloads .downloads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix announcements list when isolated */
body.single-page-mode .page-isolated.announcements .announcements-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Ensure all content is visible and not cut off */
body.single-page-mode .page-isolated * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix overflow issues */
body.single-page-mode .page-isolated {
    overflow: visible;
    overflow-x: hidden;
}

body.single-page-mode .page-isolated .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Back to Home Button */
.back-to-home-btn {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 0;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
    overflow: hidden;
}

.back-to-home-btn span {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.back-to-home-btn.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.back-to-home-btn:hover {
    background-color: var(--accent);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.back-to-home-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.back-to-home-btn span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .back-to-home-btn {
        top: auto;
        bottom: 5.5rem;
        left: 1rem;
        transform: translateY(0) translateX(-20px);
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .back-to-home-btn.visible {
        transform: translateY(0) translateX(0);
    }
    
    .back-to-home-btn span {
        display: none;
    }
    
    .back-to-home-btn {
        border-radius: 50%;
        width: 3rem;
        height: 3rem;
        padding: 0;
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 2rem;
    height: 2rem;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 4.5rem;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0.5rem solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 4.75rem;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 3rem;
        height: 3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
