/* Home concept 1 ? ???? ??????? (???? ????? ??????? ???? ???? ???? ?? ??????) */
.g1 {
    --ink: #1a2438;
    --muted: #667388;
    --accent: #e35b18;
    --accent-2: #f07a3d;
    --line: rgba(26, 36, 56, 0.1);
    --paper: #fbfcfe;
    --mist: #e8eef6;
    --font: 'Readex Pro', 'Cairo', sans-serif;
    --display: 'El Messiri', 'Readex Pro', sans-serif;
    position: relative;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

.g1 a { text-decoration: none; color: inherit; }

.g1-sky {
    position: absolute;
    inset: 0 0 auto 0;
    height: 28rem;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 85% 10%, rgba(227, 91, 24, 0.12), transparent 60%),
        radial-gradient(ellipse 55% 45% at 10% 0%, rgba(90, 130, 180, 0.14), transparent 55%),
        linear-gradient(180deg, var(--mist) 0%, var(--paper) 75%);
    z-index: 0;
}

.g1-top,
.g1-docs,
.g1-shelf {
    position: relative;
    z-index: 1;
}

.g1-rise {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--d, 0s);
}
.g1-rise.is-in {
    opacity: 1;
    transform: none;
}

/* Intro ? brand first, light */
.g1-top { padding: 1.25rem 0 1.25rem; }

.g1-intro {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 0.85rem;
}

.g1-intro__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
}

.g1-intro__brand {
    margin: 0 0 0.4rem;
    font-family: var(--display);
    font-size: clamp(1.45rem, 3.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

.g1-intro__lead {
    margin: 0 auto;
    max-width: 32rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Channels ? same panel as docs, orange accent on the physical left */
.g1-channels-panel {
    position: relative;
    margin: 0 auto 1.15rem;
    padding: 1.5rem 1.35rem 1.4rem;
    border-radius: 22px;
    background: linear-gradient(216deg, rgb(233 100 10 / 35%), rgba(248, 250, 253, 0.88)), radial-gradient(ellipse 80% 70% at 0% 0%, rgba(227, 91, 24, 0.07), transparent 55%);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(40, 60, 90, 0.04);
    overflow: hidden;
}

.g1-channels-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #2b4596, rgb(213 194 185 / 15%));
}

.g1-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.g1-channels__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem 0.65rem 0.7rem;
    border-radius: 5px;
    background: #fff;
    border: 1px solid rgba(26, 36, 56, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.g1-channels__link:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 91, 24, 0.4);
    box-shadow: 0 8px 20px rgba(227, 91, 24, 0.1);
    background: #fffaf6;
}

.g1-channels__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(61, 90, 128, 0.08);
    color: #3d5a80;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.22s ease, color 0.22s ease;
}

.g1-channels__link:hover .g1-channels__ico {
    background: rgba(227, 91, 24, 0.12);
    color: var(--accent);
}

.g1-channels__label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

/*
  مثل home3: رئيسية عريضة + صورتان عموديتان جنبًا إلى جنب بنفس الارتفاع
*/
.g1-mosaic {
    display: grid;
    grid-template-columns: 1.55fr 0.62fr 0.62fr;
    grid-template-rows: minmax(240px, min(42vh, 360px));
    gap: 1rem;
    align-items: stretch;
}

.g1-cover {
    display: block;
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

.g1-cover:hover { transform: translateY(-3px); }

.g1-cover--hero,
.g1-cover--side {
    min-height: 0;
}

.g1-cover__frame {
    position: relative;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #d9e3f0;
    box-shadow: 0 8px 20px rgba(40, 60, 90, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.g1-cover--hero .g1-cover__frame {
    border-radius: 12px;
    border: 2px solid rgba(227, 91, 24, 0.55);
}

.g1-cover--side .g1-cover__frame {
    border-radius: 12px;
    border: 2px solid rgba(43, 69, 150, 0.35);
}

.g1-cover:hover .g1-cover__frame {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(40, 60, 90, 0.12);
}

.g1-cover__frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.g1-cover:hover .g1-cover__frame img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.g1-cover__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.75rem 0.75rem 0.65rem;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 20, 36, 0.88) 100%);
    color: #fff;
    pointer-events: none;
}

.g1-cover__caption span {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffb891;
    margin-bottom: 0.15rem;
}

