/* =========================================================
   RaxOne CorpHub Publisher Public CSS
   Full responsive multi-template CSS
   File: assets/corphub-public.css
========================================================= */

:root {
    --primary: #1E293B;
    --accent: #B8893D;
    --bg: #F7F4EE;
    --soft: #F8FAFC;
    --white: #FFFFFF;
    --dark: #0F172A;
    --text: #1E293B;
    --muted: #64748B;
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 14px 44px rgba(15, 23, 42, 0.07);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Shared Legacy Template Support
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.02em;
    min-width: 0;
}

.brand img {
    width: 62px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    flex-wrap: wrap;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 15px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 99px;
    transition: width .22s ease;
}

.nav a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 16px 34px rgba(184, 137, 61, 0.25);
}

.btn-dark {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.section {
    padding: 96px 0;
    background: #FFFFFF;
}

.section-soft {
    background: var(--bg);
}

.section-heading {
    max-width: 850px;
}

.section-label,
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(184, 137, 61, 0.14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.section-heading h2 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.section-heading p {
    margin: 0;
    color: #334155;
    font-size: 20px;
    line-height: 1.75;
}

.service-grid,
.book-grid,
.author-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.service-card,
.book-card,
.author-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.service-card {
    padding: 30px;
}

.service-card h3,
.book-body h3,
.author-card h3 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.service-card p,
.book-body p,
.author-card p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.book-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    background: #E5E7EB;
}

.book-placeholder {
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E9EDF4;
    color: #64748B;
    font-weight: 950;
    font-size: 24px;
}

.book-body {
    padding: 24px;
}

.muted {
    color: var(--muted) !important;
}

.author-card {
    padding: 30px;
}

.author-card img,
.author-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 950;
}

.cta-section {
    padding: 96px 0;
    background: #FFFFFF;
}

.cta-box {
    background:
        radial-gradient(circle at top right, rgba(184, 137, 61, 0.28), transparent 25%),
        linear-gradient(135deg, #0F172A, #1E293B);
    border-radius: var(--radius-xl);
    padding: 52px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    box-shadow: var(--shadow);
}

.contact-section {
    background: var(--bg);
}

.contact-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    box-shadow: var(--shadow-soft);
}

.empty-box {
    margin-top: 34px;
    padding: 28px;
    border: 1px dashed rgba(15, 23, 42, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: #64748B;
    font-weight: 800;
}

.site-footer {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.78);
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
}

/* =========================================================
   Classic Publisher
========================================================= */

.template-classic {
    background: var(--bg);
}

.template-classic .classic-hero {
    padding: 98px 0 92px;
    background:
        radial-gradient(circle at 82% 10%, rgba(184, 137, 61, 0.17), transparent 25%),
        linear-gradient(180deg, #FFFFFF 0%, #F8F5EF 100%);
}

.template-classic .classic-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 64px;
    align-items: center;
}

.template-classic .classic-hero-content h1 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(46px, 5.7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.template-classic .classic-hero-content h2 {
    margin: 0 0 16px;
    color: #223047;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.34;
    letter-spacing: -0.025em;
    font-weight: 850;
}

.template-classic .classic-hero-content p {
    margin: 0 0 32px;
    color: #334155;
    font-size: 20px;
    line-height: 1.78;
    max-width: 680px;
}

.template-classic .classic-hero-media {
    position: relative;
    min-height: 410px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.template-classic .classic-hero-media img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    display: block;
}

/* =========================================================
   Bookstore
========================================================= */

.template-bookstore {
    background: #FFFAF0;
}

.template-bookstore .bookstore-header {
    background: rgba(255, 250, 240, 0.94);
}

.template-bookstore .bookstore-hero {
    padding: 98px 0 92px;
    background:
        radial-gradient(circle at 80% 18%, rgba(184, 137, 61, 0.18), transparent 26%),
        linear-gradient(135deg, #FFFAF0 0%, #FFFFFF 50%, #F8F5EF 100%);
}

.template-bookstore .bookstore-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: 64px;
    align-items: center;
}

.template-bookstore .bookstore-hero-content h1 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(48px, 5.8vw, 78px);
    line-height: 1.01;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.template-bookstore .bookstore-hero-content h2 {
    margin: 0 0 16px;
    color: #223047;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.34;
    letter-spacing: -0.025em;
    font-weight: 850;
}

.template-bookstore .bookstore-hero-content p {
    margin: 0 0 32px;
    color: #334155;
    font-size: 20px;
    line-height: 1.78;
}

.template-bookstore .bookstore-showcase {
    min-height: 430px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.template-bookstore .bookstore-main-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 430px;
    object-fit: contain;
    padding: 38px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    box-shadow: var(--shadow);
}

/* =========================================================
   Elegant Gold V2
========================================================= */

.elegant-v2 {
    background: #f6f1e8;
    color: #111827;
}

/* Header */

.eg-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 247, 239, 0.88);
    border-bottom: 1px solid rgba(120, 92, 45, 0.14);
    backdrop-filter: blur(18px);
}

