/* General Body Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 50px; /* Adjust based on navbar height */
    overflow-x: hidden; /* Prevent horizontal scroll due to fixed elements */
}

/* Navbar Customizations */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    background-color: #fff !important; /* Ensure white background for consistency */
}

.nav-logo {
    height: 32px; /* Adjust as needed */
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important; /* Override Bootstrap default */
    transition: color 0.8s ease-in-out;
    padding-left: 1rem !important; /* Add some padding for spacing */
    padding-right: 1rem !important; /* Add some padding for spacing */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff !important; /* Primary color for hover and active state */
}

.navbar-toggler {
    border: none;
}

/* Hero Section */
.hero-section {
    background-color: #f8f9fa; /* Light background for a clean look */
    padding: 80px 0; /* Adjust padding as needed */
}

.hero-heading {
    font-size: 3.2rem; /* Larger heading */
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    padding-top: 70px /* Dark text for contrast */
}

.hero-heading .text-primary {
    color: #007bff !important; /* Your primary blue */
}

.hero-subheading {
    font-size: 1.25rem;
    color: #555;
    margin-top: 15px;
    margin-bottom: 30px;
}

.hero-call-to-action {
    font-size: 1.1rem;
    color: #28a745; /* A subtle green for call to action */
    font-weight: bold;
}

/* WhatsApp Form in Hero Section */
#heroWhatsappForm .input-group-text {
    background-color: #e9ecef;
    border-right: none;
    border-color: #ced4da;
    color: #495057;
}

#heroWhatsappForm .form-control-lg {
    border-left: none;
    border-radius: 0 .25rem .25rem 0; /* Align with input-group-text */
}

#heroWhatsappForm .btn-primary {
    background-color: #007bff; /* Primary button color */
    border-color: #007bff;
    min-width: 150px; /* Ensure button doesn't become too small */
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: .25rem; /* Standard Bootstrap border-radius */
}

#heroWhatsappForm .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#heroWhatsappForm .fab.fa-whatsapp {
    font-size: 1.8rem; /* Adjust icon size */
}

.hero-image {
    max-width: 60%;
    height: auto;
    border-radius: 15px; /* Slightly rounded corners for the image */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Soft shadow */
}
@media (max-width: 767.98px) {
    /* ... other styles ... */
    .hero-image {
        max-width: 70%; /* Image ko column ka 80% width do, pehle 100% tha */
        margin-top: 30px;
        margin-left: auto; /* Center image */
        margin-right: auto; /* Center image */
        display: block;/* For margin auto to work */
    }
    /* ... */
}


/* Section Headings (General) */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 5px;
}

/* What You'll Learn Section */
.learn-icon {
    width: 80px; /* Adjust size of icons */
    height: 80px;
    object-fit: contain;
}

.card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}


/* Testimonials Section */
.testimonial-card {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(0, 123, 255, 0.1); /* Light primary color */
}

.testimonial-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #007bff;
    border-radius: 50%;
    padding: 20px;
}

/* Custom Footer Styles */
.custom-footer {
    background-color: #212529 !important; /* Dark background */
    color: #f8f9fa;
}

.custom-footer h5 {
    color: #28a745 !important; /* Green for headings */
    font-weight: bold; /* Make headings bold */
}

.custom-footer p, .custom-footer small {
    color: #cccccc; /* Lighter text for better readability on dark background */
}

.custom-footer a {
    color: #f8f9fa !important; /* White links */
    transition: color 0.3s ease;
}

.custom-footer a:hover {
    color: #28a745 !important; /* Green on hover */
}

.custom-footer .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.custom-footer .btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

.custom-footer .social-icons a {
    font-size: 1.5rem;
    color: #f8f9fa;
    transition: color 0.3s ease;
}

.custom-footer .social-icons a:hover {
    color: #28a745;
}

/* Chat Popup Styles */
#chatPopup {
    right: 20px;
    bottom: 80px; /* To prevent overlapping with any floating action button/icon */
    width: 300px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease-in-out; /* Smooth transition for display */
}

#chatPopup .btn-close {
    font-size: 0.8rem; /* Smaller close button */
}

#chatPopup .btn-success {
    background-color: #28a745; /* WhatsApp green */
    border-color: #28a745;
}

#chatPopup .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

#chatPopup .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

