/* ============================================
   WORKSHOP DETAIL PAGE STYLES
   (append this to your existing workshops.css)
   ============================================ */

/* ===== Workshop Detail ===== */
.wd_section { padding-top: 135px; padding-bottom: 35px; }

.wd_title {
    font-weight: 700;
    font-size: 30px;
    color: #00918A;
    margin-bottom: 40px;
}

.wd_block_heading {
    font-weight: 700;
    font-size: 26px;
    color: #111;
    text-align: center;
    margin-bottom: 40px;
}

/* Scope of learning grid */
.wd_scope_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 991px) { .wd_scope_grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 576px) { .wd_scope_grid { grid-template-columns: 1fr; gap: 20px; } }

.wd_scope_card {
    background: #fff;
    border: 1px solid rgb(207, 229, 255);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 4px 6px -1px #1A4D8842,
                0 2px 4px -2px #1A4D8842;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wd_scope_card:hover {
    border-color: #00918A;
    box-shadow: 0 8px 18px -4px rgba(26, 77, 136, 0.16),
                0 4px 10px -4px rgba(26, 77, 136, 0.10);
}
.wd_scope_card_head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.wd_scope_icon {
    flex: 0 0 56px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #F05165;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    overflow: hidden;
    border: 3px solid #fff;
    outline: 2px solid #F05165;
    outline-offset: 1px;
}
.wd_scope_icon_img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.wd_scope_card_title {
    font-weight: 700;
    font-size: 16px;
    color: #00918A;
    margin: 0;
    line-height: 1.3;
}
.wd_scope_card_desc {
    font-size: 15px;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* Program Outcome MORE INFO button */
.wd_outcome_wrapper { text-align: center; margin-bottom: 60px; }
.wd_more_info_btn {
    position: relative;
    overflow: hidden;          /* clips the fill to the rounded shape */
    z-index: 0;                /* own stacking context so the fill sits behind the text */
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #00918A;
    color: #00918A;
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s ease;
}

/* the teal fill that wipes in from the left */
.wd_more_info_btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00918A;
    border-radius: 30px;          /* zoom in as a rounded pill */
    transform: scale(0);          /* starts as a dot in the centre */
    transform-origin: center center;
    transition: transform .3s ease;
    z-index: -1;
}

.wd_more_info_btn:hover::before {
    transform: scale(1);          /* zooms out to fill the button */
}

.wd_more_info_btn:hover {
    color: #fff;
}


/* Program Outcome inline panel */
.wd_outcome_panel {
    position: relative;
    background: #fff;
    border: 1px solid rgb(207,229,255);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(26,77,136,0.08);
    padding: 34px 40px;
    margin-bottom: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.wd_outcome_close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 2px solid #63bb46;
    color: #63bb46;
    background: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all .2s ease;
}
.wd_outcome_close:hover { background: #63bb46; color: #fff; }
.wd_outcome_list { list-style: none; margin: 0; padding: 0; }
.wd_outcome_list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}
.wd_outcome_list li i {
    flex: 0 0 auto;
    color: #63bb46;
    font-size: 18px;
    margin-top: 3px;
}

/* ============================================
   Seminars & Workshop Gallery (horizontal scroll, mosaic)
   ============================================ */
.wd_gallery_wrapper {
    position: relative;
    margin-bottom: 40px;
}

/* Decorative navy circle (top-left, behind gallery) */
.wd_gallery_circle {
    position: absolute;
    top: -90px;
    left: -240px;
    width: 10rem;
    height: 10rem;
    background: #00918A;
    border-radius: 50%;
    z-index: 0;
}

/* Horizontal scroller (drag-to-scroll) */
.wd_gallery_scroller {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: #F05165 #e5e7eb;
}
.wd_gallery_scroller.is-grabbing { cursor: grabbing; }
.wd_gallery_scroller::-webkit-scrollbar { height: 8px; }
.wd_gallery_scroller::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 4px; }
.wd_gallery_scroller::-webkit-scrollbar-thumb { background: #F05165; border-radius: 4px; }

/* Common cell styles */
.wd_gallery_group {
    flex-shrink: 0;
    display: grid;
    gap: 4px;
    height: 560px;
}
.wd_gallery_cell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.wd_gallery_cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    pointer-events: none;        /* prevents image-drag interfering with scroll-drag */
}

/* ===== Group A: 4 cols × 5 rows, 600px wide ===== */
.wd_gallery_group_a {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 600px;
    margin-right: 4px;
}
.wd_g1_a { grid-row: span 3; grid-column: span 2; }
.wd_g1_b { grid-row: span 3; grid-column: span 2; }
.wd_g1_c { grid-row: span 2; grid-column: span 4; }

/* ===== Group B: 4 cols × 7 rows, 600px wide ===== */
.wd_gallery_group_b {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(7, 1fr);
    width: 600px;
}
.wd_g2_a { grid-row: span 3; grid-column: span 4; }
.wd_g2_b { grid-row: span 4; grid-column: span 2; }
.wd_g2_c { grid-row: span 2; grid-column: span 2; }
.wd_g2_d { grid-row: span 2; grid-column: span 2; }

/* ===== Group C: 2 cols × 5 rows, 300px wide ===== */
.wd_gallery_group_c {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 300px;
    margin: 0 4px;
}
.wd_g3_a { grid-row: span 3; grid-column: span 2; }
.wd_g3_b { grid-row: span 2; grid-column: span 2; }

/* ===== Group D: 9 cols × 8 rows, 900px wide ===== */
.wd_gallery_group_d {
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 900px;
    gap: 8px;
    margin: 0 4px;
}
.wd_g4_a { grid-row: span 3; grid-column: span 6; }
.wd_g4_b { grid-row: span 5; grid-column: span 3; }
.wd_g4_c { grid-row: span 5; grid-column: span 3; }
.wd_g4_d { grid-row: span 2; grid-column: span 3; }
.wd_g4_e { grid-row: span 3; grid-column: span 6; }

/* ===== Group E: 4 cols × 7 rows, 600px wide ===== */
.wd_gallery_group_e {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(7, 1fr);
    width: 600px;
    margin-left: 4px;
}
.wd_g5_a { grid-row: span 3; grid-column: span 4; }
.wd_g5_b { grid-row: span 4; grid-column: span 2; }
.wd_g5_c { grid-row: span 2; grid-column: span 2; }
.wd_g5_d { grid-row: span 2; grid-column: span 2; }

/* Mobile fallback — let groups shrink and stack readably */
@media (max-width: 768px) {
    .wd_gallery_circle { width: 140px; height: 140px; top: -50px; left: -50px; }
    .wd_gallery_group { height: 420px; }
    .wd_gallery_group_a,
    .wd_gallery_group_b,
    .wd_gallery_group_e { width: 480px; }
    .wd_gallery_group_c { width: 240px; }
    .wd_gallery_group_d { width: 720px; }
}