/* Custom CSS for GKS Kraska Jasieniec */

/* General Styles */
body {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 24px; line-height: 1.4; }

/* Header Styles */
.stm-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.stm-header-inner {
    width: 100%;
}

.stm-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo-main {
    flex: 0 0 auto;
}

.stm-main-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.header-menu li {
    position: relative;
}

.header-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 5px;
    transition: color 0.3s;
}

.header-menu li a:hover,
.header-menu li.current-menu-item a {
    color: #e74c3c;
}


.header-menu .menu-item-has-children > a::after {
    content: "▾";
    font-size: 11px;
    margin-left: 8px;
}

.header-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 220px;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.header-menu .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% - 12px);
}

.header-menu li:hover > .sub-menu,
.header-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-menu .sub-menu li {
    width: 100%;
}

.header-menu .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    font-size: 14px;
    white-space: nowrap;
}

.header-menu .sub-menu li.current-menu-item > a,
.header-menu .sub-menu li.current-menu-parent > a,
.header-menu li.current-menu-parent > a {
    color: #e74c3c;
}

.stm-mobile-menu-list .mobile-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 18px;
}

.stm-mobile-menu-list .mobile-sub-menu a {
    font-size: 15px;
    padding: 12px 10px;
}

.stm-mobile-menu-list .mobile-menu-group > a {
    font-weight: 600;
}

.stm-mobile-menu-list .current-menu-parent > a,
.stm-mobile-menu-list .current-menu-item > a {
    color: #e74c3c;
}

/* Mobile Menu */
.stm-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.stm-mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.stm-mobile-menu-unit {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s;
    z-index: 9999;
    overflow-y: auto;
}

.stm-mobile-menu-unit.active {
    right: 0;
}

.stm-mobile-menu-list {
    list-style: none;
    padding: 60px 20px 20px;
    margin: 0;
}

.stm-mobile-menu-list li {
    border-bottom: 1px solid #eee;
}

.stm-mobile-menu-list li a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.stm-mobile-menu-list li a:hover,
.stm-mobile-menu-list li.current-menu-item a {
    color: #e74c3c;
}

/* Hero Section */
.hero-section {
    margin-bottom: 50px;
}

.hero-section .hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content */
main {
    padding: 50px 0;
}

section {
    margin-bottom: 60px;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* News Section */
.news-section {
    min-height: 300px;
    background: #254f16;
    padding: 40px 32px 50px;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.news-section h2 {
    color: #fff;
}

.noscript-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.noscript-notice p {
    margin: 10px 0;
    font-size: 16px;
}

.fb-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

#fb-news-container {
    margin-top: 30px;
}

/* Facebook Posts Styling */
.fb-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fb-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fb-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.fb-post img,
.fb-post video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.fb-post-content {
    padding: 15px;
}

.fb-post-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

.fb-post-date {
    font-size: 12px;
    color: #999;
}

/* Facebook masonry & modal */
.fb-news-wrapper {
    position: relative;
}

.fb-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 6px;
}

.fb-skeleton:before {
    content: "";
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f2f2f2, #f8f8f8, #f2f2f2);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px; }
    100% { background-position: 200px; }
}

.fb-news-masonry {
    column-count: 3;
    column-gap: 14px;
    gap: 14px;
    padding: 6px;
}

.fb-news-masonry > .fb-post {
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
    break-inside: avoid;
}

.fb-news-masonry > .fb-post:first-child {
    width: 100%;
}

.fb-news-masonry .masonry-item {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #2c3e50;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fb-news-masonry .masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.fb-news-masonry .masonry-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.fb-news-masonry .masonry-image-wrap img,
.fb-news-masonry .masonry-image-wrap video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: auto !important;
}

.fb-news-masonry .stm-masonry-post-data {
    position: relative;
    padding: 16px 16px 18px;
    background: #f6f7f9;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fb-news-masonry .stm-masonry-post-data__title h4 {
    margin: 0 0 8px;
    color: #2c3e50;
    font-size: 18px;
    line-height: 1.4;
}

.fb-news-masonry .stm-masonry-post-data__cat {
    color: #6c7a89;
    font-size: 13px;
}

