:root {
    --bg: #183d74;
    --bg-soft: #244d8f;
    --panel: rgba(18, 41, 79, 0.8);
    --panel-strong: rgba(15, 34, 66, 0.94);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --muted-2: #94a3b8;
    --red: #ef4444;
    --blue: #1877f2;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

html {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body.magazine-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    color: var(--text);
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    background:
radial-gradient(circle at top right, rgb(144 144 144 / 34%), transparent 30%), radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 24%), linear-gradient(
106deg, #888888 0%, #5d5d5d 42%, #555555 100%);
}

a {
    color: inherit;
}

.magazine-body .text-light-emphasis {
    color: rgba(248, 250, 252, 0.74) !important;
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.32;
    z-index: -1;
}

.site-shell::before {
    width: 240px;
    height: 240px;
    top: 8rem;
    inset-inline-start: -5rem;
    background: rgba(96, 165, 250, 0.28);
}

.site-shell::after {
    width: 320px;
    height: 320px;
    top: 32rem;
    inset-inline-end: -7rem;
    background: rgba(24, 119, 242, 0.34);
}

.site-header {
    position: relative;
    z-index: 40;
}

.utility-bar {
    background: rgba(25, 53, 101, 0.78);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0;
}

.utility-link {
    color: var(--muted);
    opacity: 0.9;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.utility-social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.utility-social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
}

.utility-link:hover {
    color: white;
    opacity: 1;
}

.brand-strip {
    background: rgba(28, 59, 110, 0.82);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.brand-logo {
    width: min(100%, 280px);
    max-width: 280px;
    max-height: 78px;
    height: auto;
}

.brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--blue));
    font-size: 1.7rem;
    font-weight: 800;
}

.brand-fallback strong {
    display: block;
    font-size: 1.5rem;
}

.brand-fallback small {
    color: var(--muted);
}

.header-search {
    width: min(100%, 420px);
}

.header-search .input-group {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.header-search .form-control,
.newsletter-form .form-control,
.glass-panel .form-control,
.glass-panel .form-select {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    color: var(--text);
}

.header-search .form-control::placeholder,
.newsletter-form .form-control::placeholder,
.glass-panel .form-control::placeholder {
    color: var(--muted-2);
}

.headline-ribbon,
.breaking-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(239, 68, 68, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(59, 130, 246, 0.06));
    padding: 0.85rem 0;
}

.ribbon-label,
.breaking-label {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(59, 130, 246, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.ticker-shell {
    position: relative;
    overflow: hidden;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.25rem;
    width: max-content;
    will-change: transform;
    animation: ticker-scroll var(--ticker-duration, 34s) linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap;
}

.ticker-item:hover {
    color: #fff;
}

.category-door-strip {
    position: relative;
    background: rgba(23, 47, 89, 0.92);
    padding: 1rem 0 1.2rem;
    border-bottom: 1px solid var(--line);
}

.category-door-strip::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.45), rgba(59, 130, 246, 0.45), transparent);
}

.category-doors {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.category-door {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 76px;
    padding: 1rem;
    border-radius: 22px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
        rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-door:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.category-door-about {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(24, 119, 242, 0.18)),
        rgba(15, 23, 42, 0.92);
}

.door-icon {
    font-size: 1.3rem;
    color: #fff;
}

.glass-panel,
.post-card,
.sidebar-widget,
.topic-card,
.hero-primary,
.admin-like-block {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.glass-panel {
    padding: 2rem;
}

.magazine-alert {
    border: 0;
    border-radius: 18px;
}

.hero-section {
    position: relative;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    position: relative;
}

.section-heading::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.65), rgba(255, 255, 255, 0.1), rgba(59, 130, 246, 0.65));
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fecaca;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.section-heading h2,
.page-hero h1,
.single-post h1 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    margin: 0;
}

.section-heading p,
.page-hero p,
.single-post-excerpt {
    color: var(--muted);
    margin: 0;
}

.hero-primary {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    height: 100%;
}

