/* ============================================================
   ADEPT TRAINING CENTER — HOMEPAGE STYLES
   File: css/home.css
   ============================================================ */

:root {
    --adept-primary: #0084D1;
    --adept-primary-dark: #006FB3;
    --adept-accent-cyan: #38BDF8;
    --adept-navy: #0F172A;
    --adept-navy-light: #1E293B;
    --adept-slate: #334155;
    --adept-slate-muted: #64748B;
    --adept-light: #F8FAFC;
    --adept-border: #E2E8F0;
    --adept-white: #FFFFFF;
    --adept-soft-blue: #F0F9FF;
    --adept-whatsapp: #25D366;
    --adept-gold: #F59E0B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--adept-light);
    color: var(--adept-navy);
    line-height: 1.65;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.adt-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--adept-primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--adept-navy) 0%, #1E293B 100%);
    color: #fff;
    padding: 70px 0 85px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 132, 209, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-left-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Static H1 */
.hero-static-title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.hero-static-subtitle {
    font-size: 1.05rem;
    color: #CBD5E1;
    max-width: 600px;
    line-height: 1.7;
    margin: 0;
}

/* Search Bar */
.hero-search-wrapper { width: 100%; max-width: 580px; }

.hero-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.hero-search-bar:focus-within {
    border-color: var(--adept-primary);
    box-shadow: 0 20px 40px rgba(0, 132, 209, 0.3);
    transform: translateY(-2px);
}

.hero-search-bar i {
    color: var(--adept-primary);
    font-size: 1.1rem;
    margin-right: 12px;
}

.hero-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--adept-navy);
    font-family: inherit;
}

.hero-search-bar button {
    background: var(--adept-primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 11px 26px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(0, 132, 209, 0.3);
}

.hero-search-bar button:hover { background: var(--adept-primary-dark); }

/* Quick chips */
.hero-quick-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #94A3B8;
}
.hero-quick-chips a {
    color: #38BDF8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}
.hero-quick-chips a:hover {
    background: var(--adept-primary);
    color: #fff;
    border-color: var(--adept-primary);
}

/* Hero course text slider */
.hero-text-slider {
    min-height: 180px;
    position: relative;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.5s ease-in-out;
    padding-top: 20px;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    display: block;
    animation: fadeInSlide 0.6s ease forwards;
}

.hero-slide h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.28;
    margin-bottom: 12px;
    color: #fff;
}

.hero-slide p {
    font-size: 1rem;
    color: #CBD5E1;
    max-width: 540px;
    margin-bottom: 22px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--adept-primary);
    color: white;
    padding: 13px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 132, 209, 0.35);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--adept-primary-dark);
    transform: translateY(-2px);
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.2s;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

/* ============================================================
   HERO IMAGE — ROTATING CROSSFADE
   ============================================================ */
.hero-image {
    flex: 0.9;
    position: relative;
}

.hero-image-slider {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #0F172A;
}

.hero-image-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.hero-image-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* ============================================================
   INTRO / UNIQUE CONTENT
   ============================================================ */
.adept-intro {
    padding: 70px 0;
    background: #fff;
    border-top: 1px solid var(--adept-border);
}

.adept-intro-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.adept-intro h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--adept-navy);
    margin-bottom: 18px;
}

.adept-intro p {
    font-size: 1rem;
    color: var(--adept-slate);
    line-height: 1.75;
    margin-bottom: 14px;
}

.adept-intro p:last-child { margin-bottom: 0; }

/* ============================================================
   ABOUT / SOLUTIONS
   ============================================================ */
.about-us {
    padding: 80px 0;
    background: var(--adept-navy);
    color: white;
    position: relative;
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-title .subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #38BDF8;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    border-color: var(--adept-primary);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 132, 209, 0.15);
}

.feature-icon {
    font-size: 2.2rem;
    color: #38BDF8;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    color: #CBD5E1;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.feature-link {
    color: #38BDF8;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.feature-link:hover { gap: 10px; color: #fff; }

/* ============================================================
   POPULAR COURSES
   ============================================================ */
.popular-courses {
    padding: 85px 0;
    background: #F1F5F9;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.course-card {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--adept-border);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 132, 209, 0.12);
    border-color: var(--adept-primary);
}

.course-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.course-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.course-meta {
    font-size: 0.78rem;
    color: var(--adept-slate-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-code-tag {
    color: var(--adept-primary);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.rating {
    color: var(--adept-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-info h3 {
    font-size: 1.12rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--adept-navy);
    margin: 4px 0 10px 0;
    line-height: 1.38;
}

.course-info p {
    font-size: 0.88rem;
    color: var(--adept-slate);
    margin-bottom: 16px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-specs-bar {
    padding: 10px 0;
    border-top: 1px solid var(--adept-border);
    border-bottom: 1px solid var(--adept-border);
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: var(--adept-slate);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--adept-navy);
    line-height: 1.2;
}

.price span {
    display: block;
    font-size: 0.72rem;
    color: var(--adept-slate-muted);
    font-weight: 500;
}

.btn-enroll-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--adept-soft-blue);
    color: var(--adept-primary);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(0, 132, 209, 0.25);
    transition: all 0.2s;
}

.btn-enroll-card:hover {
    background: var(--adept-primary);
    color: white;
}

/* ============================================================
   CAMPUSES SPOTLIGHT
   ============================================================ */
.campuses-spotlight {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--adept-border);
}

.campuses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.campus-pill-card {
    border: 1px solid var(--adept-border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    background: var(--adept-light);
    transition: all 0.25s;
}

.campus-pill-card:hover {
    border-color: var(--adept-primary);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 132, 209, 0.1);
}

.campus-flag {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.campus-pill-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    padding: 65px 0;
    background: linear-gradient(135deg, var(--adept-navy) 0%, #1E293B 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #38BDF8;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #CBD5E1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    padding: 85px 0;
    background: var(--adept-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--adept-border);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--adept-slate);
    margin-bottom: 22px;
    line-height: 1.65;
    font-style: italic;
}

.testimonial-card cite {
    display: flex;
    align-items: center;
    gap: 12px;
    font-style: normal;
}

.delegate-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--adept-soft-blue);
    color: var(--adept-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.testimonial-card cite strong {
    display: block;
    font-size: 0.95rem;
    color: var(--adept-navy);
}

.testimonial-card cite span {
    font-size: 0.8rem;
    color: var(--adept-slate-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 90px 0;
    background: white;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.contact-image-area {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 480px;
    background: var(--adept-navy);
    position: relative;
}

.contact-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.contact-overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: white;
}

.contact-overlay-text h4 {
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-overlay-text p {
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-form-area {
    flex: 1.2;
    background: var(--adept-light);
    border: 1px solid var(--adept-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
}

.contact-form-area h3 {
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--adept-navy);
    margin-bottom: 6px;
}

.contact-form-area > p {
    color: var(--adept-slate-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--adept-slate);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--adept-border);
    background: white;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    color: var(--adept-navy);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--adept-primary);
    box-shadow: 0 0 0 3px rgba(0, 132, 209, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--adept-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 24px rgba(0, 132, 209, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--adept-primary-dark);
    transform: translateY(-2px);
}

.alert-success {
    background: #ECFDF5;
    border: 1px solid #10B981;
    color: #065F46;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
}

@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .campuses-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-image-slider { height: 380px; }
}

@media (max-width: 768px) {
    .hero-content { flex-direction: column; }
    .hero-image { display: block; width: 100%; }
    .hero-image-slider { height: 260px; border-radius: 18px; }
    .contact-container { flex-direction: column; }
    .courses-grid { grid-template-columns: 1fr; }
    .campuses-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
}