:root {
    --primary-color: #0b1a30; /* Navy Blue */
    --secondary-color: #c9a227; /* Gold */
    --secondary-hover: #e0b62c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #0a192f;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Structural Variables */
    --border-radius: 8px;
    --btn-radius: 4px;
    --card-shadow: var(--shadow);
    --card-border: 1px solid transparent;
    --card-hover-transform: translateY(-10px);
    --card-hover-shadow: var(--shadow);
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
    --card-bg: #ffffff;
}

/* --- STRUCTURAL THEMES --- */
/* Structure 1: Premium Glass (Default) */
.structure-1 {
    --border-radius: 12px;
    --btn-radius: 6px;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --card-border: 1px solid rgba(255,255,255,0.6);
    --card-hover-transform: translateY(-8px) scale(1.01);
    --card-hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    --heading-font: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Structure 2: Elegant Luxury */
.structure-2 {
    --border-radius: 0px;
    --btn-radius: 0px;
    --card-shadow: none;
    --card-border: 1px solid var(--secondary-color);
    --card-hover-transform: translateY(-5px);
    --card-hover-shadow: none;
    --heading-font: 'Playfair Display', serif;
    --transition: all 0.5s ease-in-out;
}

/* Structure 3: Soft & Playful */
.structure-3 {
    --border-radius: 40px;
    --btn-radius: 40px;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.15);
    --card-border: none;
    --card-hover-transform: translateY(-15px) scale(1.05);
    --card-hover-shadow: 0 30px 60px rgba(0,0,0,0.2);
    --heading-font: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy! */
}

/* Structure 4: Neo-Brutalist */
.structure-4 {
    --border-radius: 0px;
    --btn-radius: 0px;
    --card-shadow: 8px 8px 0px var(--primary-color);
    --card-border: 3px solid var(--primary-color);
    --card-hover-transform: translate(-4px, -4px);
    --card-hover-shadow: 12px 12px 0px var(--primary-color);
    --heading-font: 'Inter', sans-serif;
    --transition: all 0.1s linear; /* Instant snap */
}
.structure-4 .btn-primary:hover {
    box-shadow: 6px 6px 0px var(--primary-color);
}
.structure-4 .modules-list li {
    border: 2px solid var(--primary-color);
}

/* --- THEMES --- */
/* Theme 1: Military Navy (Default) */
.theme-1 {
    --primary-color: #0b1a30;
    --secondary-color: #c9a227;
    --secondary-hover: #e0b62c;
    --bg-dark: #0a192f;
}
/* Theme 2: Emerald Army */
.theme-2 {
    --primary-color: #1a3622;
    --secondary-color: #d4af37;
    --secondary-hover: #f1cd53;
    --bg-dark: #122618;
}
/* Theme 3: Desert Sand */
.theme-3 {
    --primary-color: #4a3e2e;
    --secondary-color: #c67100;
    --secondary-hover: #e68500;
    --bg-dark: #332a1f;
}
/* Theme 4: Ocean Blue */
.theme-4 {
    --primary-color: #004d7a;
    --secondary-color: #00a8cc;
    --secondary-hover: #00c6f0;
    --bg-dark: #003657;
}
/* Theme 5: Ruby Red */
.theme-5 {
    --primary-color: #4a0e17;
    --secondary-color: #d42037;
    --secondary-hover: #f52f49;
    --bg-dark: #30080e;
}
/* Theme 6: Dark Mode */
.theme-6 {
    --primary-color: #121212;
    --secondary-color: #10b981;
    --secondary-hover: #14df9a;
    --bg-dark: #000000;
    --bg-light: #1f1f1f;
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --glass-bg: rgba(30, 30, 30, 0.95);
    --card-bg: #2a2a2a;
}
.theme-6 .card h3 {
    color: #fff;
}
/* Theme 7: Royal Purple */
.theme-7 {
    --primary-color: #2c1a4d;
    --secondary-color: #9b5de5;
    --secondary-hover: #b885f6;
    --bg-dark: #1f1138;
}
/* Theme 8: Sunset Orange */
.theme-8 {
    --primary-color: #5c200b;
    --secondary-color: #f77f00;
    --secondary-hover: #ff9b33;
    --bg-dark: #401405;
}

