    .course-img img{
        width:306px !important;
        height:205px !important;
    }
    .single_blog img { 
        height: 300px !important;
    }  
    
    
/* HERO SLIDER */
.sc-hero-slider {
    position: relative;
    overflow: hidden;
    background: #f4f8ff;
}

.sc-slides {
    position: relative;
}

.sc-slide {
    display: none;
    background: var(--slide-bg);
    min-height: 520px;
    padding: 45px 0 65px;
    animation: scFade 0.65s ease;
}

.sc-slide.active {
    display: block;
}

@keyframes scFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* CONTENT */
.sc-hero-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

.sc-tag {
    display: inline-block;
    padding: 9px 16px;
    margin-bottom: 20px;
    background: rgba(13, 75, 164, 0.09);
    color: #104b9b;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.sc-hero-content h1 {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.13;
    font-weight: 800;
    color: #132c50;
    margin-bottom: 22px;
}

.sc-hero-content h1 span {
    display: block;
    color: #fefefe;
}

.sc-hero-content p {
    color: #132c50;
    font-size: 17px;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 27px;
}

/* BUTTONS */
.sc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.sc-btn-primary {
    background: #1055b7;
    color: #fff !important;
    border: 2px solid #1055b7;
}

.sc-btn-primary:hover {
    background: #0b3e8b;
    border-color: #0b3e8b;
    transform: translateY(-2px);
}

.sc-btn-outline {
    color: #1055b7 !important;
    border: 2px solid #1055b7;
    background: transparent;
}

.sc-btn-outline:hover {
    background: #1055b7;
    color: #fff !important;
}

/* FEATURES */
.sc-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.sc-highlights span {
    color: #344966;
    font-size: 13px;
    font-weight: 600;
}

.sc-highlights i {
    color: #16865a;
    margin-right: 5px;
}

/* IMAGE */
.sc-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-hero-image img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(25, 51, 89, 0.15);
}

/* NAVIGATION ARROWS */
.sc-arrow {
    position: absolute;
    z-index: 5;
    top: 45%;
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #104b9b;
    font-size: 18px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sc-arrow:hover {
    background: #1055b7;
    color: #fff;
}

.sc-prev { left: 18px; }
.sc-next { right: 18px; }

/* DOTS */
.sc-dots {
    position: absolute;
    z-index: 5;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sc-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #aab8cc;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sc-dot.active {
    width: 28px;
    background: #1055b7;
}

/* MOBILE */
@media (max-width: 991px) {
    .sc-slide {
        padding: 35px 0 65px;
        min-height: auto;
    }

    .sc-hero-content {
        text-align: center;
    }

    .sc-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .sc-buttons,
    .sc-highlights {
        justify-content: center;
    }

    .sc-hero-image {
        margin-top: 30px;
    }

    .sc-hero-image img {
        height: 300px;
        max-width: 560px;
    }

    .sc-arrow {
        top: auto;
        bottom: 12px;
        width: 34px;
        height: 34px;
    }

    .sc-prev { left: 12px; }
    .sc-next { right: 12px; }
}

@media (max-width: 575px) {
    .sc-hero-content h1 {
        font-size: 34px;
    }

    .sc-hero-content p {
        font-size: 15px;
    }

    .sc-btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .sc-hero-image img {
        height: 230px;
        border-radius: 15px;
    }

    .sc-highlights {
        gap: 12px;
    }
}

 
/* SECTION */
.success-section {
    padding: 75px 20px;
    background: #f6f9ff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.success-container {
    max-width: 1200px;
    margin: auto;
}

.success-heading {
    text-align: center;
    margin-bottom: 45px;
}

.success-label {
    display: inline-block;
    color: #1764c0;
    background: #e5efff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.success-heading h2 {
    margin: 18px 0 12px;
    color: #172b4d;
    font-size: 36px;
    font-weight: 800;
}

.success-heading h2 span {
    color: #1764c0;
}

.success-heading p {
    max-width: 600px;
    margin: auto;
    color: #68758a;
    line-height: 1.7;
    font-size: 15px;
}

/* SLIDER */
.success-slider {
    position: relative;
}

.success-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 10px 2px 20px;
}

.success-track::-webkit-scrollbar {
    display: none;
}

