/* OVERRIDES
--------------------------------------------- */

/* Ads */
.adslot {display:block;margin:15px auto;padding:0;text-align:center;}
.h250 {min-height:250px;}

/* Social Links */
.social-icons-list li:not(:last-child) {margin-right:15px;}

/* Archives */
.cat-desc {color:var(--mainText);padding:24px 12px 0;}
.cat-desc p {padding-left:0;}

@media screen and (min-width:1024px) {
    /* Images in homapage, lists & post @ 16/9 */
    figure.image,
    .nx-card .card-image .image,
    .at_volvo .featured-volvo-banner figure.volvo-image,
    .at-qelectric .nx-featured-article .nx-card .card-image figure.image,
    .at-mototypos .nx-card .card-image .image,
    main#primary .post-thumbnail a {display:block;aspect-ratio:16/9;object-fit:cover;width:100%;height:100%;padding:0;}

    /* Images in post content */
    main#primary article .entry-content > div,
    main#primary article img {}
}

@media screen and (max-width:768px) {
    /*
    figure.image,
    .nx-card .card-image .image,
    .at_volvo .featured-volvo-banner figure.volvo-image,
    .at-qelectric .nx-featured-article .nx-card .card-image figure.image,
    .at-mototypos .nx-card .card-image .image,
    .at_news .nx-card .card-image .image,
    .nx-card.mobile-text-right .card-image .image,
    .nx-card .card-image .image img,
    .nx-card .card-image .image .featured-card-video,
    main#primary .post-thumbnail,
    main#primary .post-thumbnail a,
    main#primary .post-thumbnail a img,
    main#primary .post-thumbnail img:not(.play-button-vid),
    main#primary .post-thumbnail video:not(.play-button-vid) {display:block;aspect-ratio:16/9;object-fit:cover;width:100%;height:100%;padding:0 !important;position:static;}

    /* Slideshow exceptions * /
    .splide__list figure.image,
    .splide__list .nx-card .card-image .image {position:inherit;}
    */

    main#primary .post-thumbnail,
    main#primary .post-thumbnail a,
    main#primary .post-thumbnail a img,
    main#primary .post-thumbnail img:not(.play-button-vid),
    main#primary .post-thumbnail video:not(.play-button-vid) {display:block;aspect-ratio:16/9;object-fit:cover;width:100%;height:100%;padding:0 !important;position:static;}

    body.search .figure.image,
    body.search .nx-card.mobile-text-right .card-image .image {/*width:fit-content;*/height:fit-content;}
    body.search .nx-card {display:grid;}
    body.search .nx-card.mobile-text-right {display:grid;grid-template-columns:1fr 1fr;}

    .social-icons-list svg {width:30px !important;height:30px !important;}
}

/* Global */
.nx-card a.card-media h2.card-title,
.at-motorsportf1 .nx-card .card-media .size-4,
.dokimes-section .mini-mobile .card-media .size-4,
.at-mototypos .text-right .card-media .card-title {font-weight:700 !important;}

/* Homepage */
body.home .nx-card .card-media .cat-time-wrapper.has-category .card-time,
body.home .at-qelectric.qanimate .nx-featured-article .nx-card .card-media .cat-time-wrapper {display:none;}

/* Homepage - Featured Brand */
.fp-featured-brand-logo img {width:300px;height:auto;}

@media only screen and (max-width:1024px) {
    /* Homepage - Epikairotita */
    .at_news .container .columns .column .nx-card .card-media {height:auto;}
    .at_news.p-3.my-3 .container .columns .column:nth-child(5n + 1) .nx-card .card-media {height:120px;}

    /* Homepage - Featured Brand */
    .fp-featured-brand-logo img {width:200px;height:auto;}
}

@media only screen and (max-width:768px) {
    /* Homepage - Epikairotita */
    .at_news .container .columns .column .nx-card .card-media {height:auto;}
    .at_news.p-3.my-3 .container .columns .column:nth-child(5n + 1) .nx-card .card-media {height:120px;}
}

