
:root {
    --primary-color: #0d69d1;
    --secondary-color: #2c3e50;
    --accent-color: #ffc107;
    --text-color: #34495e;
    --light-bg-color: #f8f9fa;
    --white-color: #ffffff;
    --border-radius: 10px;
    --font-family: 'Inter', sans-serif;
}


/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--secondary-color);
}

h1 { font-weight: 800; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-flex; /* Changed to inline-flex for better icon alignment */
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent; /* Added border for secondary button consistency */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    gap: 8px; /* Space between text and icon */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a56ad;
    border-color: #0a56ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header & Navigation */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 0.9rem;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-number i {
    color: var(--primary-color);
    margin-right: 8px;
}

.social-media a {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

.navbar {
    background-color: var(--white-color);
    padding: 15px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links {
    /* ... other styles ... */
    right: -300px; /* This hides the menu by default on mobile */
    transition: right 0.3s ease-in-out;
}

.nav-links.active {
    right: 0; /* This brings the menu into view */
}

.overlay.active {
    display: block; /* This makes the overlay visible */
}

.nav-links li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-links li a.active, .nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a.active::after, .nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle, .close-btn-container, .overlay {
    display: none;
}

/* Page Hero Section (General for all pages) */
.page-hero {
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Specific Courses Page Hero */
.courses-hero {
    background: linear-gradient(135deg, #0a1f44 0%, #2c3e50 100%); /* Darker, distinct background */
    color: var(--white-color);
}

.courses-hero h1 {
    color: var(--white-color);
    font-weight: 800;
}

.courses-hero p {
    color: #e0e0e0;
}

/* Course Listing Section */
.course-listing-section {
    padding: 60px 0;
    background-color: var(--light-bg-color);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-button {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(13, 105, 209, 0.2);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    animation: fadeIn 0.8s ease-out forwards; /* Fade in animation for cards */
    opacity: 0; /* Start hidden for animation */
}

/* Animation delay for staggered appearance */
.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; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }


.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-level-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white-color);
    text-transform: capitalize;
}

.course-level-badge.beginner { background-color: #28a745; }
.course-level-badge.intermediate { background-color: #ffc107; }
.course-level-badge.advanced { background-color: #dc3545; }

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.course-short-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-top: auto;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item .fas {
    color: var(--primary-color);
}

.btn-know-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    transition: all 0.3s ease;
}

.btn-know-more:hover {
    background-color: #0a56ad;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.no-results {
    text-align: center;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: #6c757d;
    padding: 40px 0;
}

/* Course Details Page */
.course-details-page {
    padding-bottom: 80px;
    animation: fadeIn 0.8s ease-out;
}

.details-hero {
    background: linear-gradient(135deg, #0a1f44 0%, #2c3e50 100%);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.details-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white-color);
    position: relative;
    z-index: 2;
}

.details-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #e0e0e0;
    position: relative;
    z-index: 2;
}

.details-hero .btn-primary {
    position: relative;
    z-index: 2;
}

/* Animated background circles */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: moveCircles 15s infinite alternate;
}
.circle:nth-child(1) { width: 150px; height: 150px; top: 10%; left: 15%; animation-delay: 0s; }
.circle:nth-child(2) { width: 200px; height: 200px; bottom: 5%; right: 20%; animation-delay: 2s; }
.circle:nth-child(3) { width: 100px; height: 100px; top: 50%; left: 5%; animation-delay: 4s; }
.circle:nth-child(4) { width: 180px; height: 180px; top: 20%; right: 10%; animation-delay: 6s; }

@keyframes moveCircles {
    0% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    25% { transform: translate(20px, -10px) scale(1.05); opacity: 0.15; }
    50% { transform: translate(-10px, 20px) scale(0.95); opacity: 0.1; }
    75% { transform: translate(15px, -5px) scale(1.1); opacity: 0.12; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
}


.details-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
    align-items: flex-start;
}

.details-main-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.details-sidebar {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.details-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-size: 1.7rem;
}

.details-section p, .details-section ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.details-section ul {
    list-style: none;
    padding-left: 0;
}

.details-section ul li {
    padding-left: 25px;
    position: relative;
}

.details-section ul li::before {
    content: "\f058"; /* Check circle icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 0;
}

.mentor-card {
    background-color: #f0f8ff;
    border: 1px solid #e6f2ff;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mentor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.mentor-card h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.mentor-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Sticky Button */
.sticky-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-request-callback {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
/* MODIFIED CSS FOR FOOTER */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    /* Use a standard padding for consistent spacing. 
       The container will center the content. */
    padding: 30px 20px 10px 20px; 
    margin-top: auto;
}

.main-footer {
    border-bottom: 1px solid #4a5d72;
    padding-bottom: 30px;
    margin-bottom: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /* Center the grid content within the container */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 20px;
}
.footer-section h3 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bolder;
}
.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}
.footer-section a {
    color: var(--white-color);
    opacity: 0.8;
    text-decoration: none;
}
.footer-section a:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}
.footer-logo {
    height: 40px;
    margin-bottom: 10px;
}
.company-name {
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}
.address-lines {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.address-lines i {
    flex-shrink: 0;
    margin-top: 5px;
}
.address-lines span {
    display: block;
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.social-links a {
    font-size: 1rem;
}
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    padding-top: 20px;
}
/* Desktop and larger screens styles */
.footer-section.quick-links,
.footer-section.find-us {
    text-align: center;
}
.footer-section.quick-links ul,
.footer-section.find-us .social-links {
    justify-content: center;
}
.footer-section.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Mobile screens styles */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px 10px 15px; /* Adjust padding for smaller screens */
    }
    .footer-section.quick-links,
    .footer-section.find-us {
        text-align: left;
    }
    .footer-section.quick-links ul,
    .footer-section.find-us .social-links {
        justify-content: flex-start;
    }
}
/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.close-button-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.success-message, .error-message {
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

.success-message i, .error-message i {
    font-size: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 50px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        border-radius: 5px;
    }

    .close-btn-container {
        display: flex;
        justify-content: flex-end;
    }
    
    .close-button {
        font-size: 2.5rem;
        cursor: pointer;
        color: #666;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .overlay.active {
        display: block;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .details-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .details-hero h1 {
        font-size: 2.5rem;
    }

    .details-hero p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .course-card {
        margin: 0 auto; /* Center cards on very small screens */
    }

    .details-hero h1 {
        font-size: 2rem;
    }

    .details-hero p {
        font-size: 0.9rem;
    }
}