@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar {
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: auto;
    display: block;
}

.brand-link span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.brand-link span.highlight {
    color: #ffff00;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffff00 !important;
}

.nav-links li a:focus,
.mobile-nav-links li a:focus {
    color: #ffff00 !important;
    outline: none;
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    z-index: 1500;
    padding: 2rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    color: white;
}

#mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.mobile-nav-links li a:hover {
    color: #ffff00 !important;
}

.mobile-menu-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    background-image: url('https://cdn.pxcsfnbgmn.se/oecesjdrav/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 60px; /* ensure hero is below the navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .tagline {
    font-size: 1.5rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: #ffff00;
}

main {
    margin-top: 60px;
}

/* Features Section */
#features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #ffff00;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Gym Section */
.gym-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.gym-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gym-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.gym-feature {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.gym-feature.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-bottom: 2rem;
}

.info-card h3,
.info-card p {
    padding: 0 2rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1rem;
}

/* Notice */
.important-notice {
    background: var(--secondary-color);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.facility-features {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

/* Pricing Section */
.pricing-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    scroll-margin-top: 100px;
}

.pricing-section h2 {
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #2c2c2c;
    margin: 0 auto;
    min-width: 800px;
}

.pricing-table thead th {
    background: #2c2c2c;
    color: white;
    padding: 1.5rem 1rem;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    border-bottom: 2px solid #000;
    vertical-align: middle;
}

.pricing-table thead th:first-child {
    width: 35%;
}

.pricing-table thead th:not(:first-child) {
    width: 21.67%;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #000;
}

.pricing-table tbody td {
    background: #2c2c2c;
    color: #ffff00;
    padding: 1.2rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    vertical-align: middle;
}

.pricing-table tbody td.pricing-label {
    text-align: left;
    padding-left: 1.5rem;
    font-weight: bold;
}

.pricing-table tbody td:empty {
    background: #2c2c2c;
}

.small-text {
    font-size: 0.7rem;
    display: block;
    margin-top: 0.25rem;
    color: #ffff00;
}

.pricing-cta {
    margin-top: 3rem;
    text-align: center;
}

/* Wellness Benefits Section */
.wellness-benefits {
    background: #2c2c2c;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem auto 0;
    max-width: 800px;
    text-align: center;
}

.wellness-benefits h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.wellness-benefits p {
    color: #ffff00;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.wellness-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.wellness-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.wellness-logo:hover {
    transform: scale(1.1);
}

/* Mobile pricing cards - hidden on desktop */
.pricing-mobile-cards {
    display: none;
}

.pricing-mobile-card {
    background: #2c2c2c;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mobile-card-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.mobile-price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #000;
    gap: 1rem;
}

.mobile-price-item:last-child {
    border-bottom: none;
}

.mobile-price-label {
    color: #ffff00;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    text-align: left;
    line-height: 1.4;
}

.mobile-price-value {
    color: #ffff00;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Legacy pricing styles for backward compatibility */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.benefits {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.benefits li {
    margin: 1rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.benefits li::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* History Section */
.history-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.history-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.history-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.timeline-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.timeline-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

.social-link:hover .social-icon {
    fill: var(--secondary-color);
}

.opening-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.opening-hours h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-width: 300px;
}

.hours-grid p {
    font-size: 0.9rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.hours-grid h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-message {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Dropdown (if needed) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: white;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .gym-feature {
        flex-direction: column;
    }
    .gym-feature.reverse {
        flex-direction: column;
    }

    .info-cards {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-section {
        padding: 2rem 1rem;
    }
    
    .pricing-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Hide table on mobile and show card layout instead */
    .pricing-table-container {
        display: none;
    }
    
    /* Show mobile pricing cards */
    .pricing-mobile-cards {
        display: block;
    }
    
    .pricing-mobile-card {
        margin-bottom: 1.5rem;
    }
    
    .mobile-card-title {
        font-size: 1.1rem;
    }
    
    .mobile-price-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .mobile-price-value {
        font-size: 0.9rem;
    }
    
    .pricing-cta {
        margin-top: 2rem;
    }
    
    /* Wellness benefits mobile styles */
    .wellness-benefits {
        padding: 1.5rem;
        margin: 2rem 0 0;
    }
    
    .wellness-benefits h3 {
        font-size: 1.2rem;
    }
    
    .wellness-benefits p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .wellness-logos {
        gap: 2rem;
    }
    
    .wellness-logo {
        height: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-section .container {
        padding: 0 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }

    .contact-info {
        width: 100%;
        padding: 1rem;
    }

    .welcome-text {
        font-size: 0.9rem;
        white-space: normal;
    }

    .hours-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }

    .hours-grid p {
        white-space: normal;
    }
}

/* Timeline Item Styles */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.timeline-header:hover {
    background-color: #e5e5e5;
}

.timeline-toggle {
    font-style: normal;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.timeline-content {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    padding: 1rem;
    overflow: hidden;
}

.timeline-content.collapsed {
    display: none;
}

.timeline-header.active .timeline-toggle {
    transform: rotate(45deg);
}

/* Social Icons in Footer */
.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links-footer .social-icon {
    width: 24px;
    height: 24px;
    fill: #ffff00;
    transition: fill 0.3s ease;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-links-footer a:hover .social-icon {
    fill: #ffff00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links-footer {
        justify-content: center;
    }
}

.brand-logo {
    width: 50px; /* Adjust the size as needed */
    height: auto;
    display: block;
}

.footer-branding {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

.social-section {
    text-align: center;
}

.penbyte-link {
    color: white;
    text-decoration: none;
}

.penbyte-link:hover {
    text-decoration: underline;
}

/* Contact Details Links */
.contact-item a {
    text-decoration: none;
    color: var(--primary-color); /* Match the primary color */
}

.contact-item a:hover {
    color: var(--secondary-color); /* Change color on hover */
}

/* Ensure phone links don't have default mobile styling */
a[href^="tel:"] {
    color: inherit; /* This will inherit the color from its parent */
    text-decoration: none; /* Remove underline */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 0, 0.1);
    color: #008000;
}

.form-status.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

/* For the contact form submit button */
.contact-form button[type="submit"] {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    width: fit-content;
}

.contact-form button[type="submit"]:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.gym-image-container {
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
}

.gym-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-media {
        grid-template-columns: 1fr;
    }
}

/* Update contact form styles for mobile */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1rem;
        width: 100%;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.5rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .contact-form button {
        width: 100%;
        margin-top: 1rem;
        padding: 0.75rem;
    }

    /* Adjust map container height */
    .map-container iframe {
        height: 300px; /* Shorter map on mobile */
    }

    /* Ensure no horizontal scroll */
    .contact-section {
        overflow-x: hidden;
        padding: 2rem 1rem;
    }
}

.timeline-content.collapsed {
    display: none;
}

.timeline-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-toggle {
    font-size: 1.5rem;
    font-weight: bold;
}

/* News Section */
.news-section {
    padding: 4rem 2rem;
    background: white;
}

.news-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;  /* Match container max-width */
    margin: 0 auto;     /* Center the grid */
}

.news-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    aspect-ratio: 16 / 9;  /* Maintain consistent aspect ratio */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 800px;      /* Limit maximum image width */
    margin: 0 auto;        /* Center the image */
    display: block;
}

