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

/* Local Font Declarations */
@font-face {
    font-family: 'Aparajita Local';
    src: url('assets/fonts/Aparajita-Regular.woff2') format('woff2'),
         url('assets/fonts/Aparajita-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aparajita Local';
    src: url('assets/fonts/Aparajita-Bold.woff2') format('woff2'),
         url('assets/fonts/Aparajita-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiro Devanagari Hindi Local';
    src: url('assets/fonts/TiroDevanagariHindi-Regular.woff2') format('woff2'),
         url('assets/fonts/TiroDevanagariHindi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiro Devanagari Hindi Local';
    src: url('assets/fonts/TiroDevanagariHindi-Italic.woff2') format('woff2'),
         url('assets/fonts/TiroDevanagariHindi-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Font Variables for Easy Management */
:root {
    --font-hindi-title: 'Aparajita Local', 'Aparajita';
    --font-hindi-text: 'Tiro Devanagari Hindi Local', 'Tiro Devanagari Hindi';
    --font-english: 'Tiro Devanagari Hindi Local', 'Tiro Devanagari Hindi', 'Noto Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-hindi-text);
    line-height: 1.6;
    color: #2e1a22;
    background-color: #fff5eb;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-hindi-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.sanskrit-text {
    font-family: var(--font-hindi-title);
    font-weight: 700;
    font-size: 1.2em;
    color: #d2691e;
}

.english-text {
    font-family: var(--font-english);
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d2691e;
    box-shadow: 0 2px 10px rgba(210, 105, 30, 0.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


.logo-text h2 {
    font-family: var(--font-hindi-title);
    font-size: 18px;
    color: #d2691e;
    margin-bottom: 0;
    font-weight: 700;
}

.logo-text p {
    font-family: var(--font-english);
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-cta {
    margin-left: 24px;
}

.nav-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ff9f43;
    color: #3a131b;
    font-family: var(--font-hindi-title);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.nav-apply-btn:hover {
    background: #ff8a1f;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: var(--font-hindi-title);
    font-size: 16px;
}

.nav-link:hover {
    color: #d2691e;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4b2528, #36131d);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #5c2b33 0%, #2a0f18 55%, #1b050c 100%);
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(24, 8, 14, 0.9),
        rgba(75, 37, 40, 0.95),
        rgba(56, 22, 32, 0.98)
    );
}

.hero-content {
    position: relative;
    width: 100%;
    padding: 120px 0 40px;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .sanskrit-text {
    display: block;
    color: #fff;
    font-size: 52px;
    margin-bottom: 10px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-title .english-text {
    display: block;
    color: #ffeedb;
    font-size: 28px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 20px;
    color: #ffeedb;
    margin-bottom: 10px;
    font-family: var(--font-hindi-title);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-subtitle-en {
    font-size: 16px;
    color: #fff0e6;
    margin-bottom: 30px;
    font-style: italic;
    font-family: var(--font-english);
}

.admission-banner {
    background: #fbe9dd;
    border-radius: 18px;
    padding: 22px 26px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-align: left;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.admission-banner h2 {
    font-family: var(--font-hindi-title);
    color: #4b2528;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: none;
    font-weight: 700;
}

.admission-banner h3 {
    color: #b45a26;
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-english);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.hero-showcase {
    width: 100%;
    max-width: 520px;
    background: #fff5eb;
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    padding: 16px 18px 18px;
}

.image-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(75, 37, 40, 0.9);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(75, 37, 40, 1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #ff9f43;
    transform: scale(1.2);
}

/* Hero info card below slider */
.hero-info-card {
    padding: 18px 4px 0;
}

.hero-info-card h3 {
    font-family: var(--font-english);
    font-size: 18px;
    color: #4b2528;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-info-card p {
    font-family: var(--font-english);
    font-size: 14px;
    color: #4b454f;
    margin-bottom: 16px;
}

.hero-info-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-info-card .btn {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 12px;
    box-shadow: none;
}

.hero-info-card .btn-primary {
    background: #5a1f2a;
    color: #fff7f0;
    box-shadow: none;
}

.hero-info-card .btn-primary:hover {
    background: #3f0f1b;
}

.hero-info-card .btn-secondary {
    background: #fff5eb;
    color: #5a1f2a;
    border: 1px solid #dec5b0;
}

.hero-info-card .btn-secondary:hover {
    background: #fff5eb;
    border-color: #c79d7a;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-hindi-text);
}

.btn-primary {
    background: #ff9f43;
    color: #3a131b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    background: #ff8a1f;
}

.btn-secondary {
    background: rgba(255, 245, 234, 0.08);
    color: #ffe3c2;
    border: 1px solid rgba(255, 245, 234, 0.7);
}

.btn-secondary:hover {
    background: rgba(255, 245, 234, 0.2);
    border-color: #fff5ea;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff5eb;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-content h3 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-content p {
    color: #666;
    font-size: 14px;
    font-family: var(--font-english);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-hindi-title);
    font-size: 36px;
    color: #d2691e;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: #666;
    font-family: var(--font-english);
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background: #fff5eb;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.course-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #d2691e, #ff8c00);
}

.course-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #d2691e;
}

.course-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.course-card h3 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.course-card > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    font-style: italic;
    font-family: var(--font-english);
}

.course-subjects {
    list-style: none;
    margin: 20px 0;
}

.course-subjects li {
    padding: 8px 0;
    color: #333;
    position: relative;
    padding-left: 20px;
    font-family: var(--font-hindi-text);
}

.course-subjects li::before {
    content: '•';
    color: #d2691e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.course-duration {
    margin-top: 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
}

/* Facilities Section */
.facilities {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility-item {
    background: #fff5eb;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.facility-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.facility-icon {
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.facility-item h4 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.facility-item p {
    color: #666;
    font-size: 14px;
    font-family: var(--font-english);
}

/* Special Features Section */
.special-features {
    padding: 100px 0;
    background: #fff5eb;
    position: relative;
    z-index: 1;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.special-features .section-header h2 {
    color: #4b2528;
}

.special-features .section-header p {
    color: #7a4a3a;
}

.features-list {
    space-y: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: #d2691e;
    font-size: 20px;
    margin-top: 3px;
}

.feature-item span {
    font-family: var(--font-hindi-text);
    color: #333;
    line-height: 1.6;
}

.prabhupada-section {
    text-align: center;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prabhupada-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #d2691e;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: url('https://images.unsplash.com/photo-1582750433449-648ed127bb54?w=400&h=400&fit=crop&auto=format&q=80') center/cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.prabhupada-text h3 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.prabhupada-text h4 {
    font-family: var(--font-hindi-title);
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.prabhupada-text p {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    font-family: var(--font-english);
}

.prabhupada-quote {
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.prabhupada-quote p {
    color: white;
    font-family: var(--font-hindi-title);
    font-style: italic;
    margin: 0;
    font-weight: 400;
}

/* Admission Section */
.admission {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.step {
    text-align: center;
    background: #fff5eb;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h4 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    margin-bottom: 10px;
    font-weight: 700;
}

.step p {
    color: #666;
    font-size: 14px;
    font-family: var(--font-english);
}

.admission-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.info-card {
    background: #fff5eb;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-card h5 {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
    font-family: var(--font-english);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    font-family: var(--font-hindi-text);
    color: #333;
}

.info-card li::before {
    content: '✓';
    color: #d2691e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #fff5eb;
}

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

.contact-info {
    space-y: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-details p {
    color: #333;
    line-height: 1.6;
    font-family: var(--font-hindi-text);
}

.contact-form {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-family: var(--font-hindi-title);
    color: #d2691e;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 700;
}

.contact-form h4 {
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
    font-family: var(--font-english);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-hindi-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d2691e;
}

.form button {
    width: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: var(--font-hindi-title);
    color: #ff8c00;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section h4 {
    color: #ff8c00;
    margin-bottom: 15px;
    font-family: var(--font-hindi-title);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section p {
    font-family: var(--font-hindi-text);
    color: #ecf0f1;
    line-height: 1.6;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-hindi-text);
}

.footer-section ul li a:hover {
    color: #ff8c00;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff8c00;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-family: var(--font-hindi-text);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Chat Button */
.whatsapp-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 10px 16px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: var(--font-hindi-text);
    font-size: 14px;
}

.whatsapp-button i {
    font-size: 22px;
}

.whatsapp-button span {
    white-space: nowrap;
}

/* Tablet Hero Layout */
@media (max-width: 1024px) {
    .hero {
        align-items: flex-start;
    }

    .hero-content {
        padding: 110px 0 40px;
    }

    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        align-items: center;
        margin-top: 10px;
    }

    .hero-showcase {
        margin: 0 auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        font-size: 18px;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-title .sanskrit-text {
        font-size: 36px;
    }
    
    .hero-title .english-text {
        font-size: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .admission-info {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-title .sanskrit-text {
        font-size: 32px;
    }
    
    .hero-title .english-text {
        font-size: 18px;
    }
    
    .admission-banner {
        padding: 20px;
        margin: 20px 0;
    }
    
    .admission-banner h2 {
        font-size: 24px;
    }
    
    .admission-banner h3 {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admission-steps {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* Additional Hindi/Devanagari Text Styling */
.course-duration {
    margin-top: 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-hindi-text);
}

/* Ensure all Hindi text uses appropriate fonts */
*[lang="hi"],
.hindi-text {
    font-family: var(--font-hindi-title) !important;
}

/* English descriptive text */
.english-desc {
    font-family: var(--font-english) !important;
}

/* Font Loading Optimization */
@media (prefers-reduced-motion: no-preference) {
    * {
        font-display: swap;
    }
}

/* Font Loading Debug - Remove in production */
.font-test {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
}

.font-test::before {
    content: "Fonts: ";
    font-family: var(--font-hindi-title);
}

.font-test::after {
    content: " | " var(--font-hindi-text);
    font-family: var(--font-hindi-text);
}

/* Ensure better rendering for Devanagari */
*[lang="hi"] {
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Image Loading and Fallback Styles */
img {
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

img:not([src]),
img[src=""],
img[src="assets/university-building.jpg"],
img[src="assets/iskcon-logo.png"],
img[src="assets/srila-prabhupada.jpg"],
img[src="assets/university-bg.jpg"] {
    background: linear-gradient(135deg, #d2691e, #ff8c00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

/* Ensure demo images load properly */
.building-img,
.prabhupada-img,
.logo-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: auto;
    transform: none;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Animations */
.scroll-animate {
    will-change: transform, opacity;
}