/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header specific container with more left padding for logo visibility */
.header .container {
    padding: 0 20px 0 40px; /* increased left padding to prevent logo cutoff */
}

/* Utility: prevent wrapping */
.nowrap {
    white-space: nowrap;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3F6695;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-weight: 600;
}

/* Header Styles */
.header {
    background: #3F6695;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    height: 90px; /* increased header height for larger logo */
    gap: 2rem; /* space between logo and navigation */
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
}

/* Logo image support */
.logo a {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.logo { 
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible; /* allow logo to be fully visible */
    flex-shrink: 0; /* prevent logo from shrinking */
    min-width: 80px; /* ensure minimum space for logo */
}

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

/* Footer logo */
.footer-logo-img {
    width: 240px; /* 4x larger than original 60px */
    height: auto;
    display: block;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

/* Navigation Menu Styles */
.navbar {
    background: #3F6695;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap; /* keep header buttons on a single line */
}

.nav-link.admin-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #EE7527;
}

.nav-link.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #cc5f1e;
    transform: translateY(-1px);
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(245, 158, 11, 0.25); /* pale orange */
}

.nav-link.active {
    color: #fff;
    background-color: #EE7527; /* solid orange when selected */
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #EE7527;
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    margin-left: auto; /* push mobile menu button to the right */
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #ffffff; /* ensure contrast on dark header */
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
}

.nav-mobile.active {
    display: block; /* ensure mobile nav becomes visible when toggled */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-mobile.active .mobile-menu-overlay {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
    padding: 1.2rem 2rem;
    margin: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mobile-nav-link.admin-link {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #EE7527;
}

.mobile-nav-link.admin-link:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: #EE7527;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.mobile-dropdown-menu a {
    color: #ccc;
    font-size: 1rem;
    padding: 0.5rem 0;
}

/* Hero Section (legacy) */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    min-height: 80vh; /* Increased height for larger images */
    display: flex;
    align-items: stretch; /* Changed to stretch for full height usage */
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover; /* Changed back to cover for maximum stretch */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #3A84C5; /* Updated background color as requested */
    filter: brightness(0.75);
    transition: opacity 0.8s ease;
    opacity: 1;
    transform: scaleX(1.2); /* Scale horizontally to stretch images more */
}

.hero-slideshow .hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem 0; /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content between top and bottom */
    min-height: 100%; /* Use full height */
}

.hero-slideshow .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

.hero-slideshow .hero-title {
    font-size: 2.5rem; /* Reduced from 3rem */
    font-weight: 600;
    margin-bottom: 0; /* Removed bottom margin */
    margin-top: 25rem; /* Added top margin to push to top */
}

.hero-slideshow .hero-actions {
    margin-bottom: 4rem; /* Added bottom margin to position above dots */
    display: inline-flex;
    gap: 2rem;
    justify-self: center;
    align-self: center;
}

/* Slideshow controls */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot[aria-selected="true"],
.hero-dot.active {
    background: #ffffff;
}

.hero-dot:hover { transform: scale(1.1); }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.hero-arrow:hover { background: rgba(0,0,0,0.5); }
.hero-arrow-left { left: 14px; }
.hero-arrow-right { right: 14px; }

/* Generic Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: #EE7527;
    color: #1f2937;
}

.btn-primary:hover {
    background: #cc5f1e;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Partners Section */
.partners {
    background: #fff;
    padding: 3rem 0;
}

.partners-grid {
    display: grid;
    /* Show exactly 4 items per page for carousel views on desktop */
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
}

.partner img {
    max-height: 80px;
    width: auto;
    filter: grayscale(10%);
    opacity: 0.95;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.partner:hover img {
    transform: scale(1.04);
    filter: none;
    opacity: 1;
}

@media (max-width: 640px) {
    .partner img { max-height: 64px; }
}

/* Partners Carousel Enhancements */
.partners-carousel {
    position: relative;
}

.partners-grid .partner {
    width: 100%;
    text-align: center;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 180px; /* fixed window height for consistency */
}

.partner-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #475569; /* slate-600 */
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* allow several lines to show within the window */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto; /* occupy remaining vertical space so image aligns at bottom */
}

