:root {
    --primary-color: #DC143C;
    /* Polish Red */
    --primary-hover: #b01030;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-alt: #F9FAFB;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --black: #000000;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 160px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, #DC143C 0%, #A00C28 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-outline-dark:hover {
    background-color: var(--text-color);
    color: var(--white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 150px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/Poland_Splash.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    padding: 0;
    padding-top: 80px;
    /* Visual offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-light);
}

/* Team Section */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.team-feature {
    display: flex;
    align-items: stretch;
    gap: 60px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.team-feature-image {
    flex: 0 0 40%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.team-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Fix for heads getting cut off */
    transition: transform 0.5s ease;
}

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

.team-feature-content {
    flex: 1;
    padding: 40px 40px 40px 0;
}

.team-feature:nth-child(even) .team-feature-content {
    padding: 40px 0 40px 40px;
}

.team-feature h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.team-role {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.team-bio p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .team-feature {
        flex-direction: column !important;
        gap: 0;
    }

    .team-feature-image {
        flex: none;
        width: 100%;
        height: 300px;
    }

    .team-feature-content {
        padding: 30px !important;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

.pickle-solutions {
    background: linear-gradient(to right, #f9f9f9, #ffffff);
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Events Section */
.events-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.upcoming-event {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.event-poster {
    height: 300px;
    background-color: #ddd;
    position: relative;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-details {
    padding: 30px;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 180px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Market News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.news-image {
    height: 220px;
    background-color: #eee;
}

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

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Useful Links */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-card {
    display: block;
    /* Since it's now an anchor tag */
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    /* Remove underline from card */
    height: 100%;
    /* Ensure equal height */
}

.link-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    /* Lift effect */
}

.link-card h3 {
    color: var(--black);
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

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

.link-card:hover h3 {
    color: var(--primary-color);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 20px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--black);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Footer */
.footer-top {
    background-color: #f3f4f6;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.operator-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-light);
}

footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Membership Page */
.membership-tiers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.tier-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    width: 320px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

.tier-card.premium {
    border-top: 5px solid var(--primary-color);
    position: relative;
}

.tier-card.premium::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--black);
}

.tier-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.tier-features {
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.tier-features li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.tier-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Blog Page */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-widget {
    margin-bottom: 50px;
}

.category-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
}

.category-list li a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .events-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Form Error Messages */
.error-message {
    display: block;
    color: #DC143C;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-group {
    position: relative;
}

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Button Loading State */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}