/* ==========================================================================
   Central ICT Club Bangladesh
   Detail pages (event, course, research, project, gallery album)
   One shared layout: a breadcrumb, a hero meta row, a readable content
   column, and a sticky summary card. Cards, ticks, stats, and the gallery
   grid are reused from style.css and gallery.css, nothing is duplicated.
   ========================================================================== */

/* ---- Breadcrumb (sits inside the dark hero) --------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb__sep {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb__current {
    color: var(--white);
    font-weight: 600;
}

/* ---- Hero meta row ---------------------------------------------------- */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
}

.detail-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.detail-meta__item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--green-400);
}

/* ---- Content layout: text column plus a summary aside ----------------- */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(26px, 4vw, 52px);
    align-items: start;
}

.detail-main > h2 {
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
    margin: 34px 0 14px;
}

.detail-main > h2:first-child {
    margin-top: 0;
}

.detail-main p {
    color: var(--slate-700);
    margin: 0 0 16px;
}

.detail-main .ticks {
    margin: 0 0 16px;
}

/* a row of topic or tech tags */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

/* ---- Syllabus and agenda module list ---------------------------------- */
.module {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.module:last-child {
    border-bottom: 1px solid var(--line);
}

.module__no {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--mist);
    color: var(--blue-600);
    font-weight: 700;
    font-size: 0.9rem;
}

.module__title {
    font-size: 1.02rem;
    margin: 0 0 4px;
}

.module__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--slate-500);
}

/* ---- Sticky summary card --------------------------------------------- */
.detail-side {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: grid;
    gap: 16px;
}

.detail-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: 24px;
}

.detail-card__title {
    font-size: 1.05rem;
    margin: 0 0 14px;
}

.detail-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
}

.detail-card__row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.detail-card__key {
    color: var(--slate-500);
}

.detail-card__val {
    text-align: right;
    font-weight: 600;
    color: var(--ink);
}

.detail-card .btn {
    width: 100%;
    margin-top: 16px;
}

/* share control, a button that reads as a quiet link */
.detail-card__share {
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-600);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}

.detail-card__share:hover {
    color: var(--green-600);
}

/* ---- Album feature image (gallery detail) ---------------------------- */
.album-feature {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(240px, 42vw, 440px);
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
    box-shadow: var(--sh-md);
    color: rgba(255, 255, 255, 0.5);
}

.album-feature svg {
    width: 56px;
    height: 56px;
}

.album-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* previous and next strip between albums */
.album-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.album-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue-600);
    transition: color 0.2s var(--ease);
}

.album-nav a:hover {
    color: var(--green-600);
}

.album-nav svg {
    width: 18px;
    height: 18px;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* the summary card should not stick once it is stacked */
    .detail-side {
        position: static;
    }
}
