*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;    
    --footer-bg: #1a252f;
    --text-color:#021b42;
    --tu-blue: #003366;
    --tu-red: #cc0000;
    --tu-gold: #ffcc00;
    --body-bg:#F1F1F7;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: url('../front/img/back.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh; */
    background-color: var(--body-bg);
    margin: 0;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}
.container-fluid{
    padding: 0px clamp(3px 30px 30px) !important;
}
.learnhub-header {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 15px 25px;
    margin: 0 auto;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand span:first-child {
    color: var(--secondary-color);
}

.navbar-brand span:last-child {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-buttons .btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 8px 20px;
    margin-left: 8px;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-login:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-signup {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: white;
}

.btn-signup:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
    padding: 8px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2852, 152, 219, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 2px 0;
    }
    
    .auth-buttons {
        margin-top: 15px;
        display: flex;
        justify-content: flex-start;
    }
    
    .auth-buttons .btn {
        margin-left: 0;
        margin-right: 10px;
    }
}

@media (max-width: 575.98px) {
    .learnhub-header {
        padding: 10px 15px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .auth-buttons .btn {
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
    }
}

.container {
    max-width: 1200px;
}

/* Demo content styling */
.demo-content {
    max-width: 1200px;
    margin: 40px auto 0;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.demo-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.demo-content p {
    color: #555;
    line-height: 1.6;
}

.responsive-test {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 25px;
    border-left: 4px solid var(--secondary-color);
}

.device-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.search-part-div-main{
   background-image: url('../front/img/Learning.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: clamp(300px, 90vh, 550px);
    .content-div{
        padding: clamp(30px, 40px, 40px);
        color: #0d5188;
        h1{
            font-size: 70px;

        }
    }
}
.search-box {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-icon {
    padding: 0 12px;
    color: #777;
    font-size: 18px;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 14px 10px;
    font-size: 15px;
}

.search-box button {
    background: #d62828;
    color: #fff;
    border: none;
    padding: 8px 26px;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 23px;
}

.search-box button:hover {
    background: #b71c1c;
}
        .featureSlider {
            padding: 20px 10px 40px;
            margin-top: -80px;
        }
        
        .feature-card {
            background: white;
            border-radius: 15px;
            padding: 30px 20px;
            text-align: center;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            height: 100%;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            /* border-top: 4px solid var(--secondary-color); */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .swiper-slide:nth-child(even) .feature-card{
            border-top: 4px solid var(--secondary-color);
        }
        .swiper-slide:nth-child(odd) .feature-card{
            border-top: 4px solid var(--accent-color);
        }
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        }
        
        .feature-card img {
            width: 70px;
            height: 70px;
            object-fit: contain;
            margin-bottom: 20px;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
        }
        
        .feature-card h5 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        .feature-card p {
            color: #666;
            margin: 0;
            font-size: 0.95rem;
        }
        
        /* Different border colors for each card */
        .feature-card:nth-child(even) {
            border-top-color: #3498db;
        }
        
        .feature-card:nth-child(old) {
            border-top-color: #e74c3c;
        }
        
        
        
        /* Swiper pagination styling */
        .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background-color: #ccc;
            opacity: 1;
        }
        
        .swiper-pagination-bullet-active {
            background-color: var(--secondary-color);
        }
        
        /* Swiper navigation buttons */
        .swiper-button-next,
        .swiper-button-prev {
            color: var(--secondary-color);
            background-color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 18px;
            font-weight: bold;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .feature-card {
                padding: 25px 15px;
            }
            
            .feature-card img {
                width: 60px;
                height: 60px;
            }
            
            .feature-card h5 {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 576px) {
            .feature-card {
                padding: 20px 15px;
            }
            
            .feature-card img {
                width: 50px;
                height: 50px;
                margin-bottom: 15px;
            }
            
            .feature-card h5 {
                font-size: 1rem;
            }
            
            .feature-card p {
                font-size: 0.85rem;
            }
        }

.learnhub-footer {
    background: url('../front/img/footer.png');
    background-position: center center;
    background-repeat: no-repeat;   
    color: var(--text-color);
    background-size: cover;
    padding-top: 40px;
}

.footer-cta {
    text-align: center;
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.footer-cta-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-cta-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.footer-cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.footer-links-container {
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    margin-bottom: 30px;
}

.footer-column-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.footer-column-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--text-color);
    padding-left: 8px;
}

.footer-social {
    text-align: center;
    margin-bottom: 40px;
}

.footer-social-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    
}

.footer-social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: 80px;
}

.footer-social-icon:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

.footer-social-icon i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-icon:hover i {
    background-color: var(--secondary-color);
    color: #fff;
}

.footer-social-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-copyright {
    text-align: center;
    /* padding-top: 30px; */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(9, 35, 71, 1);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-cta-title {
        font-size: 2.2rem;
    }
    
    .footer-cta-button {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .learnhub-footer {
        padding: 50px 0 20px;
    }
    
    .footer-cta {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    
    .footer-cta-title {
        font-size: 1.8rem;
    }
    
    .footer-cta-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .footer-links-container {
        padding-bottom: 40px;
        margin-bottom: 30px;
    }
    
    .footer-column {
        margin-bottom: 35px;
    }
    
    .footer-social-icons {
        gap: 20px;
    }
    
    .footer-social-icon {
        width: 70px;
    }
    
    .footer-social-icon i {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .footer-cta-title {
        font-size: 1.6rem;
    }
    
    .footer-cta-button {
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-social-icons {
        gap: 15px;
    }
    
    .footer-social-icon {
        width: 60px;
    }
    
    .footer-social-icon i {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .footer-social-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .footer-social-icons {
        gap: 10px;
    }
    
    .footer-social-icon {
        width: 55px;
    }
    
    .footer-social-icon i {
        width: 45px;
        height: 45px;
    }
}
/* Parent relative */
.main-drop-div {
    position: relative;
}

/* First-level dropdown */
.main-drop-box {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;

    background: #fff;
    list-style: none;
    padding: 8px 0;
    margin: 0;

    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}
.main-drop-item {
    position: relative;  /* IMPORTANT: sub-dropdown top aligned with this li */
}
/* Second-level dropdown */
.sub-main-drop-box {
    position: absolute;
    top: 0;           /* parent li ke top se align */
    left: 100%;       /* parent li ke right side me */
    min-width: 180px;

    background: #fff;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-top: 5px solid var(--accent-color);

    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Show first-level on hover */
.main-drop-div:hover > .main-drop-box {
    display: block;
}

/* Show second-level on hover of parent item */
.main-drop-item:hover > .sub-main-drop-box {
    display: block;
}

/* Dropdown items style */
.main-drop-item a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

/* Hover effect */
.main-drop-item a:hover {
    background-color: #f2f2f2;
}
.similar-slider .course-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px; /* optional: rounded corners */
    transition: transform 0.3s ease;
}

.similar-slider .swiper-slide:hover .course-image img {
    transform: scale(1.05);
}

.similar-slider .course-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.similar-slider .swiper-slide:hover .course-icon {
    background-color: #0056b3;
    transform: scale(1.1);
}
