/* =========================================================================
   STYLE.CSS - S.H.D. Institute of Yoga & Naturopathy
   ========================================================================= */

:root {
    /* Colors - Saffron, Gold, Off-White, Dark */
    --primary: #f36a10;
    --primary-dark: #cc5500;
    --primary-light: #ffebde;
    --gold: #dfa535;
    --dark: #2c2c2c;
    --darker: #151515;
    --light: #fef8f4;
    --white: #ffffff;
    --text-color: #444444;
    --border-color: #e5e5e5;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Base Styles */
.hidden-desktop {
    display: none;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 110px 0;
}

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

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

.mb-5 {
    margin-bottom: 3rem;
}

/* Typography Enhancements */
.section-subtitle {
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.text-center .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.about-text .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 106, 16, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(243, 106, 16, 0.4);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(243, 106, 16, 0.25);
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
    position: relative;
}

.glow-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--gold);
    margin: 0 auto 20px;
    animation: spin 1.5s linear infinite;
    position: relative;
    box-shadow: 0 0 20px rgba(243, 106, 16, 0.2);
}

.glow-circle::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: var(--gold);
    animation: spin 2s linear infinite reverse;
}

.loader-text {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.loader-sub {
    color: var(--primary);
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Bar */
.top-bar {
    background-color: var(--darker);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a, .top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-left a:hover {
    color: var(--primary);
    opacity: 1;
}

.top-bar-right a {
    color: var(--white);
    opacity: 0.8;
}

.top-bar-right a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Marquee */
.marquee-container {
    background-color: var(--primary);
    color: var(--white);
    overflow: hidden;
    padding: 6px 0;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-content span {
    padding: 0 30px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
#main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    max-width: 1220px; /* appropriately widened to fit logo + center block + nav */
    margin: 0 auto;
    transition: var(--transition);
}

#main-header.scrolled {
    box-shadow: var(--shadow-md);
}

#main-header.scrolled .header-inner {
    height: 75px;
}

.main-logo {
    max-height: 80px;
    width: auto;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

#main-header.scrolled .main-logo {
    max-height: 65px;
}

/* Center Content Block */
.header-center-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.header-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.header-highlights {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #777;
}

.header-highlights i {
    color: var(--primary-dark);
}

.header-highlights .separator {
    color: #ddd;
    font-size: 0.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

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

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 120px);
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(36,17,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 900px;
    padding-top: 50px;
}

.hero-title-hi {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title-en {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.about-image {
    position: relative;
}

.rounded-image {
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background-color: var(--primary-light);
    border-radius: 20px;
    z-index: 1;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: top;
}

.course-card:hover::before {
    transform: scaleY(1);
}

.featured-course {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.badge-featured {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.course-icon {
    width: 60px; height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.course-card:hover .course-icon {
    background: var(--primary);
    color: var(--white);
}

.course-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.course-duration {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.course-desc {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.facility-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.facility-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.facility-info i {
    font-size: 1.5rem;
    color: var(--gold);
}

.facility-info h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

/* Admission Banner */
.admission-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    padding: 60px 40px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admission-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admission-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.admission-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.admission-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.eligibility-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
}

.eligibility-box h4 {
    color: var(--gold);
    margin-bottom: 10px;
}

.eligibility-box ul {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.eligibility-box ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eligibility-box i {
    color: var(--gold);
}

.admission-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.admission-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
}

/* Result Page Layout */
.result-boards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.board-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.board-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.board-logo-wrap {
    width: 220px;
    height: 220px;
    margin: 0 auto 35px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 8px solid var(--light);
}

.board-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.board-card:hover .board-logo {
    transform: scale(1.15);
}

.board-name {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--darker);
}

.board-desc {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(243, 106, 16, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Contact Section */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-icon {
    width: 60px; height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.info-card h4 {
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(243, 106, 16, 0.1);
    background-color: var(--white);
}

/* Form Alerts and Captcha Structure */
.d-none { display: none !important; }
.text-danger { color: #dc3545; font-size: 0.85rem; margin-top: 5px; display: block; text-align: left; }
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 5px; font-size: 0.95rem; text-align: left; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.mt-3 { margin-top: 15px; }

.captcha-group { display: flex; flex-direction: column; text-align: left; margin-bottom: 20px; }
.captcha-group label { font-weight: 600; margin-bottom: 10px; color: var(--darker); font-size: 1.1rem; }

.map-column {
    display: flex;
    flex-direction: column;
}

.contact-subheading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    font-family: var(--font-primary);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex-grow: 1; /* stretches gracefully along form height */
    position: relative;
    border: 1px solid var(--border-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
    display: block;
}

/* Footer Section */
.main-footer {
    background-color: var(--darker);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    max-height: 75px;
    margin-bottom: 25px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

.footer-desc {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.7;
    padding-right: 20px;
}

.footer-social-bar {
    display: flex;
    justify-content: center;
    padding: 30px 0 10px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--darker);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(223, 165, 53, 0.4);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--gold);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #bbb;
    display: inline-block;
    transition: var(--transition);
}

.links-col ul li a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #bbb;
}

.contact-list i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-list a:hover {
    color: var(--gold);
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* --- High-level Professional Enhancements --- */
.premium-hero { height: calc(100vh - 95px); display: flex; flex-direction: column; justify-content: center; }
.badge-trust { display: inline-block; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; letter-spacing: 1px; }
.hero-title-hi { font-size: 2.8rem; font-weight: 800; }
.hero-title-en { font-size: 4.2rem; font-weight: 800; margin-bottom: 10px; }
.hero-divider { width: 80px; height: 4px; background: var(--primary); margin: 15px auto 25px; border-radius: 2px; }
.hero-tagline { font-size: 1.6rem; font-weight: 400; color: #e8e8e8; margin-bottom:40px; }
.custom-btn { padding: 15px 35px; font-size: 1.1rem; border-radius: 5px; }
.shadow-glow { box-shadow: 0 10px 30px rgba(243, 106, 16, 0.4); }
.hero-affiliation { margin-top: 40px; font-size: 1rem; color: rgba(255, 255, 255, 0.85); border-top: 1px solid rgba(255, 255, 255, 0.2); display: inline-block; padding-top: 15px; }
.hero-affiliation i { color: var(--gold); margin-right: 5px; }

/* Highlights Section */
.highlights-section { position: relative; margin-top: -60px; z-index: 10; padding:0 20px; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.highlight-item { display: flex; align-items: center; gap: 20px; padding: 30px; border-right: 1px solid var(--border-color); }
.highlight-item:last-child { border-right: none; }
.hl-icon { width: 60px; height: 60px; background: var(--light); color: var(--primary); font-size: 1.8rem; display: flex; justify-content: center; align-items: center; border-radius: 8px; flex-shrink:0; }
.hl-content h3 { font-family: var(--font-primary); font-size: 2rem; font-weight: 800; color: var(--darker); margin-bottom: 2px; }
.hl-content p { font-size: 0.95rem; color: #555; font-weight: 500; }

/* Chairman's Message Section */
.bg-beige { background: linear-gradient(135deg, #fbf7f2 0%, #f4eee6 100%); }

.chairman-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.chairman-image-wrap { position: relative; border-radius: 12px; }
.chairman-img-inner { border-radius: 12px; overflow: hidden; position: relative; border: 8px solid var(--white); background: var(--white); }
.chairman-img-inner img { transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; width: 100%; display: block; }
.chairman-grid:hover .chairman-img-inner img { transform: scale(1.08); }

.trust-subheading { font-family: var(--font-primary); color: var(--primary-dark); font-size: 1.1rem; font-weight: 600; margin-bottom: 30px; letter-spacing: 0.5px; margin-top: -10px; }

.message-body.left-border-accent { border-left: 4px solid var(--gold); padding-left: 30px; margin-left: 5px; }
.message-body p { font-size: 1.05rem; color: #555; line-height: 1.7; margin-bottom: 20px; }
.message-body p strong { color: var(--dark); font-weight: 700; background: rgba(223, 165, 53, 0.1); padding: 2px 6px; border-radius: 4px; }

.signature-text { font-family: var(--font-heading); font-style: italic; font-size: 1.6rem; color: var(--primary); font-weight: 600; margin-top: 30px; margin-bottom: 0 !important; }

/* Vision Section */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.premium-card { background: var(--white); padding: 40px 30px; border-radius: 12px; box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition); border: 1px solid transparent; }
.premium-card:hover { box-shadow: var(--shadow-md); transform: translateY(-8px); border-color: var(--primary-light); }
.v-icon-wrap { width: 70px; height: 70px; margin: 0 auto 25px; background: var(--primary); color: var(--white); font-size: 1.8rem; display: flex; justify-content: center; align-items: center; border-radius: 50%; box-shadow: 0 10px 20px rgba(243, 106, 16, 0.2); }
.premium-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.premium-card p { color: #666; font-size: 1rem; line-height: 1.7; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.img-wrapper { position: relative; padding: 20px 20px 0 0; }
.img-wrapper img { border-radius: 10px; position: relative; z-index: 2; }
.img-wrapper::before { content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 60%; background: var(--primary-light); border-radius: 10px; z-index: 1; }
.experience-badge { position: absolute; bottom: -20px; left: -20px; background: var(--darker); color: var(--white); padding: 25px; border-radius: 10px; z-index: 3; display: flex; flex-direction: column; box-shadow: var(--shadow-md); border-left: 4px solid var(--primary); }
.exp-number { font-size: 2.5rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 5px; }
.exp-text { font-size: 1rem; font-weight: 500; }
.why-list { margin-top: 30px; }
.why-list li { display: flex; margin-bottom: 25px; gap: 15px; }
.why-icon { width: 40px; height: 40px; background: var(--light); color: var(--primary); display: flex; justify-content: center; align-items: center; border-radius: 50%; flex-shrink: 0; }
.why-text h4 { font-size: 1.2rem; margin-bottom: 5px; font-family: var(--font-primary); font-weight: 700; }
.why-text p { color: #555; }

/* Facility Overrides for Premium feel */
.premium-card-hover { border-radius: 10px; }
.premium-card-hover .facility-info { bottom: -70px; background: var(--white); color: var(--dark); flex-direction: column; align-items: flex-start; padding: 30px 20px 20px; transition: var(--transition); }
.fac-icon-circle { position: absolute; top: -25px; right: 20px; width: 50px; height: 50px; background: var(--primary); color: var(--white); display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.2rem; box-shadow: var(--shadow-sm); z-index: 10; }
.premium-card-hover:hover .facility-info { bottom: 0; }
.premium-card-hover h4 { color: var(--dark); font-weight: 700; z-index: 11; position: relative; }
.section-separator { border-top: 1px solid var(--border-color); }

/* --- Premium Courses UI --- */
.page-banner { position: relative; padding: 100px 0; background-size: cover; background-position: center; background-attachment: fixed; text-align: center; }
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); }
.banner-content { position: relative; z-index: 2; }
.text-white { color: var(--white) !important; }

.courses-premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; }

.premium-course-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.premium-course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-8px); border-color: var(--primary-light); }

.course-header { background: linear-gradient(135deg, var(--light), #ffffff); padding: 30px 25px; border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.course-icon { width: 60px; height: 60px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; margin-bottom: 15px; transition: var(--transition); }
.premium-course-card:hover .course-icon { background: var(--primary); color: var(--white); transform: rotateY(15deg) scale(1.05); }

.course-code { color: var(--primary-dark); font-size: 1rem; font-weight: 700; margin-bottom: 5px; letter-spacing: 1px; }
.course-full-name { font-size: 1.35rem; font-family: var(--font-primary); line-height: 1.3; font-weight: 800; color: var(--darker); }

.course-body { padding: 30px 25px; flex-grow: 1; }
.course-desc { color: #666; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }

.course-details-list { list-style: none; padding: 0; margin: 0; }
.course-details-list li { font-size: 0.9rem; color: #444; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.course-details-list i { color: var(--primary); margin-top: 5px; }

.course-footer { padding: 20px 25px; background: #fcfcfc; border-top: 1px solid var(--border-color); }
.badge-featured { position: absolute; top: 15px; right: -30px; background: var(--gold); color: var(--white); font-size: 0.75rem; font-weight: bold; padding: 5px 30px; transform: rotate(45deg); box-shadow: var(--shadow-sm); z-index: 5; text-transform: uppercase; }

/* Premium CTA Button Fix */
.facilities-action {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.premium-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px; /* Fully rounded corners */
    box-shadow: 0 8px 20px rgba(243, 106, 16, 0.25); /* Soft shadow */
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.premium-action-btn i {
    transition: transform 0.3s ease;
}

.premium-action-btn:hover {
    transform: translateY(-5px); /* Upward movement */
    box-shadow: 0 12px 25px rgba(243, 106, 16, 0.4); /* Shadow increase */
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)); /* Gentle reverse gradient */
}

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

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Exact WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px; /* Above WhatsApp */
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(243, 106, 16, 0.3);
    color: var(--white);
}

/* Image Zoom Dynamics */
.facility-img, .img-wrapper, .about-image {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}
.facility-img img, .img-wrapper img, .about-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.facility-card:hover .facility-img img, 
.why-grid:hover .img-wrapper img, 
.about-grid:hover .about-image img,
.premium-course-card:hover .course-img {
    transform: scale(1.08); /* Crisp premium interior scaling */
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-item:nth-child(2) { border-right: none; }
    .highlight-item:nth-child(3), .highlight-item:nth-child(4) { border-top: 1px solid var(--border-color); }
    .vision-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title-en { font-size: 3.2rem; }
    .header-center-block { padding: 0 15px; }
    .header-tagline { font-size: 1rem; }
    .header-highlights { font-size: 0.75rem; gap: 6px; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title-hi { font-size: 1.8rem; }
    .hero-title-en { font-size: 2.8rem; }
}

@media (max-width: 900px) {
    .chairman-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .message-body.left-border-accent { text-align: left; padding-left: 20px; margin-left: 0; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .img-wrapper::before { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .result-boards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }

    .scroll-top-btn {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .top-bar-inner { flex-direction: column; gap: 10px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-list li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .footer-desc {
        padding-right: 0;
    }
    
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        height: auto !important;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .logo-container {
        flex: none;
    }
    
    .main-logo {
        max-height: 60px;
    }

    .hidden-desktop {
        display: block;
    }

    .mobile-visual-icon {
        color: var(--primary);
        font-size: 2.2rem;
        margin-bottom: 12px;
        animation: pulse 3s infinite ease-in-out;
    }

    @keyframes pulse {
        0% { transform: scale(1); opacity: 0.9; }
        50% { transform: scale(1.05); opacity: 1; }
        100% { transform: scale(1); opacity: 0.9; }
    }

    .header-center-block {
        order: 3;
        width: 100%;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding: 20px 0 10px 0;
        margin-top: 15px;
        text-align: center;
    }
    
    .header-highlights {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li { border-bottom: 1px solid var(--border-color); }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
    }

    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .vision-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight-item { border-right: none; }
    .highlight-item:nth-child(1), .highlight-item:nth-child(2), .highlight-item:nth-child(3) { border-bottom: 1px solid var(--border-color); border-top: none; }
    
    .hero-title-hi { font-size: 1.5rem; }
    .hero-title-en { font-size: 2.2rem; }
    .hero-tagline { font-size: 1.2rem; }
    
    .contact-info-cards { grid-template-columns: 1fr; }
    
    .admission-actions { flex-direction: column; }
    .eligibility-box ul { flex-direction: column; gap: 10px; text-align: left;}
}

@media (max-width: 576px) {
    .courses-grid, .facilities-grid, .gallery-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-address { display: none; }
    .hero-buttons { flex-direction: column; }
    .admission-banner { padding: 40px 20px; }
}