.g1-cover__caption h2,
.g1-cover__caption h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.g1-cover__caption h2 {
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g1-cover__caption h3 {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Docs ? soft archive directory (no numbered cards) */
.g1-docs {
    padding: 0.5rem 0 2.5rem;
}

.g1-docs__panel {
    position: relative;
    padding: 1.5rem 1.35rem 1.4rem;
    border-radius: 22px;
    background: linear-gradient(117deg, rgb(43 69 150 / 46%), rgba(248, 250, 253, 0.88)), radial-gradient(ellipse 80% 70% at 100% 0%, rgba(227, 91, 24, 0.07), transparent 55%);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(40, 60, 90, 0.04);
    overflow: hidden;
}

.g1-docs__panel::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(227, 91, 24, 0.15));
}

.g1-docs__head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
    padding-inline-start: 0.85rem;
    text-align: center;
}

.g1-docs__head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    font-weight: 700;
}

.g1-docs__all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    transition: gap 0.2s ease, color 0.2s ease;
}

.g1-docs__all:hover {
    gap: 0.55rem;
    color: #c44a10;
}

.g1-docs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    padding-inline-start: 0.85rem;
}

.g1-docs__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem 0.65rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(26, 36, 56, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.g1-docs__link:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 91, 24, 0.4);
    box-shadow: 0 8px 20px rgba(227, 91, 24, 0.1);
    background: #fffaf6;
}

.g1-docs__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(61, 90, 128, 0.08);
    color: #3d5a80;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.22s ease, color 0.22s ease;
}

.g1-docs__link:hover .g1-docs__ico {
    background: rgba(227, 91, 24, 0.12);
    color: var(--accent);
}

.g1-docs__label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

/* Shelf */
.g1-shelf { padding: 0.5rem 0 3.5rem; }

.g1-shelf__head {
    text-align: center;
    margin-bottom: 1.35rem;
}

.g1-shelf__head h2 {
    margin: 0 0 0.35rem;
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 700;
}

.g1-shelf__head p { margin: 0; color: var(--muted); }

