/**
 * Main CSS file for the Custom Theme
 * This file contains styles for specific theme components and layouts
 */

/* Import design tokens */
@import url('design-tokens.css');

/* 
 * Table of Contents:
 * 
 * 1.0 - Base Styles
 * 2.0 - Header
 * 3.0 - Navigation
 * 4.0 - Content
 * 5.0 - Posts and Pages
 * 6.0 - Sidebar
 * 7.0 - Footer
 * 8.0 - Components
 * 9.0 - Media Queries
 */

/* 1.0 - Base Styles */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
    color: var(--color-secondary);
    margin-top: 0;
    font-weight: var(--font-weight-bold);
}

h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

h5 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

h6 {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--color-accent);
}

.container {
    width: 100%;
    max-width: var(--container-width-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
}

/* 2.0 - Header */
.site-header {
    background-color: var(--color-background);
    box-shadow: none;
    position: relative;
    z-index: 100;
    margin-bottom: 0;
}

/* Top Bar Styles */
.top-bar {
    background: #000000;
    padding: 10px 0;
    border-bottom: none;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-menu ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-bar-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.top-bar-menu a:hover {
    opacity: 0.8;
}

/* Main Header - Logo and main navigation */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 0;
    margin-bottom: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    max-width: 1440px;
    padding: 0 20px;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 40px;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    width: 100%;
}

.title-part-1 {
    color: #000000;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 22px;
}

.title-part-2 {
    display: inline-block;
    vertical-align: bottom;
    font-weight: 300;
    color: var(--color-primary);
    align-self: flex-end;
}

.site-description {
    margin: var(--spacing-xs) 0 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0 20px;
    position: relative;
    z-index: 1002;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    position: relative;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.main-navigation a:hover {
    text-decoration: none;
    color: var(--color-primary);
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: var(--color-background);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    display: none;
    z-index: 999;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.main-navigation .sub-menu li {
    margin: 0;
}

.main-navigation .sub-menu a {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Menu toggle button - always visible on mobile */
.menu-toggle {
    display: none;
}

/* Updated styles for inner pages */
.site-header:not(.home) .menu-toggle {
    top: 0;
    right: 0;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000000;
    position: relative;
    transition: background-color 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #000000;
    transition: transform 0.2s ease;
}

.menu-toggle-icon::before {
    top: -7px;
}

.menu-toggle-icon::after {
    top: 7px;
}

.menu-toggle.toggled .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle.toggled .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.toggled .menu-toggle-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    flex: 0 0 auto;
    margin-left: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-primary);
}

.button-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.button-primary svg {
    margin-left: 8px;
}

.button-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 16px;
    border-radius: 4px;
}

.button-outline:hover {
    background-color: rgba(var(--color-primary-rgb), 0.05);
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.button-outline svg {
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 800px;
    overflow: hidden;
    margin-top: -1px;
    padding-top: 0;
}

.hero-slide {
    position: relative;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    color: #ffffff;
}

.hero-text {
    max-width: 650px;
    padding-left: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* TILMELD DIG NU Button in hero section */
.hero-section .button-primary {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background-color: #D91E3A;
    border-color: #D91E3A;
    margin-top: 30px;
}

.hero-section .button-primary:hover {
    background-color: #c01832;
    border-color: #c01832;
}

.hero-section .button-primary svg {
    margin-left: 8px;
    width: 20px;
    height: 20px;
}

/* 4.0 - Content */
.site-content {
    padding: var(--spacing-2xl) 0;
    padding-top: 0; /* Remove top padding to connect content with header */
}

/* Remove padding for front page to connect hero with header */
.home .site-content {
    padding-top: 0;
}

/* Ensure front page main content has proper spacing */
.home .main-content {
    padding-top: var(--spacing-2xl);
}

.page-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
}

.archive-description {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    gap: var(--spacing-lg);
}

.content-area {
    flex: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-lg);
}

.breadcrumbs a {
    color: var(--color-primary);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

/* Section Styling */
.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
}

.section-title-sports {
    color: #000000;
}

.section-title-events {
    color: #000000;
}

.section-actions {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* 5.0 - Posts and Pages */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.post-card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: var(--card-padding);
}

.entry-title {
    font-size: var(--card-title-size);
    margin-bottom: var(--spacing-xs);
}

.entry-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.entry-meta span {
    margin-right: var(--spacing-sm);
}

.entry-content {
    margin-bottom: var(--spacing-sm);
}

.read-more-link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text) !important;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background-color var(--transition-fast) ease;
}

.read-more-link:hover {
    background-color: var(--button-secondary-bg-hover);
}

