/* ==================== Landing Page Specific Styles ==================== */

/* Make the page scrollable (not forced full viewport) */
body {
    display: block;
    padding-top: 0;
}

/* Main container that holds all sections */
.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ==================== Section 1: Course Introduction ==================== */
.intro-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(200, 168, 78, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c8a84e, #0d7a5e, #c8a84e);
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.intro-text {
    flex: 1 1 300px;
}

.intro-text h2 {
    font-size: 28px;
    font-weight: 900;
    color: #1a3c5c;
    margin-bottom: 15px;
    line-height: 1.4;
}

.intro-text p {
    font-size: 15px;
    color: #3d3028;
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 400;
}

.intro-action {
    flex: 0 0 auto;
    align-self: flex-end;
}

.btn-signup {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a6d50, #0d7a5e);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(200,168,78,0.5);
    box-shadow: 0 6px 20px rgba(10,90,60,0.3);
    text-align: center;
}

.btn-signup:hover {
    background: linear-gradient(135deg, #1e7d5c, #0f9b7a);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10,90,60,0.4);
}

/* ==================== Section 2: Accordion Phases ==================== */
.phases-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(200, 168, 78, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.phases-section h2 {
    font-size: 26px;
    font-weight: 900;
    color: #1a3c5c;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.phases-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c8a84e, transparent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 1px solid rgba(180, 160, 130, 0.4);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    transition: box-shadow 0.3s;
}

.accordion-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f9f4ea, #fefaf5);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #1a3c5c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.3s;
    border-bottom: 1px solid transparent;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #f0e6d3, #fdf6ed);
}

.accordion-header .arrow {
    font-size: 20px;
    color: #0d7a5e;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: rgba(255,255,255,0.5);
}

.accordion-item.active .accordion-body {
    max-height: 400px; /* enough for content */
    padding: 20px;
    border-top: 1px solid rgba(200,168,78,0.3);
}

.accordion-body p {
    font-size: 14px;
    color: #3d3028;
    line-height: 1.8;
    margin: 0;
}

/* ==================== Section 3: Teachers ==================== */
.teachers-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(200, 168, 78, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.teachers-section h2 {
    font-size: 26px;
    font-weight: 900;
    color: #1a3c5c;
    text-align: center;
    margin-bottom: 30px;
}

.teachers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.teacher-card {
    text-align: center;
    width: 140px;
}

.teacher-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d7a5e, #1aad85);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 900;
    border: 3px solid #c8a84e;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.teacher-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a3c5c;
    margin-top: 5px;
}

.teacher-title {
    font-size: 12px;
    color: #7a6858;
    font-weight: 100;
}

/* ==================== Final Call-to-Action ==================== */
.final-cta {
    text-align: center;
    margin: 10px 0 40px;
}

.final-cta .btn-signup {
    font-size: 18px;
    padding: 16px 40px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
    }
    .intro-action {
        align-self: center;
    }
    .accordion-header {
        font-size: 15px;
        padding: 14px 16px;
    }
}