/* General Styles */
:root {
    --primary-color: #004d99; /* Darker blue, for primary actions/branding */
    --secondary-color: #007bff; /* Bright blue, for links/accents */
    --accent-color: #28a745; /* Green, for highlights/success */
    --text-color: #343a40; /* Dark gray for main text */
    --light-text-color: #6c757d; /* Lighter gray for secondary text */
    --background-color: #f8f9fa; /* Light gray for section backgrounds */
    --white-color: #ffffff;
    --border-color: #e9ecef; /* Light border color */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15); /* Deeper shadow on hover */
    --transition-speed: 0.4s ease-out; /* Global transition speed */

    /* Fonts */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    gap: 8px; /* Space between text and icon */
    padding: 14px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

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

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 77, 153, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 77, 153, 0.3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85em;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 3.2em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2em;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto;
}

.common-section {
    padding: 100px 0;
    background-color: var(--white-color);
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden; /* For any internal overflow */
}

/* Shadow Animation on Hover (for cards/items) */
.shadow-animate {
    transition: all var(--transition-speed);
    position: relative;
    z-index: 1; /* Ensure shadow is visible */
}

.shadow-animate:hover {
    transform: translateY(-8px) scale(1.02); /* More pronounced lift and slight scale */
    box-shadow: var(--shadow-hover); /* Deeper shadow */
}


/* Header */
header {
    background-color: var(--white-color);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky; /* Make header sticky */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
    transition: padding var(--transition-speed), background-color var(--transition-speed);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent when scrolled */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* Adjust as needed */
    margin-right: 12px;
}

.logo h1 {
    font-size: 2em;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 35px;
}

header nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 8px;
    position: relative;
    font-size: 1.05em;
    text-transform: uppercase;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
    border-radius: 2px;
}

header nav ul li a:hover::after,
header nav ul li a.active::after { /* Add active state for current section */
    width: 100%;
}

.hamburger-menu {
    display: none; /* Hidden by default for desktop */
    font-size: 2em;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the nav when active */
}
.hamburger-menu i {
    transition: transform var(--transition-speed);
}
.hamburger-menu i.fa-times {
    transform: rotate(90deg);
}


/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom right, rgba(0, 77, 153, 0.9), rgba(0, 123, 255, 0.7)), url('images/hero-bg.jpg') no-repeat center center/cover; /* Add a background image here */
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
    display: flex; /* For vertical centering */
    align-items: center;
    min-height: 85vh; /* Take up more viewport height */
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 4.5em;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 0.8;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
}

.hero-image img {
    border-radius: 10px;
    transform: scale(1.05);
    transition: transform var(--transition-speed);
}
.hero-image:hover img {
    transform: scale(1);
}

/* About Section */
.about-section .about-content {
    text-align: center;
}