.fb-news-masonry .cat {
    background: rgba(0, 0, 0, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
    margin-right: 8px;
}

.fb-post {
    position: relative;
    display: block;
    color: inherit;
}

.fb-post::after {
    content: "Czytaj więcej →";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: 0.2s;
}

.fb-post:hover::after {
    opacity: 1;
}

.fb-news-masonry .big-post {
    min-height: 0;
}

.fb-news-masonry .small-post {
    min-height: 0;
}

#fbModalBG,
#fbFullscreen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#fbModalBG {
    background: rgba(0, 0, 0, 0.75);
}

#fbModalBox {
    background: #fff;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.fb-modal-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #111;
}

#fbModalMain {
    width: 100%;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fbModalMain img,
#fbModalMain video {
    max-width: 100%;
    max-height: 420px;
    border-radius: 14px;
    object-fit: contain;
    cursor: pointer;
}

.fb-media-btn {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
}

.fb-media-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

#fbModalPrev {
    left: 16px;
}

#fbModalNext {
    right: 16px;
}

.fb-modal-gallery {
    padding: 12px 16px 0;
}

#fbModalSlider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

#fbModalSlider img,
#fbModalSlider video {
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
}

#fbModalSlider .is-active {
    opacity: 1;
    border-color: #e74c3c;
}

#fbModalContent {
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    overflow-y: auto;
}

.fb-modal-actions {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    background: #fafafa;
}

.fb-modal-link {
    background: #1877f2;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.fb-modal-btn {
    background: #333;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.fb-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
}

#fbFullscreen {
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
}

#fbFScontent img,
#fbFScontent video {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 14px;
}

#fbFSclose {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

.fb-fs-btn {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
}

.fb-fs-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

#fbFSPrev {
    left: 20px;
}

#fbFSNext {
    right: 20px;
}

@media (max-width: 992px) {
    .fb-news-masonry {
        column-count: 2;
        column-gap: 14px;
    }

    .fb-news-masonry > .fb-post {
        width: 100%;
    }

    .fb-post::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .fb-news-masonry > .fb-post {
        width: 100%;
        margin-bottom: 14px;
    }

    .fb-news-masonry {
        column-count: 1;
    }
}

/* Videos Section */
.videos-section {
    background: #f8f9fa;
    padding: 50px 0;
}

.stm-video-carousel {
    margin-top: 30px;
}

.stm-video-carousel .owl-nav {
    margin-top: 20px;
}

.stm-video-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    background: #e74c3c !important;
    color: #fff !important;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 18px;
    transition: background 0.3s;
}

.stm-video-carousel .owl-nav button:hover {
    background: #c0392b !important;
}

.stm-video-carousel .owl-dots {
    margin-top: 20px;
    text-align: center;
}

.stm-video-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
}

.stm-video-carousel .owl-dot.active {
    background: #e74c3c;
}

.video-item {
    padding: 10px;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: background 0.3s;
}

.video-item:hover .play-icon {
    background: rgba(231, 76, 60, 1);
}

.video-item h3 {
    margin-top: 15px;
    font-size: 16px;
    color: #2c3e50;
    min-height: 60px;
}

.video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Sponsors Section */
.sponsors-section {
    padding: 50px 0;
    background: #f7f8fb;
}

.sponsors-section .container-fluid {
    max-width: 1280px;
}

.sponsors-section h3 {
    text-align: center;
    margin-bottom: 40px;
}

