/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); */

/* --- CSS VARIABLES & RESET --- */
:root {
    /* Page 1 (TV) Colors */
    --primary-tv: #FF6B6B; 
    --secondary-tv: #FF8E53;
    
    /* Page 2 (Acting) Colors */
    --primary-acting: #4ECDC4;
    --secondary-acting: #556270;

    /* Common Colors */
    --accent-color: #FFE66D;
    --text-dark: #292F36;
    --text-light: #F7FFF7;
    --bg-light: #F9F9F9;
    --shadow-card: 0 10px 20px rgba(0,0,0,0.1);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Open Sans', sans-serif; */
    font-family: 'Open Sans', sans-serif; 
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Theme Dynamic Variables (Default TV) */
:root {
    --theme-primary: var(--primary-tv);
    --theme-secondary: var(--secondary-tv);
    --theme-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

/* Updated to Baloo Chettan 2 */
h1, h2, h3, h4, .nav-logo {
    font-family: 'Baloo Chettan 2', cursive;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; border-radius: var(--radius); }

/* --- UTILITIES & ANIMATIONS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    background: none; /* Reset default button bg */
    /* Updated to Baloo Chettan 2 */
    font-family: 'Baloo Chettan 2', cursive; 
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--theme-gradient);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
}

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- PAGE LOADER --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* Completely Opaque */
    z-index: 1500; /* Below Modal (2000) */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease; /* Smooth fade-out */
}

.page-loader.active {
    display: flex;
}

.page-loader.hiding {
    opacity: 0; /* Trigger fade out */
    pointer-events: none; /* Prevent interaction during fade */
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--theme-primary); /* Uses current theme color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- HEADER & NAVIGATION --- */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For mobile menu positioning */
}

.nav-logo {
    font-size: 1.5rem;
    color: var(--primary-tv); /* Logo always TV color */
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    /* Updated to Baloo Chettan 2 */
    font-family: 'Baloo Chettan 2', cursive;
    background: none;
    border: none;
    font-size: 1rem;
}

.nav-btn.active {
    background-color: var(--theme-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-btn:not(.active):hover {
    background-color: #f0f0f0;
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--theme-primary);
}

/* --- PAGE SELECTION & THEME SWITCHING --- */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-content.active-page {
    display: block;
}

/* Specific Theme Overrides via Classes on Body or Main */
#page-tv.active-page {
    --theme-primary: var(--primary-tv);
    --theme-secondary: var(--secondary-tv);
    --theme-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

#page-acting.active-page {
    --theme-primary: var(--primary-acting);
    --theme-secondary: var(--secondary-acting);
    --theme-gradient: linear-gradient(135deg, #4ECDC4 0%, #556270 100%);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- HERO SECTIONS --- */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    color: white;
    /* Uses current theme gradient */
    background: var(--theme-gradient); 
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 5px solid white;
    transform: rotate(3deg);
}

/* --- DESPRE NOI (About Us) --- */
.about-section {
    background: white;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    flex-direction: row-reverse;
}

.about-text h2 {
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: var(--theme-primary);
    line-height: 1.2em;
}
.about-text p { margin-bottom: 15px; color: #555; }

/* Instructors Grid */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instructor-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid var(--theme-primary);
}

.instructor-card-left {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: 0.3s;
    border-bottom: 4px solid var(--theme-primary);
}


.instructor-card:hover { transform: translateY(-5px); }

.instructor-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.instructor-info { padding: 20px; }
.instructor-info h4 { color: var(--theme-primary); margin-bottom: 5px; }
/* .instructor-info p { font-size: 0.9rem; color: #666; margin-bottom: 10px; } */
.instructor-info p { color: #666; margin-bottom: 10px; margin-top: 10px; }


/* --- BENEFITS --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: 0.3s;
    border-bottom: 5px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--theme-primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    background: var(--theme-primary);
}

/* --- ORGANIZATION SECTION --- */
.organization-section {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.org-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 25px;
    align-items: flex-start;
    transition: 0.3s;
}

.org-card:hover {
    border-color: var(--theme-primary);
    box-shadow: var(--shadow-card);
}

.org-icon {
    background: #fff4f4;
    color: var(--theme-primary);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.org-details h3 {
    color: var(--theme-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.org-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.org-list li::before {
    content: '•';
    color: var(--theme-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.1); }

/* --- TESTIMONIALS --- */
.testimonials { background: #FFF5F5; }
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}
.testimonial-card i {
    color: var(--theme-primary);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- CTA --- */
.cta-section {
    background: var(--theme-gradient);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: var(--radius);
    margin: 40px 20px;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
    background: none;
    border: none;
    /* Updated to Baloo Chettan 2 */
    font-family: 'Baloo Chettan 2', cursive;
}
.close-modal:hover { color: var(--theme-primary); }

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--theme-primary);
}

.modal-response {
    text-align: center;
    padding: 20px 0;
}

.response-icon {
    font-size: 3rem;
    color: var(--theme-primary);
    margin-bottom: 15px;
}

.response-icon.error {
    color: #e74c3c;
}

.modal-form .form-group { margin-bottom: 15px; }
.modal-form label { 
    display: block; margin-bottom: 5px; 
    font-weight: 600; font-size: 0.9rem; 
    /* Updated to Baloo Chettan 2 */
    font-family: 'Baloo Chettan 2', cursive;
}
.modal-form input, .modal-form select, .modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
}
.modal-form input:focus { border-color: var(--theme-primary); outline: none; }

/* Validation Styles */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none; /* Hidden by default */
}

.input-error {
    border-color: #e74c3c !important;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    /* Updated to Baloo Chettan 2 */
    font-family: 'Baloo Chettan 2', cursive;
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2001;
    border-left: 5px solid var(--theme-primary);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--theme-primary); font-size: 1.2rem; }

/* --- FOOTER --- */
footer {
    background: #292F36;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 { color: var(--accent-color); margin-bottom: 20px; }
.footer-links li { margin-bottom: 0px; }
.footer-links a { color: #ddd; }
.footer-links a:hover { color: var(--accent-color); }

.social-icons a { font-size: 1.5rem; margin-right: 15px; color: white; }
.social-icons a:hover { color: var(--theme-primary); }

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

    .img-rsp-size {
        max-width: none;
    }


/* --- RESPONSIVE & MOBILE MENU --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .img-rsp-size {
        max-width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none; /* Hidden by default on mobile */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .about-grid { flex-direction: column; }
    .modal-content { width: 95%; margin: 10px; }
}