/* ===================================
   WHAT'S HAPPENING: WINDSOR
   Website Styles
   =================================== */

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

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background: #1C437D;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* dropdown for the About nav */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a2e5a; /* match your nav color */
    min-width: 160px;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
}

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


/* Hero Slideshow */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 40px;
    color: white;
}

.hero-overlay h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 20px;
}

/* Weather Widget */
.weather-widget {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 200px;
}

.weather-widget h4 {
    color: #1C437D;
    margin-bottom: 10px;
    font-size: 14px;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-temp {
    font-size: 36px;
    font-weight: bold;
    color: #1C437D;
}

.weather-condition {
    font-size: 14px;
    color: #666;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 60px 0;
}

.content-section.gray {
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #1C437D;
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 18px;
}

/* Intro Text */
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.event-content {
    padding: 20px;
}

.event-content h3 {
    color: #1C437D;
    font-size: 20px;
    margin-bottom: 15px;
}

.event-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.event-meta strong {
    color: #1C437D;
}

.event-summary {
    color: #333;
    margin: 15px 0;
    line-height: 1.6;
}

/* ul - no bullets - indented */

.container ul {
    padding-left: 20px;
    list-style-position: inside;

}

/* Buttons */
.button {
    display: inline-block;
    background: #1C437D;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.button:hover {
    background: #153564;
}

.button-secondary {
    background: white;
    color: #1C437D;
    border: 2px solid #1C437D;
}

.button-secondary:hover {
    background: #1C437D;
    color: white;
}

/* CTA Box */
.cta-box {
    background: #1C437D;
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
}

.cta-box h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-box .button {
    background: white;
    color: #1C437D;
}

.cta-box .button:hover {
    background: #f4f4f4;
}

/* Newsletter Grid */
.editions-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.edition-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.edition-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.edition-content {
    padding: 20px;
}

.edition-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.edition-content h3 {
    color: #1C437D;
    font-size: 20px;
    margin-bottom: 15px;
}


/* Sports Page */
.sports-section-title {
    text-align: center;
    color: #1C437D;
    font-size: 18px;
    text-transform: uppercase;
    padding: 5px 0;
    margin-bottom: 10px;
    border: 2px solid #1C437D;
    border-radius: 5px;
    background: #f4f4f4;
}

.sports-week-range {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 8px;
}

.sports-date-divider {
    position: relative;
    text-align: center;
    margin: 24px 0 12px;
}

.sports-date-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
    z-index: 0;
}

.sports-date-divider span {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #1C437D;
    padding: 0 12px;
    background: white;
    position: relative;
    z-index: 1;
}

.sports-game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F7F9FC;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.sports-game-emoji {
    font-size: 20px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.sports-game-info {
    flex: 1;
    line-height: 1.4;
}

.sports-game-matchup {
    font-size: 14px;
}

.sports-game-meta {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
}

.sports-game-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.sport-btn {
    display: inline-block;
    background: #4A76BA;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sport-btn:hover {
    background: #1C437D;
}

/* Contact Page */

/* Page header */
.page-header {
    margin: 40px 0 36px;
}

.page-header h2 {
    color: #1C437D;
    font-size: 32px;
    margin-bottom: 6px;
}

.page-header p {
    color: #666;
    font-size: 17px;
}

/* Two-column layout: sidebar + form */
.contact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* Sidebar cards */
.contact-info-card {
    background: #f4f7fb;
    border-left: 4px solid #1C437D;
    border-radius: 0 6px 6px 0;
    padding: 20px;
    margin-bottom: 16px;
}

.contact-info-card h3 {
    color: #1C437D;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info-card p {
    color: #444;
    font-size: 14px;
    line-height: 1.7;
}

.contact-info-card--notice {
    background: #fffbea;
    border-left-color: #f0a500;
}

.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-links li {
    border-bottom: 1px solid #dde4ef;
    padding: 7px 0;
}

.contact-links li:last-child {
    border-bottom: none;
}

.contact-links a {
    color: #1C437D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-links a:hover {
    opacity: 0.7;
}

/* Form wrapper */
.contact-form-wrap {
    background: white;
    border: 1px solid #e0e6f0;
    border-radius: 8px;
    padding: 36px;
}

.contact-form-wrap h3 {
    color: #1C437D;
    font-size: 20px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e0e6f0;
}

/* Form groups */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.required {
    color: #c0392b;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #333;
    background: #fafbfd;
    border: 1.5px solid #d0d9e8;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231C437D' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="url"]:focus,
.contact-form input[type="date"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1C437D;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(28, 67, 125, 0.1);
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="url"]::placeholder,
.contact-form textarea::placeholder {
    color: #aab4c4;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Submit row */
.form-submit {
    margin-top: 28px;
    text-align: right;
}

/* Responsive */
@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}


/* Hint text below fields */
.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.form-hint a {
    color: #1C437D;
    text-decoration: underline;
}

/* Character counter hint — right-aligned */
.form-hint--counter {
    text-align: right;
}

/* Flash Messages */
.flash-messages {
    margin: 20px 0;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin-bottom: 15px;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: #1C437D;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-column h3,
.footer-column h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-column p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-overlay h2 {
        font-size: 32px;
    }
    
    .weather-widget {
        position: static;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .events-grid,
    .editions-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cta-box h2 {
        font-size: 28px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.empty-state h3 {
    color: #1C437D;
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

/* ===================================
   SUBMIT PAGE
   =================================== */

/* Page Hero */
.submit-hero {
    background: #1C437D;
    padding: 48px 0 40px;
    border-bottom: 3px solid #153564;
}

.submit-hero-title {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.submit-hero-sub {
    color: rgba(255, 255, 255, 0.80);
    font-size: 17px;
}

/* Sidebar icon badges */
.sidebar-icon-badge {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

/* Form section divider headings */
.form-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 20px;
}

.form-section-heading:first-of-type {
    margin-top: 0;
}

.form-section-heading span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1C437D;
    white-space: nowrap;
}

.form-section-heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: #1C437D;
    border-radius: 2px;
    flex-shrink: 0;
}

.form-section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e6f0;
}

/* Submit button row */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e6f0;
    gap: 12px;
    flex-wrap: wrap;
}

.button-back {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.button-back:hover {
    color: #1C437D;
}

.submit-btn {
    border: none;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    padding: 13px 28px;
}

/* Character counter colours */
.char-count {
    font-weight: 600;
    transition: color 0.2s;
}

.char-count--warning {
    color: #d97706;
}

.char-count--danger {
    color: #c0392b;
}

/* Remove the old page-header top margin on submit page since hero replaces it */
.contact-page .page-header {
    display: none;
}