.general-sponsor-section {
    background: linear-gradient(180deg, #111318, #0c0d12);
    padding: 70px 0 60px;
    color: #fff;
}

.general-sponsor-wrap {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    padding: 30px 20px;
}

.general-sponsor-wrap .section-kicker {
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.general-sponsor-logo {
    max-width: 520px;
    width: 100%;
    display: inline-block;
    aspect-ratio: 16 / 5;
    background: #0f1117 url('../images/logo3.png') center/contain no-repeat;
    border-radius: 14px;
    filter: drop-shadow(0 12px 45px rgba(0, 0, 0, 0.35));
}

.sponsors-grid {
    margin-bottom: 30px;
}

.sponsors-grid > div {
    padding: 20px;
    text-align: center;
}

.sponsors-grid img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.sponsors-grid a:hover img {
    opacity: 0.8;
}

/* Contact Page */
.contact-section {
    padding: 30px 0;
}

.contact-section h1 {
    margin-bottom: 40px;
}

.contact-info-box,
.contact-form-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info-box h3,
.contact-form-box h3 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.contact-info-box p,
.contact-form-box p {
    margin-bottom: 15px;
}

.btn-primary {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Footer */
.stm-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding-top: 50px;
}

.footer-main {
    padding-bottom: 30px;
}

.footer-widgets .widget {
    margin-bottom: 30px;
}

.footer-widgets h6 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-widgets p,
.footer-widgets ul {
    font-size: 14px;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #c0392b;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: #e74c3c;
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.footer-bottom .text-right {
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .stm-main-menu {
        display: none;
    }
    
    .stm-mobile-menu-toggle {
        display: flex;
    }
    
    .stm-mobile-menu-unit {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    
    .stm-header-container {
        padding: 0 15px;
    }
    
    .footer-bottom .text-right {
        text-align: left;
        margin-top: 10px;
    }
    
    .fb-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}


/* Senior pages */
.senior-pages-section {
    margin-bottom: 50px;
}

.senior-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.senior-link-card {
    display: block;
    padding: 32px;
    border-radius: 28px;
    text-decoration: none;
    background: linear-gradient(135deg, #234914 0%, #315f1f 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.senior-link-card:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.28);
}

.senior-link-card__kicker,
.subpage-kicker,
.senior-widget__kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.72);
}

.senior-link-card h3,
.subpage-hero h1,
.senior-widget__header h1 {
    color: #fff;
    margin: 0 0 12px;
}

.senior-link-card p,
.subpage-hero p {
    margin: 0;
    color: rgba(255,255,255,0.88);
}

.subpage-main {
    padding-bottom: 60px;
}

.subpage-hero {
    padding: 56px 0;
    background: linear-gradient(135deg, #234914 0%, #315f1f 100%);
    margin-bottom: 36px;
}

.remote-fragment-shell {
    min-height: 240px;
}

.remote-fragment-error {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}

.senior-widget {
    display: grid;
    gap: 24px;
}

.senior-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    color: #fff;
}

.senior-widget__subtitle {
    margin: 0;
    color: rgba(255,255,255,0.86);
}

.senior-widget__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.senior-widget__card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,244,0.98));
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.18);
    overflow: hidden;
}

.senior-widget__table-wrap {
    overflow-x: auto;
}

.senior-widget__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.senior-widget__table th,
.senior-widget__table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(31,47,26,0.08);
    text-align: center;
    color: #1f2f1a;
}

.senior-widget__table th:nth-child(2),
.senior-widget__table td:nth-child(2) {
    text-align: left;
}

.senior-widget__table thead th {
    background: rgba(37,79,22,0.06);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: #69815f;
}

.senior-widget__table .team-name {
    font-weight: 600;
}

.senior-widget__table .is-team-row td {
    background: rgba(37,79,22,0.10);
    color: #254f16;
    font-weight: 700;
}

.senior-widget__fixtures {
    list-style: none;
    margin: 0;
    padding: 24px;
    display: grid;
    gap: 14px;
}

.senior-widget__fixture {
    background: rgba(37,79,22,0.06);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.senior-widget__fixture-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #69815f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.senior-widget__fixture-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    color: #1f2f1a;
    font-size: 16px;
}

.senior-widget__fixture-match .team:last-child {
    text-align: right;
}

.senior-widget__fixture-match .is-team {
    color: #254f16;
    font-weight: 700;
}

.fixture-separator {
    color: #69815f;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
}

@media (max-width: 768px) {
    .header-menu .sub-menu {
        display: none;
    }

    .senior-link-grid {
        grid-template-columns: 1fr;
    }

    .senior-widget__header,
    .senior-widget__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Navigation refresh */
body.menu-open {
    overflow: hidden;
}

.stm-header {
    padding: 10px 0;
}

.stm-header-container {
    gap: 24px;
}

.stm-main-menu-unit {
    width: 100%;
}

.header-menu {
    justify-content: flex-end;
    align-items: center;
}

.header-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 10px 16px;
}

.header-menu > li:hover > a,
.header-menu > li.is-open > a,
.header-menu > li.current-menu-item > a,
.header-menu > li.current-menu-parent > a {
    background: rgba(37,79,22,0.08);
    color: #254f16;
}

.header-menu .sub-menu {
    display: none;
    border: 1px solid rgba(37,79,22,0.1);
}

.header-menu li.is-open > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-menu .sub-menu li a:hover,
.header-menu .sub-menu li.is-open > a {
    background: rgba(37,79,22,0.06);
    color: #254f16;
}

