/*
Theme Name: Edelweiss Gaishofen
Theme URI: https://edelweiss-gaishofen.de
Description: A configurable WordPress theme for shooting clubs. Originally converted from Pelican theme for Schützenverein Edelweiß Gaishofen.
Version: 1.1.1
Author: Thomas Stieglmaier
Author URI: https://stieglmaier.me
Text Domain: edelweiss-gaishofen
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: sports, club, shooting, german, bootstrap, gallery, one-page
*/

/* Base Styles */
body {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    color: #868F9B;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 20px;
    color: #10161A;
}

h1 {
    font-size: 54px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 21px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

/* SVG Icons */
p > svg, a > svg, li > svg, button > svg {
   height: 16px;
   width: 16px;
   fill: currentColor;
}

button.main-btn > svg {
    fill: white;
    height: 14px;
    width: 14px;
}

/* Links */
a {
    color: #6195FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #4A7FE6;
    text-decoration: none;
}

/* Buttons */
.main-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 5px 0px;
    background: #6195FF;
    color: #FFF;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-btn:hover {
    background: #4A7FE6;
    color: #FFF;
}

.white-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 5px 0px;
    background: transparent;
    color: #FFF;
    border: 2px solid #FFF;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.white-btn:hover {
    background: #FFF;
    color: #10161A;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.md-padding {
    padding: 120px 0;
}

.sm-padding {
    padding: 60px 0;
}

.s-padding {
    padding: 30px 0;
}

.st-padding {
    padding: 15px 0;
}

.bg-grey {
    background: #FAFBFC;
}

.bg-dark {
    background: #10161A;
}

/* Text styles */
.text-center {
    text-align: center;
}

.white-text {
    color: #FFF;
}

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

.section-header .title {
    position: relative;
    margin-bottom: 20px;
}

.section-header .title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 50px;
    background: #6195FF;
}

/* Header & Navigation */
header {
    position: relative;
}

#nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 0;
    transition: all 0.3s ease;
}

#nav.fixed-nav {
    position: fixed;
    background: #FFF;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

#nav.fixed-nav .main-nav a {
    color: #10161A;
}

.navbar-brand svg {
    height: 50px;
    width: auto;
    fill: #FFF;
}

.navbar-brand {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

#nav.fixed-nav .navbar-brand svg {
    fill: #10161A;
}

/* Grey navigation for static pages */
#nav.grey {
    background: #FFF;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
    position: relative;
}

#nav.grey .main-nav a {
    color: #10161A;
}

#nav.grey .navbar-brand svg {
    fill: #10161A;
}

#nav.grey .navbar-brand .logo,
#nav.fixed-nav .navbar-brand .logo {
    /* PNG logo already black, no need for color changes */
}

#nav.grey .nav-collapse span,
#nav.grey .nav-collapse span:before,
#nav.grey .nav-collapse span:after {
    background: #10161A;
}

/* Ensure grey navbar stays properly styled when it becomes fixed */
#nav.grey.fixed-nav {
    background: #FFF;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    float: right;
}

.main-nav li {
    display: inline-block;
    margin-left: 30px;
}

.main-nav a {
    display: block;
    padding: 30px 0;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #6195FF;
}

/* Home section */
#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Ensure blog pages can scroll properly */
#blog {
    min-height: auto;
    overflow: visible;
}

/* Fix for body overflow on blog pages */
body.blog, body.archive, body.single {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

/* Ensure html can scroll on blog pages */
html {
    height: auto;
    overflow-y: auto;
}

body.blog html, body.archive html, body.single html {
    height: auto;
    overflow-y: auto;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 22, 26, 0.7);
    z-index: 2;
}

.home-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 10;
}

#nav {
    z-index: 999;
}

.home-content {
    text-align: center;
    color: #FFF;
}

.home-content svg {
    fill: #FFF;
    width: 80vw;
    max-width: 400px;
    text-align:center;
    height:auto;
}

/* Statistics section */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 22, 26, 0.7);
    z-index: 2;
}

.stats-section .container {
    position: relative;
    z-index: 10;
}

/* Numbers section */
.number {
    text-align: center;
    margin-bottom: 40px;
}