/* Single Post */
.single .post-card {
    box-shadow: none;
    background-color: transparent;
}

.single .entry-title {
    font-size: var(--font-size-4xl);
}

.single .post-thumbnail {
    margin-bottom: var(--spacing-lg);
}

.entry-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.entry-footer span {
    margin-right: var(--spacing-sm);
}

/* Pagination */
.pagination {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-block;
}

.pagination .page-numbers {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin: 0 var(--spacing-xs);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    border-color: var(--color-primary);
}

.pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    border-color: var(--color-primary);
}

/* 6.0 - Sidebar */
.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    margin-bottom: var(--spacing-lg);
}

.widget-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--color-border);
}

/* 7.0 - Footer */
.site-footer {
    background-color: #ffffff;
    color: var(--color-text);
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    border-top: 1px solid #e0e0e0;
    margin-top: var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.site-info {
    width: 100%;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left, 
.footer-right {
    padding: var(--spacing-xs) 0;
    font-size: 14px;
    color: #333;
}

.footer-right a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .footer-columns {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-left, 
    .footer-right {
        width: 100%;
        text-align: center;
    }
    
    .footer-left {
        margin-bottom: var(--spacing-xs);
    }
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.footer-widgets .widget-title {
    color: var(--color-text-on-dark);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.footer-menu {
    margin-bottom: var(--spacing-md);
}

.footer-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0 var(--spacing-sm);
    position: relative;
}

.footer-menu a {
    color: var(--color-text-on-dark);
    opacity: 0.8;
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: opacity var(--transition-fast) ease;
}

.footer-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    line-height: 1.6;
}

.copyright p {
    margin: 0;
}

.copyright a {
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

.copyright a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.developer-credit {
    display: inline-block;
}

@media (max-width: 767px) {
    .site-footer {
        padding: var(--spacing-md) 0;
    }
    
    .footer-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .copyright {
        font-size: var(--font-size-xs);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast) ease;
    z-index: var(--z-index-fixed);
}

.back-to-top::before {
    content: '↑';
    font-size: var(--font-size-lg);
}

.back-to-top.show {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    opacity: 1;
    background-color: var(--color-accent);
}

/* 8.0 - Components */
/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-primary);
}

.button-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.button-primary svg {
    margin-left: 8px;
}

.button-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 16px;
    border-radius: 4px;
}

.button-outline:hover {
    background-color: rgba(var(--color-primary-rgb), 0.05);
}

.button-outline svg {
    margin-right: 8px;
}