.stm-mobile-menu-unit {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8f4 100%);
}

.stm-mobile-menu-list li {
    border-bottom: 1px solid rgba(37,79,22,0.08);
}

.mobile-menu-group > a {
    position: relative;
    padding-right: 34px !important;
}

.mobile-menu-group > a::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #254f16;
}

.mobile-menu-group.is-open > a::after {
    content: '–';
}

.mobile-sub-menu {
    display: none;
}

.mobile-menu-group.is-open > .mobile-sub-menu {
    display: block;
}

/* Senior matchday redesign */
.subpage-main {
    padding-top: 0;
    padding-bottom: 0;
    background: linear-gradient(180deg, #f7f8f7 0%, #eef2ef 58%, #edf2ef 100%);
}

.subpage-hero {
    margin-bottom: 0;
    padding: 92px 0 230px;
    background:
        radial-gradient(circle at 100% 0, rgba(115, 175, 82, 0.24), transparent 28%),
        linear-gradient(115deg, #182a18 0%, #294928 45%, #4f8144 100%);
    position: relative;
    overflow: hidden;
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-hero p {
    max-width: 680px;
}

.remote-section {
    margin-top: -168px;
    padding-bottom: 90px;
}

.remote-section .container {
    width: min(100%, 1380px);
}

.remote-fragment-shell {
    min-height: 420px;
}

.senior-widget__hero-panel {
    color: #fff;
    padding: 0 56px 42px;
}

.senior-widget__hero-panel h2 {
    margin: 0 0 12px;
    color: #fff;
    text-align: left;
    font-size: 68px;
    line-height: 1;
}

.senior-widget__intro {
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
}

.senior-widget__surface {
    background: rgba(255,255,255,0.94);
    border-radius: 40px;
    box-shadow: 0 35px 80px rgba(30, 51, 31, 0.18);
    overflow: hidden;
    border: 1px solid rgba(46, 76, 43, 0.08);
    backdrop-filter: blur(6px);
}

.senior-widget__body {
    padding: 36px 28px 28px;
}

.senior-widget__section-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 12px 24px;
}

.senior-widget__section-heading h2 {
    margin: 0 0 10px;
    color: #20361e;
    text-align: left;
    font-size: 54px;
    line-height: 1;
}

.senior-widget__section-heading p {
    margin: 0;
    color: #70816c;
}

.senior-widget__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding-top: 6px;
}

.senior-widget__legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #355031;
    font-size: 12px;
    font-weight: 700;
}

