/**
 * Digital Marketing Page Styles
 * Follows bassmah design system (PAGE-BUILD-CHECKLIST.md):
 * - section-badge blue pill (global)
 * - #0c1a2a dark titles
 * - #27ae60 green CTA buttons
 * - 24px card radius with top accent bar
 * - gradient bg per nth-child for cards
 * - decorative hero shapes
 */

.dm-page {
    --brand: #2f5aae;
    --brand-light: #338eaa;
    --green: #27ae60;
    --green-light: #2ecc71;
    --dark: #0c1a2a;
    --text-light: #64748b;
    --light-bg: #f0f4f8;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.12);
    --radius: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dm-page * { box-sizing: border-box; }
.dm-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════════ */
.dm-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c1a2a 0%, #1a3a6b 50%, #2f5aae 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 100px 20px 80px;
}

.dm-hero.has-bg {
    background-color: #0c1a2a;
    background-blend-mode: normal;
}

.dm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 26, 42, 0.88) 0%, rgba(26, 58, 107, 0.78) 50%, rgba(47, 90, 174, 0.72) 100%);
    z-index: 1;
}

.dm-hero.has-bg .dm-hero__overlay {
    background: linear-gradient(135deg, rgba(12, 26, 42, 0.85) 0%, rgba(26, 58, 107, 0.75) 50%, rgba(47, 90, 174, 0.65) 100%);
}

.dm-hero__shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.dm-hero__shape {
    position: absolute;
    border-radius: 50%;
}

.dm-hero__shape--1 {
    width: 320px; height: 320px;
    top: -100px; right: -80px;
    background: rgba(255, 255, 255, 0.04);
}

.dm-hero__shape--2 {
    width: 480px; height: 480px;
    bottom: -180px; left: -120px;
    background: rgba(39, 174, 96, 0.06);
    animation: dmFloat 15s ease-in-out infinite;
}

.dm-hero__shape--3 {
    width: 200px; height: 200px;
    top: 30%; left: 10%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.dm-hero__shape--4 {
    width: 140px; height: 140px;
    bottom: 20%; right: 12%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    animation: dmFloat 12s ease-in-out infinite reverse;
}

@keyframes dmFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(20px, -30px) rotate(8deg); }
}

.dm-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.dm-hero__badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.dm-hero__title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dm-hero__desc {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.92);
}

.dm-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.35);
    transition: var(--transition);
}

.dm-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.5);
    color: #fff;
}

.dm-hero__scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.dm-hero__scroll-hint span {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: dmScroll 1.6s ease-in-out infinite;
}

@keyframes dmScroll {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

@media (max-width: 768px) {
    .dm-hero__scroll-hint { display: none; }
}

/* ═══════════════════════════════════════════════════
   SECTION COMMON (light sections)
═══════════════════════════════════════════════════ */
.dm-overview, .dm-instructor, .dm-audience, .dm-services, .dm-curriculum {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.dm-overview, .dm-audience, .dm-curriculum {
    background: linear-gradient(160deg, #f8fbff, #eaf1fd 30%, #f0f4f8);
}

.dm-instructor, .dm-services { background: #fff; }

.dm-overview::before,
.dm-instructor::before,
.dm-audience::before,
.dm-services::before,
.dm-curriculum::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa, #2f5aae);
    z-index: 1;
}

.dm-overview__title,
.dm-instructor__title,
.dm-audience__title,
.dm-services__title,
.dm-curriculum__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    color: var(--dark);
    margin: 0 0 50px;
    position: relative;
}

.dm-overview__title::after,
.dm-instructor__title::after,
.dm-audience__title::after,
.dm-services__title::after,
.dm-curriculum__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--brand));
    border-radius: 2px;
    margin: 16px auto 0;
}

.dm-page .section-badge {
    display: inline-block;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(47, 90, 174, 0.25);
    text-align: center;
}

.dm-overview .container,
.dm-instructor .container,
.dm-audience .container,
.dm-services .container,
.dm-curriculum .container { text-align: center; }