.eg-header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.eg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #101827;
    text-decoration: none;
    font-weight: 950;
    letter-spacing: -0.035em;
    font-size: 19px;
}

.eg-brand img {
    width: 70px;
    height: 52px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.eg-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #111827;
    color: #f5c56a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.eg-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.eg-nav a {
    color: #111827;
    text-decoration: none;
    font-weight: 850;
    font-size: 14px;
}

.eg-nav a:hover {
    color: var(--accent);
}

.eg-nav-cta {
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

/* Hero */

.eg-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 20%, rgba(201, 151, 62, 0.26), transparent 28%),
        linear-gradient(135deg, #111827 0%, #172033 54%, #0b1220 100%);
}

.eg-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .38;
    transform: scale(1.02);
}

.eg-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 25, 0.96) 0%, rgba(8, 13, 25, 0.86) 45%, rgba(8, 13, 25, 0.56) 100%),
        radial-gradient(circle at 75% 30%, rgba(201, 151, 62, 0.26), transparent 34%);
}

.eg-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
    gap: 58px;
    align-items: center;
    min-height: 760px;
    padding: 90px 0;
}

.eg-hero-content {
    max-width: 760px;
    color: #ffffff;
}

.eg-badge,
.eg-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.eg-badge {
    margin-bottom: 22px;
    color: #4a3200;
    background: linear-gradient(135deg, #ffe39a, #c9973e);
    box-shadow: 0 12px 40px rgba(201, 151, 62, .24);
}

.eg-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(52px, 6.6vw, 92px);
    line-height: .98;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.eg-hero h2 {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .94);
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.28;
    letter-spacing: -0.035em;
    font-weight: 850;
}

.eg-hero p {
    margin: 0 0 34px;
    max-width: 650px;
    color: rgba(255, 255, 255, .80);
    font-size: 20px;
    line-height: 1.85;
}

.eg-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.eg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 950;
    line-height: 1;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.eg-btn:hover {
    transform: translateY(-2px);
}

.eg-btn-gold {
    background: linear-gradient(135deg, #d6a64e, #b9852e);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(201, 151, 62, .28);
}

.eg-btn-light {
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(12px);
}

.eg-btn-dark-full {
    width: 100%;
    background: #111827;
    color: #ffffff;
}

/* Hero card */

.eg-hero-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 34px;
    padding: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}

.eg-hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.eg-hero-card-top strong {
    color: #f4d28a;
}

.eg-hero-logo-box {
    min-height: 270px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}

.eg-hero-logo-box img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    display: block;
}

.eg-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: #111827;
    color: #f5c56a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 950;
}

.eg-hero-card-info {
    padding: 18px 4px 2px;
}

.eg-hero-card-info h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.eg-hero-card-info p {
    margin: 0;
    color: rgba(255, 255, 255, .70);
    font-size: 14px;
    line-height: 1.7;
}

/* Stats */

.eg-stats {
    position: relative;
    z-index: 5;
    margin-top: -46px;
    padding-bottom: 42px;
}

.eg-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid rgba(120, 92, 45, .12);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.eg-stat {
    padding: 26px;
    border-right: 1px solid rgba(120, 92, 45, .12);
}

.eg-stat:last-child {
    border-right: 0;
}

.eg-stat strong {
    display: block;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.eg-stat span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-weight: 750;
    font-size: 14px;
}

/* Sections */

.eg-section {
    padding: 104px 0;
    background: #ffffff;
}

.eg-section:nth-of-type(even) {
    background: #f6f1e8;
}

.eg-label {
    margin-bottom: 16px;
    background: rgba(201, 151, 62, .14);
    color: #9c6b18;
}

.eg-label-dark {
    color: #f8d789;
    background: rgba(255, 255, 255, .10);
}

.eg-section-head {
    max-width: 820px;
    margin-bottom: 42px;
}