.number svg {
    height: 50px;
    width: 50px;
    fill: #6195FF;
    margin-bottom: 20px;
}

/* Image containers */
.image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(97, 149, 255, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.image-container:hover .overlay {
    opacity: 1;
}

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

.image-container-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFF;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-container:hover .image-container-content {
    opacity: 1;
}

.image-container-content span {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.image-container-content h3 {
    color: #FFF;
    margin-bottom: 15px;
    font-size: 18px;
}

.image-container-link a {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #FFF;
    border-radius: 50%;
    color: #6195FF;
}

.image-container-link svg {
    height: 20px;
    width: 20px;
}

/* Text containers */
.text-container {
    text-align: center;
    margin-bottom: 40px;
}

/* Team Member Cards */
.team-member-card {
    margin-bottom: 40px;
}

.team-image-container {
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    position: relative;
}

.team-image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.team-member-card:hover .team-image-container img {
    transform: scale(1.05);
}

.team-member-info {
    text-align: center;
    padding: 15px 20px 20px;
    background: #fff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.team-member-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

.team-member-info h4 a {
    color: #10161A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-member-info h4 a:hover {
    color: #6195FF;
}

.team-position {
    margin: 0 0 10px 0;
    color: #6195FF;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.team-results {
    margin: 0;
}

.team-results-link {
    color: #6195FF;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.team-results-link:hover {
    color: #4A7FE6;
    text-decoration: underline;
}

.text-container svg {
    height: 50px;
    width: 50px;
    fill: #6195FF;
    margin-bottom: 20px;
}

.text-container h3 {
    margin-bottom: 15px;
}

/* Blog styles */
.blog-box {
    margin-bottom: 60px;
}

.blog {
    background: #FFF;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-read-more {
    margin-top: 20px;
    text-align: left;
}

.blog-read-more .main-btn {
    display: inline-block;
}

.blog-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.blog-meta li {
    display: inline-block;
    margin-right: 15px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.blog-meta svg {
    margin-right: 5px;
}

.blog-tags {
    padding: 20px 30px;
    border-top: 1px solid #EEEEEE;
}

.blog-tags h5 {
    display: inline-block;
    margin: 0 15px 0 0;
}

.blog-tags a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background: #FAFBFC;
    color: #868F9B;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.blog-tags a:hover {
    background: #6195FF;
    color: #FFF;
}

.blog-tags svg {
    margin-right: 5px;
}

/* Post Navigation Styling */
.post-navigation {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: #FAFBFC;
    border-radius: 5px;
    text-decoration: none;
    color: #10161A;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #6195FF;
    color: #FFF;
    border-left-color: #4A7FE6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(97, 149, 255, 0.2);
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    color: #6195FF;
    margin-bottom: 5px;
}

.nav-previous a:hover .nav-subtitle,
.nav-next a:hover .nav-subtitle {
    color: #FFF;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .nav-links {
        flex-direction: column;
    }

    .nav-previous,
    .nav-next {
        max-width: 100%;
        width: 100%;
    }

    .nav-previous,
    .nav-next {
        text-align: center;
    }
}

/* FooGallery Integration */
.foogallery {
    margin: 30px 0;
}

.foogallery .foogallery-container {
    text-align: center;
}

.foogallery .foogallery-item {
    margin: 5px;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.foogallery .foogallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.foogallery .foogallery-item img {
    transition: all 0.3s ease;
    border-radius: 5px;
}

.foogallery .foogallery-item:hover img {
    transform: scale(1.05);
}

/* FooGallery Responsive Adjustments */
@media (max-width: 767px) {
    .foogallery {
        margin: 20px 0;
    }

    .foogallery .foogallery-item {
        margin: 2px;
    }
}

/* Footer */
#footer {
    background: #10161A;
}

.footer-logo {
    text-align: center;
}

.footer-logo svg {
    height: 80px;
    width: auto;
    fill: #FFF;
}

.footer-menu {
    text-align: center;
    margin-top: 30px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.footer-nav li {
    display: inline-block;
    margin: 0 15px;
}

.footer-nav a {
    color: #868F9B;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #FFF;
    text-decoration: none;
}

@media (max-width: 767px) {
    .footer-nav li {
        display: block;
        margin: 10px 0;
    }

    .footer-menu {
        margin-top: 20px;
    }
}

/* Responsive Navigation */
.nav-collapse {
    display: none;
    position: relative;
    float: right;
    width: 40px;
    height: 40px;
    margin-top: 5px;
    margin-right: 5px;
    cursor: pointer;
    z-index: 99999;
    pointer-events: auto;
}

.nav-collapse span {
    display: block;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
}

.nav-collapse span:before,
.nav-collapse span:after {
    content: "";
    display: block;
}

.nav-collapse span,
.nav-collapse span:before,
.nav-collapse span:after {
    height: 4px;
    background: #10161A;
    transition: 0.2s all;
}

.nav-collapse span:before {
    transform: translate(0%, 10px);
}

.nav-collapse span:after {
    transform: translate(0%, -14px);
}

#nav.open .nav-collapse span {
    background: transparent;
}

#nav.open .nav-collapse span:before {
    transform: translateY(0px) rotate(-135deg);
    background: #10161A;
}

#nav.open .nav-collapse span:after {
    transform: translateY(-4px) rotate(135deg);
    background: #10161A;
}