.dm-overview > .container > .section-badge,
.dm-instructor > .container > .section-badge,
.dm-audience > .container > .section-badge,
.dm-services > .container > .section-badge,
.dm-curriculum > .container > .section-badge { display: block; }

/* ═══════════════════════════════════════════════════
   CARDS COMMON
═══════════════════════════════════════════════════ */
.dm-overview-card,
.dm-audience-card,
.dm-service-card {
    position: relative;
    padding: 40px 30px;
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid #e8ecf1;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
}

.dm-overview-card::before,
.dm-audience-card::before,
.dm-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa, #2f5aae);
}

.dm-overview-card:hover,
.dm-audience-card:hover,
.dm-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #cfd8e3;
}

.dm-overview-card:nth-child(6n+1), .dm-audience-card:nth-child(6n+1), .dm-service-card:nth-child(6n+1) { background: linear-gradient(180deg, #eff6ff, #fff); }
.dm-overview-card:nth-child(6n+2), .dm-audience-card:nth-child(6n+2), .dm-service-card:nth-child(6n+2) { background: linear-gradient(180deg, #f0fdf4, #fff); }
.dm-overview-card:nth-child(6n+3), .dm-audience-card:nth-child(6n+3), .dm-service-card:nth-child(6n+3) { background: linear-gradient(180deg, #fffbeb, #fff); }
.dm-overview-card:nth-child(6n+4), .dm-audience-card:nth-child(6n+4), .dm-service-card:nth-child(6n+4) { background: linear-gradient(180deg, #fdf2f8, #fff); }
.dm-overview-card:nth-child(6n+5), .dm-audience-card:nth-child(6n+5), .dm-service-card:nth-child(6n+5) { background: linear-gradient(180deg, #f5f3ff, #fff); }
.dm-overview-card:nth-child(6n),   .dm-audience-card:nth-child(6n),   .dm-service-card:nth-child(6n)   { background: linear-gradient(180deg, #ecfeff, #fff); }

.dm-overview-card__icon,
.dm-audience-card__icon,
.dm-service-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.dm-overview-card__icon img,
.dm-audience-card__icon img,
.dm-service-card__icon img {
    width: 48px; height: 48px; object-fit: contain;
}

.dm-overview-card:nth-child(6n+1) .dm-overview-card__icon, .dm-audience-card:nth-child(6n+1) .dm-audience-card__icon, .dm-service-card:nth-child(6n+1) .dm-service-card__icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.dm-overview-card:nth-child(6n+2) .dm-overview-card__icon, .dm-audience-card:nth-child(6n+2) .dm-audience-card__icon, .dm-service-card:nth-child(6n+2) .dm-service-card__icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.dm-overview-card:nth-child(6n+3) .dm-overview-card__icon, .dm-audience-card:nth-child(6n+3) .dm-audience-card__icon, .dm-service-card:nth-child(6n+3) .dm-service-card__icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.dm-overview-card:nth-child(6n+4) .dm-overview-card__icon, .dm-audience-card:nth-child(6n+4) .dm-audience-card__icon, .dm-service-card:nth-child(6n+4) .dm-service-card__icon { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.dm-overview-card:nth-child(6n+5) .dm-overview-card__icon, .dm-audience-card:nth-child(6n+5) .dm-audience-card__icon, .dm-service-card:nth-child(6n+5) .dm-service-card__icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.dm-overview-card:nth-child(6n)   .dm-overview-card__icon, .dm-audience-card:nth-child(6n)   .dm-audience-card__icon, .dm-service-card:nth-child(6n)   .dm-service-card__icon   { background: linear-gradient(135deg, #ecfeff, #cffafe); }

.dm-overview-card h3,
.dm-audience-card h3,
.dm-service-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.4;
}

.dm-overview-card p,
.dm-audience-card p,
.dm-service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* 2. OVERVIEW grid */
.dm-overview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 3. INSTRUCTOR */
.dm-instructor__wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(180deg, #f8fbff, #fff);
    border-radius: var(--radius);
    border: 2px solid #e8ecf1;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.dm-instructor__wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa, #2f5aae);
}

.dm-instructor__image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1;
    box-shadow: 0 15px 40px rgba(47, 90, 174, 0.18);
}

.dm-instructor__name {
    font-size: 26px;
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 16px;
}

.dm-instructor__desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin: 0;
}

/* 4. AUDIENCE grid */
.dm-audience__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 5. SERVICES grid (text-align right since 2-col with longer text) */
.dm-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dm-service-card { text-align: right; }
.dm-service-card__icon { margin: 0 0 20px; }

/* 6. CURRICULUM */
.dm-curriculum__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dm-curriculum__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e8ecf1;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dm-curriculum__item:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.dm-curriculum__item-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-curriculum__item p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}

/* 7. CTA */
.dm-cta {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #0c1a2a 0%, #1a3a6b 50%, #2f5aae 100%);
    overflow: hidden;
    text-align: center;
}

.dm-cta__shapes { position: absolute; inset: 0; pointer-events: none; }
.dm-cta__shape { position: absolute; border-radius: 50%; }
.dm-cta__shape--1 {
    width: 280px; height: 280px;
    top: -80px; left: -60px;
    background: rgba(39, 174, 96, 0.08);
}
.dm-cta__shape--2 {
    width: 360px; height: 360px;
    bottom: -120px; right: -80px;
    background: rgba(255, 255, 255, 0.04);
}

.dm-cta .container { position: relative; z-index: 2; }

.dm-cta__badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.dm-cta__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 18px;
    color: #fff;
}

.dm-cta__desc {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.92);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.dm-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.35);
    transition: var(--transition);
}

.dm-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.5);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .dm-overview__grid { grid-template-columns: repeat(2, 1fr); }
    .dm-audience__grid { grid-template-columns: repeat(2, 1fr); }
    .dm-services__grid { grid-template-columns: 1fr; }
    .dm-curriculum__list { grid-template-columns: repeat(2, 1fr); }
    .dm-instructor__wrap { grid-template-columns: 250px 1fr; gap: 30px; padding: 30px; }
}

@media (max-width: 768px) {
    .dm-hero { min-height: 700px; padding: 100px 20px 60px; }
    .dm-overview, .dm-instructor, .dm-audience, .dm-services, .dm-curriculum, .dm-cta { padding: 60px 0; }
    .dm-cta { padding: 60px 20px; }

    .dm-overview__grid,
    .dm-audience__grid,
    .dm-curriculum__list { grid-template-columns: 1fr; }

    .dm-instructor__wrap { grid-template-columns: 1fr; text-align: center; }

    .dm-overview-card:hover,
    .dm-audience-card:hover,
    .dm-service-card:hover { transform: translateY(-4px); }

    .dm-curriculum__item:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════
   GALLERY (Swiper)
═══════════════════════════════════════════════════ */
.dm-gallery {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fbff, #eaf1fd 30%, #f0f4f8);
}
.dm-gallery::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa, #2f5aae);
    z-index: 1;
}
.dm-gallery .container { text-align: center; }
.dm-gallery__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.3;
    color: var(--dark);
    margin: 0 0 50px;
}
.dm-gallery__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--brand));
    border-radius: 2px;
    margin: 16px auto 0;
}
.dm-gallery__swiper-wrap {
    position: relative;
    padding: 0 50px;
}
.dm-gallery-swiper { padding-bottom: 50px; }
.dm-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.dm-gallery-swiper .swiper-slide:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}
.dm-gallery__next,
.dm-gallery__prev {
    --swiper-navigation-color: #fff;
    --swiper-navigation-size: 22px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(47, 90, 174, 0.3);
}
.dm-gallery__pagination .swiper-pagination-bullet { background: var(--brand); opacity: 0.4; }
.dm-gallery__pagination .swiper-pagination-bullet-active { opacity: 1; background: var(--green); }

@media (max-width: 768px) {
    .dm-gallery { padding: 60px 0; }
    .dm-gallery__swiper-wrap { padding: 0 20px; }
    .dm-gallery__next, .dm-gallery__prev { display: none; }
}
