:root {
    --primary-red: #FF4B2B;
    --secondary-red: #FF416C;
    --primary-orange: #FF8008;
    --secondary-orange: #FFA751;
    --primary-yellow: #FFD93D;
    --secondary-yellow: #FFE162;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --gradient-hot: linear-gradient(45deg, var(--primary-red), var(--primary-orange));
    --gradient-warm: linear-gradient(45deg, var(--primary-orange), var(--primary-yellow));
    --landing-slider-width: 100%;
    --landing-slider-height: auto;
    --landing-slider-ratio: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

.welcome {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: bold;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: bold;
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--gradient-hot);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-light);
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background: var(--gradient-warm);
    transform: scale(1.05);
}

/* Landing hero: full-width banner above content, welcome block in container */
.landing-hero-banner {
    width: 100%;
    margin: 0;
    background: #fff;
}

.landing-hero {
    width: 100%;
    margin: 1.5rem auto 2rem;
}

.landing-hero__carousel {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.landing-hero__copy {
    width: 100%;
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.landing-hero__copy .brand-description {
    max-width: none;
}

.landing-hero__buttons {
    margin-top: 1.25rem;
}

.landing-hero__buttons .btn-primary {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.landing-hero-carousel {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: #fff;
    box-shadow: none;
}

.landing-hero-carousel--empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px dashed #dee2e6;
    background: #f8f9fa;
}

.landing-hero-carousel .carousel-inner {
    height: auto !important;
    border-radius: 0;
    background: #fff;
}

.landing-hero-carousel .carousel-item {
    height: auto !important;
    float: none;
}

.landing-hero-slide-wrap {
    width: 100%;
    height: auto;
    line-height: 0;
    background: #fff;
    text-align: center;
}

.landing-hero-slide-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: unset;
    object-position: center top;
    border-radius: 0;
    background: #fff;
}

.landing-hero-control {
    width: auto;
    opacity: 1;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.landing-hero-control.carousel-control-prev {
    left: 10px;
}

.landing-hero-control.carousel-control-next {
    right: 10px;
}

.landing-hero-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(235, 55, 14, 0.92);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.landing-hero-control:hover .landing-hero-control-icon {
    background: var(--primary-red);
    transform: scale(1.08);
}

.landing-hero-indicators {
    margin-bottom: 0.5rem;
}

.landing-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 75, 43, 0.45);
    border: none;
}

.landing-hero-indicators .active {
    background-color: var(--primary-red);
}

@media (max-width: 991px) {
    .landing-hero__copy {
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    .landing-hero__buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
    }

    .brand-description {
        font-size: 1rem;
    }

    .landing-hero-control.carousel-control-prev {
        left: 6px;
    }

    .landing-hero-control.carousel-control-next {
        right: 6px;
    }

    .landing-hero-control-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}


/* card-section */

/* Card Base Styles */
.category-card {
border: none;
border-radius: 15px;
overflow: hidden;
transition: transform 0.3s ease;
height: 100%;
position: relative;
background: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 1rem;
}

.category-card:hover {
transform: translateY(-5px);
}

/* Yellow Shape Styles */
.card-body {
padding: 1.5rem 1rem;
position: relative;
z-index: 1;
}

.card-body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 40%;
background: var(--gradient-warm);
border-radius: 0 0 71% 30% / 0 0 96% 90%;
transform: scale(1.5);
z-index: -1;
}

/* Icon Styles */
.category-icon {
font-size: 2rem;
color: #333;
margin-bottom: 1rem;
position: relative;
z-index: 2;
}

/* Text Styles */
.card-title {
color: #333;
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}

.card-text {
color: #666;
font-size: 0.9rem;
margin-bottom: 1rem;
}

/* View Courses Button */
.btn-primary {
font-size: 0.9rem;
padding: 8px 12px;
border-radius: 20px;
}

/* Grid Layout for 5 Cards per Row */
@media (min-width: 1200px) {
.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}
}

@media (max-width: 1200px) {
.col-lg-2-4 {
    flex: 0 0 25%;
    max-width: 25%;
}
}

@media (max-width: 992px) {
.col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}
}

@media (max-width: 768px) {
.col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
}
}

@media (max-width: 576px) {
.col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
}
}

/* Topper's Section */


/* Toppers Section */
.topper-section {
    max-width: 90%;
    margin: 40px auto;
    text-align: center;
}

/* Carousel Container */
#topperCarousel {
    position: relative;
    background: #f6ddb4;
    padding: 20px;
    border-radius: 15px;
}

/* Row inside carousel */
.carousel-inner .row {
    display: flex;
    justify-content: center;
}

/* Topper Card */
.topper-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

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

/* Topper Image */
.topper-card img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Topper Name */
.topper-card h5 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Rank & Batch */
.topper-card p {
    font-size: 14px;
    color: #666;
}

/* Button */
.topper-btn {
    background:var(--gradient-hot);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.topper-btn:hover {
    background: var(--gradient-warm);
}

/* Navigation Buttons */
.carousel-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-warm);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
}


/* Announcement Section */
.announcement-section {
    margin-top: 40px;
    padding: 50px 0;
    overflow: hidden;
}

.announcement-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 20px 0;
}

.announcement-card {
    min-width: 300px;
    flex: 0 0 calc(33.333% - 20px);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.announcement-card:nth-child(3n+1) {
    background-color: #00a651;
    color: white;
}

.announcement-card:nth-child(3n+2) {
    background-color: #ffa500;
    color: white;
}

.announcement-card:nth-child(3n+3) {
    background-color: #dc3545;
    color: white;
}

.announcement-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.announcement-desc {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.announcement-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}

@media (max-width: 992px) {
    .announcement-card {
        flex: 0 0 calc(50% - 20px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .announcement-card {
        flex: 0 0 calc(100% - 20px);
        min-width: 280px;
    }
}
