/* CSS Variables */
:root {
    --primary: #0d47a1; /* Darker primary blue */
    --secondary: #29b6f6; /* Lighter blue for accents */
    --accent: #1e88e5; /* Medium blue */
    --light: #e3f2fd; /* Very light blue */
    --dark: #01579b; /* Darkest blue */
    --success: #66bb6a; /* Green accent */
    --warning: #ffa726; /* Orange accent */
    --info: #42a5f5; /* Info blue */
    --danger: #ef5350; /* Red accent */
    --amazon-blue: #01579b; /* Matching dark blue */
    --bg-dark: #0d47a1; /* Dark background */
    --bg-light: #1565c0; /* Lighter dark background */
    --text-light: #e3f2fd; /* Light text */
    --text-dark: #bbdefb; /* Darker text */
    --card-bg: #1976d2; /* Card background */
    --section-bg: #1565c0; /* Section background */
}

/* Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 0;
    background-color: #ffffff; /* Changed to white background */
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary); /* Changed to dark blue for better contrast on white */
}

p {
    color: #333333; /* Dark text for better readability on white background */
}

/* Enhanced Navbar */
.navbar {
    background-color: #5D1917; /* Changed to Dark Reddish-Brown */
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 28px;
    color: var(--secondary);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #A84642; /* Muted Reddish-Brown for the hover underline */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced Hero Section */
.hero-section {
    /* Removed linear gradient */
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.carousel-caption {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    padding-top: 0;
    padding-bottom: 0;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: white;
}

.btn-hero {
    background-color: #fff;
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
 
}

.btn-hero:hover {
    background-color: white;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(41, 182, 246, 0.4);
}

/* Section Spacing */
.section-spacing {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
    background-color: white; /* Changed to white background */
}

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

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover:before {
    transform: scaleX(1);
}

.card-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-text {
    color: #333333; /* Dark text for better readability on white */
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 1.8rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,.05);
    padding: 1.2rem 1.8rem;
}

/* Enhanced Button Styles */
.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
    color: white;
}

.btn-primary:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

/* Enhanced Carousel Styles */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: none;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: var(--secondary);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #fff;
    transition: all 0.3s ease;
    border: none;
}

.carousel-indicators button.active {
    background-color: #fff;
    width: 30px;
    border-radius: 10px;
}

/* Current Affairs Styles */
.current-affairs-item {
    border-left: 4px solid var(--secondary);
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    background-color: white; /* Changed to white background */
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.current-affairs-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(41, 182, 246, 0.05);
}

