/* GeoFans visual polish step 1: news cards and listing readability. */
.news-1 {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(22, 35, 58, 0.08);
    border: 1px solid rgba(45, 61, 86, 0.08);
    background: #fff;
}

.news-1:hover {
    box-shadow: 0 12px 28px rgba(22, 35, 58, 0.13);
}

.news-3 {
    border-radius: 8px 8px 0 0;
}

.news-3,
.news-3 img {
    height: auto;
    aspect-ratio: 16 / 10;
}

.news-1 img {
    display: block;
    height: 100%;
    object-fit: cover;
}

.news-1:hover img,
.rss-new-1:hover img {
    transform: scale(1.06);
}

.news-6 {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.74) 100%);
    border-radius: 8px 8px 0 0;
}

.news-6::before {
    display: none;
}

.news-4 {
    right: 12px;
    bottom: 12px;
    height: auto;
    padding: 6px 11px;
    line-height: 16px;
    border-radius: 999px;
    background: rgba(12, 19, 31, 0.62);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.news-4 svg {
    margin-top: 0;
}

.news-7 {
    min-height: 72px;
    margin: 13px 0 16px;
    color: #25314a;
    font-size: 17px;
    line-height: 1.28;
    letter-spacing: 0;
}

.news-8 {
    margin: 0 16px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.new-vid-3,
.new-vid-3 #dle-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.new-vid-3 #dle-content {
    width: 100%;
    grid-column: 1 / -1;
}

.new-vid-3 > a,
.new-vid-3 #dle-content > a {
    display: block;
    min-width: 0;
}

.new-vid-3 .news-1 {
    float: none;
    width: 100%;
}

.new-vid-3 > a .news-1,
.new-vid-3 #dle-content > a .news-1 {
    height: 100%;
    margin-bottom: 0;
}

.new-vid-3 > a .news-7,
.new-vid-3 #dle-content > a .news-7 {
    display: flex;
    align-items: flex-start;
}

.darken .news-1 {
    background: #292929;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.darken .news-1:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.darken .news-7 {
    color: #eeeeee;
}

.darken .news-1:hover .news-7 {
    color: #fff;
}

@media (max-width: 980px) {
    .new-vid-3,
    .new-vid-3 #dle-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 620px) {
    .new-vid-3,
    .new-vid-3 #dle-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-7 {
        min-height: 0;
        font-size: 16px;
        line-height: 1.3;
    }
}

/* GeoFans visual polish step 3: header and navigation identity. */
.header-1 {
    background: #12161d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-2 {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.van-div-1 {
    display: none;
}

.van-div-3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.van-div-3 button,
.van-div-10 {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.van-div-3 button:hover,
.van-div-10:hover {
    background: rgba(255, 255, 255, 0.14);
}

.header-3 {
    background: #cf362b;
    box-shadow: 0 10px 24px rgba(18, 22, 29, 0.14);
}

.header-4 {
    display: flex;
    align-items: center;
    min-height: 66px;
}

.logo-1,
.logo-2 {
    min-width: 210px;
}

.logo-2 {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-2 svg {
    display: none;
}

.logo-2::before {
    content: "GF";
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fff;
    color: #cf362b;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.geofans-logo-text {
    position: static;
    color: #fff;
    font-family: font-2, sans-serif;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

#cssmenu > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

#cssmenu > ul > li {
    width: auto;
    position: relative;
}

#cssmenu > ul > li > a,
#cssmenu > ul > li.active > a {
    height: auto;
    min-height: 42px;
    padding: 13px 16px;
    border-radius: 8px;
    border-left: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: 0;
}

#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

#cssmenu > ul > .home-svg-1 a {
    width: 42px;
    min-width: 42px;
    padding: 11px;
}

#cssmenu > ul > li > ul {
    border-radius: 8px;
    padding: 10px 12px;
    background: #252b35;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    overflow: visible;
    top: 100%;
    left: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

#cssmenu > ul > li > ul::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

#cssmenu > ul > li:hover > ul,
#cssmenu > ul > li > ul:hover {
    left: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#cssmenu > ul > li > ul > li {
    display: block;
    max-height: none;
}