.eg-section-head-row {
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.eg-section h2,
.eg-section-head h2,
.eg-cta h2,
.eg-contact-card h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(38px, 4.8vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.eg-section p,
.eg-section-head p,
.eg-contact-card p {
    margin: 0;
    color: #475569;
    font-size: 19px;
    line-height: 1.8;
}

.eg-two-col {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 68px;
    align-items: start;
}

.eg-copy-card {
    background: #ffffff;
    border: 1px solid rgba(120, 92, 45, .12);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .06);
}

.eg-copy-card p {
    font-size: 20px;
}

.eg-mini-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.eg-mini-list div {
    padding: 18px;
    border-radius: 18px;
    background: #f8f5ef;
}

.eg-mini-list strong {
    display: block;
    color: #111827;
    font-size: 17px;
    margin-bottom: 4px;
}

.eg-mini-list span {
    color: #64748b;
    font-weight: 650;
}

/* Services */

.eg-services {
    background:
        radial-gradient(circle at top right, rgba(201, 151, 62, .13), transparent 26%),
        #f6f1e8;
}

.eg-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.eg-service-card {
    background: #ffffff;
    border: 1px solid rgba(120, 92, 45, .12);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .06);
}

.eg-service-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #111827;
    color: #f5c56a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    margin-bottom: 24px;
}

.eg-service-card h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.eg-service-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

/* Books */

.eg-books {
    background: #ffffff;
}

.eg-small-link {
    flex: 0 0 auto;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.eg-book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.eg-book-card {
    background: #ffffff;
    border: 1px solid rgba(120, 92, 45, .12);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .07);
}

.eg-book-cover {
    height: 300px;
    background:
        linear-gradient(135deg, #111827, #263247);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.eg-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eg-book-placeholder {
    color: #f5c56a;
    font-size: 28px;
    font-weight: 950;
}

.eg-book-body {
    padding: 24px;
}

.eg-book-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.eg-book-body span {
    display: block;
    color: #9c6b18;
    font-weight: 850;
    margin-bottom: 10px;
}

.eg-book-body p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* Authors */

.eg-authors {
    background: #f6f1e8;
}

.eg-author-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.eg-author-card {
    background: #ffffff;
    border: 1px solid rgba(120, 92, 45, .12);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .06);
}

.eg-author-card img,
.eg-author-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #f5c56a;
    font-size: 36px;
    font-weight: 950;
    margin-bottom: 18px;
}

.eg-author-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 22px;
    letter-spacing: -0.035em;
}

.eg-author-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

/* Empty */

.eg-empty {
    border: 1px dashed rgba(120, 92, 45, .22);
    border-radius: 28px;
    padding: 34px;
    background: rgba(255, 255, 255, .72);
    color: #64748b;
    font-weight: 850;
}

/* CTA */

.eg-cta {
    padding: 104px 0;
    background: #ffffff;
}

.eg-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    background:
        radial-gradient(circle at top right, rgba(201, 151, 62, .34), transparent 28%),
        linear-gradient(135deg, #111827 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 36px;
    padding: 54px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .16);
}

.eg-cta h2 {
    color: #ffffff;
}

.eg-cta p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 19px;
    line-height: 1.8;
}

/* Contact */

.eg-contact {
    background: #f6f1e8;
}

.eg-contact-card {
    background: #ffffff;
    border: 1px solid rgba(120, 92, 45, .12);
    border-radius: 36px;
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .65fr);
    gap: 54px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.eg-contact-info {
    display: grid;
    gap: 16px;
}

.eg-contact-info div {
    padding: 18px;
    border-radius: 18px;
    background: #f8f5ef;
}