/* Animations */
.hidden-animate {
    opacity: 0;
    transform: translateY(30px);
}
.fade-in-up {
    animation: fadeInUpAnim 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUpAnim {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-title.center {
    text-align: center;
    margin-bottom: 50px;
}

.center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.dark-bg {
    background-color: var(--bg-dark);
    color: #fff;
}
.dark-bg .section-title {
    color: #fff;
}

.primary-bg {
    background-color: var(--primary-color);
    color: #fff;
}
.primary-bg .section-title {
    color: var(--secondary-color);
}

.text-white {
    color: #fff;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 20px;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 15px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.theme-6 .navbar {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: var(--primary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: fadeInUP 1s ease forwards;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: inline-block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.7;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-buttons a {
    margin-right: 15px;
    margin-bottom: 10px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 25px;
    justify-content: center;
}
.grid-3 > * {
    width: 100%;
    height: 100%;
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--card-hover-shadow);
}

.card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.theme-6 .card.glass {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* About & Founder Grid */
.about-grid, .founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.founder-grid {
    grid-template-columns: 1fr 1.5fr;
}

.about-image img, .founder-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    object-fit: cover;
    aspect-ratio: 4/3;
    border: var(--card-border);
}

.premium-photo-box {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.premium-photo-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.premium-photo-box img {
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 30px;
}
.dark-bg blockquote, .theme-6 blockquote {
    color: #e0e0e0;
}

/* Modules */
.modules-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 15px;
    justify-content: center;
}

.modules-list li {
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: var(--btn-radius);
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    color: var(--text-color);
    width: 100%;
    font-weight: 500;
    font-size: 0.95rem;
}

.modules-list li:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.modules-list li i {
    margin-right: 15px;
    color: var(--secondary-color);
}
.modules-list li:hover i {
    color: var(--primary-color);
}

/* Branches */
.branch-card {
    text-align: center;
}
.branch-card .branch-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb, 201,162,39), 0.1), transparent);
    border-radius: 50%;
    margin-bottom: 20px;
}
.branch-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}
.premium-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: auto 0 20px 0;
    opacity: 0.5;
}
.branch-map-container {
    margin-top: 20px; 
    border-radius: 12px; 
    overflow: hidden; 
    height: 220px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Premium Courses */
.premium-course-card {
    text-align: center;
}
.premium-course-card .course-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.premium-course-card .course-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    background: -webkit-linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.branch-card .contact-info {
    margin-top: 15px;
    color: var(--primary-color);
}
.theme-6 .branch-card .contact-info {
    color: #e0e0e0;
}

/* Hostel */
.hostel-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hostel-list li {
    background: var(--card-bg);
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    font-weight: 600;
    color: var(--primary-color);
    border: var(--card-border);
}
.theme-6 .hostel-list li {
    color: #fff;
}

.hostel-list li i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: var(--card-border);
    box-shadow: var(--card-shadow);
}

.gallery-grid img:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--card-hover-shadow);
    z-index: 10;
    position: relative;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.footer p {
    margin-bottom: 15px;
    color: #b0b0b0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.admin-link {
    color: #b0b0b0;
    font-size: 0.9rem;
}
.admin-link:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .founder-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .menu-toggle {
        display: block;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- HEADER TEMPLATES --- */
.hero-template { display: none !important; }
.hero-template.active { display: flex !important; }

.top-bar { display: none; }
.has-top-bar .top-bar {
    display: block;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    text-align: right;
}
.has-top-bar .navbar { top: 35px; }

/* Header 2: Left-Aligned Split */
.hero-template-2 { justify-content: flex-start; }
.hero-template-2 .hero-content { margin-left: 10%; text-align: left; }
.hero-template-2 .hero-overlay { background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%); }

/* Header 3 is Corporate Top-Bar which uses has-top-bar class and hero-template-1 */
.hero-template-3 .hero-content { text-align: center; }

/* Header 4: Minimalist */
.hero-template-4 { align-items: center; justify-content: center; text-align: center; }
.hero-template-4 h1 { font-weight: 300; letter-spacing: 2px; }

/* Header 5: Boxed Overlay */
.hero-template-5 { justify-content: center; align-items: center; }
.hero-template-5 .hero-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

/* Header 6: Right-Aligned */
.hero-template-6 { justify-content: flex-end; }
.hero-template-6 .hero-content { text-align: right; margin-right: 10%; }
.hero-template-6 .hero-overlay { background: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%); }

/* Header 7: Fullscreen Immersive */
.hero-template-7 { text-align: center; justify-content: center; }
.hero-template-7 h1 { font-size: 5.5rem; line-height: 1; text-transform: uppercase; }

/* Header 8: Modern Grid */
.hero-template-8 .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    align-items: center;
}

/* --- FOOTER TEMPLATES --- */
.footer-template { display: none !important; }
.footer-template.active { display: block !important; }

/* Footer 2: Minimal Center */
.footer-template-2 .footer-grid { grid-template-columns: 1fr; text-align: center; }
.footer-template-2 .social-icons { justify-content: center; display: flex; margin-top: 15px;}

/* Footer 3: Corporate 4-Column */
.footer-template-3 .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

/* Footer 4: Dark & Sleek */
.footer-template-4 { background: #050505; border-top: 2px solid var(--secondary-color); }
.footer-template-4 .footer-grid { text-align: center; grid-template-columns: 1fr; }

/* Footer 5: Diagonal Cut */
.footer-template-5 { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); padding-top: 100px; }

/* Footer 6: Split Screen */
.footer-template-6 .footer-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.footer-template-6 .footer-grid h3 { font-size: 2.5rem; }

/* Footer 7: Stacked Block */
.footer-template-7 .footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Footer 8: Bold Brand */
.footer-template-8 { background: var(--secondary-color); color: var(--primary-color); }
.footer-template-8 h3 { color: var(--primary-color); font-weight: 800; }
.footer-template-8 p { color: var(--primary-color); font-weight: 600; }
.footer-template-8 .social-icons a { background: var(--primary-color); color: #fff; }

@media (max-width: 768px) {
    .hero-template-7 h1 { font-size: 3rem; }
    .hero-template-8 .hero-content { grid-template-columns: 1fr; }
    .footer-template-3 .footer-grid { grid-template-columns: 1fr; }
    .footer-template-6 .footer-grid { grid-template-columns: 1fr; }
    .has-top-bar .navbar { top: 0; }
    .top-bar { display: none !important; }
    #google_translate_element { display: none !important; }
    
    /* Hero Mobile Fixes */
    .hero { 
        height: auto !important; 
        min-height: 60vh !important; 
        padding-top: 100px !important; 
        padding-bottom: 60px !important; 
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .hero-content {
        padding: 0 15px;
    }
    
    /* Buttons Mobile Fixes */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons a {
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}
