/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-navy: #000080;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-text: #333333;
    --gray-text: #666666;
    --gold: #ffd700;
    --footer-dark: #000066;
    --shadow-sm: 0 5px 15px rgba(0,0,128,0.1);
    --shadow-md: 0 10px 25px rgba(0,0,128,0.15);
    --shadow-lg: 0 15px 35px rgba(0,0,128,0.2);
    --shadow-hover: 0 20px 40px rgba(0,0,128,0.25);
}

body {
    overflow-x: hidden;
    background-color: var(--white);
    line-height: 1.5;
}

/* Override Bootstrap body background */
body {
    background-color: var(--white) !important;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP ANNOUNCEMENT BAR ========== */
.top-announcement {
    background: linear-gradient(135deg, #000080, #0000b3);
    color: white;
    padding: 12px 0;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.announcement-content i {
    font-size: 1.5rem;
    color: #ffd700;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.announcement-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    height: 30px;
    display: flex;
    align-items: center;
}

.announcement-item {
    display: inline-block;
    padding-right: 50px;
    animation: scrollLeftToRight 20s linear infinite;
    white-space: nowrap;
}

@keyframes scrollLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.announcement-text:hover .announcement-item {
    animation-play-state: paused;
}

/* ========== NAVBAR ========== */
.navbar-container {
    padding: 10px 3%;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Override Bootstrap navbar styles */
.navbar {
    background-color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: 30px !important;
    flex-wrap: wrap !important;
}

.custom-navbar {
    background-color: var(--white);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-radius: 30px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-decoration: none;
    display: inline-block;
}

.logo-text {
    color: var(--primary-navy);
    font-weight: 800;
}

.logo-highlight {
    color: var(--gold);
    font-weight: 800;
}

/* Bootstrap navbar toggler override */
.navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 8px !important;
    font-size: 1.5rem !important;
    color: var(--primary-navy) !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler i {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px 0;
    list-style: none;
    margin: 0;
    width: 100%;
}

/* Bootstrap nav override */
.navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: block;
    padding: 12px 20px !important;
    color: var(--dark-text) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-navy) !important;
    color: var(--white) !important;
    border-radius: 30px;
}

.enroll-btn {
    margin: 10px 20px;
    display: block;
    text-align: center;
    border: 2px solid var(--primary-navy);
    border-radius: 30px;
    padding: 12px 20px !important;
    background: transparent !important;
    color: var(--primary-navy) !important;
    transition: all 0.3s ease;
    font-weight: 600;
}

.enroll-btn:hover {
    background-color: var(--primary-navy) !important;
    color: var(--white) !important;
}

.student-portal-link {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000080 !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.5rem 1.2rem !important;
    margin: 0 5px;
    border: 2px solid #000080;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.student-portal-link:hover {
    background: #000080;
    color: #ffd700 !important;
    border-color: #ffd700;
    transform: translateY(-2px);
}

.student-portal-link i {
    margin-right: 5px;
}

/* Tablet and Desktop */
@media screen and (min-width: 769px) {
    .navbar-container {
        padding: 20px 5%;
    }
    
    .navbar {
        padding: 0.8rem 2rem !important;
        border-radius: 50px !important;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo-text, .logo-highlight {
        font-weight: 800;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }
    
    .navbar-nav {
        display: flex;
        flex-direction: row;
        width: auto;
        align-items: center;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem;
        border-radius: 30px;
        font-weight: 500;
    }
    
    .enroll-btn {
        margin: 0 0 0 1rem;
        padding: 0.5rem 1.5rem !important;
        display: inline-block;
    }
    
    .student-portal-link {
        margin: 0 0 0 0.5rem;
        padding: 0.5rem 1.2rem !important;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    background-color: var(--primary-navy);
    padding: 0 5%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--white);
    border-radius: 0 0 50px 50px;
    margin: 0 5% 2rem;
    width: 90%;
    min-height: 550px;
}

.hero-content {
    flex: 1 1 500px;
    padding: 4rem 2rem 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 90%;
    font-weight: 400;
}

.hero-image {
    flex: 1 1 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 30px 30px 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    transition: transform 0.3s ease;
    align-self: flex-end;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-navy);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 4rem 5%;
}

.section-white {
    background-color: var(--white);
}

.section-navy {
    background-color: var(--primary-navy);
    color: var(--white);
    border-radius: 50px;
    margin: 2rem 5%;
    width: 90%;
    padding: 3rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-navy);
}

.section-navy .section-title::after {
    background-color: var(--white);
}

/* ========== POPULAR COURSES CARDS ========== */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1 1 250px;
    text-decoration: none;
    display: block;
    border: none;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.card.small-card {
    max-width: 280px;
}

.card.large-card {
    max-width: 350px;
    transform: scale(1.05);
}

.card.large-card:hover {
    transform: scale(1.08);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 700;
}

.card-content p {
    color: var(--gray-text);
    margin: 0;
    font-weight: 400;
}

/* ========== WHY CHOOSE US ========== */
.why-choose-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.why-choose-left {
    /*flex: 1 1 400px;*/
    text-align: center;
}

.why-choose-left img {
    width: 80%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background-color: #010166;
    object-fit: cover;
}

.why-choose-right {
    flex: 3 2 400px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ========== AUTO SCROLL CAROUSEL STYLES ========== */
.our-courses-section {
    overflow: hidden;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.carousel-title {
    font-size: 2rem;
    margin: 2rem 5% 1rem;
    color: var(--primary-navy);
    border-left: 5px solid var(--gold);
    padding-left: 1rem;
    font-weight: 700;
}

.step-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    padding: 2rem 0;
    margin: 0 auto;
}

.step-carousel-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    width: max-content;
    transition: transform 0.1s linear;
    will-change: transform;
}

.carousel-card {
    flex: 0 0 300px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,128,0.1);
}