.current-affairs-date {
    color: var(--secondary);
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.current-affairs-item h4 {
    color: var(--primary);
}

.current-affairs-item p {
    color: #333333; /* Dark text for better readability on white */
}

/* Footer Styles */
.footer {
    /* Updated gradient to Deep Reddish-Brown */
    background: linear-gradient(135deg, #3F0F0E 0%, #5D1917 100%);
    color: white; 
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    /* Updated top border gradient to Reddish-Brown */
    background: linear-gradient(90deg, #8A2B2A, #D4A5A4);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.5rem;
    color: white; 
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    /* Updated underline to Reddish-Brown accent */
    background: #A84642;
}

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

.footer-links li {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9); 
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    /* Updated icon color to Reddish-Brown accent */
    color: #A84642;
}

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

.footer p {
    color: rgba(255, 255, 255, 0.9); 
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    color: white;
    margin-right: 12px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    /* Updated hover background to Reddish-Brown */
    background: #A84642;
    /* Updated shadow color to match */
    box-shadow: 0 5px 15px rgba(168, 70, 66, 0.3);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9); 
    font-size: 0.9rem;
}

/* Sticky Social Media Icons - Deep Reddish-Brown Theme (Bar Style) */
.sticky-social {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Updated background to Deep Reddish-Brown */
    background-color: #5D1917;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.sticky-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

.sticky-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Mobile Social Bar - Deep Reddish-Brown Theme (Bar Style) */
.mobile-social {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Updated background to Deep Reddish-Brown */
    background-color: #5D1917;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    justify-content: center;
    padding: 8px 0;
    transition: transform 0.3s ease;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1rem;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

.mobile-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background sections */
.bg-light {
    background-color: #f8f9fa !important; /* Light gray background for sections */
}

/* Form styles */
.form-control {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333333;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 1);
    /* Updated border focus color to Reddish-Brown */
    border-color: #A84642;
    color: #333333;
    /* Updated focus shadow to Reddish-Brown */
    box-shadow: 0 0 0 0.25rem rgba(168, 70, 66, 0.25);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Badge styles */
.badge {
    /* Updated badge background to Reddish-Brown */
    background-color: #D4A5A4;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal-scroll-item {
    flex: 0 0 auto;
    width: 85%;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.horizontal-scroll-item:hover {
    transform: scale(1.02);
}

/* Animation for horizontal scroll items */
.horizontal-scroll-item {
    animation: slideInFromRight 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease forwards;
}

.animate-slide-bottom {
    animation: slideInFromBottom 0.8s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 100px 0;
        min-height: 70vh;
    }
    
    .carousel-caption h1 {
        font-size: 2.8rem;
    }
    
    .carousel-caption p {
        font-size: 1.3rem;
    }
    
    /* Enable horizontal scroll on mobile for specific sections */
    .horizontal-scroll-mobile .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -15px;
        padding: 0 15px 20px;
    }
    
    .horizontal-scroll-mobile .col-md-4,
    .horizontal-scroll-mobile .col-md-3,
    .horizontal-scroll-mobile .col-md-6 {
        flex: 0 0 auto;
        width: 85%;
        scroll-snap-align: start;
        margin-right: 15px;
    }
    
    .horizontal-scroll-mobile .col-md-4:last-child,
    .horizontal-scroll-mobile .col-md-3:last-child,
    .horizontal-scroll-mobile .col-md-6:last-child {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .section-spacing {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .sticky-social {
        display: none;
    }
    
    .mobile-social {
        display: flex;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .current-affairs-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-spacing {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Adjust horizontal scroll for smaller screens */
    .horizontal-scroll-mobile .col-md-4,
    .horizontal-scroll-mobile .col-md-3,
    .horizontal-scroll-mobile .col-md-6 {
        width: 90%;
    }
}

/* Current Affairs Card Styles */
.current-affairs-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 15px;
    background: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.date-badge .day {
    display: block;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #2c3e50;
}

.date-badge .month {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 500;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-badge.bg-primary {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
}

.category-badge.bg-success {
    background: linear-gradient(45deg, #06ffa5, #00b4d8);
}

.category-badge.bg-warning {
    background: linear-gradient(45deg, #ff9e00, #ff6000);
}

.category-badge.bg-danger {
    background: linear-gradient(45deg, #f72585, #b5179e);
}

.category-badge.bg-info {
    background: linear-gradient(45deg, #00b4d8, #0077b6);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.current-affairs-card:hover .card-img-top {
    transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: white;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #4361ee;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-size: 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.4;
}

.card-text {
    color: #5a6a7e;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-share a {
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #6c757d;
}

.social-share a:hover {
    background: #4361ee;
    color: white !important;
    transform: scale(1.1);
}

.btn-link {
    font-weight: 600;
    color: #4361ee;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-link:hover {
    color: #3a0ca3;
    transform: translateX(5px);
}

.text-muted {
    color: #6c757d !important;
}

.carousel-indicators [data-bs-target] {
    background-color: #4361ee;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 0.5;
    transition: all 0.3s;
}

.carousel-indicators .active {
    opacity: 1;
    width: 12px;
    height: 12px;
}

.fade-in.animate-slide-bottom {
    animation: slideBottom 0.8s ease-out;
}

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

/* Add a subtle animation to cards */
.current-affairs-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.current-affairs-card:nth-child(1) { animation-delay: 0.1s; }
.current-affairs-card:nth-child(2) { animation-delay: 0.2s; }
.current-affairs-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Custom Carousel Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #01579B; /* dark blue */
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-control-prev-icon::after {
    content: '‹';
    font-size: 24px;
    color: #fff;
}
.carousel-control-next-icon::after {
    content: '›';
    font-size: 24px;
    color: #fff;
}

/* Hide main carousel controls */
#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    display: none;
}

/* Demo Classes Carousel Controls */
#demo-classes .carousel-control-prev,
#demo-classes .carousel-control-next,
#test-series .carousel-control-prev,
#test-series .carousel-control-next,
#books .carousel-control-prev,
#books .carousel-control-next {
    opacity: 1;
    background-color: #01579B;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: auto;
    transform: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}
#demo-classes .carousel-control-prev:hover,
#demo-classes .carousel-control-next:hover,
#test-series .carousel-control-prev:hover,
#test-series .carousel-control-next:hover,
#books .carousel-control-prev:hover,
#books .carousel-control-next:hover {
    background-color: #004080;
    opacity: 1;
}
#demo-classes .carousel-control-prev-icon,
#demo-classes .carousel-control-next-icon,
#test-series .carousel-control-prev-icon,
#test-series .carousel-control-next-icon,
#books .carousel-control-prev-icon,
#books .carousel-control-next-icon {
    background-image: none;
    width: 20px;
    height: 20px;
}
#demo-classes .carousel-control-prev-icon::after,
#test-series .carousel-control-prev-icon::after,
#books .carousel-control-prev-icon::after {
    content: '‹';
    font-size: 24px;
    color: #fff;
}
#demo-classes .carousel-control-next-icon::after,
#test-series .carousel-control-next-icon::after,
#books .carousel-control-next-icon::after {
    content: '›';
    font-size: 24px;
    color: #fff;
}

/* Books Section Styles */
.book-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 15px;
    background: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.book-img-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.book-badge.new {
    background: linear-gradient(45deg, #06ffa5, #00b4d8);
}

.book-badge.best-seller {
    background: linear-gradient(45deg, #ff9e00, #ff6000);
}

.book-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.book-description {
    color: #5a6a7e;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.book-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.book-price .original-price {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}

.book-add-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-add-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Explore All Button */
.explore-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.explore-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
    color: white;
}

.text-center {
    text-align: center;
}



/* Custom styles for active heart and bookmark buttons */
.heart-btn.active i {
    color: #e74c3c; /* Red color for active heart */
}

.bookmark-btn.active i {
    color: #e67e22; /* Orange color for active bookmark */
}

.heart-btn:hover i,
.bookmark-btn:hover i {
    color: #6c757d; /* Gray color on hover */
}

.heart-btn.active:hover i {
    color: #c0392b; /* Darker red on hover for active heart */
}

.bookmark-btn.active:hover i {
    color: #d35400; /* Darker orange on hover for active bookmark */
}



/* PYQ Section Styles */
.pyq-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pyq-header {
    text-align: center;
    margin-bottom: 40px;
}

.pyq-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.pyq-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.pyq-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.pyq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pyq-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pyq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pyq-card-badge {
    padding: 12px 15px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pyq-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pyq-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pyq-card-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pyq-card-footer {
    padding: 0 20px 20px;
}

.pyq-download-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.25);
}

.pyq-download-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.35);
    color: white;
}

.pyq-toggle-container {
    text-align: center;
    margin: 20px 0 40px;
}

.pyq-toggle-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.pyq-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.pyq-explore-btn {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.pyq-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Initially hide cards 5-8 on mobile */
.pyq-card:nth-child(n+5) {
    display: none;
}

/* When show all is active */
.pyq-show-all .pyq-card:nth-child(n+5) {
    display: flex;
}

/* Desktop styles */
@media (min-width: 992px) {
    .pyq-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .pyq-card:nth-child(n+5) {
        display: flex;
    }
    
    .pyq-toggle-container {
        display: none;
    }
    
    .pyq-title {
        font-size: 2.5rem;
    }
    
    .pyq-card-title {
        font-size: 1.2rem;
    }
    
    .pyq-card-text {
        font-size: 0.95rem;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991px) {
    .pyq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pyq-card-title {
        font-size: 1.15rem;
    }
}

/* Mobile optimization */
@media (max-width: 767px) {
    .pyq-section {
        padding: 40px 15px;
    }
    
    .pyq-title {
        font-size: 1.8rem;
    }
    
    .pyq-subtitle {
        font-size: 1rem;
    }
    
    .pyq-card-title {
        font-size: 1rem;
    }
    
    .pyq-card-text {
        font-size: 0.85rem;
    }
    
    .pyq-card-content {
        padding: 15px;
    }
    
    .pyq-card-badge {
        padding: 10px 12px;
        font-size: 0.7rem;
    }
    
    .pyq-download-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Animation */
.pyq-animate-slide {
    animation: pyqSlideUp 0.7s ease forwards;
}

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

.pyq-animate-pulse {
    animation: pyqPulse 2s infinite;
}

@keyframes pyqPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.badge-prelims {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.badge-mains {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.badge-kas {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.badge-optional {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.badge-interview {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}






.pyq-search-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
    align-items: center;
}
.pyq-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}
.pyq-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-width: 250px;
}
.pyq-search-input:focus {
    outline: none;
    border-color: #4a6fdc;
    box-shadow: 0 0 0 3px rgba(74, 111, 220, 0.2);
}
.pyq-reset-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #6c757d;
    color: white;
    white-space: nowrap;
}
.pyq-reset-btn:hover {
    background-color: #5a6268;
}
.pyq-search-hint {
    margin-top: 10px;
    text-align: center;
    color: #6c757d;
}
.pyq-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
}
.pyq-badge-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.legend-title {
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
}
.legend-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.legend-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    user-select: none;
}
.legend-badge:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.legend-badge.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.clear-filters-btn {
    padding: 6px 12px;
    border: 1px solid #6c757d;
    border-radius: 15px;
    font-size: 12px;
    background-color: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}
.clear-filters-btn:hover {
    background-color: #6c757d;
    color: white;
}
.pyq-toggle-container {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
/* Desktop-only class for toggle container */
.desktop-only {
    display: flex;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .pyq-search-form {
        flex-direction: column;
        width: 90%;
    }
    
    .pyq-search-input {
        min-width: unset;
    }
    
    .pyq-reset-btn {
        width: 100%;
    }
    
    .pyq-badge-legend {
        padding: 15px;
    }
    
    .legend-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Hide toggle buttons on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Adjust grid for mobile */
    .pyq-grid {
        grid-template-columns: 1fr 1fr; /* Two columns */
        gap: 15px;
    }
}

  



/* Custom styles for the carousel to fix spacing issues */
#demoCarousel .carousel-inner {
    padding: 0 15px;
}

#demoCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#demoCarousel .carousel-control-prev,
#demoCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#demoCarousel .carousel-control-prev {
    left: -25px;
}

#demoCarousel .carousel-control-next {
    right: -25px;
}

#demoCarousel .carousel-control-prev-icon,
#demoCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Ensure consistent card heights */
#demoCarousel .card {
    display: flex;
    flex-direction: column;
}

#demoCarousel .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#demoCarousel .card-title {
    margin-bottom: 10px;
}

#demoCarousel .card-text {
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #demoCarousel .carousel-control-prev,
    #demoCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #demoCarousel .carousel-control-prev {
        left: -15px;
    }
    
    #demoCarousel .carousel-control-next {
        right: -15px;
    }
}