.hero-primary::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
}

.hero-link {
    position: relative;
    display: block;
    height: 100%;
}

.hero-carousel {
    width: 100%;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-image,
.post-card-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.single-post-image img,
.post-block-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-image {
    height: 100%;
}

.hero-image::after,
.post-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.08), rgba(5, 11, 20, 0.18) 48%, rgba(5, 11, 20, 0.72));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 1.9rem 2rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, rgba(4, 10, 20, 0.94) 0%, rgba(4, 10, 20, 0.88) 24%, rgba(4, 10, 20, 0.58) 46%, rgba(4, 10, 20, 0.12) 74%, rgba(4, 10, 20, 0.06) 100%),
        linear-gradient(180deg, rgba(4, 10, 20, 0.18), rgba(4, 10, 20, 0.22) 56%, rgba(4, 10, 20, 0.76) 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 24rem);
}

.hero-overlay h1,
.hero-overlay p,
.hero-overlay .post-meta-wide,
.hero-badge {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(59, 130, 246, 0.78));
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-overlay h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.8rem;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.24;
}

.hero-overlay p {
    max-width: 100%;
    color: rgba(248, 250, 252, 0.86);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.1rem;
    padding: 0.62rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-secondary-stack {
    display: grid;
    gap: 1.25rem;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: 100%;
}

.hero-secondary-stack-single {
    grid-template-rows: minmax(0, 1fr);
}

.hero-secondary-stack .post-card-image {
    height: 188px;
}

.post-card {
    overflow: hidden;
    height: 100%;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover,
.topic-card:hover,
.sidebar-widget:hover,
.footer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.post-card-image {
    height: 250px;
}

.post-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-overlay > a {
    position: relative;
    overflow: hidden;
}

.post-card-overlay .post-card-image {
    height: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.14), transparent 32%),
        rgba(8, 16, 31, 0.54);
}

.post-card-overlay .post-card-image img {
    object-fit: contain;
    object-position: center;
    padding: 1rem;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.post-card-overlay .post-card-image::after {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.04), rgba(5, 11, 20, 0.2) 40%, rgba(5, 11, 20, 0.92));
}

.post-card-overlay .post-card-body {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 2;
    padding: 1.25rem 1.25rem 1.35rem;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0), rgba(5, 11, 20, 0.18) 16%, rgba(5, 11, 20, 0.92) 100%);
}

.post-card-overlay .post-meta,
.post-card-overlay p {
    color: rgba(241, 245, 249, 0.86);
}

.post-card-overlay h3 {
    color: #fff;
}

.post-card-overlay .post-meta,
.post-card-overlay h3,
.post-card-overlay p {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.92);
}

.post-card-overlay p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.post-card-overlay.post-card-compact .post-card-body p {
    display: none;
}

.image-placeholder {
    min-height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(59, 130, 246, 0.24));
    color: var(--text);
}

.post-card-body {
    padding: 1.2rem 1.25rem 1.4rem;
    display: grid;
    gap: 0.55rem;
    align-content: start;
    flex: 1;
}

.post-meta,
.post-meta-wide {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-2);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.post-card h3 {
    font-size: 1.18rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.post-card p {
    color: var(--muted);
    margin: 0;
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
    width: 52px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 68px;
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(7, 17, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-size: 52%;
    backdrop-filter: blur(14px);
}

.hero-indicators {
    inset-inline: 0;
    bottom: 1.25rem;
    margin: 0;
    gap: 0.45rem;
}

.hero-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.38);
}

.hero-indicators .active {
    background-color: #fff;
}

.hero-meta {
    margin-bottom: 0.9rem;
    color: rgba(248, 250, 252, 0.72);
}

.hero-secondary-card {
    min-height: 0;
}

.hero-secondary-stack .hero-secondary-card.post-card-overlay .post-card-image {
    min-height: 0;
    height: 100%;
}

.hero-secondary-card.post-card-overlay .post-card-image {
    min-height: 0;
    background: rgba(8, 16, 31, 0.28);
}

