/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #C94D26;
    --primary-teal: #1B8B9E;
    --primary-green: #2D8B47;
    --cream: #F5EFE0;
    --sky-blue: #89D4E8;
    --dark-gray: #333;
    --light-gray: #f9f9f9;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('wintergolfball.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    min-height: 600px;   /* kan bli høyere ved behov */
}


.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

/* Centered logo above hero text */
.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 4px 25px rgb(255, 255, 255));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Winter edition GIF container:
   - shows full GIF
   - you can resize by changing width here */
.hero .winter-edition {
    display: inline-block;
    vertical-align: middle;
    width: 24rem;          /* OK på desktop */
    max-width: 80vw;       /* aldri bredere enn skjermen */
}


.hero .winter-edition::after {
    content: none;    /* no snowflake */
}

.hero .winter-edition .winter-gif {
    display: block;
    width: 100%;
    height: auto;     /* keep full GIF visible */
}

/* Hero subtitle */
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 77, 38, 0.3);
}

.btn-hero:hover {
    background: #a83f1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 77, 38, 0.4);
}

/* News / Tournament Detail Section */
.news-section {
    padding: 80px 0;
    background: var(--cream);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 1rem auto;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.5rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.news-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--cream);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 80px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
}

.instagram-cta {
    background: var(--primary-teal);
    padding: 50px 0;
    text-align: center;
}

.instagram-cta-link {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: 0.25s ease;
}

.instagram-cta-link:hover {
    color: var(--primary-orange);
    transform: scale(1.04);
}

.ig-logo {
    width: 50px;
    height: 50px;
    fill: white;
    margin-right: 10px;
    vertical-align: middle;
    transition: fill 0.25s ease;
}

.instagram-cta-link:hover .ig-logo {
    fill: var(--primary-orange);
}

/* Premier logos container */
.premier-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 1.5rem 0 2rem 0;
    width: 100%;
}

/* Left sponsor - 70% of original size */
.premier-logo-left {
    width: 31.5%;
    max-width: 196px;
    height: auto;
}

/* OnlineGolf logo – single big sponsor */
.premier-logo-left2 {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Right sponsor - 70% of original size and round */
.premier-logo-right {
    width: 28%;
    max-width: 140px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Centered golf divider */
.section-divider {
    text-align: center;
    font-size: 2rem;
    margin: 1.5rem 0;
    opacity: 0.8;
}

/* --- MOBILE TWEAKS FOR SPONSOR LOGOS --- */
@media (max-width: 600px) {
    .premier-logos {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    /* Extra-strong rule so other CSS can't override it */
    .news-detail .premier-logos img.premier-logo-left2 {
        width: 100% !important;
        max-width: 220px;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }
}