.partners-arrow,
#partnersPrev,
#partnersNext {
    appearance: none;
    border: none;
    background: rgba(0,0,0,0.35); /* match hero arrows */
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.partners-arrow:hover,
#partnersPrev:hover,
#partnersNext:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.partners-arrow:focus-visible,
#partnersPrev:focus-visible,
#partnersNext:focus-visible {
    outline: 3px solid rgba(59,130,246,0.45); /* blue focus ring */
    outline-offset: 2px;
}

/* Specific left/right placement like slideshow */
.partners-arrow-left,
#partnersPrev {
    left: 14px;
}

.partners-arrow-right,
#partnersNext {
    right: 14px;
}

/* Responsive columns for the carousel grid */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 1.25rem;
    }
    .partner-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 5; /* a bit more room on small cards */
        line-clamp: 5;
    }
}

/* Mission Section */
.mission {
    padding: 6rem 0;
    background: #DEE2E5;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    font-weight: 400;
}

/* Motives Section */
.motives {
    padding: 6rem 0;
    background: #fff;
}

.motives-content {
    max-width: 900px;
    margin: 0 auto;
}

.motives-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
    text-align: justify;
}

.advantages {
    background: #DEE2E5;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.advantages-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.advantages-list {
    list-style: none;
}

.advantages-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.6;
}

.advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Goals Section */
.goals {
    padding: 6rem 0;
    background: #DEE2E5;
}

.goals-content {
    max-width: 900px;
    margin: 0 auto;
}

.goals-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.goals-list li {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 3rem;
    line-height: 1.6;
    color: #475569;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goals-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.goals-list li::before {
    content: counter(goal-counter);
    counter-increment: goal-counter;
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    background: #3b82f6;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.goals-list {
    counter-reset: goal-counter;
}

/* Footer */
.footer {
    background: #3F6695;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    width: 240px; /* 4x larger than original 60px */
    height: auto;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
    color: #EE7527;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Extra spacing before Legal to separate from quick navigation links */
.footer-nav .footer-legal-title {
    margin-top: 1.25rem; /* ~20px for visual separation */
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: #EE7527;
}

/* Temporarily hide specific legal links (privacy & terms) across the site */
.footer .footer-nav-link[href="privacy.html"],
.footer .footer-nav-link[href="terms.html"] {
    display: none !important;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: #EE7527;
    font-size: 0.9rem;
}

.contact-item a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #EE7527;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #EE7527;
}

.social-icon {
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Page Hero Styles */
.page-hero {
    background: #3A84C5;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

/* Legal pages (privacy.html, terms.html) */
.legal-content {
    background: #fff;
    padding: 4rem 0; /* generous vertical spacing */
}

.legal-article {
    max-width: 900px;
    margin: 0 auto;
    color: #475569; /* slate-600 */
    line-height: 1.8;
}

.legal-article > p:first-child {
    margin-top: 0.75rem;
}

.legal-article .legal-lead {
    font-size: 1.08rem;
    color: #1f2937; /* slate-800 for stronger intro tone */
    margin-bottom: 1.4rem;
}

.legal-article h2 {
    color: #1e3a8a; /* brand dark blue */
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem; /* strong separation between sections */
}

.legal-article p {
    margin: 0 0 1rem; /* spacing between paragraphs */
}

.legal-article ul {
    margin: 0.25rem 0 1.5rem 1.25rem; /* spacing around list and indent */
    padding-left: 0.75rem;
}

.legal-article li {
    margin: 0.4rem 0; /* spacing between list items */
}

.legal-article a {
    color: #1e3a8a;
    text-decoration: underline;
}

.legal-article a:hover {
    color: #3b82f6; /* lighten on hover */
}

.courses-price-note {
    margin-top: 1rem;
    color: #3A84C5; /* brand blue */
    font-weight: 700;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Back to Courses link block */
.back-row {
    background: #DEE2E5;
    border-bottom: 1px solid #eef2f7;
    padding: 0.75rem 0;
}

.back-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
    color: #3b82f6;
}

/* About Page Styles */
.about-content {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #475569;
    text-align: justify;
}

.values-list,
.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}

.values-list li,
.benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #475569;
}