.button-text {
    background-color: transparent;
    color: var(--button-text-color);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.button-text:hover {
    color: var(--button-text-hover);
    background-color: transparent;
}

.button-small {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    color: var(--form-input-text);
    border: 1px solid var(--form-input-border);
    border-radius: var(--form-input-radius);
    padding: var(--form-input-padding);
    width: 100%;
    background-color: var(--form-input-bg);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    color: var(--form-input-text);
    border-color: var(--form-input-border-focus);
    outline: none;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: 1px solid var(--button-primary-border);
    border-radius: var(--border-radius-md);
    padding: var(--button-padding);
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: var(--button-primary-bg-hover);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
}

.required {
    color: var(--form-error-color);
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--form-input-bg);
    border: 1px solid var(--form-input-border);
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 9.0 - Media Queries */
@media (max-width: 1200px) {
    .main-navigation {
        padding: 0 10px;
    }
    
    .main-navigation ul {
        gap: 15px;
    }
    
    .main-navigation a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .header-actions {
        margin-left: 20px;
    }
    
    .button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    /* Fixed menu toggle button - absolutely positioned */
    .menu-toggle, 
    .home .menu-toggle,
    .force-visible,
    body.mobile-view .menu-toggle {
        display: block !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
        background: transparent !important;
        border: none !important;
        padding: 10px !important;
        cursor: pointer !important;
        width: 44px !important;
        height: 44px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Fixed menu toggle icon */
    .menu-toggle-icon {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background-color: #000000 !important;
        position: relative !important;
        transition: background-color 0.2s ease !important;
    }
    
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: '' !important;
        position: absolute !important;
        width: 24px !important;
        height: 2px !important;
        background-color: #000000 !important;
        transition: transform 0.2s ease !important;
    }
    
    .menu-toggle-icon::before {
        top: -7px !important;
    }
    
    .menu-toggle-icon::after {
        top: 7px !important;
    }
    
    /* Ensure the proper positioning */
    .main-navigation {
        position: relative !important;
        z-index: 1002;
    }
    
    .site-branding {
        padding-right: 60px !important;
    }
    
    .main-header .container {
        position: relative !important;
    }
    
    /* Original mobile navigation styles */
    .main-header .container {
        flex-wrap: wrap;
    }
    
    .site-branding {
        flex: 1;
        order: 0;
    }
    
    .header-actions {
        position: static;
        transform: none;
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .main-navigation {
        order: 3;
        flex: 0 0 100%;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        width: 100%;
    }
    
    .main-navigation.toggled {
        max-height: 1000px;
        margin-top: 15px;
        overflow: visible;
    }
    
    /* Mobile menu styles */
    .main-navigation.toggled ul#primary-menu {
        display: flex !important;
        background-color: #ffffff;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        max-height: 70vh;
        overflow-y: auto;
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        z-index: 1002;
    }
}

@media (max-width: 768px) {
    /* Mobile menu content styles */
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-branding {
        margin-bottom: var(--spacing-sm);
        width: 100%;
        padding-right: 50px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: relative;
        background-color: #ffffff;
        padding: 15px;
        z-index: 999;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        margin: 0;
        padding: 5px 0;
        text-align: left;
    }
    
    .main-navigation a {
        padding: 10px 0;
        display: block;
    }
    
    .main-navigation .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: var(--spacing-md);
        background-color: transparent;
    }
    
    .main-navigation .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
    
    .dropdown-toggle {
        display: block;
    }
    
    /* Mobile menu footer styles */
    .mobile-menu-footer {
        margin: 20px -15px -15px -15px;
        padding: 15px;
        background: #000000;
        border-radius: 0 0 4px 4px;
        border-top: none;
    }
    
    .mobile-menu-top-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-menu-top-links a {
        color: #ffffff;
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        padding: 8px 0;
    }
    
    .mobile-menu-top-links a:hover {
        opacity: 0.8;
    }
    
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-bottom: 20px;
    }
    
    .mobile-menu-actions .button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide these elements on mobile */
    .top-bar {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: var(--font-size-xl);
    }
    
    .site-description {
        font-size: var(--font-size-xs);
    }
    
    .page-title,
    .single .entry-title,
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .entry-title {
        font-size: var(--font-size-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-md);
    }
    
    .hero-banner {
        height: 300px;
    }
}

/* Front Page Styles */
.front-page section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-subtitle {
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 800px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    color: #ffffff;
}

.hero-text {
    max-width: 650px;
    padding-left: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* TILMELD DIG NU Button in hero section */
.hero-section .button-primary {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background-color: #D91E3A;
    border-color: #D91E3A;
    margin-top: 30px;
}

.hero-section .button-primary:hover {
    background-color: #c01832;
    border-color: #c01832;
}

.hero-section .button-primary svg {
    margin-left: 8px;
    width: 20px;
    height: 20px;
}

/* Quick Links Section */
.quick-links-section {
    margin-top: -80px;
    padding-top: 0;
    position: relative;
    z-index: 10;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.quick-link-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-link-icon {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.quick-link-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-xl);
}

.quick-link-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.quick-link-button {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast) ease;
}

.quick-link-button:hover {
    color: var(--color-accent);
}

/* Sports Section */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

/* Collapsed state - restricted height with fade effect */
.sports-grid.collapsed {
    max-height: var(--visible-sports-height, calc(2.33 * 200px + 2 * 20px)); /* Default: Show 2 rows + 1/3 of 3rd row */
    overflow: hidden;
    position: relative;
}

.sports-grid:not(.collapsed) {
    max-height: 2000px; /* Large enough to contain all items */
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Adjust collapsed state for 2 columns */
    .sports-grid.collapsed {
        max-height: var(--visible-sports-mobile-height, calc(3 * 200px + 2 * 15px)); /* Default: Show 3 rows */
    }
}

@media (max-width: 480px) {
    .sports-grid {
        gap: 12px;
    }
}

.sports-grid.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Don't show the gradient if there aren't enough items to collapse */
.sports-grid:not(.collapsed)::after {
    opacity: 0;
    visibility: hidden;
}

/* Show more button */
.show-more-container {
    text-align: center;
    margin: 20px 0 30px;
}

.show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--button-primary-bg);
    color: #FFFFFF !important;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-button:hover {
    background-color: var(--button-primary-bg-hover);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.show-more-button .icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: inherit;
}

.show-more-button .button-text {
    color: inherit;
}

.show-more-button.expanded .icon {
    transform: rotate(180deg);
}