.hero-secondary-card.post-card-overlay .post-card-image img {
    object-fit: cover;
    padding: 0;
    filter: none;
}

.hero-secondary-card.post-card-overlay .post-card-body {
    inset: 0;
    padding: 1rem 1rem 1.1rem;
    display: grid;
    align-content: start;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.88) 0%, rgba(5, 11, 20, 0.45) 34%, rgba(5, 11, 20, 0.1) 100%);
}

.hero-secondary-card.post-card-overlay .post-meta {
    font-size: 0.76rem;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.hero-secondary-card.post-card-overlay h3 {
    font-size: 1rem;
    line-height: 1.45;
}

.post-card-compact .post-card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.post-card-compact h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.content-section {
    margin-top: 5rem;
}

.topic-card {
    display: block;
    padding: 1.6rem;
    text-decoration: none;
    color: #fff;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(59, 130, 246, 0.22));
    font-size: 1.35rem;
}

.topic-card p,
.topic-card small,
.sidebar-widget p,
.single-post-body {
    color: var(--muted);
}

.topic-card small {
    display: block;
    margin-top: 0.85rem;
    color: rgba(219, 234, 254, 0.92);
}

.magazine-sidebar {
    display: grid;
    gap: 1.25rem;
}

.sidebar-widget {
    padding: 1.45rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sidebar-list {
    display: grid;
    gap: 0.95rem;
}

.sidebar-post {
    display: block;
    text-decoration: none;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-post:hover .sidebar-post-title {
    color: white;
}

.sidebar-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-title {
    display: block;
    margin-bottom: 0.25rem;
}

.page-hero {
    display: flex;
    align-items: center;
    padding: 2rem 2.25rem;
}

.page-hero-icon {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(59, 130, 246, 0.22));
    font-size: 2.2rem;
}

.single-post {
    padding: 2.2rem;
}

.post-header {
    margin-bottom: 1.5rem;
}

.single-post-image,
.post-block-image {
    overflow: hidden;
    border-radius: 24px;
    margin: 1.75rem 0;
    padding: 0.85rem;
    background: rgba(8, 16, 31, 0.48);
}

.single-post-image img,
.post-block-image img {
    max-height: none;
}

.single-post-excerpt {
    font-size: 1.08rem;
    line-height: 1.9;
}

.single-post-body {
    font-size: 1.08rem;
    line-height: 2;
}

.editorial-html > *:last-child {
    margin-bottom: 0;
}

.editorial-html p,
.editorial-html ul,
.editorial-html ol,
.editorial-html blockquote {
    margin-bottom: 1.15rem;
}

.editorial-html h2,
.editorial-html h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
}

.editorial-html h2 {
    font-size: 1.5rem;
}

.editorial-html h3 {
    font-size: 1.24rem;
}

.editorial-html strong {
    color: #ffffff;
    font-weight: 700;
}

.post-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-block h2 {
    margin-bottom: 1rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-cloud span {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
}

.about-hero {
    padding: 2.2rem;
}

.about-lead {
    font-size: 1.08rem;
    line-height: 1.95;
}

.about-logo-panel {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(24, 119, 242, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-logo-panel img {
    max-width: min(100%, 320px);
    width: 100%;
    height: auto;
    display: block;
}

.about-story {
    padding: clamp(1.35rem, 2vw, 2.2rem);
}

.about-story p {
    margin: 0;
    color: var(--muted);
    line-height: 2.15;
    font-size: 1.06rem;
}

.about-story p + p {
    margin-top: 1.2rem;
}

.about-story-closing {
    color: #fff !important;
    font-weight: 700;
}

.about-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-gallery-card {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.about-gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.about-team-panel {
    padding: clamp(1.4rem, 2vw, 2rem);
}

.about-team-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-team-member {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0.85rem 1rem;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    line-height: 1.65;
}

.about-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-stat-card,
.about-info-card {
    height: 100%;
}

.about-stat-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-stat-card strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.about-stat-card span {
    color: var(--muted);
}

.about-info-card {
    padding: 1.6rem;
}

.about-info-card h3 {
    margin-bottom: 0.85rem;
}

.about-info-card p {
    color: var(--muted);
    margin: 0;
}

.about-credit-card {
    padding: 1.55rem;
}

.about-credit-card h3 {
    margin-bottom: 1rem;
}

.about-credit-list {
    display: grid;
    gap: 1rem;
}

.about-credit-list strong {
    display: block;
    margin-bottom: 0.3rem;
}

.about-credit-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.empty-state-panel,
.empty-inline-note,
.empty-list-state {
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(11, 18, 32, 0.78);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: var(--muted);
}

.empty-state-panel {
    padding: 2rem;
}

.empty-state-panel h2,
.empty-state-panel h3 {
    color: var(--text);
    margin-bottom: 0.85rem;
}

.empty-state-panel p {
    margin-bottom: 0;
    line-height: 1.9;
}

.hero-empty {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.empty-inline-note,
.empty-list-state {
    padding: 1rem 1.1rem;
    line-height: 1.8;
}

.newsletter-form {
    display: grid;
    gap: 0.85rem;
}

.site-footer {
    margin-top: 5rem;
    padding: 3.5rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(33, 62, 112, 0.62), rgba(18, 39, 74, 0.94)),
        rgba(18, 39, 74, 0.88);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-card {
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

.footer-contact {
    display: grid;
    gap: 0.65rem;
}

.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.pagination {
    gap: 0.45rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 12px !important;
}

.page-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--red), var(--blue));
    border-color: transparent;
}

@keyframes ticker-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-1 * var(--ticker-distance, 50%)), 0, 0);
    }
}

