@media (max-width: 600px) {
    .mobile-sidebar-header .mobile-sidebar-logo {
        margin: 0 !important;
        display: block !important;
    }
}

/* Password toggle icon styling */
.position-relative {
    position: relative;
}

.show-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-password-btn i {
    font-size: 1.15rem;
    color: #888;
}

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

input.form-input.w-100 {
    padding-right: 44px !important;
}

/* Vidyaniketan - Modern Professional Stylesheet */

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

/* ---- Journey carousel tweaks + CTA banner ---- */
.journey-carousel {
    width: 100%;
}

.journey-track {
    gap: 1.25rem;
    animation: journeyLoop 16s linear infinite;
}

.journey-card {
    min-width: 260px;
    max-width: 300px;
}

/* Removed offsets to prevent 'hanging' look */

.journey-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.journey-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.journey-card h3 {
    font-size: 1.05rem;
}

.journey-card p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .journey-card {
        min-width: 220px;
        max-width: 240px;
        padding: 1rem 1.05rem;
    }

    .journey-track {
        animation-duration: 12s;
    }
}

.cta-online-banner {
    position: relative;
    background: linear-gradient(135deg, #f7a447 0%, #f29b3a 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-top: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.cta-overlay-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    background: #fce8c9;
    border-radius: 50%;
    top: -120px;
    left: -80px;
    opacity: 0.95;
    pointer-events: none;
}

.cta-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-copy {
    max-width: 640px;
    color: #0b0c2e;
}

.cta-kicker {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0b0c2e;
}

.cta-kicker span {
    font-weight: 800;
}

.cta-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #080825;
}

