:root {
    --primary-red: #DD0000;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F8F8F8;
    --bg-dark: #333333;
    --footer-bg: #000000;
    --max-width: 1200px;
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Header */
.utility-header {
    background-color: var(--bg-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.utility-header .social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.utility-header a:hover {
    color: var(--primary-red);
}

/* Main Header */
.main-header {
    background-color: var(--primary-red);
    color: white;
    padding: 1.5rem 0;
}

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

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.logo-text .highlight {
    font-weight: 400;
}

.brand-logo-img {
    max-height: 50px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.wayfarers-text {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Navigation */
.main-nav {
    background-color: var(--bg-light);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-links a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 1rem 0;
}

/* Hero Section */
.hero-slider {
    background-color: #eee;
    min-height: 500px;
    /* Increased min-height and removed fixed height */
    display: flex;
    align-items: center;
    position: relative;
    /* Modern subtle geometric pattern */
    background-color: #f0f0f0;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    border-bottom: 4px solid var(--primary-red);
    padding: 2rem 0;
    /* Add padding to prevent cut-off on resize */
}

.slide-content {
    background: rgba(255, 255, 255, 0.95);
    /* Increased opacity for readability */
    padding: 3rem;
    /* More breathing room */
    max-width: 800px;
    /* Wider container for text */
    margin: 0 auto;
    /* Center alignment */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.hero-slider h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #b30000;
}

/* Content Sections */
.section-content {
    padding: 4rem 0;
}

.news-item h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: #888;
    padding: 2rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 1.5rem;
    color: #888;
}

.footer-links a:hover {
    color: white;
}

.to-top {
    color: white;
    background: var(--primary-red);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 0 1rem 1rem;
    }

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

    .nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid #eee;
    }

    .main-footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.1);
}

.contact-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.contact-info h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links-large a {
    color: var(--text-dark);
}

.social-links-large a:hover {
    color: var(--primary-red);
}

.content-block {
    max-width: 800px;
}

.content-block h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.content-block ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

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

/* Content Links Styling */
.content-block a {
    color: var(--primary-red);
    text-decoration: underline;
    position: relative;
}

.content-block a:hover::after {
    content: attr(href);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

.image-gallery figure {
    margin: 0;
}