/* ============================================
   DUJANA PUBLIC SCHOOL - FINAL STYLESHEET
   PC & Mobile Optimized | Clean & Conflict-Free
   ============================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefcf9;
    color: #1e293b;
    line-height: 1.6;
}

/* CSS Variables */
:root {
    --primary: #1e3a8a;
    --primary-dark: #0f2b6d;
    --primary-light: #3b82f6;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #fbbf24;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 35px -10px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 45px -12px rgba(0,0,0,0.2);
    --grad-primary: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --grad-secondary: linear-gradient(135deg, #f97316, #fbbf24);
    --grad-rainbow: linear-gradient(135deg, #f97316, #fbbf24, #10b981, #3b82f6, #8b5cf6);
    --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--grad-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--grad-secondary);
    border-radius: 4px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 60px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--grad-secondary);
    color: white;
    box-shadow: 0 5px 20px rgba(249,115,22,0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249,115,22,0.5);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--grad-secondary);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.btn-glow {
    background: white;
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    animation: pulseGlow 2s infinite;
}

.btn-glow:hover {
    transform: scale(1.05);
    background: var(--grad-secondary);
    color: white;
}

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(249,115,22,0); }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ---------- Header & Navigation ---------- */
.header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(249,115,22,0.2);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 55px;
    width: auto;
    border-radius: 12px;
    transition: var(--transition);
}

