/* ===== HERO ===== */
.dip-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 8% 60px;
  background:
    linear-gradient(rgba(243, 248, 250, 0.85), rgba(243, 248, 250, 0.85)),
    url('../img/star.jpg') no-repeat center center / cover;
}

.dip-hero-text {
    flex: 1;
}

.dip-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    color: #1b1b1b;
    line-height: 1.15;
    margin-bottom: 18px;
}

.dip-hero h1 em {
    color: var(--blue);
    font-style: italic;
}

.dip-hero-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.75;
    max-width: 520px;
}

.dip-hero-image {
    flex-shrink: 0;
}

.dip-hero-image img {
    width: 340px;
    max-width: 40vw;
}

/* ===== PROGRAMS SECTION ===== */
.dip-programs {
    padding: 70px 8%;
    background: #fff;
}

.dip-programs-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1b1b1b;
    text-align: center;
    margin-bottom: 8px;
}

.dip-programs-subtitle {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 50px;
}

/* ===== PROGRAM CARD ===== */
.dip-program-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 36px;
    overflow: hidden;
}

.dip-program-card.dip-reverse {
    flex-direction: row-reverse;
}

.dip-program-image {
    width: 380px;
    flex-shrink: 0;
    overflow: hidden;
}

.dip-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dip-program-content {
    flex: 1;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dip-program-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-blue);
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 5px 12px;
    margin-bottom: 14px;
}

.dip-program-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 12px;
}

.dip-program-content>p {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* ===== ACCORDION ===== */
.dip-accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.10em;
    padding: 0;
    margin-bottom: 0;
    transition: color 0.2s;
}

.dip-accordion-toggle i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.dip-accordion-toggle.open i {
    transform: rotate(180deg);
}

.dip-accordion-toggle:hover {
    color: var(--hover-blue);
}

.dip-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.dip-accordion-body.open {
    max-height: 500px;
    padding-top: 18px;
}

.dip-program-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.dip-program-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
}

.dip-program-features li i {
    color: var(--blue);
    font-size: 12px;
}

/* ===== APPLY BUTTON ===== */
.dip-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding: 11px 24px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 16px;
}

.dip-apply-btn:hover {
    background: var(--hover-blue);
    color: #fff;
}

/* ===== MODAL OVERLAY ===== */
.dip-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(22, 32, 104, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dip-modal-overlay.active {
    display: flex;
}

.dip-modal-box {
    background: #f5f3ee;
    width: 100%;
    max-width: 560px;

    padding: 40px 44px;
    position: relative;
    animation: dipCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

@keyframes dipCardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dip-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.dip-modal-close:hover {
    color: var(--blue);
}

.dip-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1b1b1b;
    text-align: center;
    margin-bottom: 6px;
}

.dip-modal-title em {
    color: var(--blue);
    font-style: italic;
}

.dip-modal-sub {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

/* ===== ENROLLMENT FORM ===== */
.dip-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dip-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dip-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dip-field label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--blue);
    text-transform: uppercase;
}

.dip-field input,
.dip-field select,
.dip-field textarea {
    padding: 11px 13px;
    border: 1px solid #d4d0c8;
    background: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #1b1b1b;
    outline: none;
    transition: border 0.2s;
    border-radius: 0;
    width: 100%;
}

.dip-field input:focus,
.dip-field select:focus,
.dip-field textarea:focus {
    border-color: var(--blue);
}

.dip-field textarea {
    resize: vertical;
    min-height: 80px;
}

.dip-consent-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.dip-submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    background: linear-gradient(90deg, var(--blue), var(--hover-blue));
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(37, 49, 133, 0.28);
}

.dip-submit-btn:hover {
    background: linear-gradient(90deg, var(--hover-blue), #0d1550);
    box-shadow: 0 8px 24px rgba(37, 49, 133, 0.40);
}

/* ===== ALERT ===== */
.dip-alert {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 10px;
    display: none;
}

.dip-alert.success {
    color: #1a7a3c;
    background: #e8f8ee;
}

.dip-alert.danger {
    color: #c0392b;
    background: #fdecea;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .dip-hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 6% 40px;
    }

    .dip-hero-desc {
        margin: 0 auto;
    }

    .dip-hero-image img {
        width: 240px;
        max-width: 80vw;
    }

    .dip-program-card,
    .dip-program-card.dip-reverse {
        flex-direction: column;
    }

    .dip-program-image {
        width: 100%;
        height: 220px;
    }

    .dip-program-content {
        padding: 28px 24px;
    }

    .dip-program-features {
        grid-template-columns: 1fr;
    }

    .dip-modal-box {
        padding: 30px 22px;
    }

    .dip-form-row {
        grid-template-columns: 1fr;
    }
}