.about-section .about-content p {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: var(--text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.about-item {
    padding: 40px 30px;
    border-radius: 12px;
    background-color: var(--background-color);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-item i {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-item h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-item p {
    color: var(--light-text-color);
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0; /* Override default paragraph margin */
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.course-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.course-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-speed);
}
.course-item:hover img {
    transform: scale(1.05);
}

.course-item .course-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

.course-item h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.course-item p {
    color: var(--light-text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to push buttons down */
}

.course-item ul {
    padding: 0;
    margin-bottom: 20px;
}

.course-item ul li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.course-item ul li i {
    color: var(--accent-color);
    font-size: 1.1em;
}


/* Translation Section */
.translation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
}

.translation-type {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.translation-type img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-speed);
}
.translation-type:hover img {
    transform: scale(1.05);
}

.translation-type .translation-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.translation-type h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.translation-type ul {
    padding: 0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.translation-type ul li {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95em;
    display: flex;
    align-items: flex-start; /* Align icon to top if text wraps */
    gap: 10px;
}
.translation-type ul li i {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-top: 3px; /* Adjust icon position */
}


/* Prices Section */
.prices-section {
    background-color: var(--background-color);
}

.price-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.price-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-card h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}
.price-card h3 i {
    color: var(--accent-color);
    font-size: 1.2em;
}

.price-card table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden; /* For rounded corners on table */
    border: 1px solid var(--border-color);
}

.price-card th, .price-card td {
    padding: 18px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 1em;
}

.price-card th {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.price-card tbody tr:nth-child(even) {
    background-color: #f2f7fc; /* Lighter shade for even rows */
}

.price-card tr:last-child td {
    border-bottom: none;
}

.price-card .note {
    font-size: 0.95em;
    color: var(--light-text-color);
    text-align: left;
    margin-top: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted for better spacing */
    gap: 30px;
}

.testimonial-item {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonial-item .quote-icon {
    font-size: 3.5em;
    color: rgba(0, 77, 153, 0.1); /* Very light primary color */
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative; /* Bring text above icon */
    z-index: 1;
}

.testimonial-item h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto; /* Push name to bottom */
    margin-bottom: 20px; /* Space before image */
}

.testimonial-item .testimonial-thumb {
    width: 100px; /* A4-ish small size */
    height: 141px; /* A4 aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.testimonial-item .testimonial-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.contact-item {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item i {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item p {
    color: var(--light-text-color);
    font-size: 1em;
}

.contact-item a {
    color: var(--light-text-color);
    transition: color var(--transition-speed);
}
.contact-item a:hover {
    color: var(--primary-color);
}

.map-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Optional Contact Form Styling (if uncommented in HTML) */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background-color);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1em;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    border-radius: 50px;
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 70px 0 30px;
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.footer-col h3 i {
    color: var(--white-color);
    font-size: 1em;
}

.footer-col p, .footer-col ul li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.8em;
    opacity: 0.8;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}


/* Lightbox Styles */
#lightbox-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark overlay */
    z-index: 10000; /* Above everything */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

#lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh; /* Limit height for large images */
    object-fit: contain;
    border-radius: 8px;
}

#lightbox-caption {
    color: var(--text-color);
    font-size: 1.1em;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

#lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10001; /* Above image */
}
#lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--secondary-color);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

/* Animation delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
        max-width: 100%;
    }
    .hero-image {
        flex: none;
        width: 90%;
        max-width: 500px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .section-header h2 {
        font-size: 2.8em;
    }
    header nav {
        display: none; /* Hide desktop nav */
        flex-direction: column; /* Ensure vertical for mobile */
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    header nav.active {
        display: flex; /* Show when active */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    header nav ul { /* Ensure ul is also column flex for vertical stacking */
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0; /* Remove horizontal gap */
    }
    header nav ul li {
        margin: 15px 0; /* Vertical margin for list items */
        width: 100%;
        text-align: center;
    }
    header nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
    }

    .about-grid, .courses-grid, .translation-grid, .price-tables, .contact-info, .testimonial-carousel, .footer-content {
        grid-template-columns: 1fr;
    }

    .price-card, .course-item, .translation-type, .about-item, .contact-item, .testimonial-item {
        padding: 30px;
    }

    .common-section {
        padding: 70px 0;
    }
    .price-card h3 {
        font-size: 2em;
    }
    .price-card th, .price-card td {
        padding: 12px;
    }

    #lightbox-content {
        max-width: 95%; /* Adjust for smaller screens */
    }
    #lightbox-img {
        max-height: 70vh; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .secondary-btn {
        margin-left: 0;
        margin-top: 15px;
    }
    .logo h1 {
        font-size: 1.6em;
    }
    .map-placeholder {
        height: 400px;
    }
    .contact-form {
        padding: 30px;
    }
    .contact-form h3 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .secondary-btn {
        margin-top: 10px;
    }
    .section-header h2 {
        font-size: 2.2em;
    }
    .section-header p {
        font-size: 1em;
    }
    .about-item i, .contact-item i {
        font-size: 3em;
    }
    .price-card h3 {
        font-size: 1.8em;
    }
    .price-card th, .price-card td {
        font-size: 0.85em;
    }
    .map-placeholder {
        height: 300px;
    }
}