.cta-sub {
    margin: 0.2rem 0 0.9rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.cta-sub span {
    font-weight: 800;
}

.cta-list {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-weight: 600;
    color: #0b0c2e;
}

.cta-list i {
    margin-right: 0.4rem;
}

.cta-action {
    flex: 0 0 auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    background: #ffffff;
    color: #0b0c2e;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
    .cta-title {
        font-size: 1.8rem;
    }

    .cta-sub {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .cta-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-action {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .cta-online-banner {
        padding: 1.4rem 1.2rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
}

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

/* Header & Navigation */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Mobile-only sticky header for specific pages */
@media (max-width: 991px) {
    .header.sticky-mobile {
        position: sticky;
        top: 0;
        width: 100%;
    }
}





.navbar {
    padding: 1rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 10px;
    }
}

.nav-brand {
    flex: 1;
    text-align: center;
}

/* Home page (desktop): logo left, nav links centered, user menu right */
@media (min-width: 992px) {
    .header.home-page .navbar .container {
        display: grid;
        /* True center: middle column is auto, sides are equal flexible space */
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: 1.75rem;
    }

    .header.home-page .nav-brand {
        flex: initial;
        text-align: left;
        justify-self: start;
        grid-column: 1;
    }

    .header.home-page .nav-brand h1 {
        justify-content: flex-start;
    }

    .header.home-page .nav-menu.desktop-menu {
        grid-column: 2;
        justify-self: center;
    }

    .header.home-page .user-menu-wrapper {
        grid-column: 3;
        justify-self: end;
    }
}

.nav-brand h1 {
    color: #2563eb;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

/* Remove button styling from nav menu buttons - make them look like regular links */
.nav-menu a.btn-primary {
    background: none;
    color: #1f2937;
    padding: 0;
    border: none;
    font-weight: 500;
}

.nav-menu a.btn-primary:hover {
    background: none;
    color: #2563eb;
    transform: none;
    box-shadow: none;
}

/* Mobile Menu Toggle Button */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggler-icon {
    display: block;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
    z-index: 1001;
}

.user-menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.user-menu-toggle:hover {
    color: #2563eb;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1002;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.user-email {
    color: #6b7280;
    font-size: 0.85rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.3s;
    border-bottom: 1px solid #e5e7eb;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #f9fafb;
    color: #2563eb;
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1003;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #2563eb;
    color: white;
}

.mobile-sidebar-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: #f9fafb;
    color: #2563eb;
    padding-left: 2rem;
}

.mobile-menu a i {
    width: 20px;
    text-align: center;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1002;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f59e0b;
    color: white;
}

.btn-secondary:hover {
    background: #d97706;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: visible;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(226, 220, 130, 0.7) 0%, rgba(30, 64, 175, 0.7) 100%);
    z-index: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Education News Section - Innovative Design */
.education-news-innovative {
    padding: 3rem 0;
    position: relative;
    background: none;
}

.news-widget {
    width: 100%;
    background: #f9fafb;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

#educationNewsWidget {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.news-widget:hover {
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.25);
    transform: translateY(-3px);
}

.news-widget-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.news-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-widget-header:hover {
    opacity: 0.9;
}


.news-widget-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.news-widget-title i {
    font-size: 1.5rem;
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-widget-title-content {
    flex: 1;
}

.news-widget-title h2 {
    font-size: 2rem;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.news-widget-title h2 .news-toggle-icon {
    margin-left: 0.5rem;
}

.news-widget-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.news-widget-date {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-widget-content {
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-bottom 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.news-widget-content.expanded {
    max-height: 2000px;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.news-widget-content.collapsed {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
}

.news-toggle-icon {
    font-size: 1.25rem;
    color: #2563eb;
    transition: transform 0.3s ease;
}

.news-widget-header.expanded .news-toggle-icon {
    transform: rotate(180deg);
}

.news-widget-items {
    display: grid;
    gap: 1.25rem;
}

.news-widget-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.news-widget-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.news-widget-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem;
}

.news-widget-item-content {
    flex: 1;
}

.news-widget-item-content h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.news-widget-item-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.news-widget-item-date {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-widget-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-widget-footer:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.news-widget-footer i {
    transition: transform 0.3s ease;
}

.news-widget-footer:hover i {
    transform: translateX(5px);
}

.news-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.news-loading i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.news-error {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: scale(1);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
}

.news-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.news-modal-list {
    display: grid;
    gap: 1.5rem;
}

.news-modal-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.news-modal-item:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-modal-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-modal-item-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.news-modal-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-modal-item-date {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-modal-item-source {
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-modal-item h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.news-modal-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.news-modal-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-modal-item-link:hover {
    color: #1e40af;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .education-news-innovative {
        padding: 2rem 0;
    }

    .news-widget {
        padding: 1.5rem;
    }

    .news-widget-top-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .news-widget-header {
        flex-direction: column;
        gap: 1rem;
    }

    .news-widget-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-widget-title i {
        font-size: 1rem;
    }

    .news-widget-title-content {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .news-widget-title h2 {
        font-size: 1.1rem;
        line-height: 1.3;
        display: block;
    }

    .news-widget-title h2 .news-toggle-icon {
        display: inline;
        margin-left: 0.3rem;
        vertical-align: middle;
    }

    .news-widget-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .news-widget-footer {
        width: 100%;
        padding: 1rem;
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .news-widget {
        display: flex;
        flex-direction: column;
    }

    .news-widget-top-row {
        display: contents;
    }

    .news-widget-header {
        order: 1;
    }

    .news-widget-content {
        order: 2;
        margin: 0;
    }

    .news-widget-content.expanded {
        max-height: 3000px;
        margin: 1rem 0;
    }

    .news-widget-footer {
        order: 3;
    }

    .news-widget-item {
        flex-direction: column;
        text-align: center;
    }

    .news-widget-item-icon {
        margin: 0 auto;
    }

    .news-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .news-modal-header {
        padding: 1.5rem;
    }

    .news-modal-header h2 {
        font-size: 1.25rem;
    }

    .news-modal-body {
        padding: 1.5rem;
    }

    .news-modal-item {
        padding: 1.25rem;
    }

    .news-modal-item h3 {
        font-size: 1.1rem;
    }
}

/* Education News Page */
.news-page {
    padding: 4rem 0;
    background: #f9fafb;
    min-height: 80vh;
}

.news-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #2563eb;
}

.news-page-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.news-page-header h1 i {
    color: #2563eb;
}

.news-page-date {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
}

.news-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #2563eb;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-category i {
    font-size: 1rem;
}

.news-time {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-card h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-source {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-page-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.news-page-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .news-page {
        padding: 2rem 0;
    }

    .news-page-header h1 {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-page-date {
        font-size: 0.95rem;
    }

    .news-card {
        padding: 1.5rem;
    }

    .news-card h2 {
        font-size: 1.25rem;
    }

    .news-card p {
        font-size: 0.95rem;
    }

    .news-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* College Admission Procedure Timeline */
.admission-timeline {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    /* Important: allow sticky children (timeline menu) to work */
    overflow: visible;
}

.timeline-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.timeline-menu {
    position: sticky;
    top: 110px;
    align-self: start;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    isolation: isolate;
}

.timeline-progress {
    position: absolute;
    left: 19px;
    top: 28px;
    width: 4px;
    height: 0;
    background: #2563eb;
    border-radius: 8px;
    transition: height 0.25s ease;
    pointer-events: none;
}

.timeline-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem 0.65rem 0.4rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
}

.timeline-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: transparent;
    border-radius: 999px;
    transition: background 0.25s ease;
}

.timeline-menu-item:hover {
    background: #f8fafc;
    color: #111827;
}

.timeline-menu-item.active {
    background: #f8fafc;
    color: #111827;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.timeline-menu-item.active::before {
    background: #2563eb;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background: #ffffff;
    box-shadow: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.timeline-menu-item.active .timeline-dot {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: none;
}

.timeline-label {
    font-size: 0.98rem;
    letter-spacing: 0.1px;
}

.timeline-content {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0.25rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: none;
    overflow: visible;
    scroll-behavior: smooth;
}

.timeline-card {
    padding: 1.4rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border-color: rgba(17, 24, 39, 0.12);
}

.timeline-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.timeline-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: none;
    flex-shrink: 0;
}

/* Keep the menu sticky for the full section.
   Avoid forcing a tall height here (it makes sticky "end early" near the bottom). */
.timeline-menu {
    max-height: calc(100vh - 140px);
    overflow: auto;
}

.timeline-card-tag {
    padding: 0.32rem 0.6rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(55, 65, 81, 0.12);
}

.timeline-card h3 {
    margin: 0 0 0.35rem 0;
    color: #111827;
    font-size: 1.2rem;
}

.timeline-card-body {
    margin-top: 0.25rem;
}

.timeline-card-body p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .timeline-menu {
        position: relative;
        top: 0;
    }

    .timeline-content {
        max-height: none;
        overflow: visible;
    }

    .timeline-progress {
        display: none;
    }
}

@media (max-width: 640px) {
    .timeline-menu {
        padding: 1.1rem 1rem;
    }

    .timeline-card {
        padding: 1.1rem 1rem;
    }
}

.admission-timeline-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1f2937;
    font-weight: 700;
    animation: fadeInDown 0.8s ease-out;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.timeline-nav {
    display: none;
}

.game-path-desktop {
    display: none;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #1e40af, #7c3aed);
    transform: translateX(-50%);
    animation: drawLine 1.5s ease-out 0.5s backwards;
}

@keyframes drawLine {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.timeline-step {
    position: relative;
    animation: fadeInUp 0.8s ease-out backwards;
}

.timeline-step:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-step:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-step:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-step:nth-child(4) {
    animation-delay: 0.8s;
}

.timeline-step:nth-child(5) {
    animation-delay: 1.0s;
}

.timeline-step:nth-child(6) {
    animation-delay: 1.2s;
}

.timeline-step:nth-child(7) {
    animation-delay: 1.4s;
}

.timeline-step:nth-child(odd) {
    text-align: right;
    padding-right: 2rem;
}

.timeline-step:nth-child(even) {
    text-align: left;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline-step-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.timeline-step-content::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-step:nth-child(odd) .timeline-step-content::before {
    right: -2.5rem;
}

.timeline-step:nth-child(even) .timeline-step-content::before {
    left: -2.5rem;
}

.timeline-step-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

.timeline-step-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    animation: bounceIn 0.8s ease-out 0.3s backwards;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.timeline-step:nth-child(odd) .timeline-step-icon {
    margin-left: auto;
    margin-right: 0;
}

.timeline-step:nth-child(even) .timeline-step-icon {
    margin-left: 0;
    margin-right: auto;
}

.timeline-step-content:hover .timeline-step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.timeline-step-number {
    position: absolute;
    top: -12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    background: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    border: 2px solid #2563eb;
    animation: scaleIn 0.6s ease-out 0.5s backwards;
}

.timeline-step:nth-child(odd) .timeline-step-number {
    right: 2rem;
}

.timeline-step:nth-child(even) .timeline-step-number {
    left: 2rem;
}

.timeline-step-content h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin: 0.75rem 0;
    font-weight: 600;
}

.timeline-step-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* IBM-style left navigation + vertical timeline (desktop only) */
@media (min-width: 900px) {
    .timeline-container {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Hide the game-path "road" on desktop for IBM-style layout */
    .game-path-desktop {
        display: none;
    }

    /* Left side nav (injected by JS) */
    .timeline-nav {
        width: 240px;
        flex: 0 0 240px;
        position: sticky;
        top: 110px;
        align-self: flex-start;
        padding-left: 0.5rem;
    }

    .timeline-nav-list {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.25rem 0 0.25rem 1rem;
        margin: 0;
    }

    .timeline-nav-list::before {
        content: '';
        position: absolute;
        left: 0.25rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #d1d5db;
    }

    .timeline-nav-item {
        appearance: none;
        background: transparent;
        border: 0;
        padding: 0.5rem 0.5rem 0.5rem 1.5rem;
        text-align: left;
        cursor: pointer;
        color: #374151;
        font-weight: 600;
        font-size: 0.95rem;
        line-height: 1.2;
        position: relative;
        border-radius: 10px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .timeline-nav-item::before {
        content: '';
        position: absolute;
        left: -0.1rem;
        top: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        transform: translateY(-50%);
        background: #9ca3af;
        border: 2px solid #ffffff;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    }

    .timeline-nav-item:hover {
        background: rgba(37, 99, 235, 0.06);
        color: #1f2937;
    }

    .timeline-nav-item.active {
        background: rgba(37, 99, 235, 0.10);
        color: #2563eb;
    }

    .timeline-nav-item.active::before {
        background: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    }

    /* Right-side scroll panel (injected by JS) */
    .timeline-content-panel {
        flex: 1 1 auto;
        position: relative;
        height: 650px;
        max-height: calc(100vh - 220px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.75rem;
        border-radius: 14px;
        scroll-behavior: smooth;
    }

    .timeline-content-panel::-webkit-scrollbar {
        width: 10px;
    }

    .timeline-content-panel::-webkit-scrollbar-thumb {
        background: rgba(37, 99, 235, 0.22);
        border-radius: 999px;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    .timeline-content-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Timeline content becomes single-column inside the panel */
    .timeline-content-panel .timeline-steps {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: relative;
        padding-left: 3.25rem;
    }

    .timeline-content-panel .timeline-line {
        left: 1.4rem;
        top: 0;
        bottom: 0;
        transform: none;
        width: 3px;
        background: linear-gradient(180deg, #2563eb, #1e40af, #7c3aed);
    }

    .timeline-content-panel .timeline-step {
        text-align: left;
        padding: 0;
        margin: 0;
    }

    .timeline-content-panel .timeline-step:nth-child(even),
    .timeline-content-panel .timeline-step:nth-child(odd) {
        text-align: left;
        padding: 0;
        margin-top: 0;
    }

    /* Connect each card to the vertical line */
    .timeline-content-panel .timeline-step-content::before {
        left: -3.0rem;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Keep the step number consistent inside the card */
    .timeline-content-panel .timeline-step-number {
        left: 1rem;
        right: auto;
    }
}

/* Timeline Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
    }
}

@media (max-width: 1024px) {

    /* Mobile: turn the timeline menu into a top sticky nav bar for this section */
    .timeline-grid {
        display: block;
    }

    .timeline-menu {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        margin-left: -10px;
        /* remove container side padding on mobile */
        margin-right: -10px;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        z-index: 5;
        border: 1px solid #e5e7eb;
    }

    .timeline-progress {
        display: none;
    }

    .timeline-menu-item {
        flex: 0 0 auto;
        padding: 0.5rem 0.9rem;
        border-radius: 999px;
        border: 1px solid transparent;
        gap: 0.35rem;
    }

    .timeline-menu-item::before {
        display: none;
    }

    .timeline-menu-item.active {
        background: #eef2ff;
        border-color: rgba(37, 99, 235, 0.25);
        box-shadow: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        margin-top: 0.5rem;
    }

    .admission-timeline {
        padding: 3rem 0;
    }

    .admission-timeline-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .timeline-line {
        left: 2rem;
        transform: none;
    }

    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-step:nth-child(odd),
    .timeline-step:nth-child(even) {
        text-align: left;
        padding-left: 4rem;
        padding-right: 0;
        margin-top: 0;
    }

    .timeline-step:nth-child(odd) .timeline-step-content::before,
    .timeline-step:nth-child(even) .timeline-step-content::before {
        left: -3.5rem;
        right: auto;
    }

    .timeline-step:nth-child(odd) .timeline-step-icon,
    .timeline-step:nth-child(even) .timeline-step-icon {
        margin-left: 0;
        margin-right: auto;
    }

    .timeline-step:nth-child(odd) .timeline-step-number,
    .timeline-step:nth-child(even) .timeline-step-number {
        left: 2rem;
        right: auto;
    }

    .timeline-step-content {
        padding: 1.5rem;
    }

    .timeline-step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .timeline-step-content h3 {
        font-size: 1.25rem;
    }

    .timeline-step-content p {
        font-size: 0.9rem;
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
    font-weight: 700;
}

/* Colleges Grid */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.college-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.college-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 8px;
}

.college-rating .fa-star {
    color: #d1d5db;
    font-size: 0.875rem;
}

.college-rating .fa-star.active {
    color: #f59e0b;
}

.college-logo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.college-logo-placeholder {
    width: 100%;
    height: 150px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: #6b7280;
}

.college-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.college-type {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.college-location {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: #ffffff;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step p {
    color: #6b7280;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #2563eb;
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.category-card h3 {
    font-size: 1.1rem;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 4rem auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Dashboard Styles */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

/* Table Styles */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

table tr:hover {
    background: #f9fafb;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #2563eb;
}

/* Responsive */
@media (max-width: 768px) {

    /* Show mobile menu toggle */
    .navbar-toggler {
        display: block;
    }

    /* Hide desktop menu on mobile */
    .desktop-menu {
        display: none;
    }

    /* Center logo on mobile */
    .nav-brand {
        flex: 1;
        text-align: center;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .nav-brand h1 .fas.fa-graduation-cap {
        font-size: 0.9rem;
    }

    /* Show user menu toggle */
    .user-menu-toggle {
        display: flex;
        font-size: 1.4rem;
    }

    .navbar-toggler {
        font-size: 1.2rem;
        padding: 0.25rem;
    }

    .header {
        padding: 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .hero-buttons .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
        min-width: auto;
    }

    /* Smaller buttons on mobile */
    .btn-primary,
    .btn-secondary {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .carousel-controls {
        padding: 0 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Smaller carousel indicators on mobile */
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
        border: 1.5px solid rgba(255, 255, 255, 0.8);
    }

    .carousel-indicators .indicator.active {
        transform: scale(1.1);
    }

    .colleges-grid {
        grid-template-columns: 1fr;
    }

    /* Smaller section titles on mobile */
    .section-title {
        font-size: .9rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .hero-buttons .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
    }

    /* Adjust container padding on mobile */
    .container {
        padding: 0 10px;
    }

    /* Make navbar more compact on mobile */
    .navbar .container {
        padding: 0 10px;
    }
}

/* Our Role in Your Journey - carousel */
.journey-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
    display: block;
}

@media (min-width: 1024px) {
    .journey-carousel {
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }
}

.journey-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: journeyLoop 30s linear infinite;
    align-items: center;
    padding: 2rem 0;
}

.journey-card {
    width: 300px;
    height: 220px;
    flex-shrink: 0;
    color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.journey-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.journey-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.journey-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.gradient-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

@keyframes journeyLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .journey-card {
        width: 260px;
        height: 180px;
        padding: 1.5rem;
    }

    .journey-track {
        animation-duration: 24s;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) {

    /* Hide mobile sidebar on desktop */
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none;
    }

    /* Show desktop menu */
    .desktop-menu {
        display: flex;
    }

    /* Larger hero section on desktop */
    .hero {
        padding: 8rem 0;
        min-height: 600px;
    }

    .carousel-slide {
        min-height: 600px;
    }
}

/* ========================================
   COLLEGE DETAILS PAGE - MOBILE RESPONSIVE
   ======================================== */

/* Mobile optimization for college details page */
@media (max-width: 768px) {

    /* Main container padding adjustment */
    section[style*="padding: 3rem 0"] {
        padding: 1.5rem 0 !important;
    }

    /* College details card */
    section div[style*="background: white"][style*="border-radius: 12px"] {
        padding: 1rem !important;
        border-radius: 8px !important;
    }

    /* Header section - Logo and Info Grid - CRITICAL FIX */
    section div[style*="grid-template-columns: 200px 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
        grid-template-columns: unset !important;
    }

    /* Logo container - first child */
    section div[style*="grid-template-columns: 200px 1fr"]>div:first-child {
        width: 100% !important;
        max-width: 150px !important;
        margin: 0 auto !important;
    }

    /* Logo image */
    section div[style*="grid-template-columns: 200px 1fr"]>div:first-child img {
        width: 100% !important;
    }

    /* Logo placeholder div */
    section div[style*="grid-template-columns: 200px 1fr"]>div:first-child>div {
        width: 100% !important;
        height: 150px !important;
        font-size: 3rem !important;
    }

    /* Info container - second child */
    section div[style*="grid-template-columns: 200px 1fr"]>div:nth-child(2) {
        width: 100% !important;
    }

    /* College name heading */
    section h1[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center !important;
    }

    /* Rating and info container */
    section div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    /* Rating display */
    section div[style*="display: flex"][style*="gap: 1rem"] .college-rating {
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    section .college-rating i {
        font-size: 1rem !important;
    }

    section .college-rating span {
        font-size: 1rem !important;
    }

    /* College type */
    section p[style*="font-size: 1.1rem"][style*="color: var(--primary-color)"] {
        font-size: 0.95rem !important;
        text-align: center !important;
    }

    /* Address and contact info */
    section p[style*="color: var(--text-light)"] {
        font-size: 0.9rem !important;
        text-align: center !important;
        word-break: break-word !important;
    }

    /* Website link */
    section p[style*="color: var(--text-light)"] a {
        word-break: break-all !important;
        display: inline-block !important;
    }

    /* Interest buttons */
    section form[style*="display: inline-block"] {
        display: block !important;
        width: 100% !important;
        margin-top: 1rem !important;
    }

    section form button.btn,
    section a.btn[href*="login.php"] {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        display: block !important;
        text-align: center !important;
    }

    /* About section */
    section div[style*="border-top: 2px solid"] {
        padding-top: 1.5rem !important;
    }

    section div[style*="border-top: 2px solid"] h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }

    section div[style*="border-top: 2px solid"]>div>p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* Information grid (Established, Courses, Facilities) */
    section div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        grid-template-columns: unset !important;
    }

    section div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"]>div h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    section div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"]>div h3 i {
        font-size: 1rem !important;
    }

    section div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"]>div p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* Published Courses Section */
    section div[style*="margin-top: 2.5rem"] h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    /* Transform table to card layout on mobile */
    .table-container {
        overflow-x: visible !important;
    }

    .table-container table {
        border: 0 !important;
    }

    .table-container table thead {
        display: none !important;
    }

    .table-container table tbody {
        display: block !important;
    }

    .table-container table tr {
        display: block !important;
        margin-bottom: 1rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        background: #f9fafb !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    }

    .table-container table td {
        display: block !important;
        text-align: left !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        position: relative !important;
        padding-left: 45% !important;
        word-break: break-word !important;
    }

    .table-container table td::before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 0 !important;
        width: 40% !important;
        padding-right: 10px !important;
        font-weight: 600 !important;
        color: var(--primary-color) !important;
        text-align: left !important;
    }

    /* Add data labels for course table */
    .table-container table tbody tr td:nth-child(1)::before {
        content: "Course:" !important;
    }

    .table-container table tbody tr td:nth-child(2)::before {
        content: "Degree:" !important;
    }

    .table-container table tbody tr td:nth-child(3)::before {
        content: "Duration:" !important;
    }

    .table-container table tbody tr td:nth-child(4)::before {
        content: "Fees:" !important;
    }

    /* Small text below courses table */
    section div[style*="margin-top: 1rem"] small {
        font-size: 0.8rem !important;
        display: block !important;
        line-height: 1.4 !important;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {

    /* Further reduce heading sizes */
    section h1[style*="font-size: 2.5rem"] {
        font-size: 1.3rem !important;
    }

    section div[style*="border-top: 2px solid"] h2,
    section div[style*="margin-top: 2.5rem"] h2 {
        font-size: 1.2rem !important;
    }

    /* Reduce padding on main card */
    section div[style*="background: white"][style*="border-radius: 12px"] {
        padding: 0.75rem !important;
    }

    /* Smaller logo */
    section div[style*="grid-template-columns: 200px 1fr"]>div:first-child {
        max-width: 120px !important;
    }

    section div[style*="grid-template-columns: 200px 1fr"]>div:first-child>div {
        height: 120px !important;
        font-size: 2.5rem !important;
    }

    /* Adjust course cards for very small screens */
    .table-container table td {
        padding-left: 50% !important;
        font-size: 0.85rem !important;
    }

    .table-container table td::before {
        width: 45% !important;
        font-size: 0.85rem !important;
    }
}

/* ========================================
   COURSE CARDS - BEAUTIFUL RESPONSIVE DESIGN
   ======================================== */

/* Course Grid Layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Individual Course Card */
.course-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

/* Course Header */
.course-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 1.5rem;
    color: white;
}

.course-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

.degree-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
}

/* Course Summary */
.course-summary {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.course-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.course-info-item i {
    font-size: 1.2rem;
    color: #2563eb;
    margin-top: 0.2rem;
}

.course-info-item>div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

/* Expandable Details Section */
.course-details {
    padding: 0 1.5rem;
}

.detail-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.detail-heading i {
    color: #2563eb;
    font-size: 1rem;
}

.detail-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
    padding-left: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Toggle Button */
.course-toggle-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border: none;
    border-top: 1px solid #e5e7eb;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.course-toggle-btn:hover {
    background: #eff6ff;
    color: #1e40af;
}

.course-toggle-btn i {
    transition: transform 0.3s ease;
}

/* Mobile Responsive - Tablets */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .course-summary {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .course-name {
        font-size: 1.2rem;
    }
}

/* Mobile Responsive - Phones */
@media (max-width: 480px) {
    .courses-grid {
        gap: 1rem;
    }

    .course-card {
        border-radius: 8px;
    }

    .course-header {
        padding: 1.25rem;
    }

    .course-name {
        font-size: 1.1rem;
    }

    .degree-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .course-summary {
        padding: 1.25rem;
        gap: 1rem;
    }

    .course-info-item i {
        font-size: 1rem;
    }

    .info-value {
        font-size: 0.95rem;
    }

    .course-details {
        padding: 0 1.25rem;
    }

    .detail-section {
        padding: 1.25rem 0;
    }

    .detail-heading {
        font-size: 1rem;
    }

    .detail-content {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .course-toggle-btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .course-header {
        padding: 1rem;
    }

    .course-summary {
        padding: 1rem;
    }

    .course-details {
        padding: 0 1rem;
    }

    .detail-content {
        padding-left: 1rem;
    }
}

@media (max-width: 900px) {
    .mobile-sidebar {
        width: 180px !important;
    }
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.7), rgba(217, 119, 6, 0.7));
    padding: 2rem 0;
    width: 100%;
    margin: 0;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.promo-text {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 1rem 0;
    }

    .promo-text {
        font-size: 3.0vw;
        padding: 0 0.5rem;
        white-space: nowrap;
        text-transform: none;
        letter-spacing: -0.1px;
    }
}

@media (max-width: 480px) {
    .promo-text {
        font-size: 2.9vw;
        letter-spacing: -0.2px;
    }
}

@media (max-width: 360px) {
    .promo-text {
        font-size: 2.8vw;
    }
}

/* Page Mid-Content Background */
.page-content-bg {
    background-image: url('../../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
}

/* Elegant overlay to ensure text is readable */
.page-content-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 28, 28, 0.3);
    z-index: 0;
}

.page-content-bg>* {
    position: relative;
    z-index: 1;
}

/* Make inner sections transparent */
.random-institutions,
.admission-timeline,
.featured-colleges,
.how-it-works,
.categories {
    background: transparent !important;
}

/* Specific card backgrounds should remain solid for legibility */
.institution-card,
.timeline-card,
.step,
.category-card {
    background: #ffffff !important;
}

/* Discovery Timeline Content Styles */
.inst-mini-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.inst-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    border-color: #3b82f6;
}

.inst-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inst-item strong {
    display: block;
    font-size: 1rem;
    color: #1e293b;
}

.star-text {
    font-size: 0.85rem;
    color: #eab308;
    font-weight: 500;
}

.course-icon-mini {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 1.2rem;
    border-radius: 8px;
}

.inst-item div span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.inst-logo-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #94a3b8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}


.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
    width: fit-content;
}

.timeline-card-header h3 {
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.card-arrow-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

.card-arrow-link:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-arrow-link i {
    font-size: 1rem;
}