.values-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #475569;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-container h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #DEE2E5;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3A84C5;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #475569;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #3b82f6;
}

.contact-details p {
    color: #475569;
    margin-bottom: 0.25rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Form Styles */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    background: #3A84C5;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #2F6FA6;
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: #DEE2E5;
}

.map-container {
    margin-top: 2rem;
}

/* Responsive Google Maps embed */
.map-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #DEE2E5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-address {
    text-align: center;
    color: #475569;
    margin-top: 0.75rem;
}

.map-placeholder {
    background: #DEE2E5;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    color: #6b7280;
}

.map-placeholder p:first-child {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Success/Error Messages */
.success-message,
.error-message-global {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.error-message-global {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.success-content,
.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.success-icon,
.error-icon {
    font-size: 2rem;
}

/* Responsive Design */
/* Tablet режим - wrap навигацията на два реда */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        min-height: 90px;
        padding: 1rem 0;
    }
    
    .nav-desktop {
        width: 100%;
        order: 2;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .logo {
        order: 1;
    }
    
    /* Courses grid responsive for tablet */
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile режим - скрий desktop навигация, покажи mobile бутон */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .mission,
    .motives,
    .goals {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header specific mobile padding */
    .header .container {
        padding: 0 15px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    /* Поправи footer social links в mobile - вертикално подреждане */
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .footer-social .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 200px;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .footer-social .social-link:hover {
        background-color: rgba(238, 117, 39, 0.1);
    }
    
    /* Courses grid responsive */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Малки mobile екрани - допълнителни подобрения */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .goals-list li {
        padding-left: 2.5rem;
    }
    
    .goals-list li::before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Footer допълнителни подобрения за малки екрани */
    .footer-content {
        gap: 2rem;
    }
    
    .footer-logo-img {
        width: 180px;
    }
    
    .footer-social .social-link {
        font-size: 0.9rem;
    }
}

/* Courses Page Styles */
.courses-section {
    padding: 6rem 0;
}

.courses-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.courses-intro h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.courses-intro p {
    color: #475569;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #3A84C5;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.course-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.course-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem 0.5rem;
}

.course-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f1f5f9;
}

.course-title {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
}

.course-content {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.course-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-features li {
    color: #6b7280;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
    margin-bottom: 1.5rem;
}

.course-btn {
    width: 100%;
    background: #3A84C5;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
}

.course-btn:hover {
    background: #2F6FA6;
}

.course-benefits {
    text-align: center;
}

.course-benefits h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: #DEE2E5;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: #475569;
    line-height: 1.6;
}

/* Course Detail Page Styles */
.course-detail-section {
    padding: 4rem 0;
}

.course-detail {
    max-width: 900px;
    margin: 0 auto;
}

.course-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 1.5rem;
}

.course-detail-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-detail-thumb {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.course-detail-title {
    color: #1e3a8a;
    font-size: 1.8rem;
    font-weight: 700;
}

.course-detail-body {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-detail-desc {
    color: #475569;
    line-height: 1.8;
    text-align: justify;
}

.course-extra {
    background: #DEE2E5;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #334155;
    /* Wrap extremely long unbroken text */
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.course-cta { margin-top: 1rem; }

@media (max-width: 768px) {
    .course-detail-thumb { height: 240px; }
    .course-detail-title { font-size: 1.5rem; }
}

/* Center footer logo on mobile */
@media (max-width: 768px) {
  .footer-brand { 
    justify-content: center; 
  }
  .footer-brand a, 
  .footer-logo-img { 
    margin: 0 auto; 
    display: block; 
  }
}