/*
Theme Name: Minimal Clean
Description: A clean, minimal WordPress theme with mobile-friendly design and burger menu navigation.
Version: 1.0
Author: Custom Theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-weight: 400;
}
a {
    color: #c10000;
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preheader */
.preheader {
    background-color: #182742;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.preheader .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.top-nav-menu li {
    position: relative;
}

.top-nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

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

.top-nav-menu .current-menu-item a {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #355289;
    position: sticky;
    top: 41px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-transform: uppercase;
    font-size: 15px;
}

.nav-menu a:hover {
    color: #ffffff;
    opacity: 0.7;
}

.nav-menu .current-menu-item a {
    color: #ffffff;
    opacity: 0.9;
    font-weight: 600;
}

/* Menu item icons */
nav#site-navigation > ul > li.icon > a:before{
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    filter: invert(1);
    margin-right: 10px;
    vertical-align: -4px;
}
nav#site-navigation > ul > li.icon-fodbold a:before {
    background-image: url(img/football.svg);
}
nav#site-navigation > ul > li.icon-badminton a:before {
    background-image: url(img/badminton.svg);
    width: 22px;
    height: 22px;
    vertical-align: -6px;
}
nav#site-navigation > ul > li.icon-fitness a:before {
    background-image: url(img/fitness.png);
    width: 23px;
    height: 23px;
    vertical-align: -5px;
}
nav#site-navigation > ul > li.icon-loeb a:before {
    background-image: url(img/running.svg);
    width: 23px;
    height: 23px;
    vertical-align: -5px;
}
/* Preheader icons */
.top-nav-menu li.icon > a:before{
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    filter: invert(1);
    margin-right: 5px;
    vertical-align: -2px;
}
.top-nav-menu li.icon-fb a:before {
    background-image: url(img/facebook.png);
}
/* Sub Menu / Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    gap: 0;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
    margin: 0;
}

.nav-menu .sub-menu a {
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 400;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    text-transform: none;
}

.nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .sub-menu a:hover {
    background-color: #f8f9fa;
    color: #003498;
    padding-left: 2rem;
}

.nav-menu .sub-menu .current-menu-item a {
    color: #cd3002;
    background-color: #f8f9fa;
}

/* Parent menu item indicator */
.nav-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
}

.hamburger span {
    height: 2px;
    background-color: #ffffff;
    margin: 2px 0;
    transition: 0.3s;
}
/* logo */
.site-branding img {
    max-height: 200px;
    width: auto;
    transition: all 0.3s ease;
}
#masthead.scrolled {
    .site-branding img {
        max-height: 50px;
        width: auto;
    }
    .header-content {
        padding: 0.5rem 0;
    }
}


/* Featured Image Hero */
.featured-image-hero {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #61812b;
}

.featured-image-hero img {
    width: 50%;
    min-height: 60vh;
    object-fit: cover;
    object-position: center;
    height: auto;
}



/* Main Content */
main {
    min-height: 0;
    padding: 2rem 0;
}

main.has-featured-image {
    padding-top: 0;
}
.content-area {
    max-width: 800px;
    margin: 0 auto;
}
.home .content-area {
    max-width: none;
}
.home .featured-image-hero .container{
    padding: 0;
}
.home .featured-image-hero .post{
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    margin: 0;
    border: none;
    background-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 10vw;
    padding-right: 7vw;
}
.home .post-title {
    color: #fff!important;
    font-size: 3rem;
}
.home .post-content p:last-child {
    margin-bottom: 0;
}
.home .sponsor-section {
    border-top: 0;
    padding-top: 0;
}
/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #003498;
    font-weight: 700;
    line-height: 1.3;
}

.post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #cd3002;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta a {
    color: #cd3002;
    text-decoration: none;
}

.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.5rem 0 1rem;
    color: #003498;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #cd3002;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    color: #003498;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #003498;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #cd3002;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(205, 48, 2, 0.3);
}

.btn-secondary {
    background-color: #cd3002;
}

.btn-secondary:hover {
    background-color: #003498;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 52, 152, 0.3);
}

/* Footer */
footer {
    background-color: #355289;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
    color: #ecf0f1;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: #ffffff;
}
.wp-block-separator {
    border-color: #dedede;
    border-width: 1px;
    margin: 30px 0 10px;
}
.post-content table td {
    vertical-align: top;
}
.post-content table * {
    border: none !important;
}
.page-kontakt .post-content table * {
    padding: 0;
}
.page-bestyrelse article img{
    height: 210px;
    width: 160px !important;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}