/* CARD */
.success-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 25px rgba(28, 58, 100, 0.07);
    scroll-snap-align: start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.success-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(28, 58, 100, 0.13);
}

/* IMAGE */
.success-image {
    height: 220px;
    position: relative;
    background: #eaf0fa;
    overflow: hidden;
}

.success-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transition: transform 0.4s;
}

.success-card:hover .success-image img {
    transform: scale(1.05);
}

.success-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #1764c0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 20px;
}

/* DETAILS */
.success-info {
    padding: 23px 20px 25px;
    text-align: center;
}

.success-info h3 {
    font-size: 20px;
    color: #172b4d;
    font-weight: 700;
    margin: 0 0 9px;
}

.success-department {
    color: #1764c0;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
}

.success-designation {
    display: inline-block;
    background: #edf4ff;
    color: #334f78;
    padding: 8px 13px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.success-note {
    color: #697589;
    font-size: 13px;
    line-height: 1.8;
    margin: 18px 0 0;
    font-style: italic;
}

/* ARROWS */
.success-arrow {
    position: absolute;
    top: 40%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #1764c0;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(23, 100, 192, 0.25);
    transition: background 0.2s;
}

.success-arrow:hover {
    background: #10488e;
}

.success-arrow.prev {
    left: -20px;
}

.success-arrow.next {
    right: -20px;
}

/* DOTS */
.success-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.success-dot {
    height: 9px;
    width: 9px;
    border: none;
    border-radius: 20px;
    padding: 0;
    background: #c6d2e4;
    cursor: pointer;
    transition: all 0.25s;
}

.success-dot.active {
    width: 26px;
    background: #1764c0;
}

/* TABLET */
@media (max-width: 991px) {
    .success-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .success-heading h2 {
        font-size: 30px;
    }

    .success-arrow.prev {
        left: -12px;
    }

    .success-arrow.next {
        right: -12px;
    }
}

/* MOBILE */
@media (max-width: 575px) {
    .success-section {
        padding: 50px 18px;
    }

    .success-heading {
        margin-bottom: 25px;
    }

    .success-heading h2 {
        font-size: 27px;
    }

    .success-card {
        flex-basis: 100%;
    }

    .success-image {
        height: 250px;
    }

    .success-arrow {
        width: 35px;
        height: 35px;
        top: 32%;
    }

    .success-arrow.prev {
        left: -10px;
    }

    .success-arrow.next {
        right: -10px;
    }
}

/* Expert Instructors Section */
.instructors-section {
    padding: 85px 20px;
    background: #fffaf3;
    font-family: 'Poppins', sans-serif;
}

.instructors-container {
    max-width: 1200px;
    margin: 0 auto;
}

.instructors-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.instructors-tag {
    display: inline-block;
    color: #b66a35;
    background: #f8e9d8;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.instructors-heading h2 {
    font-size: 38px;
    color: #33251f;
    margin: 18px 0 12px;
    font-weight: 700;
}

.instructors-heading h2 span {
    color: #c47b46;
}

.instructors-heading p {
    color: #786c65;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.instructor-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    padding: 15px;
    border: 1px solid #f0e5d9;
    box-shadow: 0 8px 25px rgba(87, 57, 35, 0.06);
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(87, 57, 35, 0.13);
}

.instructor-image {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: #f1e2d1;
    border-radius:15px;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.06);
}

.instructor-number {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #b66a35;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.instructor-info {
    padding: 23px 20px 25px;
}

.instructor-label {
    color: #b66a35;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructor-info h3 {
    font-size: 19px;
    color: #33251f;
    margin: 10px 0 6px;
    font-weight: 700;
}

.instructor-info p {
    font-size: 13px;
    color: #82766e;
    margin: 0;
}

.instructor-line {
    width: 42px;
    height: 3px;
    background: #c47b46;
    border-radius: 5px;
    margin-top: 18px;
    transition: width 0.3s ease;
}

.instructor-card:hover .instructor-line {
    width: 75px;
}

