/*
Theme Name: NewWebsite          <-- IMPORTANT: This is what you'll see in WordPress admin!
Theme URI: https://enlighteningedu.in/index.html      <-- Replace with your actual website address
Author: Manikandan                 <-- Replace with your name
Description: A fresh design for my site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-simple-new-look
*/

/* ************************************************************ */
/* YOUR ACTUAL CSS STARTS BELOW THIS LINE (do not delete this part!) */
/* ************************************************************ */

/* General Body and Typography */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light background for the whole page */
    padding-top: 70px; /* Space for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c3e50; /* Darker heading color */
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.lead-sm {
    font-size: 1.1rem;
    color: #6c757d;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #007bff; /* Primary color */
    border-radius: 2px;
}

@media (min-width: 992px) {
    .section-title::after {
        left: 0;
        transform: translateX(0);
    }
    .text-lg-start .section-title::after {
        left: 0;
        transform: translateX(0);
    }
}

/* Navbar Styling */
.navbar {
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff !important;
    /* Reduce margin-right to reclaim space */
    margin-right: 1.5rem; /* Reduced from 2.5rem */
    white-space: nowrap; /* Prevent brand name from breaking if it's long */
}

/* Ensure the toggler (hamburger icon) is always visible on smaller screens if needed */
.navbar-toggler {
    margin-left: auto; /* Push toggler to the far right on smaller screens */
}


.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    /* Reduce horizontal margin to reclaim space */
    margin: 0 10px; /* Reduced back to 10px, or even 8px if needed */
    transition: color 0.3s ease;
    white-space: nowrap; /* CRUCIAL: Prevent text from wrapping within the link */
    padding-left: 0.5rem; /* Add some internal padding */
    padding-right: 0.5rem; /* Add some internal padding */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff !important;
}

/* Adjustments for the main navigation container */
.navbar-collapse {
    /* Allow flex-wrap so items can wrap if necessary, but we'll try to prevent it with nowrap */
    flex-wrap: nowrap;
    justify-content: flex-end; /* Keep items aligned to the right */
}


/* Media query for smaller screens: adjustments for when the menu is collapsed */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-right: 0;
        font-size: 1.6rem; /* Slightly smaller font for brand on small screens */
    }
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        text-align: center;
        white-space: normal; /* Allow wrapping again when menu is vertical */
    }
    .navbar-collapse {
        flex-wrap: wrap; /* Allow wrapping when collapsed */
    }
}

/* Add this if you don't already have it, to ensure the container uses flexbox properly */
.navbar .container {
    display: flex;
    align-items: center; /* Vertically align items in the navbar */
    justify-content: space-between; /* Space out brand and toggler */
}

/* Custom Buttons */
.custom-btn-primary {
    background-color: #007bff; /* Bootstrap primary blue */
    border-color: #007bff;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-btn-primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero-bg.jpg') center center no-repeat;
    background-size: cover;
    min-height: 80vh; /* Make it tall */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

#hero p {
    font-size: 1.5rem;
    font-weight: 300;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.2rem;
    }
}

/* About Us Section */
#about img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Courses Section */
.course-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #fff;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-icon {
    font-size: 3.5rem;
    color: #007bff; /* Primary color */
    margin-bottom: 20px;
}

.course-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.course-card .card-text {
    color: #555;
    font-size: 0.95rem;
}

/* Why Choose Us Section (Features) */
.feature-item {
    background-color: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #28a745; /* Success green */
    margin-bottom: 15px;
}

.feature-item h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Testimonials Section */
#testimonials {
    background-color: #e9ecef; /* Lighter grey background */
}

.testimonial-card {
    max-width: 700px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: none;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 4px solid #007bff; /* Primary color border */
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: #007bff; /* Primary color */
    font-size: 1.1rem;
}

.carousel-indicators [data-bs-target] {
    background-color: #007bff;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #007bff;
    border-radius: 50%;
    padding: 15px;
}

/* Videos Section */
#videos {
    background-color: #f8f9fa;
}

.ratio-16x9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.ratio-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Custom 9:16 Aspect Ratio for vertical videos */
.ratio-custom-9x16 {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%; /* (16 / 9) * 100% = 177.77% */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.custom-video-player {
    position: absolute; /* Important for it to fill the ratio container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire area without distortion */
}

/* ... (rest of your CSS) ... */

.review-card {
    border: none;
    border-left: 5px solid #007bff; /* Primary color accent */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.review-card .card-title {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.review-card .card-text {
    color: #555;
    font-size: 0.95rem;
}

/* Contact Section */
.map-container {
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
}

.social-icons a {
    font-size: 1.8rem;
    color: #007bff;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #0056b3;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #212529 !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e9ecef;
}

/* Animations (for Intersection Observer) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnimation 1s ease-out forwards;
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Specific Animations for Hero Section (already in HTML via Animate.css placeholders, but if you want custom ones) */
/* You would need to include Animate.css link for the classes in your HTML or define your own here.
   Example (if you remove animate.css and want simple fade-in):
   #hero h1 {
       animation: fadeInDown 1s ease-out forwards;
   }
   #hero p {
       animation: fadeInUp 1s ease-out forwards 0.5s;
   }
   #hero .btn {
       animation: zoomIn 1s ease-out forwards 1s;
   }
   @keyframes fadeInDown {
       from { opacity: 0; transform: translateY(-50px); }
       to { opacity: 1; transform: translateY(0); }
   }
   @keyframes fadeInUp {
       from { opacity: 0; transform: translateY(50px); }
       to { opacity: 1; transform: translateY(0); }
   }
   @keyframes zoomIn {
       from { opacity: 0; transform: scale(0.8); }
       to { opacity: 1; transform: scale(1); }
   }
*/