.page-bestyrelse .post-content table td {
    padding-bottom: 20px;
}
article .post-content > ul {
    margin-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .top-nav-menu {
        gap: 1.5rem;
    }
    .top-nav-menu a {
        font-size: 12px;
    }
    .post a{
        word-wrap: break-word;
    }
    .post {
        margin-bottom: 0;
    }
    .nav-menu .sub-menu .current-menu-item a {
        background-color: rgba(255, 255, 255, 0.2);
    }
    .page-kontakt .post-content td {
        display: block;
        width: 100%;
        margin-bottom: 30px;
    }
    .page-bestyrelse .post-content td {
        width: 100%;
        display: block;
    }    
    .site-branding img {
        max-height: 50px;
        width: auto;
    }
    .mobile-hide {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #355289;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        padding: 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.25rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #ffffff !important;
    }
    
    .nav-menu li:last-child > a {
        border-bottom: none;
    }
    
    /* Mobile Sub Menu */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: rgba(0,0,0,0.1);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu .menu-item-has-children.mobile-submenu-open .sub-menu {
        max-height: 300px;
    }
    
    .nav-menu .sub-menu a {
        padding: 1rem 3.9rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #ffffff !important;
    }
    
    .nav-menu .sub-menu a:hover {
        padding-left: 3.5rem;
        background-color: rgba(0,0,0,0.1);
    }
    
    /* Mobile parent menu indicator */
    .nav-menu .menu-item-has-children > a::after {
        content: "▶";
        float: right;
        transition: transform 0.3s ease;
    }
    
    .nav-menu .menu-item-has-children.mobile-submenu-open > a::after {
        transform: rotate(90deg);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .featured-image-hero {
        flex-wrap: wrap;
    }
    
    .featured-image-hero img {
        height: 350px;
        order: 1;
        width: 100%;
        min-height: 0;
    }
    .home .featured-image-hero .container {
        padding: 0;
        order: 2;
    }
    .featured-image-overlay {
        padding: 1rem;
    }
    
    .featured-image-overlay h1 {
        font-size: 1.8rem;
    }
    .home .featured-image-hero .post {
        padding-top: 30px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .home .post-title {
        font-size: 2rem;
    }
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: #003498;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #003498;
    color: white;
    border-color: #003498;
}

.pagination .current {
    background-color: #cd3002;
    color: white;
    border-color: #cd3002;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    text-decoration: none;
    color: #333;
    flex: 1;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #003498;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-weight: 600;
}

/* Post Footer */
.post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.post-categories,
.post-tags {
    margin-bottom: 0.5rem;
}

.post-categories a,
.post-tags a {
    color: #cd3002;
    text-decoration: none;
}

.post-categories a:hover,
.post-tags a:hover {
    color: #003498;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem 0;
}

.no-posts h2 {
    color: #003498;
    margin-bottom: 1rem;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Animation for mobile menu */
.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-3px, 8px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(0, -5px);
}

/* ACF Trainer Information Styles */

.acf-trainer-info h2 {
    color: #355289;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.trainer-item {
    margin-bottom: 1.5rem;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.trainer-item:last-child {
    margin-bottom: 0;
}

.trainer-item h3 {
    color: #355289;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.trainer-image {
    text-align: center;
}

.trainer-photo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.trainer-details {
    line-height: 1.7;
    color: #333;
}

.trainer-details p {
    margin-bottom: 1rem;
}

.trainer-details p:last-child {
    margin-bottom: 0;
}

/* Responsive design for trainer info */
@media (max-width: 768px) {
    .acf-trainer-info {
        margin-top: 2rem;
        padding: 0;
    }
    .acf-trainer-info > div {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .trainer-item {
        padding: 1rem;
    }
    
    .trainer-photo {
        max-width: 150px;
    }
    
    .acf-trainer-info h2 {
        font-size: 1.5rem;
    }
    
    .trainer-item h3 {
        font-size: 1.2rem;
    }
}

/* Sponsor Section Styles */
.sponsor-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 3rem 0;
    margin: 0;
}

.sponsor-content {
    text-align: center;
}

.sponsor-content h3 {
    color: #355289;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.sponsor-logos img {
    max-height: 80px;
    width: auto;
    transition: filter 0.3s ease;
    opacity: 0.7;
}

.sponsor-logos img:hover {
    opacity: 1;
}

.sponsor-logos a {
    display: block;
    transition: transform 0.3s ease;
}

.sponsor-logos a:hover {
    transform: scale(1.05);
}

/* Responsive design for sponsor section */
@media (max-width: 768px) {
    .sponsor-section {
        padding: 2rem 0;
    }
    
    .sponsor-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .sponsor-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .sponsor-logos img {
        max-height: 60px;
    }
}