/* Tablet */
@media (max-width: 992px) {
    .instructors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .instructor-image {
        height: 280px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .instructors-section {
        padding: 55px 16px;
    }

    .instructors-heading h2 {
        font-size: 29px;
    }

    .instructors-heading p {
        font-size: 14px;
    }

    .instructors-grid {
        gap: 15px;
    }

    .instructor-image {
        height: 190px;
    }

    .instructor-info {
        padding: 17px 12px 20px;
    }

    .instructor-info h3 {
        font-size: 16px;
    }

    .instructor-info p {
        font-size: 12px;
        line-height: 1.6;
    }

    .instructor-label {
        font-size: 9px;
    }

    .instructor-number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

/* Testimonial Section */
.testimonial-section {
    padding: 85px 20px;
    background: #fff8ef;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px;
}

.testimonial-tag {
    display: inline-block;
    background: #ffeadb;
    color: #b9571c;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.testimonial-heading h2 {
    color: #43251b;
    font-size: 40px;
    font-weight: 700;
    margin: 18px 0 12px;
}

.testimonial-heading h2 span {
    color: #c5682c;
}

.testimonial-heading p {
    color: #78665e;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.testimonial-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #c5682c;
    margin-top: 20px;
    font-size: 24px;
}

.testimonial-divider span {
    height: 2px;
    width: 45px;
    background: #c5682c;
}

.testimonial-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.testimonial-track {
    width: 100%;
    min-width: 0;
}

.testimonial-card {
    display: none;
    grid-template-columns: 32% 68%;
    background: #fff;
    border: 1px solid #f6e9dd;
    border-radius: 22px;
    padding: 45px 42px;
    box-shadow: 0 15px 45px rgba(103, 64, 37, 0.07);
    animation: testimonialFade 0.45s ease;
}

.testimonial-card.active {
    display: grid;
}

@keyframes testimonialFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Student Profile */
.testimonial-profile {
    text-align: center;
    padding: 0 28px 0 0;
    border-right: 1px solid #f0dfd2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}

.testimonial-profile img {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid #fff0e2;
    margin-bottom: 22px;
}

.testimonial-profile h3 {
    font-size: 22px;
    color: #43251b;
    margin: 0 0 12px;
    font-weight: 700;
}

.testimonial-email {
    color: #82736b;
    font-size: 13px;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}

.testimonial-subject {
    display: inline-block;
    padding: 8px 16px;
    background: #fff0e2;
    color: #b9571c;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
}

/* Testimonial Message */
.testimonial-content {
    position: relative;
    padding: 15px 18px 0 40px;
}

.quote-icon {
    position: absolute;
    top: -20px;
    right: 0;
    color: #ffe4cf;
    font-family: Georgia, serif;
    font-size: 100px;
    line-height: 1;
    pointer-events: none;
}

.testimonial-stars {
    color: #f5a623;
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.testimonial-content blockquote {
    position: relative;
    z-index: 1;
    color: #51443e;
    font-size: 17px;
    font-style: italic;
    line-height: 1.9;
    margin: 0 0 25px;
}

.testimonial-message {
    border-top: 1px solid #f0dfd2;
    padding-top: 20px;
}

.testimonial-message span {
    display: block;
    color: #b9571c;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.testimonial-message p {
    color: #82736b;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Previous / Next Arrows */
.testimonial-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #ffeadb;
    color: #b9571c;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.testimonial-arrow:hover {
    background: #c5682c;
    color: #fff;
    transform: scale(1.08);
}

.testimonial-arrow.prev {
    margin-right: 20px;
}

.testimonial-arrow.next {
    margin-left: 20px;
}

/* Navigation Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.testimonial-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f6d7bf;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots button.active {
    background: #c5682c;
    transform: scale(1.15);
}

/* Tablet */
@media (max-width: 900px) {
    .testimonial-card {
        grid-template-columns: 35% 65%;
        padding: 30px 25px;
    }

    .testimonial-profile {
        padding-right: 20px;
    }

    .testimonial-profile img {
        width: 135px;
        height: 135px;
    }

    .testimonial-content {
        padding-left: 25px;
    }

    .testimonial-content blockquote {
        font-size: 15px;
    }

    .testimonial-arrow.prev {
        margin-right: 10px;
    }

    .testimonial-arrow.next {
        margin-left: 10px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .testimonial-section {
        padding: 55px 15px;
    }

    .testimonial-heading h2 {
        font-size: 29px;
    }

    .testimonial-heading p {
        font-size: 14px;
    }

    .testimonial-slider {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .testimonial-track {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .testimonial-card,
    .testimonial-card.active {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .testimonial-profile {
        border-right: none;
        border-bottom: 1px solid #f0dfd2;
        padding: 0 0 25px;
    }

    .testimonial-profile img {
        width: 115px;
        height: 115px;
        margin-bottom: 15px;
    }

    .testimonial-profile h3 {
        font-size: 19px;
    }

    .testimonial-content {
        padding: 25px 0 0;
    }

    .testimonial-content blockquote {
        font-size: 14px;
        line-height: 1.8;
    }

    .testimonial-stars {
        font-size: 20px;
    }

    .quote-icon {
        font-size: 75px;
        top: 5px;
    }

    .testimonial-arrow.prev,
    .testimonial-arrow.next {
        margin: 0;
    }

    .testimonial-arrow {
        width: 42px;
        height: 42px;
    }

    .testimonial-arrow.prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .testimonial-arrow.next {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
}

.testimonials-section {
    padding: 80px 20px;
    background: #efffefde;
    font-family: 'Poppins', sans-serif;
}

.testimonials-container {
    max-width: 1250px;
    margin: auto;
}

.testimonials-heading {
    text-align: center;
    margin-bottom: 45px;
}

.testimonial-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #ffeadb;
    color: #b9571c;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.testimonials-heading h2 {
    color: #43251b;
    font-size: 36px;
    font-weight: 700;
    margin: 18px 0 12px;
}

.testimonials-heading h2 span {
    color: #c5682c;
}

.testimonials-heading p {
    color: #78665e;
    font-size: 15px;
    line-height: 1.8;
    max-width: 650px;
    margin: auto;
}

/* Four cards in one row */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 25px 20px;
    border: 1px solid #f1e2d5;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(87, 57, 35, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(87, 57, 35, 0.12);
}

/* User icon and details */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    min-width: 0;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffeadb;
    color: #b9571c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}

.testimonial-user > div:last-child {
    min-width: 0;
}

.testimonial-user h3 {
    font-size: 16px;
    color: #43251b;
    font-weight: 700;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.testimonial-email {
    color: #897b72;
    font-size: 11px;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Subject */
.testimonial-subject {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    background: #fff3e8;
    color: #b9571c;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Rating */
.testimonial-stars {
    color: #f3a62a;
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Message */
.testimonial-message {
    color: #786b63;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
    flex-grow: 1;
    overflow-wrap: anywhere;
}

/* Decorative quote */
.testimonial-quote {
    text-align: right;
    color: #f5d6bf;
    font-size: 32px;
    line-height: 1;
    margin-top: 12px;
}

/* Tablet */
@media (max-width: 1050px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 576px) {
    .testimonials-section {
        padding: 55px 15px;
    }

    .testimonials-heading h2 {
        font-size: 28px;
    }

    .testimonials-heading p {
        font-size: 14px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial-item {
        padding: 23px 20px;
    }
}

.testimonials-section {
    padding: 75px 20px;
    background: #efffefde;
    font-family: 'Poppins', sans-serif;
}

.testimonials-container {
    max-width: 1250px;
    margin: auto;
}

.testimonials-heading {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #ffeadb;
    color: #b9571c;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.testimonials-heading h2 {
    color: #43251b;
    font-size: 36px;
    margin: 18px 0 10px;
}

.testimonials-heading h2 span {
    color: #c5682c;
}

.testimonials-heading p {
    color: #78665e;
    font-size: 14px;
}

/* Slider layout */
.testimonial-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 22px 18px;
    border: 1px solid #f1e2d5;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(87, 57, 35, 0.06);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 14px 30px rgba(87, 57, 35, 0.12);
}

/* Student icon and details */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    min-width: 0;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ffeadb;
    color: #b9571c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.testimonial-user-info {
    min-width: 0;
}

.testimonial-user h3 {
    color: #43251b;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

.testimonial-user p {
    color: #897b72;
    font-size: 10px;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Subject */
.testimonial-subject {
    align-self: flex-start;
    display: inline-block;
    background: #fff3e8;
    color: #b9571c;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 15px;
}

.testimonial-stars {
    color: #f3a62a;
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-message {
    color: #786b63;
    font-size: 12px;
    line-height: 1.9;
    margin: 0;
    flex-grow: 1;
    overflow-wrap: anywhere;
}

.testimonial-quote {
    display: block;
    color: #f2d4bd;
    font-size: 30px;
    text-align: right;
    margin-top: 12px;
}

/* Arrows */
.slider-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #ffeadb;
    color: #b9571c;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s ease;
}

.slider-arrow:hover {
    background: #c5682c;
    color: #fff;
}

.slider-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 28px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f2d4bd;
    cursor: pointer;
}

.testimonial-dot.active {
    background: #c5682c;
    transform: scale(1.2);
}

/* Tablet: 2 cards */
@media (max-width: 1000px) {
    .testimonial-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

/* Mobile: 1 card */
@media (max-width: 600px) {
    .testimonials-section {
        padding: 50px 12px;
        background-color:#efffefde !important;
    }

    .testimonials-heading h2 {
        font-size: 27px;
    }

    .testimonial-slider {
        gap: 8px;
    }

    .testimonial-card {
        flex-basis: 100%;
        padding: 22px 18px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .testimonial-user h3 {
        font-size: 16px;
    }

    .testimonial-user p {
        font-size: 11px;
    }

    .testimonial-message {
        font-size: 13px;
    }
}
/* TESTIMONIAL SLIDER FIX */
#testimonials .testimonial-viewport {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

#testimonials .testimonial-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

#testimonials .testimonial-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    box-sizing: border-box;
}

#testimonials .slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#testimonials .testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
}

#testimonials .testimonial-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2d4bd;
    cursor: pointer;
}

#testimonials .testimonial-dot.active {
    background: #c5682c;
    transform: scale(1.2);
}

@media (max-width: 1000px) {
    #testimonials .testimonial-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    #testimonials .testimonial-slider {
        gap: 8px;
    }

    #testimonials .testimonial-track {
        gap: 20px;
    }

    #testimonials .testimonial-card {
        flex-basis: 100%;
    }
}

.no-classes-section {
    background: #f5f9ff;
    border: 1px solid #dce8f8;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(40, 80, 140, 0.06);
}

.no-classes-icon {
    background: #e0ecff;
    color: #2563a6;
}

.no-classes-section h3 {
    color: #1e3a5f;
}

.no-classes-section p {
    color: #5f7085;
}

.no-classes-note {
    background: #e5efff;
    color: #245a96;
}
.no_cls{
    text-align:center
    margin: 0 auto;
    padding: 10px;
    background-color: #fb6d042b;
    border: 1px solid #fb8934;
    color: #fb6d04;
    border-radius: 5px;
    width: 202px;
}
.latest-classes {
    --class-primary: #2563eb;
    --class-dark: #14213d;
    --class-muted: #64748b;

    padding: 85px 20px;
    background: #f8fafc;
    font-family: "Poppins", sans-serif;
}

.classes-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Section Heading */

.classes-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.classes-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    margin-bottom: 18px;
    border-radius: 50px;
    background: #eaf1ff;
    color: var(--class-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--class-primary);
    box-shadow: 0 0 0 4px #d4e3ff;
}

.classes-heading h2 {
    margin: 0 0 15px;
    color: var(--class-dark);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -1px;
}

.classes-heading h2 span {
    color: #f8ad30;
}

.classes-heading p {
    margin: 0;
    color: var(--class-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Responsive Cards Grid */

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* Individual Card */

.class-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.class-card:hover {
    transform: translateY(-8px);
    border-color: #cbdcff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

/* Thumbnail */

.class-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eaf1ff;
}

.class-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-card:hover .class-image img {
    transform: scale(1.06);
}

.class-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 12px; 
    border: 1px solid rgb(26 45 98);
    border-radius: 50px;
    background: rgb(26 45 98);
    color: #fb6d04;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.7px;
}

/* Card Content */

.class-content {
    padding: 23px;
}

.class-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px; 
    background: #fee1ae33;
    color: #fb6d04;
    font-size: 12px;
    font-weight: 600;
}

.class-content h3 {
    margin: 0 0 12px;
    color: var(--class-dark);
    font-size: 13px;
    /*font-weight: 700;*/
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.class-description {
    min-height: 48px;
    margin: 0 0 22px;
    color: var(--class-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Watch Button */

.class-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid #fb6d04;
    border-radius: 10px;
    background: #ffffff;
    color: #fb6d04;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.class-button i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fba20457;
    font-size: 16px;
    transition: all 0.25s ease;
}

.class-button:hover {
    border-color: #153867;
    background: #153867;
    color: #fb6d04;
}

.class-button:hover i {
    background: #fedfa9;
    color: #fb6d04;
}

/* View All */

.classes-footer {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 15px 25px;
    border: 1px solid var(--class-dark);
    border-radius: 10px;
    background: var(--class-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.view-all-button:hover {
    border-color: #0b2a50;
    background: #0b2a50;
    color: #fb6d04;
    transform: translateY(-2px);
}

/* Tablet */

@media (max-width: 900px) {
    .latest-classes {
        padding: 65px 20px;
    }

    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .class-content {
        padding: 19px;
    }
}

/* Mobile */

@media (max-width: 576px) {
    .latest-classes {
        padding: 48px 16px;
    }

    .classes-heading {
        margin-bottom: 30px;
    }

    .classes-heading h2 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .classes-heading p {
        font-size: 13px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .class-image {
        aspect-ratio: 16 / 9;
    }

    .class-content {
        padding: 20px;
    }

    .class-content h3 {
        font-size: 12px;
    }

    .classes-footer {
        margin-top: 30px;
    }
    .class-button {
        font-size: 9px;
        padding: 7px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .class-card,
    .class-image img,
    .class-button,
    .class-button i,
    .view-all-button {
        transition: none;
    }
}
    /* Classes section */
.classes-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 30px;
}

/* Only two heading levels */
.section-heading {
    text-align: center;
    margin-bottom: 24px;
}

.section-heading p {
    color: #2878ff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-heading h1 {
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom:60px;
}

/* Responsive card grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Individual class card */
.class-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf0f7;
    box-shadow: 0 3px 12px rgba(23, 45, 88, 0.04);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(23, 45, 88, 0.09);
}

/* Compact images */
.class-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

/* Card content */
.class-content {
    padding: 14px 15px 12px;
}

.subject {
    display: inline-block;
    background: #eaf1ff;
    color: #173568;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: 5px;
    margin-bottom: 14px;
}

/* Start and end times */
.class-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e8ee;
    font-size: 13px;
    color: #34425d;
}

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

.time-icon {
    color: #2878ff;
    font-size: 15px;
}

/* Join button */
.join-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    border-radius: 6px;
    color: #173568;
    background: #f1f5ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.join-link:hover {
    background: #dfeaff;
}

.arrow {
    font-size: 17px;
}

/* Tablets */
@media (max-width: 1000px) {
    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .class-image {
        height: 175px;
    }
}

/* Mobile phones */
@media (max-width: 560px) {
    .classes-section {
        padding: 18px 12px 24px;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .section-heading h1 {
        font-size: 23px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .class-image {
        height: 180px;
    }

    .class-content {
        padding: 12px;
    }
}
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #08084d;
    margin-left: 43%;
    margin-top: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    white-space: nowrap;
    transition: all 0.3s ease; 
    justify-content: center;
}

.view-all-btn span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover {
    background: #155bd0;
    box-shadow: 0 4px 12px rgba(40, 120, 255, 0.2);
}

.view-all-btn:hover span {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .view-all-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
        margin-left: 34%;
    }
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.article-card {
    min-width: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive layout */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
.upcoming-classes-section {
    max-width: 1450px;
    margin: 0 auto;
    padding: 25px 20px;
}

.upcoming-classes-heading {
    text-align: center;
    margin-bottom: 30px;
}

.upcoming-classes-heading p {
    color: #2878ff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
}

.upcoming-classes-heading h2 {
    color: #172d58;
    font-size: 30px;
    font-weight: 500;
    margin: 0;
}

/* Five cards in one row */
.upcoming-classes-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

/* Card */
.upcoming-class-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #edf0f7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(23, 45, 88, 0.07);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.upcoming-class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(23, 45, 88, 0.13);
}

/* Image */
.upcoming-class-card > img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Content */
.upcoming-class-content {
    padding: 15px 12px;
}

.upcoming-class-subject {
    display: inline-block;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    margin-bottom: 28px;
    border-radius: 5px;
    background: #eaf1ff;
    color: #172d58;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Timings */
.upcoming-class-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dedee5;
    color: #34425d;
    font-size: 11px;
}

.upcoming-class-times span {
    white-space: nowrap;
}

/* Date */
.upcoming-class-date {
    padding-top: 16px;
    text-align: center;
    color: #34425d;
    font-size: 12px;
}

/* Tablet */
@media (max-width: 1100px) {
    .upcoming-classes-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 700px) {
    .upcoming-classes-section {
        padding: 20px 12px;
    }

    .upcoming-classes-heading h2 {
        font-size: 25px;
    }

    .upcoming-classes-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .upcoming-class-card > img {
        height: 125px;
    }

    .upcoming-class-content {
        padding: 11px 9px;
    }

    .upcoming-class-subject {
        font-size: 11px;
        margin-bottom: 18px;
    }

    .upcoming-class-times {
        font-size: 9px;
    }

    .upcoming-class-date {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .upcoming-classes-list {
        grid-template-columns: 1fr;
    }
}
.classes-section {
    padding: 55px 5.5%;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-subtitle {
    color: #2878ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    color: #203967;
    font-size: 30px;
    margin: 10px 0;
}

.section-heading p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/* Responsive grid */

.classes-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* Individual card */

.class-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #edf0f6;
    box-shadow: 0 4px 16px rgba(20, 40, 80, 0.09);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.15);
}

/* Card image */

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

/* Card content */

.class-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 14px 14px;
    /*background-image: url('https://rssctech.com/sandeepclasses/public/assets_web/images/liveclass/background.jpg');*/
}

/* Subject name */

.subject-tag {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    background: #eaf1ff;
    color: #14376c;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* Short description */

.class-description {
    color: #5e6879;
    font-size: 13px;
    line-height: 1.7;
    margin: 14px 0;
}

/* Exam information */

.exam-section {
    padding: 12px 0;
    border-top: 1px solid #edf0f6;
    border-bottom: 1px solid #edf0f6;
    margin-bottom: 12px;
}

.exam-section h4 {
    color: #203967;
    font-size: 12px;
    margin: 0 0 10px;
}

.exam-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exam-tags span {
    display: inline-block;
    background: #f3f6fc;
    border: 1px solid #e1e9f8;
    color: #34527f;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* Class timings */

.class-timing {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: #243e6b;
    font-size: 11px;
    margin: 4px 0 14px;
}

/* Join button */

.join-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #f0f4ff;
    color: #12366c;
    padding: 13px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-top: auto;
    transition: background 0.25s ease,
                color 0.25s ease;
}

.join-btn:hover {
    background: #12366c;
    color: #f69700;
}

/* View all button */

.view-all {
    text-align: center;
    margin-top: 42px;
}

.view-all a {
    display: inline-block;
    background: #080b50;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease;
}

.view-all a:hover {
    background: #132c50;
}

/* ===== Tablet ===== */

@media (max-width: 1200px) {
    .classes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .class-image {
        height: 190px;
    }
}

/* ===== Mobile ===== */

@media (max-width: 700px) {
    .classes-section {
        padding: 35px 16px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .class-image {
        height: 135px;
    }

    .class-content {
        padding: 12px 10px;
    }

    .subject-tag {
        font-size: 12px;
        padding: 8px;
    }

    .class-description {
        font-size: 12px;
        line-height: 1.6;
    }

    .class-timing {
        flex-direction: column;
        gap: 7px;
    }
}

/* ===== Small mobile ===== */

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

    .class-image {
        height: 190px;
    }

    .class-timing {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop: 4 cards per row */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Tablet: 2 cards per row */
@media (max-width: 1024px) {
    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
.today-class > .classes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Mobile: 2 cards per row */
@media (max-width: 600px) {
    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .class-image {
        height: 130px;
    }

    .class-content {
        padding: 10px;
    }

    .subject-tag {
        font-size: 12px;
    }

    .class-description {
        font-size: 12px;
    }
}

/* Very small screens: 1 card per row */
@media (max-width: 360px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }

    .class-image {
        height: 190px;
    }
}
.notes-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.notes-modal.active {
    display: flex;
}

.notes-modal-content {
    position: relative;
    width: 100%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.notes-close {
    position: absolute;
    top: 8px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.notes-full-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.notes-close-btn {
    margin-top: 20px;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}
.upcoming-section {
    padding: 55px 20px;
    /*background: #f8faff;*/
    background: #ecf3f3;
    font-family: Arial, sans-serif;
}

.upcoming-heading {
    text-align: center;
    margin-bottom: 35px;
}

.upcoming-heading .section-subtitle {
    color: #5265d5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.upcoming-heading h2 {
    font-size: 32px;
    font-weight: 750;
    color: #172554;
    margin: 10px 0;
}

.upcoming-heading p {
    color: #64748b;
    font-size: 14px;
}

/* Four cards per row */
.upcoming-grid {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.upcoming-card {
    background: #fff;
    border: 1px solid #e5eaf5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.04);
    transition: all .3s ease;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(45, 60, 120, .11);
    border-color: #c7d2fe;
}

.upcoming-image-wrap {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: #eef2ff;
}

.upcoming-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.upcoming-card:hover .upcoming-image {
    transform: scale(1.05);
}

.upcoming-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    background: rgba(255,255,255,.95);
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.upcoming-card-content {
    padding: 17px;
}

.upcoming-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #4f46e5;
    background: #eef2ff;
    padding: 5px 9px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.upcoming-title {
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    /*min-height: 47px;*/
    overflow-wrap: anywhere;
}

.upcoming-notes {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    min-height: 42px;
    margin-bottom: 15px;
}

.upcoming-notes a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.upcoming-exams {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 9px;
    padding: 11px;
    margin-bottom: 15px;
}

.upcoming-exams h4 {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 9px;
}

.upcoming-exam-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.upcoming-exam-tags span {
    display: inline-block;
    padding: 5px 7px;
    border-radius: 5px;
    background: #e0f2fe;
    color: #075985;
    font-size: 10px;
    font-weight: 600;
}

.upcoming-exam-empty {
    font-size: 12px;
    color: #94a3b8;
}

.upcoming-timing {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    /*border-top: 1px solid #edf0f5;*/
    /*border-bottom: 1px solid #edf0f5;*/
    /*padding: 12px 0;*/
    margin-bottom: 15px;
}

.upcoming-timing span {
    color: #475569;
    font-size: 11px;
    background: #f1f5f9;
    padding: 7px;
    border-radius: 6px;
}

.upcoming-join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 10px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: background .2s ease;
}

.upcoming-join:hover {
    background: #3730a3;
    color: #fff;
}

.upcoming-view-all {
    text-align: center;
    margin-top: 32px;
}

.upcoming-view-all a {
    display: inline-block;
    padding: 12px 23px;
    border: 1px solid #143865;
    border-radius: 8px;
    color: #fff;
    background: #143865;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.upcoming-view-all a:hover {
    background: #143865;
    color: #f78106;
}

/* Notes modal */
.upcoming-notes-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.upcoming-notes-modal.active {
    display: flex;
}

.upcoming-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 25px;
    box-sizing: border-box;
}

.upcoming-modal-content h3 {
    color: #172554;
    font-size: 20px;
    margin: 0 35px 18px 0;
}

.upcoming-modal-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.upcoming-modal-x {
    position: absolute;
    right: 15px;
    top: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 28px;
    cursor: pointer;
}

.upcoming-modal-close {
    margin-top: 20px;
    padding: 9px 20px;
    border: none;
    border-radius: 7px;
    color: white;
    background: #4f46e5;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .upcoming-section {
        padding: 40px 14px;
    }

    .upcoming-heading h2 {
        font-size: 27px;
    }

    .upcoming-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .upcoming-image-wrap {
        height: 200px;
    }
}
/* Mobile: 2 cards per row */
@media (max-width: 992px) {
    .classes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
    .upcoming-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}  

@media (max-width: 400px) {
    .today-class > .classes-grid , .classes-grid , .upcoming-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
} 