#chatPopup .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* Optional: Floating button to toggle the chat popup */
.chat-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001; /* Make sure it's on top */
    background-color: #007bff; /* Primary theme color */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-toggle-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.chat-toggle-button i {
    font-size: 2rem;
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    .navbar-nav .nav-link {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section adjustments for smaller screens */
    .hero-heading {
        font-size: 2.2rem; /* Thoda aur chota kiya for initial mobile optimization */
        text-align: center;
    }
    .hero-subheading, .hero-call-to-action {
        text-align: center;

    }
    #heroWhatsappForm {
        flex-direction: column;
        align-items: center; /* Center items in column mode */

    }
    #heroWhatsappForm .input-group {
        width: 85%; /* Full width for input group */
        margin-bottom: 25px; /* Space between input and button */
        margin-right: 0 !important; /* Remove right margin on small screens */
        margin-top: 80px;
    }
    #heroWhatsappForm .form-control-lg {
        border-radius: .25rem !important; /* Full rounded corners when stacked */
    }
    #heroWhatsappForm .btn-primary {
        width: 85%; /* Full width button */
    }
    .hero-image {
        margin-top: 60px; /* Space between text and image on mobile */
    }

    /* Footer adjustments */
    .custom-footer .text-md-left,
    .custom-footer .text-md-end {
        text-align: center !important; /* Center align footer columns on medium/small screens */
    }
    .custom-footer .col-md-4,
    .custom-footer .col-md-5,
    .custom-footer .col-md-3 {
        margin-bottom: 30px; /* Add space between stacked columns */
    }
}

@media (max-width: 767.98px) {
    /* Navbar text and logo on very small screens */
    .navbar-brand-text {
        font-size: 1.3rem; /* Further reduced from 1.4rem to 1.3rem */
    }
    .nav-logo {
        height: 30px; /* Logo ko bhi thoda chhota kiya from 35px */
    }

    /* Hero Section adjustments for very small screens (your image ka size) */
    .hero-heading {
        font-size: 1.7rem; /* Yahan pehle 1.8rem tha, ab 1.7rem kiya */
    }
    .hero-subheading {
        font-size: 1rem; /* Yahan pehle 1.1rem tha, ab 1rem kiya */
    }
    .hero-call-to-action {
        font-size: 0.95rem; /* Yahan pehle 1rem tha, ab 0.95rem kiya */
    }
    #heroWhatsappForm .btn-primary {
        font-size: 0.95rem; /* Button font size bhi adjust kiya */
        padding: 6px 12px; /* Button padding bhi kam ki */
    }
    #heroWhatsappForm .form-control-lg {
        font-size: 0.95rem; /* Input field font size bhi adjust kiya */
        padding: 0.375rem 0.75rem; /* Bootstrap's default form-control padding */
        height: auto; /* Allow height to adjust */
    }
    #heroWhatsappForm .input-group-text {
        font-size: 0.95rem; /* Input group icon size */
        padding: 0.375rem 0.75rem; /* Bootstrap's default input-group-text padding */
    }

    /* General section headings for smaller screens */
    h2 {
        font-size: 1.8rem; /* Thoda aur chhota kiya h2 headings ko */
    }
    h2::after {
        width: 30px; /* Underline ko bhi chhota kiya */
    }

    /* What You'll Learn icons */
    .learn-icon {
        width: 50px; /* Icons ko bhi thoda chhota kiya */
        height: 50px;
    }
    .card-title { /* Card titles ko bhi thoda chhota kar sakte hain */
        font-size: 1.1rem;
    }
    .card-text { /* Card descriptions ko bhi */
        font-size: 0.85rem;
    }

    /* Complete Course Details list items */
    .course-features li {
        font-size: 0.95rem;
    }

    /* Testimonial text */
    .testimonial-card p {
        font-size: 0.9rem;
    }

    /* Chat popup adjustments */
    #chatPopup {
        width: 90%; /* On smaller screens, make it wider */
        right: 5%;
        bottom: 80px; /* Keep consistent bottom margin */
    }
}


/* About Section Styles */
#about {
    background-color: #f8f9fa; /* Light background if bg-white on section */
}

.about-image-card {
    background-color: #fff;
   
   
    padding: 25px;
    
    
}



.about-director-img {
    width: 250px; /* Adjust size as needed */
    height: 250px; /* Should be equal to width for perfect circle */
    object-fit: cover; /* Image will cover the area without distortion */
    
}

/* Ensure Font Awesome is included for fa-arrow-right */
.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}
.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}


/* Responsive adjustments for About Section */
@media (max-width: 767.98px) {
    #about {
        padding: 40px 0; /* Mobile par padding kam ki */
    }
    .about-image-card {
        padding: 20px;
        margin-bottom: 25px; /* Image card ke neeche margin */
    }
    .about-director-img {
        width: 200px; /* Mobile par image thodi choti */
        height: 200px;
    }
    .about-image-card h3 {
        font-size: 1.3rem;
    }
    .about-image-card p {
        font-size: 0.9rem;
    }
    .lead {
        font-size: 1rem; /* Lead paragraph font size adjust kiya */
    }
    #about p {
        font-size: 0.9rem; /* Regular paragraph font size adjust kiya */
    }
    .btn-outline-primary {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Ensure the above CSS is added within your style.css, preferably grouped with other section styles */