.logo h1 {
    font-size: 1.5rem;
    background: var(--grad-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 0;
}

.nav-menu {
    display: flex;
    gap: 0.8rem;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
    border-radius: 40px;
}

.nav-menu > li > a:hover {
    color: var(--secondary);
    background: rgba(249,115,22,0.08);
    transform: translateY(-2px);
}

/* Dropdown Menu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    list-style: none;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid rgba(249,115,22,0.15);
}

.nav-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.submenu li a {
    display: block;
    padding: 0.7rem 1.6rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: 0.25s;
    font-weight: 500;
    position: relative;
}

.submenu li a::before {
    content: '✨';
    position: absolute;
    left: 0.8rem;
    opacity: 0;
    transition: 0.25s;
}

.submenu li a:hover {
    background: linear-gradient(90deg, #fff5e8, #fff0e0);
    color: var(--secondary);
    padding-left: 2.5rem;
}

.submenu li a:hover::before {
    opacity: 1;
    left: 0.8rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #eef2ff 0%, #fff5e8 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.08), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    animation: fadeSlideUp 0.8s ease;
}

.hero-badge {
    background: var(--grad-secondary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: pulseGlow 2s infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    background: var(--grad-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    animation: scaleIn 0.8s ease 0.2s both;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    object-fit: cover;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2.2rem;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--grad-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249,115,22,0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card:nth-child(1) .feature-icon { color: var(--primary); }
.feature-card:nth-child(2) .feature-icon { color: var(--secondary); }
.feature-card:nth-child(3) .feature-icon { color: var(--accent); }
.feature-card:nth-child(4) .feature-icon { color: var(--success); }

/* ---------- Welcome Section ---------- */
.welcome-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.welcome-text {
    flex: 1;
}

.welcome-text p {
    margin: 1.2rem 0;
}

.welcome-highlight {
    background: linear-gradient(135deg, #fff5e8, #ffe8e0);
    padding: 1.5rem 2rem;
    border-radius: 28px;
    margin: 1.5rem 0;
    border-left: 5px solid var(--secondary);
    transition: var(--transition);
}

.welcome-highlight:hover {
    transform: translateX(8px);
}

.welcome-image {
    flex: 1;
    text-align: center;
}

.welcome-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 35px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

/* ---------- Stats Section ---------- */
.stats-section {
    background: var(--grad-primary);
    border-radius: 50px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
}

/* ---------- Testimonials ---------- */
.testimonials-section {
    background: var(--gray-50);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 6rem;
    color: rgba(249,115,22,0.1);
    font-family: serif;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--secondary);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: var(--warning);
    margin-top: 1rem;
}

/* ---------- FAQ Section ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.8rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(90deg, #fff5e8, white);
}

.faq-question h3 {
    font-size: 1rem;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--secondary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.8rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fefaf5;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.8rem 1.5rem;
    max-height: 250px;
}

/* ---------- Admission Banner ---------- */
.admission-banner {
    background: var(--grad-rainbow);
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.admission-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.admission-banner h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.admission-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}

/* ---------- Quick Links ---------- */
.quick-links {
    background: var(--primary);
    padding: 3rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.quick-links-grid a {
    display: block;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 60px;
    transition: var(--transition);
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.quick-links-grid a:hover {
    background: var(--secondary);
    transform: translateX(5px) translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #cbd5e1;
    margin-top: 4rem;
    border-top: 4px solid #f97316;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h3:after,
.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #f97316;
    border-radius: 3px;
}

.footer-col p {
    color: #cbd5e1;
    margin: 0.6rem 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #f97316;
    transform: translateX(5px);
}

.admin-link {
    color: #fbbf24 !important;
    margin-top: 0.5rem;
    display: inline-block;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-info li i {
    width: 20px;
    color: #f97316;
    margin-top: 3px;
}

.contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-icons a:hover {
    background: #f97316;
    transform: translateY(-3px);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.map-container iframe {
    width: 100%;
    height: 180px;
    border: 0;
}

.marquee-footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 0.8rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(249,115,22,0.3);
    border-bottom: 1px solid rgba(249,115,22,0.3);
    margin: 2rem 0 1rem;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content p {
    color: #fbbf24;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid #2d3a5e;
    font-size: 0.85rem;
    color: #94a3b8;
}

.copyright .heart-icon {
    color: #ff6b6b;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-whatsapp, .float-call {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    text-decoration: none;
    color: white;
}

.float-whatsapp {
    background: #25d366;
}

.float-call {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.float-whatsapp:hover, .float-call:hover {
    transform: scale(1.1);
}

/* ============================================
   SCROLL TO TOP BUTTON - FINAL
   ============================================ */
.scroll-top {
    position: fixed !important;
    bottom: 30px !important;
    left: 20px !important;
    z-index: 999999 !important;
}

.scroll-top-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25) !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    cursor: pointer !important;
    border: none !important;
}

.scroll-top-btn i {
    font-size: 1.5rem !important;
}

.scroll-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
}

/* Mobile Scroll Button */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 80px !important;
        left: 15px !important;
    }
    .scroll-top-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    .scroll-top-btn i {
        font-size: 1.2rem !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   ============================================ */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .submenu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
        background: var(--gray-50);
    }
    .nav-menu > li:hover .submenu {
        display: block;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .section {
        padding: 3rem 0;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero-badge {
        font-size: 0.7rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .features-grid,
    .testimonial-grid,
    .faculty-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3:after,
    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-icons {
        justify-content: center;
    }
    .contact-info li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .map-container {
        max-width: 280px;
        margin: 0 auto;
    }
    .floating-buttons {
        bottom: 20px;
        right: 15px;
    }
    .float-whatsapp, .float-call {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }
    .hero-buttons .btn {
        max-width: 180px;
        padding: 8px 16px;
    }
    .gallery-grid,
    .faculty-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        width: 100%;
    }
    .scroll-top {
        bottom: 70px !important;
        left: 12px !important;
    }
    .scroll-top-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .floating-buttons, .quick-links, .admission-banner, .scroll-top {
        display: none;
    }
    body {
        background: white;
    }
    .container {
        padding: 0;
    }
}
/* ============================================
   WELCOME SECTION FIX - MOBILE
   ============================================ */

/* Welcome Section - Ensure visibility */
.welcome-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.welcome-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 4rem !important;
    flex-wrap: wrap !important;
}

.welcome-text {
    flex: 1 !important;
    display: block !important;
}

.welcome-text p {
    display: block !important;
    margin: 1.2rem 0 !important;
    color: var(--gray-600) !important;
    line-height: 1.7 !important;
}

.welcome-highlight {
    background: linear-gradient(135deg, #fff5e8, #ffe8e0) !important;
    padding: 1.5rem 2rem !important;
    border-radius: 28px !important;
    margin: 1.5rem 0 !important;
    border-left: 5px solid var(--secondary) !important;
    transition: var(--transition) !important;
    display: block !important;
}

.welcome-highlight p {
    margin-top: 0.5rem !important;
    font-style: italic !important;
}

.welcome-image {
    flex: 1 !important;
    text-align: center !important;
    display: block !important;
}

.welcome-image img {
    width: 100% !important;
    max-width: 450px !important;
    border-radius: 35px !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Mobile Fix for Welcome Section */
@media (max-width: 768px) {
    .welcome-wrapper {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .welcome-text {
        width: 100% !important;
        text-align: center !important;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem !important;
        display: inline-block !important;
    }
    
    .welcome-text h2:after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .welcome-text p {
        text-align: center !important;
        padding: 0 0.5rem !important;
    }
    
    .welcome-highlight {
        text-align: left !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .welcome-highlight p {
        font-size: 0.85rem !important;
        text-align: left !important;
    }
    
    .welcome-image {
        width: 100% !important;
    }
    
    .welcome-image img {
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    
    /* Fix for button */
    .welcome-text .btn {
        display: inline-block !important;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .welcome-text h2 {
        font-size: 1.3rem !important;
    }
    
    .welcome-text p {
        font-size: 0.85rem !important;
    }
    
    .welcome-highlight p {
        font-size: 0.8rem !important;
    }
}
/* ============================================
   MODERN MARQUEE NOTICE - WORKS ON ALL DEVICES
   ============================================ */

.marquee-notice {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--secondary);
    border-top: 1px solid rgba(249,115,22,0.3);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.marquee-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    overflow: hidden;
}

.marquee-bell {
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(0deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: scrollMarquee 25s linear infinite;
    color: var(--warning);
    font-weight: 500;
    font-size: 0.9rem;
    padding-right: 2rem;
}

.marquee-clone {
    animation: scrollMarquee2 25s linear infinite;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollMarquee2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause on hover */
.marquee-notice:hover .marquee-text {
    animation-play-state: paused;
}

.marquee-notice:hover .marquee-clone {
    animation-play-state: paused;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .marquee-notice {
        padding: 0.6rem 0;
    }
    
    .marquee-bell {
        font-size: 0.8rem;
    }
    
    .marquee-text {
        font-size: 0.7rem;
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .marquee-text {
        font-size: 0.6rem;
        animation-duration: 18s;
    }
    
    .marquee-wrapper {
        gap: 8px;
    }
}