/* //////////////////\/\/////////////////////
   hackathon.css — page-specific layer on top of dga-foundations.css
   + custom.css / index.css (same DGA UI identity)
   //////////////////\/\///////////////////// */

/* Section scroll offset (fixed navbar) */
#h6-featured, #h6-tracks, #h6-prizes,
#h6-program, #h6-register, #h6-sponsors { scroll-margin-top: 84px; }

/* Navbar logo: the mishkat wordmark is much wider than the old H6 mark —
   cap it by width (not a fixed height) so it can't force the navbar to
   overflow horizontally on small screens. */
#mk-navbar #mk-ham { flex-shrink: 0; }
@media (max-width: 767.98px) {
    /* the mishkat SVG has no intrinsic width/height (only a viewBox), so
       width:auto + height:auto together collapse it to 0x0 — pin width
       to a definite value and let height follow the viewBox ratio */
    #mk-navbar .navbar-brand img { width: 200px !important; height: auto !important; max-width: 100%; }
}
@media (max-width: 400px) {
    #mk-navbar .navbar-brand img { width: 200px !important; }
}

/*  Featured (3 intro cards)  */
#h6-featured { padding: var(--dga-space-9xl, 6rem) 0; background: var(--dga-white, #fff); }
.h6-feature-card {
    border-radius: var(--dga-radius-lg);
    border: 1px solid var(--dga-gray-200, #E5E7EB);
    overflow: hidden;
    height: 100%;
    transition: box-shadow .3s, transform .3s;
}
.h6-feature-card:hover { box-shadow: var(--dga-shadow-md); transform: translateY(-4px); }
.h6-feature-img {
    min-height: 320px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--dga-space-4xl);
    position: relative;
}
.h6-feature-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(16,70,49,.20) 0%,
        rgba(16,70,49,.55) 45%,
        rgba(9,42,30,.92)  100%);
    pointer-events: none;
}
.h6-feature-img > * { position: relative; z-index: 1; }
.h6-feature-icon {
    width: 42px; height: 42px;
    border-radius: var(--dga-radius-full, 9999px);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--dga-white, #fff);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/*  Featured v2 (index2.html only — white card, framed photo, pill CTA)  */
.h6-feature-card-v2 {
    display: flex; flex-direction: column;
    height: 100%;
    min-height: 420px;
    background: var(--dga-white, #fff);
    border: 1px solid var(--dga-gray-200, #E5E7EB);
    border-radius: var(--dga-radius-xl, 1.5rem);
    box-shadow: var(--dga-shadow-xs);
    padding: var(--dga-space-lg, 12px);
    transition: box-shadow .3s ease, transform .3s ease;
}
.h6-feature-card-v2:hover { box-shadow: var(--dga-shadow-lg); transform: translateY(-4px); }
.h6-feature-img-v2 {
    position: relative;
    height: 280px;
    border-radius: var(--dga-radius-lg, 1rem);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    flex-shrink: 0;
}
.h6-feature-img-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(181deg, rgb(40 117 87 / 9%) 35%, rgb(7 95 60 / 83%) 100%);
    pointer-events: none;
}
.h6-feature-img-v2 > * { position: relative; z-index: 1; }
.h6-feature-icon-v2 {
    position: absolute; top: var(--dga-space-lg, 12px); inset-inline-start: var(--dga-space-lg, 12px);
    width: 42px; height: 42px;
    border-radius: var(--dga-radius-full, 9999px);
    background: rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center;
    color: var(--dga-primary, #1B8354);
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: var(--dga-shadow-xs);
}
.h6-feature-body-v2 {
    display: flex; flex-direction: column; flex: 1;
    padding: var(--dga-space-2xl, 1.25rem) var(--dga-space-lg, 0.75rem) var(--dga-space-md, 0.5rem);
    gap: var(--dga-space-md, 8px);
}
.h6-feature-title-v2 {
    font-size: var(--dga-text-lg, 1.125rem);
    font-weight: var(--dga-fw-bold, 700);
    color: var(--dga-gray-900, #111827);
    margin: 0;
}
.h6-feature-desc-v2 {
    font-size: var(--dga-text-sm, 0.875rem);
    line-height: var(--dga-lh-text-sm, 1.375rem);
    color: var(--dga-gray-600, #4B5563);
    margin: 0;
    flex: 1;
}
.h6-feature-cta-v2 { align-self: flex-start; margin-top: var(--dga-space-md, 8px); }

/* Raise the whole 3-card row slightly, all equal at the bottom */
@media (min-width: 992px) {
    #h6-featured .h6-feature-card-v2 { margin-top: -1.5rem; }
}

/*  Tracks (Swiper) — default: full-image card; hover: flips to a white card  */
#h6-tracks { padding: var(--dga-space-9xl, 6rem) 0; background: var(--dga-gray-50, #F9FAFB); }
#h6-tracks .swiper-slide { height: auto; padding: 6px; }

/* Swiper marks the prev/next nav button "swiper-button-disabled" at the
   end of the track list; its own bundle only fades it (opacity:.35), so
   pair it with .mk-ev-arrow's gray "disabled" look instead for a solid
   gray circle, matching the rest of the site. */
.mk-ev-arrow.swiper-button-disabled {
    opacity: 1;
    background: var(--dga-gray-300, #D2D6DB);
    color: var(--dga-white, #fff);
    cursor: default;
    pointer-events: none;
}

.h6-track-card {
    position: relative;
    display: block;
    height: 320px;
    border-radius: var(--dga-radius-lg);
    overflow: hidden;
    border: 1px solid var(--dga-gray-200, #E5E7EB);
    box-shadow: var(--dga-shadow-sm);
    text-decoration: none;
}
.h6-track-face {
    position: absolute; inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex; align-items: flex-end;
    padding: var(--dga-space-2xl, 20px);
    transition: opacity .3s ease;
}
.h6-track-face-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(16,70,49,0)    0%,
        rgba(16,70,49,.45)  45%,
        rgba(9,42,30,.92)   100%);
}
.h6-track-face-label { position: relative; z-index: 1; }
.h6-track-sub  { display: block; color: var(--mk-accent-tint, #B8EACB); font-size: var(--dga-text-sm, .875rem); font-weight: 600; margin-bottom: var(--dga-space-xs, 4px); }
.h6-track-title { color: var(--dga-white, #fff); font-size: var(--dga-text-lg, 1.125rem); font-weight: 700; margin: 0; line-height: 1.4; }

.h6-track-hover {
    position: absolute; inset: 0;
    background: var(--dga-white, #fff);
    padding: var(--dga-space-2xl, 20px);
    display: flex; flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
}
.h6-track-hover img {
    width: 100%; height: 130px;
    object-fit: cover;
    border-radius: var(--dga-radius-md, 8px);
    margin-bottom: var(--dga-space-xl, 16px);
}
.h6-track-sub-dark  { color: var(--dga-primary, #1B8354); font-size: var(--dga-text-sm, .875rem); font-weight: 600; margin-bottom: var(--dga-space-xs, 4px); }
.h6-track-title-dark { color: var(--dga-gray-900, #111827); font-size: var(--dga-text-md, 1.05rem); font-weight: 700; margin: 0; line-height: 1.4; }
.h6-track-arrow {
    width: 36px; height: 36px;
    border-radius: var(--dga-radius-full, 9999px);
    border: 1px solid var(--dga-primary, #1B8354);
    color: var(--dga-primary, #1B8354);
    display: flex; align-items: center; justify-content: center;
    margin-top: auto;
    align-self: flex-start;
    transition: background .2s, color .2s;
}
.h6-track-card:hover .h6-track-face  { opacity: 0; }
.h6-track-card:hover .h6-track-hover { opacity: 1; visibility: visible; }
.h6-track-card:hover .h6-track-arrow { background: var(--dga-primary, #1B8354); color: var(--dga-white, #fff); }

/*  Prizes  */
#h6-prizes {
    padding: var(--dga-space-9xl, 6rem) 0;
    position: relative;
    background-image: linear-gradient(160deg, rgba(9, 42, 30, .80) 0%, rgb(4 111 69 / 84%) 55%, rgb(3 81 53 / 80%) 100%), url(../assets/img/hackathon/bg_willyou.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* keep this button solid DGA green (override the on-primary white inversion) */
    #h6-prizes .btn-primary {
    --dga-btn-color: var(--dga-white, #FFFFFF) !important;
    --dga-btn-bg: var(--dga-primary, #1B8354) !important;
    --dga-btn-border-color: var(--dga-primary, #1B8354) !important;
    --dga-btn-hover-color: var(--dga-white, #FFFFFF) !important;
    --dga-btn-hover-bg: var(--dga-primary-700, #166A45) !important;
    --dga-btn-hover-border-color: var(--dga-primary-700, #166A45) !important;
}
.h6-prize-badge-icon {
    display: flex; align-items: center; justify-content: center;
}
.h6-prize-badge-icon img { width: 200px; height: 200px; object-fit: contain; }
@media (max-width: 767.98px) {
    #h6-prizes .d-flex.align-items-center.gap-4 { flex-wrap: wrap; }
    .h6-prize-badge-icon img { width: 110px; height: 110px; }
}
@media (max-width: 400px) {
    .h6-prize-badge-icon img { width: 90px; height: 90px; }
}
/* The column wrapping .h6-prize-photo uses inline `display:grid;
   justify-items:end` so the photo hugs the end edge on desktop. With
   justify-items != stretch, the grid area has no definite size, so the
   child's max-width:100% has nothing to resolve against and the fixed
   517px width overflows on mobile. Drop back to block layout below lg
   (columns are already full-width there, so "end" alignment doesn't
   matter) so max-width:100% works normally. */
@media (max-width: 991.98px) {
    #h6-prizes [style*="justify-items"] { display: block !important; }
}
.h6-prize-photo {
    width: 517px;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 517 / 314;
    border-radius: var(--dga-radius-xl, 1.5rem);
    box-shadow: var(--dga-shadow-xl);
    background-image: linear-gradient(160deg, rgb(16 70 49 / 45%) 0%, rgba(27, 131, 84, .2) 55%, rgb(16 70 49 / 55%) 100%),
                       url(../img/img_winner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.h6-prize-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--dga-radius-lg, 1rem);
    height: 100%;
}
.h6-prize-card--photo {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.h6-prize-card-text {
    flex: 1;
    min-width: 0;
    padding: var(--dga-space-5xl, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.h6-prize-card-photo {
    position: relative;
    width: 46%;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.h6-prize-card-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(16,70,49,.10) 0%,
        rgba(16,70,49,.35) 55%,
        rgba(9,42,30,.65) 100%);
}
.h6-prize-amount { font-size: var(--dga-text-display-xs, 1.5rem); font-weight: var(--dga-fw-bold, 700); color: var(--dga-white, #fff); }
.h6-prize-card p { color: rgba(255,255,255,.8); }
.h6-prize-card--solid {
    background-image: linear-gradient(160deg, rgb(16 70 49 / 88%) 0%, rgba(27, 131, 84, .9) 100%), url(../assets/img/hackathon/img_Participation.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    padding: var(--dga-space-5xl, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@media (max-width: 991.98px) {
    .h6-prize-card--photo { flex-direction: column; }
    .h6-prize-card-photo { width: 100%; height: 160px; }
}
@media (max-width: 575.98px) {
    .h6-prize-card-photo { max-width: 87%; }
}

/*  Program  */
#h6-program { padding: var(--dga-space-9xl, 6rem) 0; background: var(--dga-white, #fff); }
.h6-program-img { border-radius: var(--dga-radius-xl, 1.5rem); box-shadow: var(--dga-shadow-lg); }

/*  Scientific Program schedule  */
.h6-sched-day-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.h6-sched-day-name { font-weight: 700; font-size: 1.1875rem; color: var(--mk-primary-d); }
.h6-sched-day-name span { font-weight: 400; opacity: .75; font-size: .9375rem; color: var(--dga-gray-500, #6C737F); }
.h6-sched-day-time { font-size: .875rem; color: var(--dga-gray-500, #6C737F); white-space: nowrap; }
.h6-sched-time { width: 1%; white-space: nowrap; font-weight: 600; color: var(--mk-primary-d); vertical-align: top; }
#h6-program .table > :not(caption) > * > td { vertical-align: top; }
.h6-sched-loc { display: block; font-size: .75rem; color: var(--dga-gray-500, #6C737F); margin-top: .2rem; }
.h6-sched-loc i { font-size: .7rem; }
.h6-sched-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.h6-sched-chip { background: var(--dga-primary-50, #F3FCF6); border: 1px solid var(--dga-primary-100, #DFF6E7); border-radius: var(--dga-radius-md, .5rem); padding: .55rem .75rem; }
.h6-sched-chip strong { display: block; font-size: .8125rem; line-height: 1.4; }
.h6-sched-chip span { display: block; font-size: .75rem; color: var(--dga-gray-500, #6C737F); margin-top: .15rem; }
.h6-sched-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin-top: .5rem; }
.h6-sched-speaker strong { display: block; font-size: .875rem; }
.h6-sched-speaker span { display: block; font-size: .75rem; color: var(--dga-gray-500, #6C737F); margin-top: .1rem; }

/*  Register  */
#h6-register { padding: var(--dga-space-9xl, 6rem) 0; background: var(--dga-gray-50, #F9FAFB); }

/*  Sponsors  */
#h6-sponsors { padding: var(--dga-space-9xl, 6rem) 0;  background: var(--dga-white, #fff); }
.h6-sponsor-card {
    background: var(--dga-white, #fff);
    border: 1px solid var(--dga-gray-200, #E5E7EB);
    border-radius: var(--dga-radius-lg, 1rem);
    box-shadow: var(--dga-shadow-xs);
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--dga-space-xl, 16px);
    transition: box-shadow .2s ease, transform .2s ease;
}
.h6-sponsor-card:hover { box-shadow: var(--dga-shadow-md); transform: translateY(-2px); }
.h6-sponsor-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
#h6-sponsors .swiper-pagination-bullet-active { background: var(--dga-primary, #1B8354); }
@media (max-width: 575.98px) { .h6-sponsor-card { max-width: 88px; padding: var(--dga-space-lg, 12px); } }

/*  About page: track info cards  */    
#h6-about-tracks { padding: var(--dga-space-9xl, 6rem) 0;     background: var(--dga-white, #fff); }
.h6-track-info-card {
    display: block;
    position: relative;
    background: var(--dga-white, #fff);
    border: 1px solid var(--dga-gray-200, #E5E7EB);
    border-radius: var(--dga-radius-lg, 1rem);
    box-shadow: var(--dga-shadow-xs);
    height: 100%;
    padding: var(--dga-space-3xl, 1.5rem);
    padding-bottom: var(--dga-space-8xl, 5rem);
    text-decoration: none;
}
.h6-track-info-head { display: flex; margin-bottom: var(--dga-space-xl, 1rem); }
.h6-track-info-title { font-size: var(--dga-text-lg, 1.0625rem); font-weight: var(--dga-fw-bold, 700); color: var(--dga-gray-900, #111827); margin: 0 0 var(--dga-space-xs, 4px); }
.h6-track-info-sub   { font-size: var(--dga-text-sm, 0.875rem); font-weight: var(--dga-fw-regular, 400); color: var(--dga-gray-500, #6B7280); margin: 0; }
.h6-track-info-arrow {
    position: absolute; inset-inline-end: var(--dga-space-3xl, 1.5rem); bottom: var(--dga-space-3xl, 1.5rem);
    width: 2.5rem; height: 2.5rem;
    border-radius: var(--dga-radius-full, 9999px);
    display: flex; align-items: center; justify-content: center;
    color: var(--dga-white, #fff); font-size: 1rem;
    transition: filter .2s ease;
}
.h6-track-info-arrow:hover { filter: brightness(.9); }

/*  About page: impact stat cards  */
#h6-about-stats { padding: var(--dga-space-7xl, 4rem) 0; background: var(--dga-gray-50, #F9FAFB); }
.h6-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    background: var(--dga-white, #fff);
    border: 1px solid var(--dga-gray-200, #E5E7EB);
    border-radius: var(--dga-radius-lg, 1rem);
    box-shadow: var(--dga-shadow-xs);
    padding: var(--dga-space-4xl, 2rem) var(--dga-space-2xl, 1.25rem);
    transition: box-shadow .2s ease, transform .2s ease;
}
.h6-stat-card:hover { box-shadow: var(--dga-shadow-md); transform: translateY(-2px); }
.h6-stat-icon {
    display: flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem;
    margin-bottom: var(--dga-space-xl, 1rem);
    border-radius: var(--dga-radius-full, 9999px);
    background: var(--dga-primary-50, #F3FCF6);
    color: var(--dga-primary, #1B8354);
    font-size: 1.5rem;
}
.h6-stat-val {
    font-size: var(--dga-text-display-sm, 1.875rem);
    line-height: var(--dga-lh-display-sm, 2.25rem);
    font-weight: var(--dga-fw-bold, 700);
    color: var(--dga-primary, #1B8354);
}
.h6-stat-lbl {
    font-size: var(--dga-text-md, 1rem);
    line-height: var(--dga-lh-text-md, 1.5rem);
    font-weight: var(--dga-fw-medium, 500);
    color: var(--dga-gray-600, #4B5563);
    margin-top: var(--dga-space-xs, 4px);
}

/*  Back to top  */
.h6-scroll-top {
    position: fixed; inset-inline-end: 24px; bottom: 24px;
    width: 46px; height: 46px;
    border-radius: var(--dga-radius-full, 9999px);
    background: var(--dga-primary, #1B8354);
    color: var(--dga-white, #fff);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--dga-shadow-lg);
    opacity: 0; visibility: hidden;
    transition: all .25s ease;
    z-index: 999;
    border: none;
}
.h6-scroll-top.show { opacity: 1; visibility: visible; }
.h6-scroll-top:hover { background: var(--dga-primary-700, #166A45); color: var(--dga-white, #fff); }

/*  Track accordion (about_track_0X.html — same shell as mishkat/faq.html)  */
.h6-faq-item {
    border: 1px solid var(--dga-gray-200, #E5E7EB) !important;
    border-radius: var(--dga-radius-lg, 1rem) !important;
    background: var(--dga-white, #fff);
    overflow: hidden;
    transition: box-shadow .2s;
}
.h6-faq-item:hover { box-shadow: var(--dga-shadow-xs, 0 1px 2px 0 rgba(16,24,40,.05)); }
.h6-faq-item .accordion-button {
    font-size:   var(--dga-text-md, 1rem);
    line-height: var(--dga-lh-text-md, 1.5rem);
    font-weight: var(--dga-fw-semibold, 600);
    color: var(--dga-gray-900, #111827);
    padding: var(--dga-space-2xl, 20px) var(--dga-space-2xl, 20px);
    background: var(--dga-white, #fff);
    border-radius: 0;
}
.h6-faq-item .accordion-button:not(.collapsed) {
    color: var(--dga-gray-900, #111827);
    background: var(--dga-gray-200, #E5E7EB);
    box-shadow: none;
}
.h6-faq-item .accordion-button:focus { box-shadow: none; }
.h6-faq-item .accordion-button::after { margin-left: 0; margin-inline-start: auto; }
.h6-faq-item .accordion-body {
    font-size:   var(--dga-text-sm, 0.875rem);
    line-height: 1.8;
    color: var(--dga-gray-700, #374151);
    padding: var(--dga-space-xs, 4px) var(--dga-space-2xl, 20px) var(--dga-space-2xl, 20px);
}
@media (max-width:575.98px)  {
    .mk-hero-desc { font-size: var(--dga-text-md, 1rem); }
    .mk-cta-inner { padding: var(--dga-space-5xl, 40px) var(--dga-space-2xl, 20px); }
    .mk-scroll-ind {
        bottom: var(--dga-space-2xl);
        left: 42%;
    }
}
/*  Footer  */
.dga-footer .dga-footer-content {
    gap: 0;
}
.badge {
    --dga-badge-font-size: 1em;}

/*  404 page  */
.mk-404-section { padding: var(--dga-space-9xl, 6rem) 0; background: var(--dga-white, #fff); }
.mk-404-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.mk-404-illustration { max-width: 100%; height: auto; width: 420px; }
.mk-404-content { margin-top: 1rem; }
.mk-404-desc { color: var(--dga-gray-500, #6C737F); margin-top: .5rem; font-size: 1rem; line-height: 1.7; }
@media (max-width: 575.98px) {
    .mk-404-illustration { width: 280px; }
}