/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 70px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Sticky/Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #f8f9fa !important;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    margin: 0 5px;
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #28a745;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: #28a745 !important;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

/* Carousel Enhancements */
#slider .carousel-item img {
    height: 470px;
    max-width: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

#slider .carousel-item:hover img {
    filter: brightness(1);
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-caption h3 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Section */
#courses {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#courses h2 {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#courses h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

/* Blogs Section */
#blogs h2 {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#blogs h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

#blogs .lead {
    color: #555;
    font-size: 1.1rem;
}

/* YouTube Section */
#youtube h2 {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#youtube h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF0000, #cc0000);
    border-radius: 2px;
}

#youtube .lead {
    color: #555;
    font-size: 1.1rem;
}

/* Coming Soon Cards */
.coming-soon-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.coming-soon-card h3 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
}

.coming-soon-card .lead {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}

.topics-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.topic-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.topic-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.topic-badge.youtube {
    background: linear-gradient(135deg, #FF0000, #cc0000);
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
}

.topic-badge.youtube:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}

footer h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #28a745;
    border-radius: 2px;
}

footer a {
    color: #d8dee9;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: #28a745;
    transform: translateX(5px);
}

footer ul li {
    margin-bottom: 10px;
}

.social-links {
    display: inline-flex;
    gap: 15px;
    font-size: 24px;
    margin-top: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #28a745;
    transform: translateY(-5px) rotate(360deg);
    color: white !important;
}

footer p i {
    margin-right: 10px;
    color: #28a745;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    #navbarNav:not(.show) {
        padding-right: 60px;
    }

    #logo:not(.show) {
        padding-left: 60px;
    }

    #maindiv:not(.show){
        padding: 0px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    #slider .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 200px;
    }
}

.custom-class {
    margin-bottom: 30px;
}

@media (max-width: 991.98px) {
    .navbar-collapse.show .custom-class {
        margin-bottom: 40px;
    }
}