.senior-widget__legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.senior-widget__legend .is-up { background: #3cb46b; }
.senior-widget__legend .is-safe { background: #6f8292; }
.senior-widget__legend .is-down { background: #e55c4d; }

.senior-widget__fixtures-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.senior-widget__fixture {
    position: relative;
    list-style: none;
    min-height: 260px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(240,245,238,0.96));
    border: 1px solid rgba(46, 76, 43, 0.08);
    box-shadow: 0 14px 28px rgba(36, 64, 37, 0.08);
}

.senior-widget__fixture::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f7a21, #54ab32);
}

.senior-widget__fixture.is-away::before {
    background: linear-gradient(180deg, #8093a2, #9bb5c8);
}

.senior-widget__fixture-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.senior-widget__fixture-round,
.senior-widget__team-meta small,
.senior-widget__fixture-date span:last-child {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a9784;
    font-weight: 700;
}

.senior-widget__fixture-date {
    display: grid;
    gap: 4px;
}

.senior-widget__fixture-date strong {
    color: #1f351d;
    font-size: 44px;
    line-height: 0.92;
    text-transform: lowercase;
}

.senior-widget__fixture-status {
    padding: 7px 13px;
    border-radius: 999px;
    background: #edf3e8;
    color: #41673b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.senior-widget__fixture-match {
    display: grid;
    gap: 12px;
}

.senior-widget__team-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: linear-gradient(90deg, #f8faf7 0%, #eef4eb 100%);
    border: 1px solid rgba(58, 92, 53, 0.08);
}

.senior-widget__team-row.is-highlight {
    background: linear-gradient(90deg, #eef5ea 0%, #e3efdd 100%);
    border-color: rgba(48, 110, 40, 0.16);
}

.senior-widget__team-meta {
    display: grid;
    gap: 5px;
}

.senior-widget__team-meta strong {
    font-size: 18px;
    line-height: 1.2;
    color: #1d331c;
}

.senior-widget__team-tag {
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d6a22;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.senior-widget__fixture-location {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-top: 14px;
    font-size: 13px;
    color: #73816f;
}

.senior-widget__fixture-location span:last-child {
    color: #2a5a22;
    font-weight: 700;
}

.senior-widget__card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(46, 76, 43, 0.08);
    box-shadow: 0 18px 32px rgba(34, 58, 34, 0.08);
}

.senior-widget__table-wrap {
    overflow-x: auto;
}

.senior-widget__table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.senior-widget__table thead th {
    padding: 16px 18px;
    background: rgba(249,250,247,0.96);
    color: #5f6f58;
    border-bottom: 1px solid rgba(46, 76, 43, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    text-align: center;
}

.senior-widget__table th:nth-child(2),
.senior-widget__table td:nth-child(2) {
    text-align: left;
}

.senior-widget__table td {
    padding: 18px;
    border-bottom: 1px solid rgba(46, 76, 43, 0.08);
    text-align: center;
    color: #243923;
    font-weight: 600;
}

.senior-widget__table tbody tr:hover {
    background: rgba(238, 244, 235, 0.75);
}

.senior-widget__table .is-team-row td {
    background: linear-gradient(90deg, rgba(234,243,229,0.98) 0%, rgba(226,237,220,0.98) 100%);
}

.senior-widget__table .team-name {
    white-space: nowrap;
}

.senior-widget__form {
    display: inline-flex;
    gap: 8px;
}

.senior-widget__form span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.senior-widget__form .win { background: #3cb46b; }
.senior-widget__form .draw { background: #6f8292; }
.senior-widget__form .loss { background: #e55c4d; }

.sponsor-ribbon {
    display: none;
}

.subpage-sponsors {
    padding-top: 0;
}

@media (max-width: 1100px) {
    .senior-widget__hero-panel,
    .senior-widget__body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .senior-widget__section-heading h2,
    .senior-widget__hero-panel h2 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: 64px 0 200px;
    }

    .remote-section {
        margin-top: -150px;
        padding-bottom: 56px;
    }

    .senior-widget__hero-panel,
    .senior-widget__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .senior-widget__hero-panel h2,
    .senior-widget__section-heading h2 {
        font-size: 38px;
    }

    .senior-widget__section-bar {
        padding-left: 0;
        padding-right: 0;
        gap: 14px;
    }

    .senior-widget__legend {
        gap: 10px;
    }

    .senior-widget__fixtures-grid {
        grid-template-columns: 1fr;
    }

    .senior-widget__fixture {
        min-height: auto;
        padding: 18px 16px 16px;
    }

    .senior-widget__fixture-top {
        gap: 10px;
        margin-bottom: 14px;
    }

    .senior-widget__fixture-date strong {
        font-size: 34px;
    }

    .senior-widget__team-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px;
    }

    .senior-widget__team-meta strong {
        font-size: 16px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .senior-widget__fixture-location {
        flex-direction: column;
        align-items: flex-start;
    }

    .senior-widget__table {
        min-width: 860px;
    }
}

@media (max-width: 480px) {
    .stm-header {
        padding: 10px 0;
    }

    .stm-header-container {
        padding: 0 16px;
    }

    .logo-main img {
        width: 96px !important;
    }

    .senior-widget__surface {
        border-radius: 28px;
    }

    .senior-widget__body {
        padding-top: 28px;
        padding-bottom: 22px;
    }

    .senior-widget__hero-panel h2,
    .senior-widget__section-heading h2 {
        font-size: 28px;
        line-height: 1.05;
    }

    .senior-widget__section-heading p {
        font-size: 15px;
    }

    .senior-widget__legend span {
        font-size: 11px;
    }

    .senior-widget__fixture {
        padding: 16px 14px 14px;
        border-radius: 20px;
    }

    .senior-widget__fixture-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .senior-widget__fixture-date strong {
        font-size: 26px;
    }

    .senior-widget__fixture-status {
        padding: 6px 10px;
        font-size: 11px;
    }

    .senior-widget__team-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .senior-widget__team-tag {
        min-width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .senior-widget__team-meta small,
    .senior-widget__fixture-round,
    .senior-widget__fixture-date span:last-child {
        letter-spacing: 0.12em;
    }

    .senior-widget__fixture-location {
        gap: 4px;
        font-size: 12px;
    }
}