.g1-shelf__scroller {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.g1-shelf__track {
    display: flex;
    gap: 1.15rem;
    width: max-content;
    padding: 0.35rem calc((100vw - min(100vw, 1140px)) / 2 + 12px);
}

.g1-book {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.g1-book em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.g1-book__art {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px 4px 14px 4px;
    overflow: hidden;
    background: #d5deea;
    box-shadow: 0 10px 24px rgba(40, 60, 90, 0.1);
    transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.g1-book__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(26, 36, 56, 0.28) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.g1-book__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.g1-book h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--accent);
    transition: color 0.3s ease, transform 0.35s ease;
}

.g1-book:hover .g1-book__art {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(40, 60, 90, 0.16),
        0 0 0 1px rgba(227, 91, 24, 0.18);
}

.g1-book:hover .g1-book__art img {
    transform: scale(1.06);
}

.g1-book:hover .g1-book__art::after {
    opacity: 1;
}

.g1-book:hover em {
    color: var(--accent-2);
}

.g1-book:hover h3 {
    color: var(--ink);
    transform: translateY(-2px);
}

.g1-book:focus-visible .g1-book__art {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .g1-top {
        padding: 1rem 0 1rem;
    }

    .g1-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
        max-height: none;
        gap: 0.75rem;
    }

    .g1-cover--hero {
        grid-column: 1 / -1;
        height: auto;
    }

    .g1-cover--hero .g1-cover__frame {
        aspect-ratio: 16 / 10;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .g1-cover--side {
        height: auto;
        min-width: 0;
    }

    .g1-cover--side .g1-cover__frame {
        aspect-ratio: 3 / 4;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .g1-cover__caption {
        padding: 1.4rem 0.65rem 0.55rem;
    }

    .g1-cover__caption h2 {
        font-size: 1.05rem;
        -webkit-line-clamp: 3;
    }

    .g1-cover__caption h3 {
        font-size: 0.78rem;
        -webkit-line-clamp: 3;
    }

    .g1-shelf__track {
        padding-inline: 1rem;
        gap: 0.9rem;
    }

    .g1-docs__nav {
        gap: 0.45rem;
    }

    .g1-docs__link {
        padding: 0.55rem 0.8rem 0.55rem 0.55rem;
    }

    .g1-docs__label {
        font-size: 0.86rem;
    }
}

@media (max-width: 575px) {
    .g1-intro__brand {
        font-size: 1.35rem;
        padding-inline: 0.25rem;
    }

    .g1-mosaic {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .g1-cover--hero,
    .g1-cover--side {
        grid-column: 1;
    }

    .g1-cover--hero .g1-cover__frame {
        aspect-ratio: 4 / 3;
    }

    .g1-cover--side .g1-cover__frame {
        aspect-ratio: 4 / 3;
    }

    .g1-cover__frame img {
        object-position: center center;
    }

    .g1-cover:hover,
    .g1-cover:hover .g1-cover__frame,
    .g1-cover:hover .g1-cover__frame img,
    .g1-book:hover .g1-book__art,
    .g1-book:hover .g1-book__art img,
    .g1-book:hover h3 {
        transform: none;
        filter: none;
        box-shadow: 0 8px 20px rgba(40, 60, 90, 0.08);
    }

    .g1-book:hover .g1-book__art::after {
        opacity: 0;
    }

    .g1-book:hover h3 {
        color: var(--accent);
    }

    .g1-docs__panel {
        padding: 1.15rem 0.85rem 1.05rem;
        border-radius: 16px;
    }

    .g1-channels-panel {
        padding: 1.15rem 0.85rem 1.05rem;
        border-radius: 16px;
    }

    .g1-channels-panel::before,
    .g1-docs__panel::before {
        top: 0.85rem;
        bottom: 0.85rem;
    }

    .g1-docs__nav {
        flex-direction: column;
        align-items: stretch;
        padding-inline-start: 0;
        gap: 0.5rem;
    }

    .g1-docs__link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        padding: 0.7rem 0.85rem;
    }

    .g1-channels {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .g1-channels__link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        padding: 0.7rem 0.85rem;
    }

    .g1-book {
        width: min(46vw, 160px);
    }

    .g1-book h3 {
        font-size: 0.88rem;
    }

    .g1-shelf__track {
        padding-inline: 0.75rem;
    }

    .g1-shelf {
        padding-bottom: 2.5rem;
    }
}

@media (hover: none) {
    .g1-cover:hover,
    .g1-cover:hover .g1-cover__frame,
    .g1-cover:hover .g1-cover__frame img,
    .g1-book:hover .g1-book__art,
    .g1-book:hover .g1-book__art img,
    .g1-book:hover h3,
    .g1-channels__link:hover,
    .g1-docs__link:hover {
        transform: none;
        filter: none;
    }

    .g1-book:hover .g1-book__art::after {
        opacity: 0;
    }

    .g1-book:hover h3 {
        color: var(--accent);
    }
}

/* Footer tuned for home1 ? same content, matching light gallery look */
body.concept-home1 .footer {
    background: #fbfcfe;
    color: #1a2438;
    margin-top: 0;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(26, 36, 56, 0.1);
    font-family: "Readex Pro", "Cairo", sans-serif;
}

body.concept-home1 .footer h5,
body.concept-home1 .footer h6 {
    color: #1a2438;
    font-family: "El Messiri", "Readex Pro", sans-serif;
    font-weight: 700;
}

body.concept-home1 .footer a {
    color: #3d5a80;
}

body.concept-home1 .footer a:hover {
    color: #e35b18;
}

body.concept-home1 .footer .text-white {
    color: #1a2438 !important;
}

body.concept-home1 .footer .text-muted {
    color: #667388 !important;
}

body.concept-home1 .footer .fab {
    color: #3d5a80;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.concept-home1 .footer a:hover .fab {
    color: #e35b18;
    transform: translateY(-2px);
}

body.concept-home1 .footer hr {
    border-color: rgba(26, 36, 56, 0.12);
    opacity: 1;
}

body.concept-home1 .footer .form-control {
    background: #fff;
    border: 1px solid rgba(26, 36, 56, 0.12);
    color: #1a2438;
    border-radius: 999px 0 0 999px;
}

body.concept-home1 .footer .form-control:focus {
    border-color: rgba(227, 91, 24, 0.45);
    box-shadow: 0 0 0 0.15rem rgba(227, 91, 24, 0.12);
}

body.concept-home1 .footer .input-group .form-control {
    border-radius: 0 999px 999px 0;
}

[dir="rtl"] body.concept-home1 .footer .input-group .form-control {
    border-radius: 999px 0 0 999px;
}

body.concept-home1 .footer .btn-primary {
    background: #e35b18;
    border-color: #e35b18;
    border-radius: 999px 0 0 999px;
}

[dir="rtl"] body.concept-home1 .footer .btn-primary {
    border-radius: 0 999px 999px 0;
}

body.concept-home1 .footer .btn-primary:hover {
    background: #c24a12;
    border-color: #c24a12;
}

body.concept-home1 .footer .mb-2 .form-control {
    border-radius: 999px;
}

body.concept-home1 .footer .small {
    color: #667388;
}
