/* Unified premium system for institutional content pages */
.unified-editorial-page {
    --editorial-deep: #05312e;
    --editorial-maroon: #127f77;
    --editorial-gold: #54cbc3;
    --editorial-ink: #1a2020;
    --editorial-muted: #71686b;
    --editorial-line: #dce9e8;
    --editorial-paper: #f8fbfb;
    color: var(--editorial-ink);
    background: var(--editorial-paper);
    overflow: hidden;
}

.unified-editorial-page .qatar-container {
    width: min(1180px, calc(100% - 56px));
}

.unified-editorial-page .page-hero-banner,
.unified-editorial-page .articles-hero-section {
    min-height: 350px;
    padding: 86px 0 72px !important;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    background:
        radial-gradient(circle at 18% 0%, rgba(36,172,162, .34), transparent 38%),
        radial-gradient(circle at 82% 100%, rgba(84,203,195, .12), transparent 31%),
        linear-gradient(135deg, #032624 0%, #074b46 52%, #042d2a 100%) !important;
    border-block: 1px solid rgba(84,203,195,.28);
}

.unified-editorial-page .page-hero-banner::after,
.unified-editorial-page .articles-hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, black 45%, transparent);
}

.unified-editorial-page .page-hero-banner .qatar-container,
.unified-editorial-page .articles-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin-inline: auto;
}

.unified-editorial-page .tag-label {
    margin-bottom: 18px !important;
    padding: 7px 16px;
    border-color: rgba(84,203,195,.5);
    background: rgba(84,203,195,.12);
    color: #95efe9;
    backdrop-filter: blur(8px);
}

.unified-editorial-page .hero-title,
.unified-editorial-page .articles-hero-title {
    margin: 0 0 14px !important;
    color: #ffffff !important;
    font-size: clamp(36px, 4vw, 52px) !important;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.035em;
}

.unified-editorial-page .page-hero-banner p,
.unified-editorial-page .articles-hero-subtitle {
    max-width: 760px !important;
    margin: 0 auto !important;
    color: rgba(255,255,255,.8) !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
}

.unified-editorial-page .section-editorial {
    padding-block: 82px !important;
    border-color: var(--editorial-line) !important;
}