.sport-card {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.sport-link {
    display: block;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

.sport-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sport-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.sport-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Responsive adjustments for sport cards */
@media (max-width: 991px) {
    .sport-card {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .sport-card {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .sport-card {
        height: 160px;
    }
}

.sport-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px; /* Add right boundary to limit width */
    z-index: 3;
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    max-height: 2.4em; /* Approximately 2 lines of text */
    line-height: 1.2;
}

/* Add responsive font size adjustments */
@media (max-width: 991px) {
    .sport-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .sport-title {
        font-size: 15px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .sport-title {
        font-size: 14px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        -webkit-line-clamp: 2;
    }
}

.sport-link:hover .sport-image img {
    transform: scale(1.1);
}

.scroll-indicator {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 10px;
    display: none; /* Hide by default, show only on mobile */
}

/* Content Columns Layout */
.content-columns {
    display: flex;
    gap: 40px;
}

.sports-section {
    width: 65%;
}

.events-section {
    width: 35%;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .content-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .sports-section,
    .events-section {
        width: 100%;
    }
}

/* News and Events Section */
.news-events-section {
    background-color: var(--color-light-bg);
}

.news-events-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* News Column */
.news-column .section-header {
    text-align: left;
    margin-left: 0;
    margin-bottom: var(--spacing-md);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-link {
    display: flex;
    text-decoration: none;
    color: var(--color-text);
}

.news-image {
    width: 120px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: var(--spacing-sm);
    flex-grow: 1;
}

.news-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.news-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.news-excerpt {
    display: none;
}

.news-link:hover .read-more {
    color: var(--color-accent);
}

/* Events Column */
.events-column .section-header {
    text-align: left;
    margin-left: 0;
    margin-bottom: var(--spacing-md);
}

.events-calendar {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.month-events {
    margin-bottom: 30px;
}

.month-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.event-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0f0f0;
}

.event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-date {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    flex-shrink: 0;
}

.date-number {
    font-size: 16px;
    font-weight: bold;
}

.event-details {
    flex-grow: 1;
    padding-top: 2px;
}

.event-title {
    font-size: 16px;
    margin: 0;
    font-weight: normal;
    line-height: 1.4;
}

.view-all {
    margin-top: 20px;
    text-align: right;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
}

.view-all-link:hover {
    color: #b00510;
}

.view-all-link svg {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .events-calendar {
        padding: 15px;
    }
    
    .month-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .event-date {
        width: 36px;
        height: 36px;
    }
    
    .date-number {
        font-size: 14px;
    }
    
    .event-title {
        font-size: 14px;
    }
}

/* CTA Section */
.cta-section {
    background-color: var(--color-secondary);
    color: var(--color-text-on-dark);
    padding: var(--spacing-2xl) 0;
}

.membership-cta .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.cta-content {
    flex: 1;
}

.cta-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: none; /* Hidden on mobile by default */
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-section h2 {
    color: var(--color-text-on-dark);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Sponsors Section */
.sponsors-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
}

.sponsors-section .section-title {
    margin-bottom: var(--spacing-xl);
}

.sponsors-carousel {
    position: relative;
}

.sponsors-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 15px 0;
    transition: transform 0.5s ease; /* For smooth animation */
}

.sponsor-item {
    flex: 0 0 auto;
    min-width: 180px;
    height: 100px;
    background-color: var(--color-background);
    padding: 0; /* Remove padding to allow full width/height */
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    overflow: hidden; /* Ensure content stays within border radius */
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sponsor-item a {
    width: 100%;  
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    padding-left: 24px;
    padding-right: 24px;
    display: block;
}

.sponsor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire container */
    max-width: none; /* Override any max-width constraints */
    max-height: none; /* Override any max-height constraints */
}

.no-sponsors-message {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--color-text-light);
    font-style: italic;
}

/* Sponsors Navigation Controls */
.sponsors-controls {
    display: none; /* Hide all sponsor controls */
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
}

.sponsor-prev,
.sponsor-next {
    display: none; /* Hide navigation arrows */
    position: absolute;
    background-color: #666;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 0.7;
}

.sponsor-prev:hover,
.sponsor-next:hover {
    background-color: #444;
    opacity: 1;
}

.sponsors-auto-toggle {
    display: none; /* Hide play/pause buttons */
    position: absolute;
    bottom: -30px;
    right: 0;
    z-index: 10;
}

.sponsor-pause,
.sponsor-play {
    display: none; /* Hide play/pause buttons */
    background-color: #666;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 767px) {
    .sponsors-slider {
        gap: 15px;
    }
    
    .sponsor-item {
        min-width: 140px;
        height: 80px;
    }

}

/* Facebook Section */
.facebook-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.facebook-section .section-title {
    margin-bottom: 30px;
}

/* Social Media Follow Buttons */
.social-follow-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
    min-width: 160px;
}

.social-follow-button svg {
    margin-right: 10px;
    height: 20px;
    width: 20px;
}

.facebook-button {
    background-color: #1877F2; /* Facebook blue */
}

.facebook-button:hover {
    background-color: #0e5da3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.instagram-button {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Instagram gradient */
}

.instagram-button:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .social-follow-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-follow-button {
        width: 90%;
        max-width: 280px;
    }
}

.facebook-feed {
    position: relative;
}

.facebook-posts {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.facebook-posts::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.facebook-post {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
    min-width: 300px;
    background-color: var(--color-background);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.post-date {
    font-size: 14px;
    color: var(--color-text-light);
}

.post-content {
    padding: var(--spacing-md);
}

.post-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 15px;
}

.post-content a {
    color: var(--color-primary);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Facebook Feed Navigation Dots */
.facebook-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
}

.facebook-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: rgba(217, 30, 58, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.facebook-dot:hover {
    background-color: rgba(217, 30, 58, 0.4);
}

.facebook-dot.active {
    background-color: rgba(217, 30, 58, 0.8);
    width: 8px;
    border-radius: 1px;
}

/* Facebook Controls */
.facebook-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.facebook-prev,
.facebook-next {
    background-color: transparent;
    width: 16px;
    height: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
    padding: 0;
}

.facebook-prev:hover,
.facebook-next:hover {
    opacity: 0.6;
}

.facebook-prev svg,
.facebook-next svg {
    width: 12px;
    height: 12px;
    color: #D91E3A;
}

/* Media Queries */
@media (min-width: 768px) {
    /* .about-wrapper {
        flex-direction: row;
    } - Removed to avoid duplication with more detailed styling */
    
    .facebook-posts {
        overflow-x: visible;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .facebook-post {
        flex: 0 0 calc(100% - var(--spacing-md));
    }
    
    .sponsors-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About Section - "HVEM ER VI?" */
.about-section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    height: 300px; /* Fixed height on mobile */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
}

.about-content .section-title {
    margin-bottom: 20px;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-content .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.about-text {
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: var(--line-height-normal);
}

.about-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.about-text a:hover {
    text-decoration: underline;
}

.about-actions {
    margin-top: 20px;
}

/* Media Queries for About Section */
@media (min-width: 768px) {
    .about-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .about-wrapper {
        flex-direction: row;
        align-items: stretch;
        gap: 40px;
    }
    
    .about-image {
        width: 50%;
        height: auto;
        min-height: 400px;
        max-height: 500px; /* Limit the maximum height */
    }
    
    .about-content {
        width: 50%;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: var(--shadow-sm);
    }
}

@media (min-width: 1024px) {
    .about-wrapper {
        gap: 60px;
    }
    
    .about-content {
        padding: 40px;
    }
}

/* Responsive Top Bar */
@media (max-width: 767px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .top-bar-menu ul {
        gap: 15px;
        justify-content: center;
    }

    .top-bar-menu a {
        font-size: 10px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-bar-menu ul {
        gap: 12px;
    }

    .top-bar-menu a {
        font-size: 10px;
    }
}

/* Add responsive styles for hero section */
@media (max-width: 768px) {
    .hero-section {
        height: 600px;
    }

    .hero-text {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 500px;
    }

    .hero-text {
        padding: 0 15px;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 12px;
        text-align: center;
        gap: 0.1em;
    }

    .hero-description {
        font-size: 14px;
        text-align: center;
        max-width: 280px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-section .button-primary {
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 20px;
    }
}

/* Mobile Menu Overlay Styles */
body.no-scroll {
    overflow: hidden;
}

.main-navigation.toggled {
    position: relative;
    z-index: 1002;
}

/* Update the mobile menu to have a better appearance */
@media (max-width: 991px) {
    .main-navigation.toggled ul#primary-menu {
        display: flex !important;
        background-color: #ffffff;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        max-height: 70vh;
        overflow-y: auto;
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
    }
}

/* Mobile Menu Styles for Small Screens */
@media (max-width: 480px) {
    .menu-toggle {
        top: 10px;
        right: 10px;
    }
    
    .main-navigation.toggled ul#primary-menu {
        position: absolute;
        left: 0;
        width: 100%;
        top: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .site-branding {
        padding-right: 50px;
    }
}

/* Mobile social icons */
.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
}

.mobile-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-social-icons a svg {
    width: 20px;
    height: 20px;
    fill: white !important;
    color: white !important;
    stroke-width: 0;
}

.mobile-social-icons a svg path {
    fill: white !important;
}

.mobile-social-icons a:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* Ensure menu works on inner pages */
.page-template .menu-toggle,
.single .menu-toggle,
.archive .menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .page-template .menu-toggle,
    .single .menu-toggle,
    .archive .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1003;
    }
    
    .page-template .main-navigation,
    .single .main-navigation,
    .archive .main-navigation {
        position: relative;
    }
    
    /* Fix z-index for all pages */
    .site-header {
        position: relative;
        z-index: 1000;
    }
    
    /* Make sure mobile menu is properly positioned on all pages */
    body:not(.home) .main-navigation.toggled ul#primary-menu {
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        z-index: 1002;
    }
}

/* Specific fixes for sport page templates */
.page-template-page-sport .site-header,
.page-template-page-sport-basketball .site-header,
.page-template-page-sport-badminton .site-header {
    position: relative;
    z-index: 1000;
}

@media (max-width: 991px) {
    .page-template-page-sport .menu-toggle,
    .page-template-page-sport-basketball .menu-toggle,
    .page-template-page-sport-badminton .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1003;
    }
    
    /* Ensure content doesn't overlap with menu */
    .page-template-page-sport .site-content,
    .page-template-page-sport-basketball .site-content,
    .page-template-page-sport-badminton .site-content {
        position: relative;
        z-index: 998; /* Lower than header */
    }
}

/* Universal mobile view styles */
body.mobile-view .menu-toggle {
    display: block !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 9999 !important;
}

body.mobile-view.home .menu-toggle {
    display: block !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 9999 !important;
}

body.mobile-view .main-navigation.toggled ul#primary-menu {
    display: flex !important;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 1002;
    max-height: 70vh;
    overflow-y: auto;
    background-color: #ffffff;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Sponsors Page Styles */
.sponsors-page {
    padding-bottom: 60px;
}

/* Remove top padding/margin for sponsors page */
.sponsors-page #primary {
    padding-top: 0;
    margin-top: 0;
}

