/* Excel Magazine — UI polish layer (does not alter CMS content) */
:root {
    --excel-accent: #e85d04;
    --excel-ink: #14181f;
    --excel-paper: #f7f4ef;
    --excel-muted: #6b7280;
    --excel-shadow: 0 18px 40px rgba(20, 24, 31, 0.12);
}

body.skin-orange {
    background:
        linear-gradient(180deg, #fffaf4 0%, #f7f4ef 35%, #ffffff 100%);
}

body.skin-orange header.primary {
    box-shadow: 0 1px 0 rgba(20, 24, 31, 0.06);
}

body.skin-orange .firstbar .brand img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.skin-orange .firstbar .brand:hover img {
    transform: scale(1.03);
}

body.skin-orange .search .form-control {
    border-radius: 999px 0 0 999px;
    border-color: rgba(20, 24, 31, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

body.skin-orange .search .btn-primary {
    border-radius: 0 999px 999px 0;
    background: var(--excel-accent);
    border-color: var(--excel-accent);
}

body.skin-orange section.home,
body.skin-orange section.magazines {
    position: relative;
}

body.skin-orange .page-title,
body.skin-orange .block-title,
body.skin-orange h1.title {
    letter-spacing: -0.02em;
}

/* Shared magazine cards */
.magazine-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--excel-shadow);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    height: 100%;
    border: 1px solid rgba(20, 24, 31, 0.05);
}

.magazine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(20, 24, 31, 0.16);
}

.magazine-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.magazine-cover {
    position: relative;
    height: 280px;
    overflow: hidden;
    background:
        linear-gradient(145deg, #2b3340, #1a1f27);
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.magazine-card:hover .magazine-cover img {
    transform: scale(1.06);
}

.magazine-cover .no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.45);
}

.magazine-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 24, 31, 0.05), rgba(20, 24, 31, 0.72));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.magazine-card:hover .magazine-overlay {
    opacity: 1;
}

.read-btn {
    background: var(--excel-accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 24px rgba(232, 93, 4, 0.35);
}

.magazine-info {
    padding: 16px 16px 18px;
}

.magazine-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--excel-ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-meta {
    font-size: 13px;
    color: var(--excel-muted);
    margin: 0;
}

.magazine-meta .issue-number {
    margin-right: 10px;
}

.magazine-meta .issue-date {
    color: var(--excel-accent);
    font-weight: 600;
}

/* Homepage magazines band */
.home-magazines {
    padding: 56px 0 40px;
    margin-top: 10px;
    background:
        radial-gradient(700px 240px at 15% 0%, rgba(232, 93, 4, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), #fff);
}

.home-magazines__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.home-magazines__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--excel-accent);
    margin-bottom: 8px;
}

.home-magazines__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--excel-ink);
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.home-magazines__subtitle {
    margin: 0;
    color: var(--excel-muted);
    max-width: 40ch;
}

.home-magazines__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 700;
    color: var(--excel-ink);
    text-decoration: none;
    border-bottom: 2px solid var(--excel-accent);
    padding-bottom: 4px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.home-magazines__all:hover {
    color: var(--excel-accent);
    transform: translateX(3px);
}

.magazines {
    padding: 36px 0 70px;
}

.magazines .page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--excel-ink);
}

/* Subtle reveal defaults before GSAP */
[data-animate="fade-up"],
[data-animate="card"],
[data-animate="section"] .article,
body.skin-orange .article.list,
body.skin-orange .featured,
body.skin-orange .owl-item {
    will-change: transform, opacity;
}

@media (max-width: 767px) {
    .home-magazines__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .magazine-cover {
        height: 240px;
    }
}