.carousel-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.carousel-card .card-image {
    height: 180px;
    overflow: hidden;
}

.carousel-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-card:hover .card-image img {
    transform: scale(1.1);
}

.carousel-card .card-content {
    padding: 1.2rem;
}

.carousel-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 700;
}

.carousel-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.course-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-navy);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-carousel-container:hover .step-carousel-track {
    animation-play-state: paused;
}

.carousel-nav {
    display: none !important;
}

.carousel-progress {
    display: none !important;
}

/* ========== TESTIMONIAL SECTION ========== */
.testimonials-container {
    display: block;
    position: relative;
    min-height: 400px;
    margin: 2rem auto;
    max-width: 800px;
}

.testimonial-card {
    display: none;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 30px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease;
}

.testimonial-card:first-child {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--gold);
    object-fit: cover;
}

.testimonial-card .stars {
    margin-bottom: 1.5rem;
}

.testimonial-card .stars i {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-card p {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 400;
}

.testimonial-card h4 {
    color: var(--primary-navy);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.testimonial-card span {
    display: block;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 400;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-nav-btn {
    background: var(--primary-navy);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid var(--gold);
    font-size: 1.2rem;
}

.testimonial-nav-btn:hover {
    background: var(--gold);
    color: var(--primary-navy);
    transform: scale(1.1);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

.testimonial-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.dot:hover {
    background: var(--primary-navy);
}

/* ========== BLOG SECTION ========== */
.blog-section {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    padding: 4rem 5%;
    margin: 2rem 0;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: #000080;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,128,0.3);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.blog-date i {
    margin-right: 5px;
    color: #ffd700;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: white;
    font-weight: 700;
}

.blog-content p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    flex-grow: 1;
    font-weight: 400;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffd700;
    color: #000080 !important;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: fit-content;
}

.blog-btn i {
    transition: transform 0.3s ease;
}

.blog-btn:hover {
    background: transparent;
    color: white !important;
    border-color: #ffd700;
    transform: translateX(5px);
}

.blog-btn:hover i {
    transform: translateX(5px);
    color: #ffd700;
}

/* ========== QUICK ADMISSION ========== */
.quick-admission {
    text-align: center;
    padding: 3rem 5%;
}

.admission-btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    font-size: 2rem;
    background: linear-gradient(135deg, #000080, #0000b3);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: 2px solid var(--white);
}

.admission-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--footer-dark);
    color: var(--white);
    padding: 3rem 5% 1rem;
    border-radius: 50px 50px 0 0;
    margin: 2rem 5% 0;
    width: 90%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 180px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li i {
    width: 20px;
    color: var(--gold);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-col a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

.student-portal-footer {
    margin-top: 1.5rem;
    text-align: left;
}

.footer-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffd700;
    color: #000080 !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #ffd700;
}

.footer-portal-btn i {
    font-size: 1.1rem;
}

.footer-portal-btn:hover {
    background: transparent;
    color: #ffd700 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* ========== SCROLL TO TOP BUTTON - FIXED ========== */
.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #000080 !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 3px solid #ffd700 !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-to-top:hover {
    transform: scale(1.1) !important;
    background: #ffd700 !important;
    color: #000080 !important;
    border-color: #000080 !important;
}

/* ========== RESPONSIVE DESIGN - FIXED ========== */
@media screen and (max-width: 992px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        flex: 1 1 400px;
    }
    
    .hero-image img {
        max-height: 450px;
    }
    
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 2rem 5% 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
        align-items: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* FIXED HERO IMAGE FOR MOBILE */
    .hero-image {
        width: 100%;
        position: relative;
        margin-top: -330px !important;
        z-index: 1;
    }
    
    .hero-image img {
        max-height: 250px;
        width: 85%;
        margin: 0 auto;
        display: block;
        position: relative;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* FIXED LOGO SIZE FOR MOBILE */
    .logo {
        font-size: 0.9rem !important;
    }
    
    .logo-text, .logo-highlight {
        font-size: 0.9rem !important;
    }
    
    .student-portal-link {
        margin: 5px 20px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .why-choose-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .why-choose-left img {
        width: 70%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    
    .step-carousel-track {
        gap: 1rem;
    }
    
    .carousel-card {
        flex: 0 0 250px;
    }
    
    .testimonials-container {
        min-height: 450px;
    }
    
    .testimonial-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .testimonial-card p {
        font-size: 1rem;
    }
    
    .testimonial-nav {
        gap: 1rem;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .student-portal-footer {
        text-align: center;
    }
    
    .footer-portal-btn {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
}

@media screen and (max-width: 576px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-image {
        margin-top: -20px !important;
    }
    
    .hero-image img {
        max-height: 220px;
        width: 90%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card.small-card, .card.large-card {
        max-width: 100%;
        transform: none;
    }
    
    .card.large-card:hover {
        transform: translateY(-10px);
    }
    
    /* Smaller logo on very small screens */
    .logo {
        font-size: 0.8rem !important;
    }
    
    .logo-text, .logo-highlight {
        font-size: 0.8rem !important;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 1.5rem 1% 0;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .hero-image {
        margin-top: -15px !important;
    }
    
    .hero-image img {
        max-height: 180px;
        width: 95%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 0.6rem 1rem;
    }
    
    .carousel-card {
        flex: 0 0 200px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card img {
        width: 80px;
        height: 80px;
    }
    
    .testimonial-card .stars i {
        font-size: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.95rem;
    }
    
    .testimonial-card h4 {
        font-size: 1.1rem;
    }
    
    .admission-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
    
    .footer-col {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .student-portal-footer {
        text-align: center;
    }
    
    /* Extra small logo */
    .logo {
        font-size: 0.7rem !important;
    }
    
    .logo-text, .logo-highlight {
        font-size: 0.7rem !important;
    }
}

@media screen and (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-image {
        margin-top: -10px !important;
    }
    
    .hero-image img {
        max-height: 150px;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .carousel-card {
        flex: 0 0 180px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .logo {
        font-size: 0.65rem !important;
    }
    
    .logo-text, .logo-highlight {
        font-size: 0.65rem !important;
    }
}

@media screen and (min-width: 1400px) {
    .container {
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .carousel-btn:hover {
        transform: none;
    }
    
    .nav-menu a,
    .btn,
    .card-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, 
    select, 
    textarea {
        font-size: 16px !important;
    }
}

/* Navbar - Sab kuch ek line me */
.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 10px 30px !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
}

.nav-item {
    display: inline-block !important;
    white-space: nowrap !important;
}

.nav-link {
    display: inline-block !important;
    white-space: nowrap !important;
    padding: 8px 12px !important;
}

.enroll-btn, .student-portal-link {
    white-space: nowrap !important;
}

/* Mobile par menu collapse ho */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }
}