/* Hero Section */
.sponsors-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 0;
    margin-bottom: 60px;
}

.sponsors-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.sponsors-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sponsors-hero .hero-content {
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.sponsors-hero h1 {
    font-size: 3rem;
    margin-bottom: 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.sponsors-hero .hero-description {
    display: none;
}

/* Section Styles */
.sponsors-section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Sponsors Grid */
.sponsors-grid {
    display: grid;
    gap: 30px;
}

.main-sponsors-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.sport-sponsors-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.supporting-partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Sport Sponsor Section */
.sport-sponsor-section {
    margin-bottom: 40px;
}

.sport-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Sponsor Cards */
.sponsor-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sponsor-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sponsor-logo {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.main-sponsor-card .sponsor-logo {
    height: 200px;
}

.sport-sponsor-card .sponsor-logo,
.supporting-partner-card .sponsor-logo {
    height: 160px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-content {
    padding: 20px;
}

.sponsor-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.sponsor-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

/* Become a Sponsor Section */
.become-sponsor {
    border-radius: 8px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
}

.become-sponsor-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-text-on-dark);
}

.become-sponsor-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-on-dark);
}

.become-sponsor-content .button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--color-text-on-dark);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.become-sponsor-content .button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
}

.sponsor-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-text-on-dark);
}

