﻿/* Gedian Sports — isolated public news details page. RTL / Tajawal / green-white. */
.gn-page {
    --gn-green: #5B8C3B;
    --gn-green-dark: #466f2d;
    --gn-border: #e4e9e3;
    --gn-ink: #202a21;
    --gn-muted: #788079;
    background: #f6f8f5;
    min-height: 75vh;
    padding: 22px 14px 60px;
    color: var(--gn-ink);
    font-family: "Tajawal","Segoe UI",Tahoma,Arial,sans-serif
}

    .gn-page * {
        box-sizing: border-box
    }

    .gn-page a {
        text-decoration: none
    }

.gn-container {
    max-width: 1230px;
    margin: 0 auto
}

.gn-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #8b948c;
    font-size: 12px;
    font-weight: 700
}

    .gn-breadcrumb a {
        color: #557b43
    }

        .gn-breadcrumb a:hover {
            text-decoration: underline
        }

.gn-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 20px;
    align-items: start
}

.gn-article, .gn-sidebar {
    min-width: 0;
    border: 1px solid var(--gn-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 23px rgba(23,45,22,.035)
}

.gn-article {
    overflow: hidden;
    padding: clamp(18px,3.2vw,37px)
}

.gn-eyebrow {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--gn-green-dark);
    font-size: 12px;
    font-weight: 900
}

.gn-featured {
    padding: 4px 8px;
    background: #eff6e9;
    border-radius: 7px
}

.gn-article-header h1 {
    font-size: clamp(24px,3vw,36px);
    line-height: 1.62;
    margin: 11px 0 12px;
    font-weight: 900;
    overflow-wrap: anywhere
}

.gn-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--gn-muted);
    font-size: 12px
}

.gn-source {
    color: var(--gn-green-dark);
    font-weight: 900
}

.gn-meta-divider {
    color: #cbd2ca
}

.gn-intro {
    margin: 22px 0;
    color: #445646;
    font-size: clamp(16px,1.8vw,19px);
    font-weight: 750;
    line-height: 2;
    border-right: 3px solid var(--gn-green);
    padding: 5px 17px 5px 0;
    white-space: pre-line;
    overflow-wrap: anywhere
}

.gn-hero {
    margin: 23px 0 26px;
    border-radius: 13px;
    overflow: hidden;
    background: #eff3ed
}

    .gn-hero img {
        display: block;
        width: 100%;
        max-height: 510px;
        object-fit: contain
    }

.gn-hero-video video {
    display: block;
    width: 100%;
    max-height: 540px;
    background: #111
}

.gn-body {
    font-size: 16px;
    line-height: 2.15;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #303b31;
    margin: 20px 0 26px
}

.gn-no-body {
    color: var(--gn-muted);
    line-height: 1.9
}

.gn-section {
    border-top: 1px solid var(--gn-border);
    margin-top: 25px;
    padding-top: 19px
}

    .gn-section h2 {
        font-size: 19px;
        margin: 0 0 14px;
        font-weight: 900
    }

.gn-gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px
}

    .gn-gallery a {
        display: block;
        overflow: hidden;
        border-radius: 9px;
        background: #f2f5f0;
        aspect-ratio: 4/3
    }

    .gn-gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .2s
    }

    .gn-gallery a:hover img {
        transform: scale(1.035)
    }

.gn-videos {
    display: grid;
    gap: 12px
}

    .gn-videos video {
        width: 100%;
        max-height: 450px;
        border-radius: 10px;
        background: #101810
    }

.gn-audio {
    display: grid;
    gap: 9px
}

    .gn-audio audio {
        width: 100%;
        max-width: 100%
    }

.gn-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

    .gn-resources a, .gn-shared {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 13px;
        border: 1px solid #d9e4d3;
        border-radius: 9px;
        color: var(--gn-green-dark);
        font-weight: 800;
        font-size: 12px;
        background: #fafcf9
    }

.gn-shared {
    margin-top: 10px
}

    .gn-resources a:hover, .gn-shared:hover {
        background: #eef7e8
    }

.gn-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--gn-border)
}

.gn-back, .gn-external {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 41px;
    padding: 9px 17px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 13px
}

.gn-back {
    background: var(--gn-green);
    color: #fff !important
}

    .gn-back:hover {
        background: var(--gn-green-dark)
    }

.gn-external {
    border: 1px solid #d7e3d1;
    color: var(--gn-green-dark) !important
}

    .gn-external:hover {
        background: #f1f8ed
    }

.gn-sidebar {
    padding: 17px;
    position: sticky;
    top: 18px
}

.gn-sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--gn-border);
    padding-bottom: 12px
}

    .gn-sidebar-heading h2 {
        font-size: 18px;
        margin: 0
    }

    .gn-sidebar-heading a {
        font-size: 12px;
        font-weight: 900;
        color: var(--gn-green-dark)
    }

.gn-more-list {
    display: grid
}

.gn-more-item {
    display: grid;
    grid-template-columns: 81px minmax(0,1fr);
    gap: 11px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #edf0eb;
    color: inherit !important
}

    .gn-more-item:last-child {
        border-bottom: 0;
        padding-bottom: 0
    }

    .gn-more-item:hover strong {
        color: var(--gn-green-dark)
    }

.gn-more-media {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 81px;
    height: 70px;
    border-radius: 9px;
    background: #edf4e9;
    color: #5B8C3B
}

    .gn-more-media img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.gn-more-copy {
    min-width: 0
}

    .gn-more-copy strong {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 12px;
        line-height: 1.65;
        font-weight: 900
    }

    .gn-more-copy small {
        display: block;
        margin-top: 5px;
        font-size: 10px;
        color: var(--gn-muted)
    }

.gn-sidebar-empty {
    color: var(--gn-muted);
    font-size: 13px;
    line-height: 1.8
}

.gn-empty {
    max-width: 700px;
    margin: 30px auto;
    min-height: 280px;
    background: #fff;
    border: 1px solid var(--gn-border);
    border-radius: 15px;
    text-align: center;
    padding: 40px 20px
}

    .gn-empty > span {
        font-size: 40px;
        color: var(--gn-green)
    }

    .gn-empty h1 {
        font-size: 23px
    }

    .gn-empty p {
        font-size: 14px;
        color: var(--gn-muted)
    }

    .gn-empty a {
        display: inline-flex;
        margin-top: 12px;
        padding: 11px 18px;
        border-radius: 9px;
        background: var(--gn-green);
        color: white;
        font-weight: 900
    }

@media(max-width:980px) {
    .gn-grid {
        grid-template-columns: minmax(0,1fr)
    }

    .gn-sidebar {
        position: static
    }

    .gn-more-list {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 0 18px
    }
}

@media(max-width:580px) {
    .gn-page {
        padding: 12px 9px 34px
    }

    .gn-article {
        padding: 16px;
        border-radius: 12px
    }

    .gn-article-header h1 {
        font-size: 23px;
        line-height: 1.55
    }

    .gn-intro {
        font-size: 15px;
        padding-right: 11px
    }

    .gn-body {
        font-size: 15px;
        line-height: 2
    }

    .gn-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .gn-more-list {
        grid-template-columns: 1fr
    }

    .gn-footer > * {
        flex: 1 1 auto
    }

    .gn-sidebar {
        padding: 13px
    }
}