.unified-editorial-page .surface-white { background: #ffffff; }
.unified-editorial-page .surface-warm,
.unified-editorial-page .surface-off-white { background: #f0f7f7; }

.unified-editorial-page .eyebrow-text {
    margin-bottom: 13px !important;
    color: var(--editorial-maroon);
    font-size: 12px;
    letter-spacing: .03em;
}

.unified-editorial-page .eyebrow-text::before {
    width: 30px;
    background: linear-gradient(90deg, var(--editorial-gold), var(--editorial-maroon));
}

.unified-editorial-page .major-section-title {
    margin-bottom: 13px !important;
    color: var(--editorial-ink);
    font-size: clamp(30px, 3.2vw, 43px);
    line-height: 1.28;
    font-weight: 900;
}

.unified-editorial-page .section-subtitle {
    color: var(--editorial-muted);
    font-size: 16px;
    line-height: 1.8;
}

.unified-editorial-page .body-lead { font-size: 17px; line-height: 1.85; }
.unified-editorial-page .body-regular { color: var(--editorial-muted); line-height: 1.82; }

.unified-editorial-page .btn-cta-primary,
.unified-editorial-page .btn-cta-secondary,
.unified-editorial-page .btn-cta-white {
    min-height: 48px;
    border-radius: 10px;
    padding-inline: 22px;
    font-size: 13px;
    font-weight: 800;
}

.unified-editorial-page .btn-cta-primary {
    background: linear-gradient(135deg, #178f87, #0d655f);
    box-shadow: 0 8px 20px rgba(18,127,119,.18);
}

/* About */
.about-editorial-page .organizer-split-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr) !important;
    gap: 72px !important;
}

.about-editorial-page .organizer-split-grid > div:last-child > div,
.about-editorial-page .vision-mission-grid > div,
.about-editorial-page .brochure-split-grid,
.about-editorial-page .org-hierarchy-grid > div {
    border: 1px solid var(--editorial-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 35px rgba(5,49,46,.055) !important;
}

.about-editorial-page .organizer-split-grid > div:last-child > div {
    position: relative;
    padding: 42px 34px !important;
    background: linear-gradient(145deg, #eef8f7, #ffffff) !important;
}

.about-editorial-page .organizer-split-grid > div:last-child > div::before,
.about-editorial-page .vision-mission-grid > div::before,
.about-editorial-page .org-hierarchy-grid > div::before {
    content: "";
    position: absolute;
    inset-inline: 20px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--editorial-gold), transparent);
}

.about-editorial-page .vision-mission-grid { gap: 20px !important; }
.about-editorial-page .vision-mission-grid > div { position: relative; padding: 34px !important; }
.about-editorial-page .vision-mission-grid > div > div:first-child { width: 46px !important; height: 46px !important; border-radius: 12px !important; }
.about-editorial-page .vision-mission-grid h3 { font-size: 21px !important; }
.about-editorial-page .brochure-split-grid { padding: 42px !important; background: linear-gradient(135deg, #f0f8f7, #fbfdfd) !important; }
.about-editorial-page .org-hierarchy-grid { gap: 18px !important; }
.about-editorial-page .org-hierarchy-grid > div { position: relative; padding: 30px 26px !important; background: #ffffff; }

/* Research */
.research-editorial-page .research-tracks-grid,
.research-editorial-page .process-steps-grid { gap: 18px !important; }
.research-editorial-page .research-tracks-grid > div,
.research-editorial-page .process-steps-grid > div {
    position: relative;
    padding: 30px 26px !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 17px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(5,49,46,.045) !important;
}
.research-editorial-page .research-tracks-grid > div { background: linear-gradient(145deg, #f0f8f7, #ffffff) !important; }
.research-editorial-page .research-tracks-grid h3 { font-size: 19px !important; }
.research-editorial-page .process-steps-grid::before { content: ""; position: absolute; top: 57px; right: 15%; left: 15%; border-top: 1px dashed #a8cac8; }
.research-editorial-page #submit-form > .qatar-container { max-width: 900px !important; }
.research-editorial-page #submit-form > .qatar-container > div {
    padding: 42px !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 50px rgba(5,49,46,.07) !important;
}
.research-editorial-page .qatar-input,
.research-editorial-page .qatar-select,
.research-editorial-page .qatar-textarea { border-radius: 10px; border-color: #cfdedd; background: #fbfdfd; }
.research-editorial-page .qatar-input:focus,
.research-editorial-page .qatar-select:focus,
.research-editorial-page .qatar-textarea:focus { background: #ffffff; border-color: var(--editorial-maroon); box-shadow: 0 0 0 3px rgba(18,127,119,.08); }

/* Agenda */
.agenda-editorial-page .section-editorial { padding-block: 76px !important; }
.agenda-editorial-page .agenda-day-btn { font-size: 13px; padding: 10px 5px; }
.agenda-editorial-page .agenda-day-btn.active::after { bottom: -29px; background: linear-gradient(90deg, var(--editorial-maroon), var(--editorial-gold)); }
.agenda-editorial-page .agenda-timeline-row {
    grid-template-columns: 155px minmax(0,1fr) 190px !important;
    gap: 26px !important;
    padding: 24px 20px !important;
    margin-bottom: 8px;
    align-items: center !important;
    border: 1px solid transparent !important;
    border-radius: 14px;
    transition: .2s ease;
}
.agenda-editorial-page .agenda-timeline-row:hover { border-color: #d2e6e5 !important; background: #f7fcfc; box-shadow: 0 8px 24px rgba(5,49,46,.04); }
.agenda-editorial-page .agenda-timeline-row > div:first-child span { font-size: 18px !important; direction: ltr; display: inline-block; }
.agenda-editorial-page .agenda-timeline-row h3 { font-size: 17px !important; }
.agenda-editorial-page #workshops { background: #f0f7f7; }
.agenda-editorial-page #workshops .grid-3 { gap: 18px; }
.agenda-editorial-page #workshops .grid-3 > div { border-radius: 16px !important; border-color: var(--editorial-line) !important; box-shadow: 0 10px 28px rgba(5,49,46,.045) !important; }
.agenda-editorial-page #workshops .grid-3 > div > div:last-child { padding: 24px !important; }
.agenda-editorial-page #tracks .editorial-themes-grid { gap: 10px !important; border: 0 !important; }
.agenda-editorial-page #tracks .editorial-theme-item { padding: 25px 20px !important; border: 1px solid var(--editorial-line); border-radius: 14px; background: #ffffff; }
.agenda-editorial-page #tracks .theme-num { color: var(--editorial-gold); opacity: .65; }

/* Articles */
.articles-editorial-page .articles-main-section { padding: 52px 0 72px !important; background: #f0f7f7; }
.articles-editorial-page .articles-controls-bar { align-items: flex-start; margin-bottom: 28px; padding: 13px; border: 1px solid var(--editorial-line); border-radius: 16px; background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(5,49,46,.035); }
.articles-editorial-page .category-pills-list { gap: 7px; }
.articles-editorial-page .cat-pill { min-height: 40px; padding: 7px 15px; border-radius: 9px; font-size: 12px; }
.articles-editorial-page .cat-pill.active { background: linear-gradient(135deg, #178f87, #0d655f); box-shadow: 0 6px 15px rgba(18,127,119,.15); }
.articles-editorial-page .articles-search-wrap { min-width: 270px; }
.articles-editorial-page .articles-search-input { min-height: 40px; border-radius: 9px; }
.articles-editorial-page .featured-hero-card { grid-template-columns: 1.05fr .95fr; margin-bottom: 30px; border-radius: 18px; border-color: rgba(84,203,195,.55); box-shadow: 0 16px 42px rgba(5,49,46,.08); }
.articles-editorial-page .featured-img-col { min-height: 385px; }
.articles-editorial-page .featured-info-col { padding: 34px; }
.articles-editorial-page .featured-title { font-size: 25px; }
.articles-editorial-page .articles-grid { gap: 18px; }
.articles-editorial-page .article-card { border-radius: 16px; border-color: var(--editorial-line); box-shadow: 0 8px 24px rgba(5,49,46,.045); }
.articles-editorial-page .article-card-cover { height: 210px; }
.articles-editorial-page .article-card-body { padding: 22px !important; }
.articles-editorial-page .article-card-title { min-height: 0; font-size: 16px; }
.articles-editorial-page .articles-cta-section { padding: 0 0 72px !important; background: #f0f7f7; }
.articles-editorial-page .articles-cta-card { padding: 38px 42px; border-radius: 18px; background: radial-gradient(circle at 0 0, #209e95, transparent 38%), linear-gradient(135deg, #0e6f68, #05312e); box-shadow: 0 18px 42px rgba(9,90,84,.2); }
.articles-editorial-page .articles-cta-card h2 { color: #ffffff; }

/* Shared closing section: concise, no oversized blank zones. */
.unified-editorial-page > .surface-maroon-deep:last-child {
    min-height: 430px !important;
    padding: 82px 0 !important;
}
.unified-editorial-page > .surface-maroon-deep:last-child h2 { font-size: clamp(34px, 4vw, 50px) !important; }
.unified-editorial-page > .surface-maroon-deep:last-child p { font-size: 16px !important; margin-bottom: 30px !important; }

@media (max-width: 991px) {
    .unified-editorial-page .qatar-container { width: min(100% - 36px, 760px); }
    .about-editorial-page .organizer-split-grid,
    .about-editorial-page .vision-mission-grid,
    .about-editorial-page .brochure-split-grid,
    .about-editorial-page .org-hierarchy-grid,
    .research-editorial-page .research-tracks-grid,
    .research-editorial-page .process-steps-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .research-editorial-page .process-steps-grid::before { display: none; }
    .agenda-editorial-page .agenda-timeline-row { grid-template-columns: 130px minmax(0,1fr) !important; }
    .agenda-editorial-page .agenda-timeline-row > div:last-child { grid-column: 2; text-align: right !important; }
    .articles-editorial-page .featured-hero-card { grid-template-columns: 1fr; }
    .articles-editorial-page .featured-img-col { min-height: 300px; }
}

@media (max-width: 640px) {
    .unified-editorial-page .qatar-container { width: calc(100% - 28px) !important; }
    .unified-editorial-page .page-hero-banner,
    .unified-editorial-page .articles-hero-section { min-height: 280px; padding: 58px 0 48px !important; }
    .unified-editorial-page .hero-title,
    .unified-editorial-page .articles-hero-title { font-size: 29px !important; }
    .unified-editorial-page .page-hero-banner p,
    .unified-editorial-page .articles-hero-subtitle { font-size: 14px !important; }
    .unified-editorial-page .section-editorial { padding-block: 54px !important; }
    .unified-editorial-page .major-section-title { font-size: 27px !important; }
    .unified-editorial-page .section-subtitle { font-size: 14px; }
    .unified-editorial-page .eyebrow-text { font-size: 10px; }
    .about-editorial-page .organizer-split-grid > div:last-child > div,
    .about-editorial-page .vision-mission-grid > div,
    .about-editorial-page .brochure-split-grid,
    .about-editorial-page .org-hierarchy-grid > div,
    .research-editorial-page .research-tracks-grid > div,
    .research-editorial-page .process-steps-grid > div { padding: 24px 20px !important; }
    .about-editorial-page .brochure-split-grid { grid-template-columns: 1fr !important; gap: 25px !important; }
    .research-editorial-page #submit-form > .qatar-container > div { padding: 24px 18px !important; border-radius: 16px !important; }
    .agenda-editorial-page .agenda-timeline-row { grid-template-columns: 1fr !important; gap: 8px !important; padding: 17px 14px !important; background: #ffffff; border-color: var(--editorial-line) !important; }
    .agenda-editorial-page .agenda-timeline-row > div:last-child { grid-column: 1; }
    .agenda-editorial-page .agenda-day-btn { min-width: 135px; }
    .agenda-editorial-page #agenda .qatar-container > div:first-child { align-items: flex-start !important; margin-bottom: 30px !important; }
    .agenda-editorial-page #agenda .qatar-container > div:first-child > div:last-child { width: 100%; overflow-x: auto; gap: 18px !important; padding-bottom: 4px; }
    .agenda-editorial-page #workshops .qatar-container > div:first-child,
    .agenda-editorial-page #tracks .qatar-container > div:first-child { margin-bottom: 30px !important; }
    .agenda-editorial-page #workshops .grid-3 > div > div:last-child { padding: 20px !important; }
    .articles-editorial-page .articles-main-section { padding: 30px 0 50px !important; }
    .articles-editorial-page .articles-controls-bar { flex-direction: column; padding: 10px; gap: 10px; }
    .articles-editorial-page .category-pills-list { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .articles-editorial-page .cat-pill { flex: 0 0 auto; white-space: nowrap; }
    .articles-editorial-page .articles-search-wrap { min-width: 100%; width: 100%; }
    .articles-editorial-page .featured-img-col { min-height: 230px; }
    .articles-editorial-page .featured-info-col { padding: 22px; }
    .articles-editorial-page .featured-title { font-size: 20px; }
    .articles-editorial-page .featured-footer-row { align-items: flex-start; flex-direction: column; }
    .articles-editorial-page .articles-cta-card { padding: 28px 20px; align-items: stretch; text-align: right; }
    .articles-editorial-page .cta-actions-side { flex-direction: column; }
    .articles-editorial-page .cta-actions-side a { width: 100%; justify-content: center; }
    .unified-editorial-page > .surface-maroon-deep:last-child { min-height: 390px !important; padding: 62px 0 !important; }
    .unified-editorial-page > .surface-maroon-deep:last-child h2 { font-size: 32px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .unified-editorial-page *, .unified-editorial-page *::before, .unified-editorial-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