.sponsor-benefits ul {
    list-style-type: none;
    padding: 0;
}

.sponsor-benefits li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--color-text-on-dark);
}

.sponsor-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-text-on-dark);
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .sponsors-hero {
        height: 350px;
    }
    
    .sponsors-hero h1 {
        font-size: 2.5rem;
    }
    
    .become-sponsor {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .sponsors-hero {
        height: 300px;
    }
    
    .sponsors-hero h1 {
        font-size: 2rem;
    }
    
    .sponsors-hero .hero-description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .main-sponsors-grid,
    .sport-sponsors-grid,
    .supporting-partners-grid {
        grid-template-columns: 1fr;
    }
    
    .become-sponsor {
        padding: 30px 20px;
    }
}

/* About Page Styles */
.about-page {
    padding-bottom: 60px;
}

/* Remove top padding/margin for about page */
.about-page #primary {
    padding-top: 0;
    margin-top: 0;
}

.about-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 60px;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero .hero-content {
    max-width: 800px;
    color: #fff;
    text-align: center;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-section {
    margin-bottom: 60px;
}

.about-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-section .section-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-section .section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.about-section .section-description {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Mission & Vision Section */
.mission-vision-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.mission-column,
.vision-column {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.mission-icon,
.vision-icon {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.mission-column h3,
.vision-column h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.mission-text,
.vision-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* History Section */
.history-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.history-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.history-image:hover img {
    transform: scale(1.03);
}

.history-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    margin-bottom: 20px;
    color: var(--color-accent);
}

.value-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.value-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.member-photo {
    height: 280px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.member-position {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Achievements Section */
.achievements-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.achievements-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.achievements-list {
    flex: 1;
    min-width: 300px;
}

.achievements-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements-list li {
    position: relative;
    padding: 15px 0 15px 35px;
    font-size: 1.05rem;
    color: #444;
    border-bottom: 1px solid #eee;
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--color-accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* Call to Action Section */
.about-section.cta {
    background-color: var(--color-primary);
    padding: 60px 30px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-content .button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-content .button:hover {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .about-hero {
        height: 400px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-section .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .about-hero {
        height: 350px;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero .hero-description {
        font-size: 1rem;
    }
    
    .about-section {
        margin-bottom: 40px;
    }
    
    .about-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .mission-column,
    .vision-column {
        padding: 20px;
    }
    
    .history-content,
    .achievements-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .history-image {
        order: -1;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-content .button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* Remove bottom margin/padding for header on specific pages */
.page-template-page-sponsors .site-header,
.page-template-page-about .site-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure hero sections connect directly with header */
.page-template-page-sponsors .sponsors-hero,
.page-template-page-about .about-hero {
    margin-top: 0;
}

.sponsor-logo-container {
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    border: 1px solid var(--color-border);
}

/* Contact Page Styles */
.contact-page {
    padding-bottom: 60px;
}

/* Remove top padding/margin for contact page */
.contact-page #primary {
    padding-top: 0;
    margin-top: 0;
}

/* Contact Hero Section */
.contact-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 60px;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-hero .hero-content {
    max-width: 800px;
    color: #fff;
    text-align: center;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero .hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Content */
.contact-content {
    padding: 0 0 60px;
}

.contact-sections {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.contact-form-section {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.contact-info {
    flex: 0 0 350px;
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* Section Headers */
.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    max-width: 500px;
}

/* Contact Form */
.default-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.default-contact-form .form-row .form-group {
    flex: 1;
}

.default-contact-form .form-group {
    margin-bottom: 20px;
}

.default-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.default-contact-form input[type="text"],
.default-contact-form input[type="email"],
.default-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.default-contact-form input[type="text"]:focus,
.default-contact-form input[type="email"]:focus,
.default-contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 116, 161, 0.1);
    outline: none;
}

.default-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.default-contact-form .checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.default-contact-form .form-submit {
    margin-top: 30px;
}

.default-contact-form .button-primary {
    padding: 12px 30px;
    font-size: 16px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.default-contact-form .button-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.default-contact-form .form-note {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
}

.default-contact-form .required {
    color: var(--color-accent);
}

/* Contact Information */
.contact-info .section-header h2 {
    color: var(--color-primary);
}

.contact-info .section-header h2:after {
    background-color: var(--color-accent);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-text p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-light);
}

.contact-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

/* Map Section */
.map-section {
    margin-bottom: 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-hero {
        height: 350px;
    }
    
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-hero .hero-description {
        font-size: 1.1rem;
    }
    
    .contact-sections {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        height: 300px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero .hero-description {
        font-size: 1rem;
    }
    
    .contact-sections {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section,
    .contact-info {
        padding: 30px;
    }
    
    .default-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .map-container {
        height: 350px;
    }
}

/* Remove bottom margin/padding for header on contact page */
.page-template-page-contact .site-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure hero section connects directly with header */
.page-template-page-contact .contact-hero {
    margin-top: 0;
}

/* Form Validation and Success Message */
.default-contact-form .has-error input,
.default-contact-form .has-error textarea {
    border-color: var(--form-error-color);
}

.default-contact-form .error-message {
    color: var(--form-error-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.default-contact-form .form-error {
    background-color: rgba(229, 62, 62, 0.1);
    border-left: 3px solid var(--form-error-color);
    color: var(--form-error-color);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-success-message {
    text-align: center;
    padding: 40px 20px;
}

.form-success-message .success-icon {
    width: 60px;
    height: 60px;
    color: var(--form-success-color);
    margin-bottom: 20px;
}

.form-success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--form-success-color);
}

.form-success-message p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
    color: #666;
}

/* Responsive styles for contact page */
@media (max-width: 991px) {
    .contact-hero {
        height: 350px;
    }
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    .contact-hero .hero-description {
        font-size: 1.1rem;
    }
    .contact-sections {
        flex-direction: column;
        gap: 40px;
    }
    .contact-form-section, 
    .contact-info {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        height: 300px;
    }
    .contact-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .contact-hero .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    .contact-sections {
        gap: 30px;
    }
    .contact-form-section,
    .contact-info {
        padding: 20px;
    }
    .default-contact-form .form-row {
        flex-direction: column;
    }
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        height: 250px;
    }
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    .contact-hero .hero-description {
        font-size: 0.9rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .contact-icon {
        margin-bottom: 10px;
    }
    .social-links {
        text-align: center;
    }
}

/* Social Icons in Header */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--color-text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-primary);
}

/* Social Icons in Contact Page */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Social Icons in Header */
.top-bar .social-icons {
    display: flex;
    gap: 15px;
}

.top-bar .social-icons a {
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.top-bar .social-icons a:hover {
    color: #ffffff;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.top-bar .social-icons a svg {
    width: 16px;
    height: 16px;
}

/* Social Icons in Contact Page */
.contact-info .social-links {
    margin-top: 30px;
}

.contact-info .social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.contact-info .social-icons {
    display: flex;
    gap: 15px;
}

.contact-info .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info .social-icon:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-info .social-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

/* Additional responsive styles for contact page */
@media (max-width: 480px) {
    .contact-form-section, 
    .contact-info {
        padding: 15px;
    }
    
    .contact-details {
        gap: 15px;
    }
    
    .default-contact-form .button-primary {
        width: 100%;
    }
    
    .map-container {
        height: 250px;
    }
    
    .contact-info .social-icons {
        justify-content: center;
    }
}

/* Facebook Page Plugin Responsive Styling */
.facebook-feed iframe {
    max-width: 100% !important;
    width: 100% !important;
}

.facebook-feed .fb-page,
.facebook-feed .fb-page span,
.facebook-feed .fb-page span iframe[style] {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .facebook-feed {
        overflow-x: hidden;
        padding: 0 15px;
    }
}

/* Team Section on Contact Page */
.team-section {
    margin: 60px 0;
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.team-section .section-description {
    max-width: 800px;
    margin: 0 auto 30px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.member-image {
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image svg {
    width: 80px;
    height: 80px;
    color: #ccc;
}

.member-info {
    padding: 20px;
}

.member-name {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: var(--color-secondary);
}

.member-position {
    margin: 0 0 15px;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

.member-bio {
    margin: 0 0 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-email,
.member-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
}

.member-email:hover,
.member-phone:hover {
    color: var(--color-primary);
}

.member-email svg,
.member-phone svg {
    color: var(--color-primary);
}

/* Responsive styles for team section */
@media (max-width: 992px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 200px;
    }
}

/* Header Container Centering */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding {
    margin-right: auto;
}

.main-navigation {
    margin-left: auto;
}

/* Ensure login button stays within viewport */
.header-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.button-login {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .header-container {
        padding: 20px 30px;
    }
}

@media (max-width: 992px) {
    .header-buttons {
        margin-left: 10px;
    }
    
    .button-login, .button-register {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Page title spacing for Contact and Sponsors pages */
.sponsors-title-section,
.contact-title-section,
.registration-title-section {
    margin-top: 40px;
    padding-top: 20px;
}

.sponsors-title-section .page-title,
.contact-title-section .page-title,
.registration-title-section .page-title {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Facebook Page Plugin Responsive Styling */
.facebook-feed iframe {
    width: 100%;
    height: 500px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.facebook-feed .fb-page,
.facebook-feed .fb-page span,
.facebook-feed .fb-page span iframe[style] {
    width: 100% !important;
    max-width: 500px !important;
}

.facebook-feed {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
}

.facebook-iframe-container {
    width: 100%;
    max-width: 497px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.facebook-iframe-container iframe {
    width: 100%;
    height: 900px;
    display: block;
    margin: 0 auto;
    border: none;
}

.facebook-feed {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

/* 404 Error Page */
.error-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f9f9f9;
}

.error-container {
    max-width: 600px;
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.error-divider {
    height: 4px;
    width: 60px;
    background-color: var(--color-primary);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.error-404-page .page-title {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.error-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.error-actions .button {
    min-width: 200px;
}

.error-actions .icon {
    margin-right: 0.5rem;
    display: inline-flex;
}

.error-actions .icon svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .error-actions {
        flex-direction: row;
    }
    
    .error-container {
        padding: 4rem;
    }
}