@media only screen and (max-width:640px) {
    /* Slideshow (mobile) */
    #nx-homepage-first-block {background:#000;}

    .side-top-slider .splide__arrow {top:-19rem;width:2rem;height:2rem;display:none;}

    .at-first-block {height:425px;}
    .at-first-block .splide__track {overflow:unset;}

    .at-first-block .overlay-bottom {position:static;display:block;padding:0 15px;margin-top:-58px;}
    .at-first-block .overlay-bottom .overlay-text .nx-card {display:block;}
    .at-first-block .overlay-bottom .card-category {display:inline-block;background:#d20a11;padding:3px 5px !important;}
    .at-first-block .overlay-bottom .card-category a {display:inline-block;color:#fff;padding:0;margin:0;}
    .at-first-block .overlay-bottom .overlay-text .nx-card a h1 {margin:5px 0 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;}

    .at-first-block .item .img-wrap:before {background:#000;}

    .splide__slide .nx-card .card-image .image img,
    .splide__slide .nx-card .card-image .image .featured-card-video {height:auto;aspect-ratio:16/9;}

    .at-first-block .main-top-slider {height:calc(100% - 160px) !important;}
    .at-first-block .overlay-right {height:auto;padding:10px;}
    .at-first-block .splide__list.side_list {display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:10px;}
    .at-first-block .splide.side-top-slider.splide--slide ul.splide__list.side_list li.splide__slide {margin:0 !important;width:auto !important;height:auto !important;}
    .at-first-block .splide.side-top-slider.splide--slide ul.splide__list.side_list li.splide__slide .nx-card .card-media .card-title {-webkit-line-clamp:4;line-clamp:4;}
}

/* Homepage - AMC 24h */
.at_amc24h {margin:4rem 0;padding:0;background:#340042;} /* orange: #FFCA54 */

.at_amc24h .top-section,
.at_amc24h .bottom-section {background:#462670;padding:2rem 0;}
.at_amc24h .middle-section {padding:2rem 0;}

.at_amc24h .top-section > div {display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center;}
.at_amc24h .top-section > div .top-sponsors {justify-self:end;display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;}
.at_amc24h .top-section > div .top-sponsors a img {width:auto;height:50px;object-fit:contain;display:block;}
.at_amc24h .middle-section .middle-sponsors {display:grid;grid-template-columns:repeat(3, auto);gap:4rem;align-items:center;justify-items:center;padding-top:2rem;}
.at_amc24h .middle-section .middle-sponsors a img {width:auto;height:80px;object-fit:contain;display:block;}
.at_amc24h .bottom-section .bottom-sponsors {display:grid;grid-template-columns:repeat(8, auto);gap:3rem;align-items:center;justify-items:center;}
.at_amc24h .bottom-section .bottom-sponsors a img {width:auto;height:40px;object-fit:contain;display:block;}

.at_amc24h .top-section > div .top-sponsors a:hover img,
.at_amc24h .middle-section .middle-sponsors a:hover img,
.at_amc24h .bottom-section .bottom-sponsors a:hover img {opacity:0.80;}

.at_amc24h .readmore-section {text-align:center;margin:1rem 0;}
.at_amc24h .readmore-section a {border-radius:20px;padding:0.5rem 3rem;border:1px solid #fff;color:#fff;display:inline-block;}
.at_amc24h .readmore-section a:hover {border-color:#6d2381;color:#6d2381;}

h2.amc_24h_logo {width:auto;}
h2.amc_24h_logo::after {display:none;}
h2.amc_24h_logo a {text-indent:-9999px;overflow:hidden;background:url(../images/blocks/amc_24h/24hours_logo.svg) no-repeat 50% 50%;background-size:contain;width:600px;height:120px;display:block;margin:0;}

.at_amc24h .nx-card .card-media {min-height:150px;}
.at_amc24h .nx-card .card-media .card-title,
.at_amc24h .nx-card .card-media .card-content {overflow:visible;color:#fafafa;}
.nx-card.has-border.amc24h-border .card-media:after {background-color:#5a176c;}
.nx-card.has-border.amc24h-border:hover .card-media:after {background-color:#d20a11;}

@media screen and (max-width:768px) {
    .at_amc24h {padding:0 1rem !important;}

    .at_amc24h .top-section,
    .at_amc24h .bottom-section {margin:0 -1rem;padding:1rem;}

    h2.amc_24h_logo a {width:auto;height:80px;}

    .at_amc24h .top-section > div {display:grid;grid-template-columns:1fr;}
    .at_amc24h .top-section > div .top-sponsors {justify-self:center;gap:1rem;}
    .at_amc24h .top-section > div .top-sponsors a img {width:80%;height:auto;margin:auto;}
    .at_amc24h .middle-section .middle-sponsors {grid-template-columns:repeat(3, auto);gap:2rem;}
    .at_amc24h .middle-section .middle-sponsors a img {height:60px;}
    .at_amc24h .bottom-section .bottom-sponsors {grid-template-columns:repeat(4, auto);gap:2rem;}
    .at_amc24h .bottom-section .bottom-sponsors a img {height:30px;}

    .at_amc24h .nx-card .card-media .card-title {overflow-y:hidden;}
}

/* Homepage - Rally Acropolis 2025 (1 + 4 grid) */
.rally-acropolis-block {background:url(../images/blocks/rally_acropolis_2025/rally_acropolis_2025_bg.jpg) no-repeat 50% 50%;background-size:cover;padding:60px 0;}
.rally-acropolis-block .blockTitle {margin:0 0 30px;padding:0;}
.rally-acropolis-block .blockTitle a {display:block;width:400px;height:100px;background:url(../images/blocks/rally_acropolis_2025/rally_acropolis_2025_logo.svg) no-repeat 50% 50%;background-size:contain;text-indent:-9999px;overflow:hidden;}
.rally-acropolis-block .items {display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;}
.rally-acropolis-block .items .item {padding:10px;}
.rally-acropolis-block .items .item .itemImage {}
.rally-acropolis-block .items .item .itemImage a,
.rally-acropolis-block .items .item .itemImage a img {display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:16/9;}
.rally-acropolis-block .items .item .itemBody {}
.rally-acropolis-block .items .item .itemBody .itemTags,
.rally-acropolis-block .items .item .itemBody time,
.rally-acropolis-block .items .item .itemBody .itemText {display:none;}
.rally-acropolis-block .items .item .itemBody .itemCategory {padding:5px 0;color:#fff;font-size:0.95rem;}
.rally-acropolis-block .items .item .itemBody .itemCategory a {color:#ff0009;font-weight:500;transition:unset;}
.rally-acropolis-block .items .item .itemBody .itemCategory a:hover {color:#f5b428;}
.rally-acropolis-block .items .item .itemBody .itemCategory span.separator {padding:0 3px;}
.rally-acropolis-block .items .item .itemBody .itemTitle {font-size:1.1rem;line-height:120%;margin:0;padding:0;}
.rally-acropolis-block .items .item .itemBody .itemTitle a {color:#fff;font-weight:700;}

.rally-acropolis-block .items .item.i1 {grid-area:1/1/span 1/span 4;display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;}
.rally-acropolis-block .items .item.i1 .itemBody .itemTitle {font-size:2.4rem;}
.rally-acropolis-block .items .item.i1 .itemBody .itemTitle a:hover {color:#f5b428;}
.rally-acropolis-block .items .item.i1 .itemBody .itemText {display:block;font-size:1rem;line-height:150%;margin:15px 0 0;padding:0;color:#eee;}

.rally-acropolis-block .items .item:not(.i1):hover {background:linear-gradient(to bottom, #df3238, #d20a11);}
.rally-acropolis-block .items .item:not(.i1):hover .itemBody .itemCategory a {color:#f5b428;}

@media screen and (max-width:768px) {
    .rally-acropolis-block .blockTitle a {display:block;width:88%;height:80px;margin:auto;}
    .rally-acropolis-block .items {grid-template-columns:1fr;}
    .rally-acropolis-block .items .item {display:grid;grid-template-columns:1fr 2fr;gap:10px;align-items:center;padding:15px;}
    .rally-acropolis-block .items .item:not(.i1) .itemImage a,
    .rally-acropolis-block .items .item:not(.i1) .itemImage a img {display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:4/3;}
    .rally-acropolis-block .items .item:not(.i1) .itemBody .itemCategory {padding:0 0 5px;}
    .rally-acropolis-block .items .item .itemBody .itemTitle {font-size:1rem;}
    .rally-acropolis-block .items .item.i1 {grid-area:unset;grid-template-columns:1fr;gap:15px;padding:0 15px;}
    .rally-acropolis-block .items .item.i1 .itemBody .itemTitle {font-size:1.6rem;}
    .rally-acropolis-block .items .item.i1 .itemBody .itemText {display:none;}
}

/* Odigos Agoras */
.grid.odigos-agoras {display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;}
    .grid-cell {padding:20px;text-align:center;background:#fff;}
    .grid-cell a {display:block;}
    .grid-cell a img {display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;}
    .grid-cell a h2 {padding:0;margin:15px 0;font-size:1.2rem;font-weight:700;line-height:120%;}
    .grid-cell a span {background:#00d1b2;color:#fff;padding:5px 10px;font-size:0.95rem;font-weight:400;display:inline-block;}

@media screen and (max-width:768px) {
    .grid.odigos-agoras {grid-template-columns:repeat(2, 1fr);gap:15px;}
        .grid-cell {padding:10px;}

}

/* Post */
.has-blocks .content p {margin:2rem 0;padding:0;line-height:150% !important;}

.block-layout figure {margin:15px auto;text-align:center;}
.block-layout blockquote {max-width:880px;margin:30px auto;line-height:150%;}
.block-layout h1,
.block-layout h2,
.block-layout h3,
.block-layout h4,
.block-layout h5,
.block-layout h6 {margin:30px auto;}
.block-layout > p {max-width:760px;margin:30px auto;font-size:1.1rem;line-height:150%;}

.wp-block-media-text {margin:30px auto;}
.wp-block-themeisle-blocks-review {margin:30px auto;max-width:900px;}
.wp-block-themeisle-blocks-timeline .wp-block-themeisle-blocks-timeline-item .o-timeline-content {background-color:var(--wp--preset--color--luminous-vivid-amber);}

/* Navigation
------------------------------------------------------ */
@media screen and (max-width:768px) {
    .navbar.is-fixed-top.nx-menu .nav-container {flex-direction:row-reverse;}
    .navbar.is-fixed-top.nx-menu .nav-container .burger-wrapper {justify-content:flex-start;}
}
.dark-mode {font-size:16px;line-height:20px;}
.dark-mode p {display:flex;align-items:center;margin-right:5px;}
.header-burger p {justify-content:center;color:#fff;font-size:15px;display:flex;}

.at-burger-content-nav .main-menu-item[href*="/games"] {background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' version='1.0' width='24' height='24' viewBox='0 0 640 640' fill='%23fff'><path d='M222 129.1c-65.6 8.4-120.3 52.1-142.7 113.9-5.6 15.4-6.8 22-17.9 99.6-9.5 66-10.5 74.9-10 83.4 2.1 37 26.3 69.2 60.9 81.1 29.7 10.2 63.6 3.9 87.6-16.3 12.4-10.4 16.5-16.8 36.7-57.1L255 397h130l17.6 35.2c9.7 19.4 19.4 37.9 21.6 41.1 22.2 32.7 65.6 46.8 103.5 33.8 12.3-4.2 22.5-10.5 32.4-19.9 17.9-17 27.1-36.8 28.6-61.1.5-8.6-.5-17-9.6-80.6-11-77.4-12.5-85.7-17.7-100.8C539.8 182.1 483.4 137 417 129c-10.2-1.2-185.4-1.1-195 .1M407.4 167c13.3 1.1 25.5 3.7 36.1 7.7 42.2 15.7 73.7 50.5 84.9 94 2.7 10.5 21.6 145 21.6 153.8 0 27.8-22.5 50.4-50.5 50.8-15.3.1-26.7-4.5-37.6-15.3-6.4-6.3-7.2-7.7-28.2-49.5-11.8-23.7-22.6-44-23.9-45.2-5.7-5.4-4.7-5.3-89.8-5.3-56.2 0-79.7.3-82.1 1.1-8.2 2.8-8.7 3.6-31.4 48.9-19.5 38.8-22.1 43.6-27.5 49.4-17 18.1-45.1 21.2-66.1 7.3-9.9-6.6-16.8-15.9-21-28.5-2.9-8.6-2.5-13.9 4.1-60.7 2.8-20.4 7.3-52.3 10-71 5.1-36.7 7.7-46.9 15.6-62.7 21-42.2 63.3-71 109.6-74.8 14-1.1 162.5-1.1 176.2 0'></path><path d='M215.2 207.1c-2.6 1.3-5.5 3.9-7 6.2-2.5 3.8-2.7 4.9-3 16.9l-.4 12.8h-10.7c-6 0-12.3.5-14.2 1.2-12.6 4.3-17.2 18.4-9.8 29.3 4.3 6.3 8.8 7.9 22.6 8.3l12.1.4.4 12.7c.3 11.5.5 13.1 2.7 16.3 4.2 6.1 8.5 8.3 16.1 8.3 5.5 0 7.3-.4 10.7-2.7 6.6-4.3 8.3-9.2 8.3-23v-11.6l12.3-.3c11.1-.4 12.6-.6 16.7-3.1 8.8-5.1 12-16.3 7.2-25.5-4.1-7.9-10-10.3-25.3-10.3h-10.7l-.4-12.8c-.3-12.2-.5-13.1-3.1-17.1-5.1-7.7-15.8-10.3-24.5-6m192 0c-6.6 3.3-9.7 8.7-9.7 16.9 0 5.6.4 7.3 2.8 10.9 4.8 7.3 15 10.1 23.4 6.6 5-2.1 7.2-4.2 9.4-9 3.3-7.3 1.6-18-3.7-22.7-5.7-5-15.2-6.1-22.2-2.7m-35.7 37.2c-9.7 3.9-14.6 12.7-12.5 22.1 3.7 16.4 24.7 20.5 34.5 6.7 4-5.7 4.3-14.5.6-20.4-4.6-7.5-15.2-11.5-22.6-8.4m76.7-.2c-4.7 1.4-10.9 7.9-12.2 13.1-4.4 16.2 13.1 30.1 27.7 21.9 20.2-11.4 6.9-41.4-15.5-35m-40.7 39.5c-7.5 4.1-11.1 10.8-10.3 19.4 1.3 13.1 15.3 20.8 27.3 15 12.6-6.1 14.2-24 2.9-32.7-3-2.3-4.9-2.8-10.3-3-4.7-.2-7.5.1-9.6 1.3'></path></svg>") no-repeat 100% 50%;padding-right:30px;}

/* Temp */
.top-nav-games-link {position:absolute;right:200px;}
.top-nav-games-link a {font-weight:600;font-size:0.9rem;color:#fff;}
.top-nav-games-link a:hover {color:#d20a11;}
.top-nav-games-link a svg {vertical-align:bottom;}

/* Footer
------------------------------------------------------ */
footer .logo-wrapper {position:relative;margin-inline:auto;background-position:center center;min-height:50px;min-width:193px;}
footer .logo-wrapper svg {height:50px;width:193px;}
@media screen and (max-width:1023px) {
    #footer-menu {background-color:transparent !important;gap:0 !important;border:none !important;align-items:flex-start !important;margin-left:10%;}
    footer.footer #footer-menu .menu-item {display:list-item;margin:0 !important;padding-left:0 !important;}
    .copyright-mobile {font-size:9px;line-height:13px;display:flex;align-items:center;color:#5b5858;padding:0 0 20px 25px;}
    .content-rules p {color:#5b5858;padding:2% 10%;}
    .social-media1 {font-family:"Open Sans";font-style:normal;font-weight:400;font-size:11px;line-height:13px;color:#fff;}
    .bottom a {font-family:"Open Sans";font-style:normal;font-weight:400;font-size:13px;line-height:13px;text-decoration-line:underline;color:#fff;}
    .custom-footer {background-color:#d10d14;}
    .custom-footer p {color:#fff;}
    .custom-footer a {color:#fff;}
}
.footer-follow {font-size:0.9rem;line-height:150%;margin-bottom:1rem;}
.powered-by {border-bottom:0;}
.credits {font-weight:400;font-size:1rem;color:#fff;}
.credits a {color:#fff;font-weight:bold;text-decoration:none;}
.perfops-by {padding:5px 0 30px;display:none;}
.credits-perfops {color:#505050 !important;font-size:0.75rem !important;display:none;}
.credits-perfops a {color:#707070 !important;font-weight:normal;text-decoration:none;}
.credits-perfops a:hover {color:#909090 !important;}
.sponsored-by {line-height:150%;padding-bottom:45px !important;}

@media screen and (min-width:769px) {
    .credits-perfops {font-size:0.85rem !important;}
}

/* Footer & Magazine Covers */
.footer-bottom {display:grid;grid-template-columns:3fr 2fr 2fr;gap:30px;}
    .at-covers {display:grid;grid-template-columns:1fr 1fr;gap:15px;}
    .at-covers .magazine-cover {text-align:center;display:grid;grid-template-rows:1fr auto;gap:5px;}
    .at-covers .magazine-cover img {display:block;width:140px;height:auto;margin:0 auto;object-fit:contain;}
    .at-covers .magazine-cover h3 {font-size:0.85rem !important;line-height:120% !important;}

@media screen and (max-width:768px) {
    .footer-nav-wrapper .breadcrumb {white-space:normal;}
    footer.footer #footer-menu {display:block;text-align:center;padding:15px !important;margin:0 !important;}
    footer.footer #footer-menu .menu-item {display:inline-block;padding:5px 10px !important;}
    footer.footer #footer-menu .menu-item:not(:first-child) :before {left:-5px !important;}
    footer.footer #footer-menu .menu-item a {font-size:0.95rem !important;}

    .footer-bottom {display:grid;grid-template-columns:1fr;gap:15px;}
        .aboutus-wrapper {padding:15px 30px !important;border-top:2px solid #424242;}
            .aboutus-wrapper .content-rules-title {}
            .aboutus-wrapper .content-rules p {padding:10px 0 !important;margin:0 !important;line-height:150% !important;}
            .aboutus-wrapper .below-footer-text {display:flex;justify-content: space-between;padding:10px 0;}

        .at-covers-wrapper {order:-1;}
            .at-covers {display:grid;grid-template-columns:1fr 1fr;gap:15px;}
            .at-covers .magazine-cover {text-align:center;display:grid;grid-template-rows:1fr auto;gap:5px;}
            .at-covers .magazine-cover img {display:block;width:140px;height:auto;margin:0 auto;object-fit:contain;}
            .at-covers .magazine-cover h3 {font-size:0.85rem !important;line-height:120% !important;}

        .info-wrapper {display:block;text-align:center;}
            .info-wrapper .quattroruote-btn {display:inline-block;text-align:center;padding:8px 30px 5px !important;}
            .info-wrapper .mht-desk-footer img {width:120px;height:auto;}
            .info-wrapper ul.social-icons-list {margin:auto;}

    .copyrights {text-align:center;padding:15px 30px 90px !important;}
}

/* Utilities
------------------------------------------------------ */
@media only screen and (min-width:576px) {
    .for-mobile,
    .hide-on-desktop {display:none;}
}

@media only screen and (max-width:575px) {
    .for-desktop,
    .hide-on-mobile {display:none;}
}
