
/* Swiper wrapper full width */
.slider-area .swiper {
    width: 100%;
    height: auto;
}

/* Slides */
.slider-area .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Responsive images */
    .slider-area .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        max-height: 85vh; /* prevent too much height */
    }

/* Pagination dots */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #ffcc00;
}

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    transition: 0.3s;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        color: #ffcc00;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .slider-area .swiper-slide img {
        max-height: 55vh; /* mobile pe height kam hogi */
    }
}

.g-4, .gx-4 {
    --bs-gutter-x: 1.5rem; /* horizontal gap = 24px */
}

.g-4, .gy-4 {
    --bs-gutter-y: 1.5rem; /* vertical gap = 24px */
}


.feature-icon span {
    background: #007bff;
    color: #fff;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 50%;
    font-size: 16px;
    display: inline-block;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.about-title h2 {
    line-height: 1.3;
}

@media (max-width: 768px) {
    .about-title h2 {
        font-size: 26px;
    }

    .feature-icon span {
        font-size: 14px;
        padding: 8px 12px;
    }
}



.course-card img {
    transition: transform 0.4s ease;
}

.course-card:hover img {
    transform: scale(1.08);
}


.bg-gradient {
    background: linear-gradient(90deg, #004aad, #0072ff);
}

.scroll-box {
    max-height: 300px;
    overflow-y: auto;
}

.update-item {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

    .update-item h5 {
        font-size: 15px;
        margin-bottom: 4px;
        color: #333;
        transition: color 0.3s;
    }

    .update-item:hover h5 {
        color: #0072ff;
    }

@media (prefers-color-scheme: dark) {
    .card, .bg-light {
        color: #000 !important;
    }

    .update-item {
        border-color: #444;
    }

        .update-item h5 {
            color: #000 !important;
        }

        .update-item:hover h5 {
            color: #4da6ff;
        }
}


.course-card {
    transition: transform 0.4s, box-shadow 0.4s;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

.course-img {
    position: relative;
}

    .course-img img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-overlay .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
}

.course-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ====== Base */
.latest-news-section {
    --primary: #0d6efd;
    --ink: #1f2937;
    --muted: #6b7280;
    --ring: #e5e7eb;
    --card: #ffffff;
    --chip: #eef2ff;
    --green: #16a34a;
    --purple: #7c3aed;
    padding: 60px 0;
    background: #f8fafc;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* ====== Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 10px 14px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

/*.ticker-label {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
}*/

.ticker-track {
    position: relative;
    display: flex;
    gap: 40px;
    white-space: nowrap;
    flex: 1;
    animation: tickerMove 22s linear infinite;
}

.ticker-item {
    color: var(--ink);
    text-decoration: none;
    opacity: .9;
}

    .ticker-item:hover {
        text-decoration: underline;
    }

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
/* Pause on hover */
.news-ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* ====== Header */
.ln-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .ln-header h2 {
        margin: 0;
        font-size: clamp(22px, 3vw, 32px);
        color: var(--ink);
        font-weight: 800;
    }

.ln-sub {
    margin: 4px 0 0;
    color: var(--muted);
}

/* chips */
.ln-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: #fff;
    border: 1px solid var(--ring);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

    .chip:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,.06);
    }

    .chip.active {
        background: var(--chip);
        border-color: #c7d2fe;
        color: #3730a3;
    }

/* ====== Grid */
.ln-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
}

.ln-card {
    grid-column: span 4; /* 3 per row desktop */
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(2,6,23,.06);
    transition: .3s ease;
}

    .ln-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(2,6,23,.1);
    }

.ln-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .ln-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
        display: block;
    }

.ln-card:hover .ln-thumb img {
    transform: scale(1.04);
}

.ln-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(13,110,253,.3);
}

.ln-badge--green {
    background: var(--green);
    box-shadow: 0 6px 16px rgba(22,163,74,.25);
}

.ln-badge--purple {
    background: var(--purple);
    box-shadow: 0 6px 16px rgba(124,58,237,.25);
}

.ln-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ln-title {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}

    .ln-title:hover {
        text-decoration: underline;
    }

.ln-excerpt {
    color: var(--muted);
    margin: 0;
}

.ln-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #374151;
}

.ln-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    opacity: .9;
}

.ln-read {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
}

    .ln-read:hover {
        text-decoration: underline;
    }

/* ====== Footer */
.ln-footer {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.ln-load {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

    .ln-load:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(31,41,55,.2);
    }

/* ====== Responsive */
@media (max-width: 1199px) {
    .ln-card {
        grid-column: span 6;
    }
    /* 2 per row */
}

@media (max-width: 640px) {
    .ln-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ln-card {
        grid-column: span 12;
    }
    /* 1 per row */
    .news-ticker {
        border-radius: 10px;
    }
}