/* Media Queries */
@media (max-width: 767px) {
    .nav-collapse {
        display: block !important;
        float: right;
        margin-top: 12px;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        right: 0;
        height: calc(100vh - 60px);
        width: 250px;
        transform: translateX(100%);
        margin: 0;
        overflow-y: auto;
        background: #1C1D21;
        transition: transform 0.3s ease;
        z-index: 9999;
        padding: 0;
        float: none;
        list-style: none;
    }

    #nav.open .main-nav {
        transform: translateX(0%);
    }

    .main-nav li {
        display: block;
        margin: 0;
        border-top: 1px solid rgba(250, 250, 250, 0.1);
    }

    .main-nav li:first-child {
        border-top: none;
    }

    .main-nav a {
        display: block;
        color: #FFF;
        padding: 18px 25px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }

    .main-nav > li.active > a,
    .main-nav li a:hover,
    .main-nav li a:focus {
        background-color: #6195FF;
        color: #FFF;
        border-left-color: #FFF;
        transform: translateX(5px);
    }
}

/* Training Section Specific Styles */
.training-page-content {
    /* Ensure page content fits within the training section design */
}

.training-page-content .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.training-page-content .wp-block-column {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 30px;
}

.training-page-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.training-page-content .has-text-align-center {
    text-align: center;
}

.training-page-error {
    padding: 60px 0;
    color: #868F9B;
}

.training-additional-info {
    margin-top: 20px;
}

.training-additional-info p:last-child {
    margin-bottom: 0;
}

/* Training Times Styling */
#training .text-container ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

#training .text-container ul li {
    padding: 8px 0;
    border-bottom: 1px solid #EEEEEE;
    font-size: 16px;
}

#training .text-container ul li:last-child {
    border-bottom: none;
}

#training .text-container ul li b {
    color: #6195FF;
    min-width: 100px;
    display: inline-block;
}

/* Training Page Template Styles */
.training-template-info {
    background: #f8f9fa;
    border-left: 4px solid #6195FF;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.training-template-info h4 {
    margin-top: 0;
    color: #6195FF;
}

.training-times-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.training-times-box .icon {
    text-align: center;
    margin-bottom: 20px;
}

.training-times-box .icon svg {
    height: 50px;
    width: 50px;
    fill: #6195FF;
}

.training-times-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-times-list li {
    padding: 10px 0;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.training-day {
    font-weight: bold;
    color: #6195FF;
}

.training-time {
    color: #868F9B;
}

@media (max-width: 767px) {
    .home-content svg {
        height: 150px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .md-padding {
        padding: 60px 0;
    }

    .training-page-content .wp-block-columns {
        flex-direction: column;
    }

    .training-page-content .wp-block-column {
        flex: none;
        width: 100%;
    }

    #training .text-container ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-times-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-time {
        margin-top: 5px;
    }

    /* Team member cards responsive */
    .team-image-container img {
        height: 250px;
    }

    .team-member-info {
        padding: 12px 15px 15px;
    }

    .team-member-info h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .team-position {
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* Fix parallax background on mobile */
    .stats-bg-img {
        background-attachment: scroll;
    }
}