@media (max-width: 1199px) {
    .category-doors {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .category-doors {
        grid-auto-flow: column;
        grid-auto-columns: minmax(180px, 1fr);
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .category-door {
        scroll-snap-align: start;
    }

    .hero-primary,
    .hero-empty {
        min-height: 440px;
    }

    .hero-secondary-stack {
        height: auto;
        grid-template-rows: none;
    }

    .page-hero {
        padding: 1.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .utility-bar .container,
    .brand-strip .container,
    .headline-ribbon .container,
    .breaking-strip {
        align-items: flex-start !important;
    }

    .brand-strip {
        padding-top: 1.25rem;
    }

    .brand-lockup {
        justify-content: center;
    }

    .header-search {
        width: 100%;
    }

    .hero-overlay {
        padding: 1.15rem;
    }

    .hero-overlay p {
        max-width: 100%;
    }

    .hero-overlay h1 {
        max-width: 100%;
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero-copy {
        width: min(100%, 19rem);
    }

    .hero-cta {
        margin-top: 0.9rem;
        padding: 0.54rem 0.85rem;
        font-size: 0.84rem;
    }

    .section-heading,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .glass-panel,
    .single-post,
    .empty-state-panel {
        padding: 1.4rem;
    }

    .post-card-image,
    .hero-secondary-stack .post-card-image {
        height: 210px;
    }

    .post-card-overlay .post-card-image,
    .hero-secondary-stack .post-card-overlay .post-card-image {
        min-height: 280px;
        height: 280px;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 54px;
    }

    .hero-indicators {
        bottom: 0.9rem;
    }

    .page-hero-icon {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        font-size: 1.7rem;
    }

    .about-gallery-grid,
    .about-team-grid {
        grid-template-columns: 1fr;
    }

    .about-story p {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .category-doors {
        grid-auto-columns: minmax(78%, 1fr);
    }

    .utility-bar .container {
        justify-content: center !important;
    }

    .utility-bar .small {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .brand-logo {
        width: min(100%, 220px);
    }

    .hero-section,
    .content-section,
    .site-footer {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track,
    .post-card,
    .topic-card,
    .sidebar-widget,
    .footer-card,
    .category-door {
        animation: none !important;
        transition: none !important;
    }
}
