/**
 * 1toz Academy - Modern Professional Courses Stylesheet
 * 100% theme synchronized with home.css variables (--primary: #6366f1, --secondary: #a855f7)
 * Distinct, high-converting EdTech / Academy Course Catalog layout
 */

:root {
    --ac-primary: #6366f1;
    --ac-primary-dark: #4f46e5;
    --ac-secondary: #a855f7;
    --ac-dark: #0f172a;
    --ac-slate: #1e293b;
    --ac-muted: #64748b;
    --ac-border: #e2e8f0;
    --ac-card-bg: #ffffff;
    --ac-light-bg: #f8fafc;
    --ac-accent-green: #10b981;
    --ac-accent-amber: #f59e0b;
    --ac-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --ac-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
    --ac-shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.16);
    --ac-radius: 18px;
}

/* ==========================================================================
   ACADEMY HERO SECTION
   ========================================================================== */
.academy-hero {
    position: relative;
    padding: 100px 0 80px;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
                #ffffff;
    border-bottom: 1px solid var(--ac-border);
    overflow: hidden;
}

.academy-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.academy-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--ac-primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.academy-hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--ac-dark);
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.academy-hero-title span {
    background: var(--ac-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.academy-hero-subtitle {
    font-size: 18px;
    color: var(--ac-muted);
    line-height: 1.65;
    margin-bottom: 35px;
    font-weight: 400;
}

.academy-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 15px;
}

.academy-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ac-light-bg);
    border: 1px solid var(--ac-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ac-slate);
}

.academy-stat-chip i {
    color: var(--ac-primary);
}

/* ==========================================================================
   CATEGORY FILTER BAR
   ========================================================================== */
.academy-filter-section {
    padding: 30px 0 10px;
    background: #ffffff;
}

.academy-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.academy-filter-btn {
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid var(--ac-border);
    background: #ffffff;
    color: var(--ac-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.academy-filter-btn:hover {
    border-color: var(--ac-primary);
    color: var(--ac-primary);
    background: rgba(99, 102, 241, 0.04);
}

.academy-filter-btn.active {
    background: var(--ac-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   COURSES GRID & MODERN CARDS
   ========================================================================== */
.academy-courses-section {
    padding: 30px 0 90px;
    background: #fafbfc;
}

.academy-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1080px) {
    .academy-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .academy-courses-grid {
        grid-template-columns: 1fr;
    }
}

.course-card {
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: var(--ac-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ac-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ac-shadow-hover);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Card Visual Header */
.course-card-media {
    position: relative;
    height: 190px;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}

.course-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-media img {
    transform: scale(1.06);
}

.course-badge-top {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-badge-flagship {
    background: var(--ac-gradient);
    border: none;
    color: #ffffff;
}

.course-mode-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--ac-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Card Body Content */
.course-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--ac-muted);
}

.course-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.course-meta-item i {
    color: var(--ac-primary);
    font-size: 12px;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ac-dark);
    line-height: 1.35;
    margin-bottom: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.course-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* PRICING & FEES BOX */
.course-pricing-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
}

.course-fee-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.course-fee-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--ac-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.course-fee-original {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.course-fee-discount {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* LEARNING OUTCOMES - SHORT CHECKLIST */
.course-outcomes-wrap {
    margin-bottom: 22px;
    flex-grow: 1;
}

.course-outcomes-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ac-slate);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-outcomes-heading i {
    color: var(--ac-primary);
}

.course-outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-outcomes-list li {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.course-outcomes-list li i {
    color: var(--ac-accent-green);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* TOOLS COVERED */
.course-tools-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px dashed var(--ac-border);
}

.course-tool-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
}

/* CARD ACTION BUTTONS */
.course-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-enroll-form {
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--ac-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    transition: all 0.25s ease;
}

.btn-enroll-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.btn-whatsapp-inquiry {
    width: 100%;
    padding: 11px 18px;
    border-radius: 12px;
    background: #ffffff;
    color: #25d366;
    border: 1px solid #dcfce7;
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-whatsapp-inquiry:hover {
    background: #f0fdf4;
    border-color: #25d366;
    color: #15803d;
}

/* ==========================================================================
   GOOGLE FORM DEDICATED SECTION
   ========================================================================== */
.academy-google-form-section {
    padding: 90px 0;
    background: #ffffff;
    border-top: 1px solid var(--ac-border);
    border-bottom: 1px solid var(--ac-border);
}

.gform-container-box {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.gform-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 45px 40px;
    text-align: center;
    position: relative;
}

.gform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.gform-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gform-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.gform-cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-open-gform-direct {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    color: var(--ac-dark);
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.btn-open-gform-direct:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    color: var(--ac-primary);
}

.btn-open-wa-direct {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-open-wa-direct:hover {
    background: #22c55e;
    color: #ffffff;
}

/* Steps Row */
.gform-steps-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid var(--ac-border);
}

@media (max-width: 768px) {
    .gform-steps-strip {
        grid-template-columns: 1fr;
    }
}

.gstep-item {
    padding: 24px 20px;
    border-right: 1px solid var(--ac-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.gstep-item:last-child {
    border-right: none;
}

.gstep-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ac-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}

.gstep-text h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ac-dark);
    margin-bottom: 3px;
}

.gstep-text p {
    font-size: 12.5px;
    color: var(--ac-muted);
    line-height: 1.35;
    margin: 0;
}

/* Embedded Form Frame */
.gform-embed-wrapper {
    padding: 30px 20px;
    background: #ffffff;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gform-iframe {
    width: 100%;
    height: 640px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* ==========================================================================
   ACADEMY ADVANTAGES / WHY 1TOZ
   ========================================================================== */
.academy-why-section {
    padding: 90px 0;
    background: #fafbfc;
}

.section-head-center {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-head-center h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--ac-dark);
    margin-bottom: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.section-head-center p {
    font-size: 16px;
    color: var(--ac-muted);
    line-height: 1.6;
}

.academy-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 980px) {
    .academy-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .academy-why-grid {
        grid-template-columns: 1fr;
    }
}

.why-feature-card {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: 18px;
    border: 1px solid var(--ac-border);
    transition: all 0.3s ease;
}

.why-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: var(--ac-primary);
}

.why-feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--ac-primary);
    margin-bottom: 20px;
}

.why-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ac-dark);
}

.why-feature-card p {
    font-size: 14px;
    color: var(--ac-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   ACADEMY FAQ ACCORDION
   ========================================================================== */
.academy-faq-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.faq-accordion-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-accordion-item {
    border: 1px solid var(--ac-border);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.faq-accordion-trigger {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--ac-dark);
    text-align: left;
    cursor: pointer;
}

.faq-accordion-trigger i {
    font-size: 14px;
    color: var(--ac-primary);
    transition: transform 0.3s ease;
}

.faq-accordion-item.open .faq-accordion-trigger i {
    transform: rotate(180deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--ac-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.faq-accordion-item.open .faq-accordion-content {
    max-height: 300px;
    padding: 0 24px 22px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .academy-hero-title {
        font-size: 32px;
    }
    .gform-header {
        padding: 30px 20px;
    }
    .gform-title {
        font-size: 24px;
    }
}