/* Global Styles */
:root {
    /* Colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-text: #fff;
    --navy-blue: #0E294B;
    --light-navy: #1C3C70;

    /* Effects */
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Spacing System */
    --spacing-xs: 10px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-2xl: 60px;
    --spacing-3xl: 80px;

    /* Z-index System */
    --z-base: 1;
    --z-dropdown: 100;
    --z-overlay: 999;
    --z-modal: 1000;
    --z-tooltip: 1001;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--spacing-3xl) 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p {
    margin-bottom: var(--spacing-sm);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    min-height: 44px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.secondary-btn:active {
    transform: translateY(-1px);
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-modal);
    padding: var(--spacing-sm) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: 'Merriweather', serif;
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--navy-blue);
    margin: 0;
    line-height: 1.1;
}

.company-tagline {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--light-navy);
    margin: 0;
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: var(--z-tooltip);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: var(--spacing-3xl);
    background-color: var(--light-color);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Courses Section */
.courses {
    background-color: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-card.featured {
    border-top: 5px solid var(--secondary-color);
}

.course-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.course-card h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: 15px;
}

.course-card p {
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: center;
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content .highlight {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 25px;
}

.experience-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.highlight-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.highlight-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    background-color: #fff;
}

.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 30px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-content {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.testimonial-control {
    background-color: var(--light-color);
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 1rem;
}

.testimonial-control:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.testimonial-control:active {
    transform: scale(0.95);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-info-full {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-cta {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.contact-methods {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#whatsapp-contact {
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

#whatsapp-contact:hover {
    color: #25D366;
    transform: scale(1.1);
}

#whatsapp-contact:active {
    transform: scale(1.05);
}

.contact-text h4 {
    margin-bottom: 5px;
}

.contact-text p {
    margin-bottom: 0;
}

.contact-reveal-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    padding: var(--spacing-xs) var(--spacing-sm);
    min-height: 44px;
    text-decoration: underline;
    transition: var(--transition);
}

.contact-reveal-btn:hover {
    color: var(--primary-color);
}

.contact-reveal-btn:active {
    transform: scale(0.98);
}

.contact-reveal-btn.revealed {
    color: var(--primary-color);
    text-decoration: none;
    cursor: default;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Info Sections */
.info-section {
    padding: 60px 0;
    background-color: #fff;
}

.info-section:nth-child(even) {
    background-color: var(--light-color);
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 40px;
}

.info-text h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-text p {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.social-icon:active {
    transform: translateY(-1px) scale(0.95);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav by default, show when active */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: var(--z-modal);
        padding-top: var(--spacing-3xl);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav ul li {
        margin: 0 0 20px 0;
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        min-height: 52px;
        font-size: 1.1rem;
        border-radius: 5px;
        transition: var(--transition);
        -webkit-tap-highlight-color: transparent;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a:active {
        background-color: var(--secondary-color);
        color: var(--light-text);
    }

    .main-nav ul li a::after {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-icon {
        margin-bottom: 8px;
        font-size: 2.5rem;
    }

    .info-text {
        width: 100%;
    }

    .info-text h3 {
        margin-top: 0;
    }

    .contact-method {
        justify-content: center;
    }

    .contact-methods {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo img {
        max-height: 50px;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .company-tagline {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }

    .info-content {
        grid-template-columns: 1fr;
    }

    .experience-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }

    .main-nav {
        width: 80%;
    }

    .logo img {
        max-height: 45px;
    }

    .company-name {
        font-size: 1.3rem;
    }

    .company-tagline {
        font-size: 0.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .testimonial-slider {
        height: 340px;
    }

    .testimonial-content {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 40px;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .company-tagline {
        font-size: 0.7rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content h3 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .course-card {
        padding: 25px;
    }

    .testimonial-slider {
        height: 380px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-controls {
        gap: 15px;
    }
}

/* Extra small devices (320px - 374px) */
@media (max-width: 374px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .logo img {
        max-height: 35px;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .company-tagline {
        font-size: 0.65rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content h3 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .course-card h3 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .main-nav {
        width: 85%;
    }

    .testimonial-controls {
        gap: 10px;
    }

    .testimonial-control {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }
}

/* Testimonial content layout */
.testimonial-content > p {
    flex-grow: 1;
}