/* Custom styles for the courses carousel to match demo classes */
#coursesCarousel {
    position: relative;
}
#coursesCarousel .carousel-inner {
    padding: 0 15px;
}
#coursesCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}
/* Position controls at top center with gap */
#coursesCarousel .carousel-control-prev,
#coursesCarousel .carousel-control-next {
     width: 40px;
    height: 40px;
    background-color: #5D1917; /* Deep Reddish-Brown */
    border-radius: 50%;
    top: -2%;
    transform: translateY(-50%);
    z-index: 10;
}
#coursesCarousel .carousel-control-prev {
    left: calc(50% - 50px); /* Position left of center with gap */
}
#coursesCarousel .carousel-control-next {
    left: calc(50% + 10px); /* Position right of center with gap */
}
#coursesCarousel .carousel-control-prev-icon,
#coursesCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}
/* Courses Section Styles */
.courses-section {
    padding: 80px 0;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.courses-header {
    text-align: center;
    margin-bottom: 40px;
}
.courses-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.courses-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #8A2B2A, #D4A5A4); /* Reddish-Brown Gradient */
    border-radius: 2px;
}
.courses-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.course-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.course-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card:hover .course-img {
    transform: scale(1.05);
}
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.course-badge.new {
    background: linear-gradient(45deg, #5D1917, #A84642); /* Deep Reddish-Brown */
}
.course-badge.popular {
    background: linear-gradient(45deg, #ff9e00, #ff6000);
}
.course-badge.advanced {
    background: linear-gradient(45deg, #5D1917, #8A2B2A); /* Deep Reddish-Brown */
}
.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}
.course-instructor {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}
.course-description {
    color: #5a6a7e;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #6c757d;
}
.course-duration {
    display: flex;
    align-items: center;
}
.course-duration i {
    margin-right: 5px;
    color: #5D1917; /* Deep Reddish-Brown */
}
.course-rating {
    display: flex;
    align-items: center;
}
.course-rating i {
    color: #ffc107;
    margin-right: 5px;
}
.course-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5D1917; /* Deep Reddish-Brown */
}
.course-price .original-price {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}
.course-enroll-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #5D1917, #8A2B2A); /* Deep Reddish-Brown */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.course-enroll-btn:hover {
    background: linear-gradient(135deg, #3F0F0E, #5D1917); /* Darker Reddish-Brown on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(93, 25, 23, 0.3);
}
.courses-explore-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #5D1917, #8A2B2A); /* Deep Reddish-Brown */
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(93, 25, 23, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}
.courses-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 25, 23, 0.4);
    color: white;
}
/* Course Card Animation */
.course-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}
.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive adjustments */
@media (min-width: 1200px) {
    .courses-section .container-fluid {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .courses-title {
        font-size: 2.5rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-description {
        font-size: 0.95rem;
    }
    
    .desktop-view .row {
        margin: 0 -12px !important;
    }
    
    .desktop-view .col-xl-4 {
        padding: 0 12px;
    }
    
    /* Adjust control positions for larger screens */
    #coursesCarousel .carousel-control-prev {
        left: calc(50% - 55px);
    }
    #coursesCarousel .carousel-control-next {
        left: calc(50% + 15px);
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .courses-section .container-fluid {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .desktop-view .row {
        margin: 0 -10px !important;
    }
    
    .desktop-view .col-lg-4 {
        padding: 0 10px;
    }
    
    .course-title {
        font-size: 1.15rem;
    }
    
    /* Adjust control positions */
    #coursesCarousel .carousel-control-prev {
        left: calc(50% - 60px);
    }
    #coursesCarousel .carousel-control-next {
        left: calc(50% + 10px);
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .courses-section .container-fluid {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .desktop-view .row {
        margin: 0 -8px !important;
    }
    
    .desktop-view .col-md-6 {
        padding: 0 8px;
    }
    
    .course-title {
        font-size: 1.15rem;
    }
    
    /* Adjust control positions */
    #coursesCarousel .carousel-control-prev {
        left: calc(50% - 55px);
    }
    #coursesCarousel .carousel-control-next {
        left: calc(50% + 5px);
    }
}
@media (max-width: 767px) {
    .courses-section {
        padding: 40px 0;
    }
    
    .courses-section .container-fluid {
        padding: 0 15px;
    }
    
    .courses-title {
        font-size: 1.8rem;
    }
    
    .courses-subtitle {
        font-size: 1rem;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .course-description {
        font-size: 0.85rem;
    }
    
    .course-content {
        padding: 15px;
    }
    
    .course-badge {
        padding: 10px 12px;
        font-size: 0.7rem;
    }
    
    .course-enroll-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Mobile carousel adjustments */
    .mobile-view .carousel-inner {
        padding: 0 10px;
    }
    
    .mobile-view .carousel-item {
        padding: 0;
    }
    
    .mobile-view .course-img-container {
        height: 180px;
    }
    
    /* Adjust control positions for mobile */
    #coursesCarousel .carousel-control-prev,
    #coursesCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #coursesCarousel .carousel-control-prev {
        left: calc(50% - 45px);
    }
    
    #coursesCarousel .carousel-control-next {
        left: calc(50% + 5px);
    }
    
    /* Make sure mobile slides take full width */
    .mobile-view .col-12 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    /* Remove row gap for mobile */
    .mobile-view .row {
        margin: 0;
    }
}



    
    



