/* --- MASTER PUBLIC STYLESHEET (FINAL V3 - COMPLETE) --- */
:root {
    --primary-color: #008080; --primary-dark: #006666; --text-color: #343a40; --white-color: #ffffff; --background-color: #f8f9fa; --border-color: #dee2e6;
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--white-color); margin: 0; color: var(--text-color); line-height: 1.6; }
main { overflow-x: hidden; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 25px; margin: 5px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; text-decoration: none; text-align: center; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--white-color); }

/* --- HEADER --- */
.public-header { background-color: var(--white-color); box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 0 20px; position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; text-decoration: none; color: #333; font-weight: bold; font-size: 1.5em; }
.nav-logo { height: 45px; margin-right: 10px; }
.main-nav { display: none; }
.main-nav a { color: #555; text-decoration: none; font-weight: 500; padding: 0 15px; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -5px; left: 15px; right: 15px; height: 2px; background-color: var(--primary-color); transform: scaleX(0); transition: transform 0.3s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: none; }
.mobile-menu-toggle { display: block; font-size: 28px; cursor: pointer; background: none; border: none; z-index: 1002; }

/* --- FLYOUT MOBILE MENU --- */
.flyout-menu { height: 100%; width: 280px; position: fixed; z-index: 1001; top: 0; left: -280px; background-color: #2c3e50; overflow-x: hidden; transition: 0.3s; padding-top: 20px; box-shadow: 3px 0 15px rgba(0,0,0,0.2); }
.flyout-menu a { padding: 15px 25px; text-decoration: none; font-size: 18px; color: #ecf0f1; display: block; transition: 0.2s; }
.flyout-menu .close-btn { position: absolute; top: 10px; right: 25px; font-size: 36px; }
.flyout-menu a:hover { color: var(--primary-color); }
.flyout-divider { border: 0; border-top: 1px solid #495057; margin: 15px 25px; }
.flyout-actions { padding: 0 25px; display: flex; flex-direction: column; gap: 15px; }
.flyout-actions .btn { width: 100%; }
.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.6); z-index: 1000; }
.overlay.active { display: block; }

/* --- HERO SECTION --- */
.hero-section { background: linear-gradient(rgba(0, 80, 80, 0.7), rgba(0, 40, 40, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071') no-repeat center center/cover; color: var(--white-color); text-align: center; padding: 120px 20px; }
.hero-content h1 { font-size: 2.8em; margin: 0 0 15px 0; font-weight: 700; }
.hero-content p { font-size: 1.2em; margin-bottom: 40px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- GENERAL SECTIONS & CARDS --- */
.page-section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2em; margin-bottom: 50px; color: var(--primary-dark); position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background-color: var(--primary-color); margin: 10px auto 0; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.course-card { background-color: var(--white-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; border: 1px solid #eee; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.course-image { width: 100%; height: 180px; object-fit: cover; display: block; }
.course-content { padding: 20px; } .course-title { font-size: 1.25em; margin: 0 0 5px 0; } .course-level { color: #777; font-size: 0.9em; margin-bottom: 15px; }
.course-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; border-top: 1px solid #f0f0f0; padding-top: 15px; }
.course-price { font-size: 1.4em; font-weight: bold; color: var(--primary-color); }
.btn-enroll-simple { padding: 8px 15px; background-color: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 5px; text-decoration: none; }
.btn-enroll-simple:hover { background-color: var(--primary-color); color: var(--white-color); }

/* --- UPGRADED Testimonial & Carousel Styles (Text Only) --- */
.testimonial-section { background-color: #f0f8ff; } /* Light blue background */
.carousel { position: relative; }
.carousel-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 20px 0; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: center; flex: 0 0 90%; margin-right: 20px; }
.carousel-nav { text-align: center; margin-top: 20px; }
.carousel-nav button { background: var(--white-color); border: 2px solid var(--border-color); color: var(--primary-color); font-size: 24px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin: 0 10px; transition: all 0.3s ease; }
.carousel-nav button:hover { background: var(--primary-color); color: var(--white-color); }

/* NEW MODERN TESTIMONIAL CARD (Text Only) */
.testimonial-card-modern {
    background-color: #e6fffa; /* Light turquoise background */
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 25px rgba(0, 128, 128, 0.1);
}
.quote-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4em;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}
.testimonial-text-modern {
    font-size: 1.1em;
    color: var(--text-color);
    flex-grow: 1;
    margin: 20px 0;
}
.testimonial-author-modern {
    margin-top: auto;
    padding-top: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    margin: 0 -30px -30px -30px; /* Extend to edges */
    padding: 20px 30px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.author-details strong {
    display: block;
    font-size: 1.1em;
}
.author-details span {
    font-size: 0.9em;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .carousel-item { flex-basis: 45%; }
}
@media (min-width: 992px) {
    .carousel-item { flex-basis: 30%; }
}

/* --- UPGRADED FOOTER --- */
.public-footer { background-color: #2c3e50; color: #adb5bd; padding: 60px 0 0 0; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; }
.footer-about h3, .footer-contact h3, .footer-social h3 { color: var(--white-color); margin-top: 0; margin-bottom: 20px; font-size: 1.2em; }
.footer-contact p { margin: 0 0 10px 0; display: flex; justify-content: center; align-items: center; gap: 10px; }
.social-icons a { color: #adb5bd; text-decoration: none; font-size: 20px; margin: 0 12px; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-icons a:hover { color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { text-align: center; margin-top: 40px; padding: 20px; border-top: 1px solid #495057; font-size: 0.9em; }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (min-width: 768px) {
    .main-nav, .header-actions { display: flex; }
    .mobile-menu-toggle { display: none; }
    .hero-content h1 { font-size: 3.5em; }
    .carousel-item { flex-basis: 45%; }
    .footer-container { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .footer-contact p { justify-content: flex-start; }
}
@media (min-width: 992px) {
    .carousel-item { flex-basis: 30%; }
}

/* ✅ Auto-Scrolling Carousel (Keeps Your Design Theme) */
.testimonial-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.testimonial-carousel-track {
    display: flex;
    gap: 20px;
    animation: testimonialScroll 30s linear infinite;
}

.carousel-item {
    flex: 0 0 320px; /* Card Width */
}

@keyframes testimonialScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Duplicate cards for seamless infinite scroll illusion */
.testimonial-carousel-track::after {
    content: attr(data-duplicate);
}
