/* ==========================================================================
   HUMANITARIAN LAW PAGE (humanitarian_law.html)
   ========================================================================== */

.hl-wrapper {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    padding: 40px 0;
}

/* ---------- Header ---------- */
.hl-header {
    margin-bottom: 50px;
    position: relative;
}

/* ==========================================================================
   BLOCK 1 — Tabs & Catalog
   ========================================================================== */

/* --- Tabs Styling --- */
.hl-tabs-container {
    margin-bottom: 48px;
}

.hl-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border-bottom: 2px solid var(--color-border);
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
}

.hl-tabs-nav::-webkit-scrollbar {
    height: 4px;
}
.hl-tabs-nav::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 4px;
}

.hl-tab-link {
    padding: 12px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.hl-tab-link:hover {
    color: var(--color-heading);
}

.hl-tab-link.active {
    color: var(--accent-line);
    border-bottom-color: var(--accent-line);
}

.hl-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.hl-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- 1.1 Historical Context --- */
.hl-context-card {
    background: var(--bg-block);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.4s ease;
}

.hl-context-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-line);
}

.hl-context-card p {
    color: var(--color-text);
    margin-bottom: 12px;
}

.hl-footnotes {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.hl-footnote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-bg) !important;
    background-color: var(--accent-line);
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    line-height: 1;
}

.hl-footnote-btn:hover {
    background-color: var(--color-heading);
    color: var(--color-bg) !important;
    transform: translateY(-2px);
}

.hl-timeline {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.hl-timeline li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.hl-timeline li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-line);
    font-weight: 700;
}

/* --- 1.2 Catalog / Sub-blocks --- */
.hl-subblock {
    margin-bottom: 48px;
}

.hl-subblock-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-subblock-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--accent-line);
    border-radius: 2px;
    flex-shrink: 0;
}

.hl-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hl-card {
    background: var(--bg-block);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--card-shadow);
}

.hl-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-line);
}

.hl-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--btn-cta-bg);
    color: var(--btn-cta-text) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
    line-height: 1.3;
    word-break: break-word;
}

.hl-card-btn:hover {
    background-color: var(--btn-cta-bg-hover) !important;
    color: var(--btn-cta-text) !important;
}

.hl-card-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.hl-card-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex-grow: 1;
}

/* ==========================================================================
   BLOCK 2 — Multimedia Carousel
   ========================================================================== */
.hl-media-section {
    margin-bottom: 56px;
}

.hl-media-placeholder {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 1px; /* empty by design, for CMS filling */
}

/* Swiper carousel overrides */
.hl-swiper-wrap {
    position: relative;
}

.hl-swiper .swiper-slide {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-block);
    border: 1px solid var(--color-border);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-swiper .swiper-slide img,
.hl-swiper .swiper-slide video,
.hl-swiper .swiper-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hl-swiper .swiper-button-prev,
.hl-swiper .swiper-button-next {
    color: var(--accent-line);
}

.hl-swiper .swiper-pagination-bullet-active {
    background: var(--accent-line);
}

/* ==========================================================================
   BLOCK 3 — Reserved (empty)
   ========================================================================== */
.hl-extra-block {
    /* Reserved for future modules — intentionally empty */
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hl-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hl-catalog-grid { grid-template-columns: 1fr; gap: 16px; }
    .hl-header h1, .hl-media-section h1 { font-size: 2rem; }
    .hl-context-card { padding: 20px; }
    .hl-tab-link { font-size: 0.85rem; padding: 10px 14px; }
}
