/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --top-bar-bg: #5dade2; /* Sky Blue from reference */
    --nav-bg: #34495e;     /* Navy Blue from reference */
    --text-white: #ffffff;
    --accent-yellow: #f1c40f;
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background-color: #5DA7F0;
    color: var(--text-white);
    padding: 11px 12%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    height: 60px;
    z-index: 1001;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.notification-badge {
    background: #e74c3c;
    color: white;
    padding: 0;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
    height: 18px;
    width: 18px;
    min-width: 18px;
    transform: translateY(-1px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-1px) scale(1); }
    50% { transform: translateY(-1px) scale(1.1); }
    100% { transform: translateY(-1px) scale(1); }
}

.top-links {
    margin-left: 10px;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.marquee-container {
    color: #fff;
    padding: 5px 0;
    width: 620px;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    overflow: hidden;
}

.news-tag {
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 15px; /* Reduced gap as requested */
    white-space: nowrap;
    display: inline-block;
}

.tag-blue { background-color: #3498db; }
.tag-orange { background-color: #e67e22; }
.tag-green { background-color: #27ae60; }
.tag-purple { background-color: #9b59b6; }

.g20-logo {
    display: flex;
    align-items: center;
}

.g20-logo img {
    height: 50px;
    background: white;
    padding: 2px;
    border-radius: 2px;
}

/* Main Header */
.main-header {
    background-color: #334878;
    padding: 0 12%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
}

.logo-container {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 100px;
}

nav {
    grid-column: 2;
    justify-self: center;
}

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

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

.nav-links li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0 18px;
    transition: color 0.3s;
}

.nav-links li:not(:last-child)::after {
    content: '|';
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.nav-links li a:hover {
    color: var(--accent-yellow);
}

/* Hero Section */
.hero {
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 50px;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    width: 300%;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    flex: 0 0 33.3333%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 1000px;
    z-index: 2;
    margin-top: -120px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out both;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 15px 0;
    animation: fadeInUp 1s ease-out both 0.2s;
}

.hero-divider::before,
.hero-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.8);
    max-width: 250px;
}

.divider-dot {
    width: 10px;
    height: 10px;
    background: #5dade2;
    border-radius: 50%;
    margin: 0 20px;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out both 0.4s;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    border: 1px solid #fff;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    transition: color 0.4s ease;
    animation: fadeInUp 1s ease-out both 0.6s;
    overflow: hidden;
    z-index: 1;
}

.hero-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 300%;
    background-color: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
    border-radius: 50%;
}

.hero-btn:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.hero-btn:hover {
    color: #000;
    border-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 20px;
    z-index: 10;
}

.arrow-left { left: 30px; }
.arrow-right { right: 30px; }

.hero-indicators {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
}

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

/* Info Cards Section */
.info-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    height: 180px;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-icon-circle {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 1.5rem;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 500;
}

/* Hover Animation: Zoom and Rotate */
.info-card:hover i {
    transform: scale(1.4) rotate(360deg);
}

/* Individual Card Colors */
.card-apply { background-color: #E6B163; }
.card-forms { background-color: #5DA7F0; }
.card-corner { background-color: #89A35F; }
.card-tieups { background-color: #334878; }
.card-partners { background-color: #2D807A; }

.info-card:hover {
    filter: brightness(1.1);
}

/* Welcome Section */
.welcome-section {
    padding: 60px 12%;
    background-color: #f9f9f9;
    text-align: center;
}

.welcome-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.welcome-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #334878;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* More Details Button */
.more-details-btn {
    margin-top: 10px;
    padding: 10px 30px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.more-details-btn i {
    font-size: 1rem;
    transition: transform 0.4s ease;
}

.more-details-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #334878;
    transition: left 0.4s ease;
    z-index: -1;
}

.more-details-btn:hover {
    color: white;
    border-color: #334878;
}

.more-details-btn:hover::before {
    left: 0;
}

.more-details-btn:hover i {
    transform: rotate(180deg) scale(1.2);
}

/* Courses Section */
.courses-section {
    padding: 60px 8%;
    background: #fff;
    text-align: center;
}

.courses-section h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.course-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.course-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    font-size: 1.05rem;
    color: #334878;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.course-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.course-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more i {
    font-size: 0.75rem;
    color: #5DA7F0;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.course-card:hover .course-footer {
    background: #f9f9f9;
}

/* Individual accent bars */
.course-card::after {
    content: "";
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.course-card:nth-child(1)::after { background: #334878; }
.course-card:nth-child(2)::after { background: #E6B163; }
.course-card:nth-child(3)::after { background: #5DA7F0; }
.course-card:nth-child(4)::after { background: #89A35F; }
.course-card:nth-child(5)::after { background: #2D807A; }
.course-card:nth-child(6)::after { background: #D9534F; }
.course-card:nth-child(7)::after { background: #8E44AD; }
.course-card:nth-child(8)::after { background: #A0522D; }

/* Course Finder Section */
.course-finder {
    padding: 80px 12%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/course_finder_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
}

.course-finder h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-finder p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.finder-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.finder-selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 20px;
}

.select-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 55px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.select-wrapper i {
    color: #999;
    font-size: 1.1rem;
    margin-right: 15px;
}

.select-wrapper select {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: #555;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.select-wrapper::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: #555;
    pointer-events: none;
}

.finder-btn {
    background-color: #ff4500; /* Orange/Red as requested */
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(255, 69, 0, 0.3);
}

.finder-btn:hover {
    background-color: #e63e00;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 69, 0, 0.4);
}

/* Photo Gallery Section */
.photo-gallery {
    padding: 60px 10%;
    background-color: #fff;
    text-align: center;
}

.photo-gallery h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.photo-gallery h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #5DA7F0;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 72, 120, 0.8); /* Navy overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

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

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

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

/* View All Gallery Button */
.view-gallery-container {
    margin-top: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 40px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.6, 0, 0.4, 1);
    z-index: 1;
}

.view-all-btn i {
    font-size: 1.1rem;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.view-all-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #334878; /* University Navy */
    transition: left 0.4s cubic-bezier(0.6, 0, 0.4, 1);
    z-index: -1;
}

.view-all-btn:hover {
    color: white;
    border-color: #334878;
    transform: scale(1.05);
}

.view-all-btn:hover::before {
    left: 0;
}

.view-all-btn:hover i {
    transform: rotate(180deg) scale(1.3);
}

/* Latest News Section */
.latest-news-section {
    padding: 80px 8%;
    background-color: #f4f7f6;
    text-align: center;
    position: relative;
}

.latest-news-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-img-box {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 72, 120, 0.7); /* Navy overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-circle {
    width: 70px;
    height: 70px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay-circle i {
    color: white;
    font-size: 1.5rem;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-card:hover .overlay-circle {
    transform: scale(1);
}

.news-content {
    padding: 20px 15px;
    flex: 1;
}

.news-content h3 {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Hover Effects */
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.news-card:hover .news-img-box img {
    transform: scale(1.15);
}

.news-card:hover h3 {
    color: #334878;
}

/* Slider Arrows */
.news-arrow {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.news-arrow:hover {
    background: #334878;
    color: white;
    transform: scale(1.1);
}



/* Partners Section */
.partners-section {
    padding: 80px 10%;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
    border-top: 1px solid #eee;
}

.partner-box {
    margin-bottom: 40px;
}

.partner-heading {
    background-color: #334878;
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    padding: 10px 5px;
}

.logo-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.logo-item img {
    max-height: 85px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

/* Attractive Hover Effect */
.logo-item:hover {
    transform: translateY(-8px) scale(1.08);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.right-partners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



/* Main Footer */
.main-footer {
    width: 100%;
    background-color: #334878;
    color: white;
    padding: 0;
    text-align: left;
    border-top: none;
}

.footer-top {
    padding: 60px 8%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #5DA7F0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #fff;
    color: #555;
    padding: 40px 12% 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-contact {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #888;
}

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

.social-links a {
    color: #334878;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #5DA7F0;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 5%;
    }
    
    .main-header {
        padding: 0 5%;
    }
    
    .nav-links li a {
        padding: 0 10px;
        font-size: 0.75rem;
    }
}



/* 
/* --- MOBILE MENU SYSTEM --- */
.menu-toggle {
    display: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 101;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #334878;
    z-index: 999999; /* Highest priority */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #5DA7F0;
}

.drawer-logo img {
    height: 50px;
}

.close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #334878 !important;
    font-size: 2rem !important;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000000;
    margin-right: 20px; /* Moved right as requested */
}

.mobile-nav-links {
    list-style: none;
    overflow-y: auto;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-nav-links li a i {
    width: 25px;
    color: #5DA7F0;
    font-size: 1.2rem;
}

.mobile-nav-links li a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 35px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 999998; /* Just below drawer */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .nav-links, nav {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .main-header {
        display: flex !important;
        grid-template-columns: none !important;
        justify-content: space-between !important;
        align-items: center;
        padding: 0 20px !important;
        height: 75px;
        background-color: #334878;
        position: relative;
        z-index: 100;
    }

    .logo-container {
        grid-column: auto;
        justify-self: start;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .logo-container img,
    .logo-container svg {
        height: 60px;
        width: auto;
        display: block;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .courses-grid, .gallery-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 480px) {
    .hero {
        height: 450px !important; /* Reduced height */
        padding-top: 20px;
    }

    .top-bar {
        height: auto;
        flex-direction: column;
        padding: 8px 5px;
        gap: 5px;
    }

    .top-bar-left {
        font-size: 0.75rem !important;
        text-align: center;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
        line-height: 1.4 !important;
    }

    .top-links {
        display: block !important;
        width: 100% !important;
    }


    .top-bar-right {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    /* Hero Mobile Overrides */
    .hero {
        height: 400px !important;
    }

    .hero-content {
        padding: 0 15px !important;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    }

    .hero-content p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .hero-btn {
        font-size: 0.8rem !important;
        padding: 10px 20px !important;
        display: inline-block !important;
    }

    .hero-divider {
        margin: 10px auto !important;
        width: 60px !important;
    }


    .marquee-container {
        width: calc(100% - 50px) !important;
    }

    .news-tag {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
        margin: 0 4px !important;
        border-radius: 4px !important;
    }

    .g20-logo img {
        height: 25px !important;
    }

    .hero p {
        font-size: 0.9rem;
    }


    .hero-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        width: 90%; /* Fit to screen */
    }


    .slider-nav button, .slider-arrow {
        font-size: 1.2rem !important;
        top: 80% !important; /* Moved lower */
    }


    .hero-divider::before,
    .hero-divider::after {
        max-width: 60px !important; /* Reduced width for mobile */
    }

    .hero-indicators {
        bottom: 10px !important;
    }





    .info-cards {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        padding: 10px 5%;
        gap: 10px;
        background: #f8f9fa;
        margin-top: 0 !important; /* Removed negative margin to fix overlap */
        box-shadow: none !important;
    }

    .info-card:hover {
        transform: none !important; /* Disabled hover lift on mobile */
        box-shadow: none !important;
    }

    .info-card {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 15px 25px !important;
        height: 70px !important;
        border-radius: 10px !important;
        gap: 20px !important;
        border: none !important; /* Ensured no border */
    }


    .card-icon-circle {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0 !important;
    }

    .card-icon-circle i {
        font-size: 1.2rem !important;
    }

    .info-card h3 {
        font-size: 1rem !important;
        margin-top: 0 !important;
    }



    .welcome-section {
        padding: 40px 20px !important;
    }

    .welcome-section h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .welcome-section p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        text-align: justify;
    }

    .more-details-btn {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }


    .courses-section {
        padding: 40px 10px !important;
    }

    .courses-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 30px !important;
    }


    .courses-grid {
        grid-template-columns: 1fr !important; /* One card per line as requested */
        gap: 25px !important;
        padding: 0 10px;
    }

    .course-card img {
        height: 200px !important; /* Larger image for full-width card */
    }

    .course-card-content {
        padding: 20px !important;
    }

    .course-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }

    .course-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        display: block !important;
        -webkit-line-clamp: none !important;
        overflow: visible !important;
    }


    .read-more {
        font-size: 0.75rem !important;
        margin-top: 10px !important;
    }


    .course-finder {
        padding: 40px 20px !important;
    }

    .course-finder h2 {
        font-size: 1.8rem !important;
    }


    .finder-form {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    .finder-selects {
        flex-direction: column !important; /* Forces vertical stacking */
        width: 100% !important;
        gap: 15px !important;
        display: flex !important;
    }

    .select-wrapper {
        width: 100% !important; /* Ensure full width for each box */
        margin: 0 !important;
    }


    .search-btn {
        width: 100% !important;
        margin-top: 10px !important;
    }


    .photo-gallery {
        padding: 40px 10px !important;
    }

    .photo-gallery h2 {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2-column gallery for mobile */
        gap: 10px !important;
    }

    .gallery-item {
        height: 150px !important;
    }

    .view-all-btn {
        padding: 12px 25px !important;
        font-size: 0.85rem !important;
    }


    .latest-news-section {
        padding: 40px 10px !important;
    }

    .latest-news-section h2 {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    .news-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 15px 5px !important;
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .news-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .news-card {
        flex: 0 0 85% !important; /* Show one card prominently */
        scroll-snap-align: center !important;
        margin-bottom: 0 !important;
    }

    .news-content h3 {
        font-size: 1rem !important;
    }

    .news-arrow {
        display: none !important; /* Arrows aren't needed with swipe */
    }

    .partners-section {
        grid-template-columns: 1fr;
    }
}