#cssmenu > ul > li:hover > ul > li,
#cssmenu > ul > li > ul:hover > li {
    display: block;
    max-height: none;
}

#cssmenu > ul > li:hover > ul a,
#cssmenu > ul > li > ul:hover a {
    left: 0;
    opacity: 1;
    color: rgba(255, 255, 255, 0.76);
}

#cssmenu ul li ul li a {
    border-radius: 6px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.76);
}

#cssmenu ul li ul li:hover > a,
#cssmenu ul li ul li.active > a {
    background: rgba(255, 255, 255, 0.08);
}

.darken .header-1 {
    background: #101010;
}

.darken .header-3 {
    background: #ba3027;
}

@media (max-width: 980px) {
    .header-4 {
        min-height: 62px;
    }

    .logo-1,
    .logo-2 {
        min-width: 185px;
    }

    .geofans-logo-text {
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    .header-1 {
        display: none;
    }

    .header-3 {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .header-4 {
        justify-content: space-between;
    }

    .outer-menu {
        margin-left: auto;
    }
}

/* GeoFans visual polish step 4: section and category headings. */
.game-02.game-2,
.a-cont-01.a-cont-1 {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 61, 86, 0.08);
    box-shadow: 0 8px 22px rgba(22, 35, 58, 0.05);
}

.game-02.game-2 {
    min-height: 58px;
    display: flex;
    align-items: center;
    margin: 10px 0 14px;
    padding: 0 16px;
}

.game-02.game-2 .game-bg-1 {
    display: none;
}

.game-02.game-2 .game-3 {
    width: 42px;
    height: 42px;
    margin: 0 14px 0 0;
    border-radius: 8px;
    transform: none;
    background: #cf362b;
}

.game-02.game-2 .swore-3 {
    transform: none;
    height: 42px;
    line-height: 48px;
}

.game-02.game-2 .game-5 {
    float: none;
}

.game-02.game-2 .game-6,
.game-02.game-2 .game-6 a {
    color: #25314a;
}

.game-02.game-2 .game-6 {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.a-cont-01.a-cont-1 {
    margin-bottom: 16px;
}

.a-cont-01.a-cont-1 .a-cont-2,
.a-cont-01.a-cont-1 .a-cont-3,
.a-cont-01.a-cont-1 .a-cont-4 {
    min-height: 58px;
}

.a-cont-01.a-cont-1 .a-cont-4 {
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.a-cont-01.a-cont-1 .a-cont-5 {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #cf362b;
    margin-right: 14px;
}

.a-cont-01.a-cont-1 .a-cont-5 svg {
    width: 23px;
    height: auto;
}

.a-cont-01.a-cont-1 .a-cont-5 path {
    fill: #fff;
}

.a-cont-01.a-cont-1 .a-cont-6 {
    color: #25314a;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.darken .game-02.game-2,
.darken .a-cont-01.a-cont-1 {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.darken .game-02.game-2 .game-6,
.darken .game-02.game-2 .game-6 a,
.darken .a-cont-01.a-cont-1 .a-cont-6 {
    color: #f1f1f1;
}

@media (max-width: 620px) {
    .game-02.game-2,
    .a-cont-01.a-cont-1 {
        min-height: 54px;
    }

    .game-02.game-2 .game-6,
    .a-cont-01.a-cont-1 .a-cont-6 {
        font-size: 16px;
    }
}

/* GeoFans visual polish step 5: footer identity. */
.footer-1 {
    border-top: 0;
    border-radius: 8px 8px 0 0;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(22, 35, 58, 0.06);
    overflow: hidden;
}

.footer-02 {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 18px 0;
}

.footer-logo-1 {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: auto;
    text-align: left;
}

.footer-logo-1 svg {
    display: none;
}

.footer-logo-1::before {
    content: "GF";
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #cf362b;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.geofans-footer-logo-text {
    position: static;
    color: #25314a;
    font-family: font-2, sans-serif;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.footer-3,
.footer-7 {
    margin: 0;
}

.footer-4 {
    display: none;
}

.footer-5 {
    transform: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(207, 54, 43, 0.1);
    margin: 0;
    line-height: 36px;
}

.footer-6 {
    transform: none;
    height: 38px;
    line-height: 38px;
}

.footer-6 svg {
    fill: #cf362b;
}

.footer-10 {
    margin: 7px 0 0 12px;
}

.footer-11 {
    background: #f5f7fb;
    color: #687385;
}

.footer-12 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.footer-13 {
    line-height: 1.4;
    letter-spacing: 0;
}

.footer-linkis-1,
.footer-14 {
    display: none;
}

.darken .footer-1 {
    background: #242424;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.darken .geofans-footer-logo-text {
    color: #f1f1f1;
}

.darken .footer-11 {
    background: #1d1d1d;
    color: #a8a8a8;
}

@media (max-width: 620px) {
    .footer-02,
    .footer-12 {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .footer-13 {
        font-size: 12px;
    }
}

/* GeoFans visual polish step 6: mobile comfort pass. */
@media (max-width: 760px) {
    .center-1,
    .footer-auto.center-1 {
        width: auto;
        max-width: none;
        margin-left: 12px;
        margin-right: 12px;
    }

    .header-3 .center-1 {
        margin-left: 12px;
        margin-right: 12px;
    }

    .header-4 {
        min-height: 58px;
    }

    .logo-1,
    .logo-2 {
        min-width: 0;
    }

    .logo-2::before {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .geofans-logo-text {
        font-size: 17px;
    }

    .new-vid-1 {
        margin-top: 12px;
    }

    .new-vid-3,
    .new-vid-3 #dle-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-1 {
        border-radius: 8px;
    }

    .news-3,
    .news-3 img {
        aspect-ratio: 16 / 9;
    }

    .news-7 {
        min-height: 0;
        margin: 12px 0 14px;
        font-size: 16px;
        line-height: 1.35;
    }

    .news-8 {
        margin: 0 14px;
    }

    .news-4 {
        right: 10px;
        bottom: 10px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .a-cont-01.a-cont-1,
    .game-02.game-2 {
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .a-cont-01.a-cont-1 .a-cont-4,
    .game-02.game-2 {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-auto.center-1 {
        margin-bottom: 12px;
    }

    .fullstory-1,
    .full-left-1,
    .full-left-2,
    .fullstor-1,
    .fullstor-2,
    .ffullstor-video-1,
    .fullstor-video-2,
    .demo.container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fullstor-2 img,
    .demo.container img,
    .demo.container video,
    .demo.container iframe {
        max-width: 100%;
        height: auto;
    }

    .full-sid-1 {
        display: none;
    }
}

@media (max-width: 420px) {
    .center-1,
    .footer-auto.center-1,
    .header-3 .center-1 {
        margin-left: 10px;
        margin-right: 10px;
    }

    .geofans-logo-text {
        font-size: 16px;
    }

    .news-7 {
        font-size: 15.5px;
    }

    .game-02.game-2 .game-3,
    .a-cont-01.a-cont-1 .a-cont-5 {
        width: 38px;
        height: 38px;
        margin-right: 10px;
    }

    .game-02.game-2 .swore-3 {
        height: 38px;
        line-height: 43px;
    }

    .footer-02 {
        padding: 16px 0;
    }
}

/* GeoFans mobile repair: keep the header menu tappable and article media uncropped. */
#gf-mobile-menu-button {
    position: fixed;
    top: 16px;
    right: 14px;
    z-index: 10003;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
}

#gf-mobile-menu-button.is-open {
    font-size: 34px;
    line-height: 34px;
}

@media (max-width: 1000px) {
    .header-3 {
        overflow: visible;
    }

    .header-4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .header-4 > a {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
    }

    .header-4 .logo-1 {
        width: auto;
        max-width: calc(100vw - 92px);
    }

    .outer-menu {
        display: block;
        position: absolute;
        top: 7px;
        left: auto;
        right: 0;
        width: 44px;
        height: 44px;
        margin-left: 0;
        z-index: 10000;
        flex: 0 0 44px;
    }

    .outer-menu .checkbox-toggle,
    .outer-menu .hamburger {
        position: fixed;
        top: 14px;
        right: auto;
        left: calc(100dvw - 52px);
        width: 40px;
        height: 40px;
    }

    .outer-menu .checkbox-toggle {
        z-index: 10002;
    }

    .outer-menu .hamburger {
        z-index: 10001;
    }

    .outer-menu .menu {
        z-index: 9999;
        overflow-y: auto;
        align-items: flex-start;
        justify-content: center;
        padding: 76px 18px 24px;
        box-sizing: border-box;
    }

    .outer-menu .menu > div {
        width: 100%;
        height: auto;
        min-height: 100%;
        border-radius: 0;
        overflow: visible;
        align-items: flex-start;
    }

    .outer-menu .menu > div > div {
        width: 100%;
        max-width: 360px;
        max-height: none;
        overflow: visible;
        display: block;
        text-align: left;
    }

    .outer-menu .menu > div > div > ul {
        max-height: none;
        padding: 0;
    }

    #cssmenu,
    #cssmenu > ul,
    #cssmenu > ul > li {
        width: 100%;
        float: none;
    }

    #cssmenu > ul {
        display: block;
    }

    #cssmenu > ul > li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #cssmenu > ul > li > a,
    #cssmenu > ul > li.active > a {
        min-height: 44px;
        justify-content: flex-start;
        padding: 13px 0;
        color: #fff;
    }

    #cssmenu > ul > li > ul {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        display: block;
        visibility: visible;
        opacity: 1;
        transform: none;
        padding: 0 0 10px 14px;
        margin: -4px 0 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    #cssmenu > ul > li > ul::before {
        display: none;
    }

    #cssmenu > ul > li > ul > li {
        display: block;
        max-height: none;
        opacity: 1;
    }

    #cssmenu ul li ul li a {
        width: 100%;
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
    }

    .fullstor-2 {
        height: auto !important;
        min-height: 0;
        overflow: visible;
        border-radius: 8px;
    }

    .fullstor-2 img {
        display: block;
        width: 100%;
        height: auto !important;
        max-height: none;
        object-fit: contain;
        border-radius: 8px;
    }

    .fullstor-3 {
        top: 10px;
        bottom: auto;
        left: 10px;
    }

    .fullstor-4 {
        margin-top: 12px !important;
    }

    .fullstor-5 {
        width: 100% !important;
        padding: 0 0 10px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        letter-spacing: 0 !important;
        box-sizing: border-box;
    }
}

/* GeoFans homepage mobile hero repair: show all three lead stories without cropping. */
@media (max-width: 560px) {
    .div-smartphone-1.div-bg-3 {
        height: auto !important;
        margin-top: 0 !important;
        overflow: visible !important;
        background: #fff;
    }

    .div-smartphone-1 .wrap,
    .div-smartphone-1 .wrap ul {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: block;
    }

    .div-smartphone-1 .wrap ul li,
    .div-smartphone-1 .wrap li:nth-child(1),
    .div-smartphone-1 .wrap li:nth-child(2),
    .div-smartphone-1 .wrap li:nth-child(3),
    .div-smartphone-1 .wrap ul li:hover,
    .div-smartphone-1 .wrap ul li:first-child ~ li:last-child,
    .div-smartphone-1 .wrap ul li:hover ~ li:last-child {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        float: none !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .div-smartphone-1 .div-bg-4,
    .div-smartphone-1 .div-bg-5,
    .div-smartphone-1 .div-bg-11 {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        transform: none !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    .div-smartphone-1 .div-bg-11 img,
    .div-smartphone-1 .div-sl-1 .div-bg-11 img,
    .div-smartphone-1 .div-sl-2 .div-bg-11 img,
    .div-smartphone-1 .div-sl-3 .div-bg-11 img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        transform: none !important;
        object-fit: contain !important;
    }

    .div-smartphone-1 .div-bg-6 {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.72) 100%);
    }

    .div-smartphone-1 .div-bg-10 {
        width: auto !important;
        left: 18px !important;
        right: 18px !important;
        bottom: 18px !important;
        transform: none !important;
    }
}
