/* ============================================================
   CUSTOM STYLES FOR AI SKILLS HOUSE PROGRAM PAGE
   ============================================================ */

/* HERO BANNER */
.hero-banner {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;

    /* Base purple */
    background-color: #5b21b6;
}

/* Pattern overlay */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;

    background-color: #5b21b6;
    background-image:
        linear-gradient(135deg, rgba(240, 240, 241, 0.25) 25%, transparent 25%),
        linear-gradient(225deg, rgba(240, 240, 241, 0.25) 25%, transparent 25%),
        linear-gradient(45deg, rgba(240, 240, 241, 0.25) 25%, transparent 25%),
        linear-gradient(
            315deg,
            rgba(240, 240, 241, 0.25) 25%,
            rgba(91, 33, 182, 1) 25%
        );

    background-position:
        10px 0,
        10px 0,
        0 0,
        0 0;
    background-size: 10px 10px;
    background-repeat: repeat;

    opacity: 0.2; /* pattern opacity only */
    z-index: 0;
}

/* Keep content above pattern */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 4rem 2rem;
}

.enroll-btn {
    display: inline-block;
    background-color: white;
    color: #5b21b6;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    margin-top: 1rem;
}

.cta-section-wrapper {
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem;
    min-height: 400px;
}

.cta-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(
            135deg,
            rgba(91, 33, 182, 0.55) 0%,
            rgba(123, 63, 160, 0.55) 100%
        ),
        url("../images/section-hero.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.05rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-sub-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 1000px;
    margin: 0 auto 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* BUTTONS */
.btn-primary {
    background: #5b21b6;
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.btn-primary:hover {
    background: #5a1f7a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(106, 43, 138, 0.3);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem !important;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: white;
    color: #5b21b6;
}

/* CONTAINER & SECTIONS */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-bg-light {
    background: #f8f8fa;
    padding: 4rem 1.5rem;
}

.section-bg-white {
    background: white;
    padding: 4rem 1.5rem;
}

.section-bg-gradient {
    background: linear-gradient(135deg, #66aad7 0%, #7b99d4 100%);
    padding: 4rem 1.5rem;
    color: white;
}

.section-bg-purple {
    background: #5b21b6;
    padding: 4rem 1.5rem;
}

/* TYPOGRAPHY */
.section-title {
    font-size: clamp(1.875rem, 5vw, 2.6rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* MISSION SECTION */
.mission-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
}

.mission-item {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mission-icon {
    flex-shrink: 0;
    color: #5b21b6;
    background: linear-gradient(135deg, #dce8ff 0%, #ede8ff 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    width: 4rem;
    height: 4rem;
}

.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.mission-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* PROGRAM CARDS */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.program-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.program-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.program-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 0.75rem;
    text-align: center;
}

.program-card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* SCHOLARSHIP HIGHLIGHT */
.scholarship-highlight {
    background: linear-gradient(135deg, #dce8ff 0%, #ede8ff 100%);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.scholarship-number {
    font-size: 3rem;
    font-weight: 800;
    color: #5b21b6;
}

.scholarship-text {
    color: #666;
    font-size: 1.125rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
}

.timeline-marker {
    background: #5b21b6;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-description ul {
    list-style: none;
    margin: 1rem 0 0 2rem;
    padding: 0;
}

.timeline-description ul li {
    color: #666;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-description ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5b21b6;
    font-weight: bold;
}

footer {
    background: #fff !important;
}

/* COURSES GRID */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.course-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.course-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.course-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.course-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.course-meta {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

/* BENEFITS LIST */
.benefits-list {
    list-style: none;
    padding: 2rem 0;
}

.benefits-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5b21b6;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA SECTION */
.cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    color: #1a1a1a;
    border-radius: 1.5rem;
    margin: 2rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* FAQ ACCORDION */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: #5b21b6;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #5b21b6;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* MISSION SECTION */
.mission-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
}

.mission-item {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mission-icon {
    flex-shrink: 0;
    color: #5b21b6;
    background: linear-gradient(135deg, #dce8ff 0%, #ede8ff 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    width: 4rem;
    height: 4rem;
}

.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.mission-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* PHASE SECTION */
.phase-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin: 4rem 0;
    align-items: start;
}

.phase-section-reverse {
    grid-template-columns: 1.5fr 1fr;
}

.phase-image-left,
.phase-image-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-image-left img,
.phase-image-right img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phase-meta {
    background: #f8f8fa;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.phase-meta p {
    margin: 0.25rem 0;
    color: #666;
}

.phase-content-right,
.phase-content-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 0.5rem;
}

.phase-description {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.phase-subdesc {
    color: #1a1a1a;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.phase-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.phase-list > li {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.phase-list > li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #5b21b6;
    font-weight: bold;
    font-size: 1.2rem;
}

.phase-sublist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 1rem;
}

.phase-sublist li {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.phase-sublist li::before {
    content: "○";
    position: absolute;
    left: 0;
    color: #5b21b6;
    font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Header mobile fixes */
    header .flex.h-20 {
        height: auto !important;
        min-height: 4rem;
        padding: 0.75rem 0;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Logo container on mobile */
    header .flex.items-center.gap-3 {
        flex-shrink: 1;
        gap: 0.5rem !important;
    }

    header .flex.items-center.gap-3 img {
        height: 2.75rem !important;
        width: auto;
        max-width: 80px;
    }

    /* Button adjustments */
    .btn-primary.btn-sm {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .timeline {
        padding: 1rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-sub-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .mission-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mission-icon {
        align-self: center;
    }

    .mission-icon svg {
        width: 3rem;
        height: 3rem;
    }

    .mission-title {
        font-size: 1.25rem;
    }

    .mission-text {
        font-size: 0.95rem;
    }

    .phase-section,
    .phase-section-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phase-title {
        font-size: 1.5rem;
    }

    .phase-description {
        font-size: 1rem;
    }

    .phase-list > li,
    .phase-sublist li {
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    header .flex.h-20 {
        min-height: 3.5rem;
        padding: 0.5rem 0;
    }

    header .flex.items-center.gap-3 {
        gap: 0.375rem !important;
    }

    header .flex.items-center.gap-3 img {
        height: 1.75rem !important;
        max-width: 120px;
    }

    .btn-primary.btn-sm {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-sub-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* ============================================================
   ENROLLMENT FORM STYLES
   ============================================================ */
.enroll-form-container {
    transition: all 0.3s ease-in-out;
}

.enroll-form-container.hidden-form {
    display: none;
}

.enroll-success-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: white;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.enroll-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enroll-success-icon svg {
    width: 60px;
    height: 60px;
}

.enroll-field-hidden {
    display: none !important;
}

.enroll-input,
.enroll-select,
.enroll-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.enroll-input:focus,
.enroll-select:focus,
.enroll-textarea:focus {
    outline: none;
    border-color: #667eea;
    ring: 2px;
    ring-color: rgba(102, 126, 234, 0.3);
}

.enroll-input::placeholder,
.enroll-select::placeholder,
.enroll-textarea::placeholder {
    color: #9ca3af;
    opacity: 0.6;
}

.enroll-error-border {
    border-color: #ef4444 !important;
}

.enroll-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.enroll-required {
    color: #ef4444;
}

.enroll-help-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.enroll-help-text a {
    color: #667eea;
    text-decoration: underline;
}

.enroll-help-text a:hover {
    color: #5568d3;
}

.enroll-checkbox {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    height: 1.25rem;
    width: 1.25rem;
    color: #5b21b6;
    border-color: #d1d5db;
    border-radius: 0.25rem;
}

.enroll-checkbox:focus {
    ring: 2px;
    ring-color: #5b21b6;
}

.enroll-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.enroll-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.enroll-error-message.show {
    display: block;
}

[type="checkbox"]:checked,
[type="radio"]:checked {
    border-color: transparent;
    background-color: #5b21b6;
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
}