.eg-contact-info span {
    display: block;
    color: #9c6b18;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}

.eg-contact-info strong {
    display: block;
    color: #111827;
    font-size: 16px;
    line-height: 1.6;
}

/* Footer */

.eg-footer {
    background: #0f172a;
    color: rgba(255,255,255,.72);
    padding: 30px 0;
}

.eg-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.eg-footer p {
    margin: 0;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1100px) {
    .template-classic .classic-hero-inner,
    .template-bookstore .bookstore-hero-inner,
    .eg-hero-inner,
    .eg-two-col,
    .eg-contact-card {
        grid-template-columns: 1fr;
    }

    .eg-hero-card {
        max-width: 620px;
    }

    .eg-service-grid,
    .eg-book-grid,
    .eg-author-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eg-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eg-stat:nth-child(2) {
        border-right: 0;
    }

    .eg-stat:nth-child(1),
    .eg-stat:nth-child(2) {
        border-bottom: 1px solid rgba(120, 92, 45, .12);
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 36px, var(--container));
    }

    .header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .brand {
        width: 100%;
        font-size: 18px;
    }

    .brand img {
        width: 54px;
        height: 42px;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav a {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .section {
        padding: 74px 0;
    }

    .service-grid,
    .book-grid,
    .author-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .template-classic .classic-hero,
    .template-bookstore .bookstore-hero {
        padding: 72px 0;
    }

    .template-classic .classic-hero-content h1,
    .template-bookstore .bookstore-hero-content h1 {
        letter-spacing: -0.045em;
    }

    .template-classic .classic-hero-content p,
    .template-bookstore .bookstore-hero-content p {
        font-size: 18px;
    }

    .template-classic .classic-hero-media {
        min-height: 330px;
        padding: 26px;
    }

    .template-classic .classic-hero-media img {
        max-height: 270px;
    }

    .template-bookstore .bookstore-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .template-bookstore .bookstore-main-image {
        height: 330px;
        padding: 28px;
    }

    .cta-box,
    .contact-card {
        padding: 34px;
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .eg-header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .eg-brand {
        width: 100%;
        font-size: 18px;
    }

    .eg-brand img {
        width: 60px;
        height: 46px;
    }

    .eg-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .eg-nav a {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .eg-nav-cta {
        display: none;
    }

    .eg-hero {
        min-height: auto;
    }

    .eg-hero-inner {
        min-height: auto;
        padding: 72px 0;
        gap: 38px;
    }

    .eg-hero h1 {
        font-size: 48px;
        letter-spacing: -0.055em;
    }

    .eg-hero h2 {
        font-size: 22px;
    }

    .eg-hero p {
        font-size: 17px;
    }

    .eg-hero-logo-box {
        min-height: 230px;
    }

    .eg-section,
    .eg-cta {
        padding: 76px 0;
    }

    .eg-service-grid,
    .eg-book-grid,
    .eg-author-grid {
        grid-template-columns: 1fr;
    }

    .eg-section-head-row,
    .eg-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .eg-cta-box,
    .eg-contact-card {
        padding: 34px;
        border-radius: 28px;
    }

    .eg-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .brand span,
    .eg-brand span {
        white-space: normal;
        line-height: 1.2;
    }

    .btn,
    .eg-btn {
        width: 100%;
    }

    .hero-actions,
    .eg-hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badge,
    .section-label,
    .eg-badge,
    .eg-label {
        font-size: 11px;
        padding: 7px 12px;
    }

    .template-classic .classic-hero,
    .template-bookstore .bookstore-hero {
        padding: 58px 0;
    }

    .template-classic .classic-hero-content h1,
    .template-bookstore .bookstore-hero-content h1 {
        font-size: 38px;
        line-height: 1.06;
    }

    .template-classic .classic-hero-content h2,
    .template-bookstore .bookstore-hero-content h2 {
        font-size: 20px;
    }

    .template-classic .classic-hero-content p,
    .template-bookstore .bookstore-hero-content p,
    .section-heading p,
    .contact-card p,
    .cta-box p {
        font-size: 16px;
    }

    .template-classic .classic-hero-media {
        min-height: 260px;
        border-radius: 24px;
        padding: 20px;
    }

    .template-classic .classic-hero-media img {
        max-height: 220px;
    }

    .template-bookstore .bookstore-main-image {
        height: 260px;
        padding: 20px;
        border-radius: 24px;
    }

    .book-card img,
    .book-placeholder {
        height: 230px;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading h2,
    .contact-card h2,
    .cta-box h2 {
        font-size: 32px;
        letter-spacing: -0.04em;
    }

    .service-card,
    .author-card,
    .book-body {
        padding: 22px;
    }

    .cta-box,
    .contact-card {
        padding: 26px;
        border-radius: 24px;
    }

    .eg-hero-inner {
        padding: 58px 0;
    }

    .eg-hero h1 {
        font-size: 40px;
        line-height: 1.04;
    }

    .eg-hero h2 {
        font-size: 19px;
    }

    .eg-hero p,
    .eg-section p,
    .eg-section-head p,
    .eg-cta p,
    .eg-contact-card p {
        font-size: 16px;
    }

    .eg-hero-card {
        border-radius: 26px;
        padding: 16px;
    }

    .eg-hero-logo-box {
        min-height: 200px;
        border-radius: 20px;
        padding: 20px;
    }

    .eg-stats {
        margin-top: -24px;
    }

    .eg-stats-grid {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .eg-stat {
        border-right: 0;
        border-bottom: 1px solid rgba(120, 92, 45, .12);
        padding: 22px;
    }

    .eg-stat:last-child {
        border-bottom: 0;
    }

    .eg-section,
    .eg-cta {
        padding: 62px 0;
    }

    .eg-section h2,
    .eg-section-head h2,
    .eg-cta h2,
    .eg-contact-card h2 {
        font-size: 34px;
        letter-spacing: -0.05em;
    }

    .eg-copy-card,
    .eg-service-card,
    .eg-author-card,
    .eg-book-body,
    .eg-empty {
        padding: 22px;
    }

    .eg-book-cover {
        height: 250px;
    }

    .eg-cta-box,
    .eg-contact-card {
        padding: 26px;
        border-radius: 24px;
    }
}