.news-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.news-link:hover {
    transform: translateX(5px);
}

/* Featured news item */
.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.news-card.featured .news-image {
    height: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .news-card.featured {
        grid-template-columns: 1fr;
    }

    .news-card.featured .news-image {
        height: 200px;
    }

    .news-section {
        padding: 2rem 1rem;
    }
}

/* Contact section container styles */
.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 0;  /* Remove any section padding */
    }

    .contact-section .container {
        padding: 1rem;  /* Add consistent padding */
        width: 100%;   /* Ensure full width */
    }

    .contact-grid {
        grid-template-columns: 1fr;  /* Stack on mobile */
        gap: 1rem;     /* Reduce gap on mobile */
        width: 100%;   /* Ensure full width */
        margin: 0;     /* Remove any margins */
    }

    .contact-info {
        width: 100%;
        margin: 0;     /* Remove any margins */
        box-sizing: border-box;  /* Include padding in width calculation */
    }
}

/* Featured news adjustments */
.news-card.featured .news-image img {
    max-width: 1200px;     /* Allow featured images to be larger */
}

@media (max-width: 768px) {
    .news-image img {
        max-width: 100%;   /* Full width on mobile */
    }
}

/* Add scroll-margin-top to all sections */
#nyheter,
#gymmet,
#prislista,
#foreningen,
#kontakt {
    scroll-margin-top: 100px;  /* Matches the header height plus some padding */
}

/* Ensure sections have proper IDs in the HTML */
.news-section,
.gym-section,
.pricing-section,
.history-section,
.contact-section {
    scroll-margin-top: 100px;  /* Same value for consistency */
}