/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Libre+Franklin:wght@300;400;600&display=swap');

:root {
    --primary-font: 'Playfair Display', serif;
    --body-font: 'Libre Franklin', sans-serif;
    --primary-color: #121212;
    --secondary-color: #666;
    --background-color: #fff;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--background-color);
    font-size: 1.125rem;
    letter-spacing: 0.01em;
}

/* Header Styles */
header {
    padding: 2rem;
    border-bottom: 1px solid #e2e2e2;
    text-align: center;
    position: relative;
}

.date-display {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: "Times New Roman", Times, serif;
    font-size: 0.875rem;
    color: #333;
}

.site-title {
    font-family: var(--primary-font);
    font-size: 4.69rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Navigation */
.nav-menu {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.8em;
}

.nav-button {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.8em;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Breaking News */
.breaking-news {
    width: 100%;
    background-color: #d2f0dd;
    padding: 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
    border: 1px solid #aeaeae;
    font-size: 0.7em;
}

.breaking-news p {
    margin: 0;
    color: #000000;
    font-weight: 300;
}

/* Hero Article */
.hero-article {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background-image: url('images/photos/photo_lake-hermitage.jpg');
    background-size: cover;
    background-position: center;
    margin: 0 auto 2rem;
    border: 1px solid black;
    border-radius: 0;
}

@media (min-width: 769px) {
    .hero-article {
        border-radius: 8px;
    }
}

.hero-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.hero-content {
    position: absolute;
    max-width: 800px;
    padding: 3rem;
    color: white;
    bottom: 0;
    left: 0;
    text-align: left;
}

.hero-content h1 {
    font-family: var(--primary-font);
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: rgba(255,255,255,0.9);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger-icon {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 10px; }
.hamburger-icon span:nth-child(3) { top: 20px; }

.menu-items {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: white;
    padding: 60px 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
}

.menu-items a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: var(--primary-color);
}

.hamburger-menu.active .menu-items {
    right: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #f8f2f2;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    position: relative;
}

.content-section h3 {
    color: #333;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    color: #444;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.content-section ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.content-section ul li:before {
    content: "•";
    color: #82d899;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* FAQ Section */
.faq-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
}

.faq-title {
    font-family: var(--primary-font);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Newsletter Form */
.newsletter {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background: #82d899;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
}

.newsletter form {
    display: grid;
    gap: 1rem;
}

.newsletter input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-family: var(--body-font);
}

.newsletter button {
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Parks Section */
.parks {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 0;
}

.parks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.park-card {
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

/* News Cards */
.news-cards {
    --card-min-width: 280px;
    --card-gap: 2rem;
    --card-padding: 1.5rem;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
    gap: var(--card-gap);
    padding: var(--card-gap);
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    --shadow-color: 0deg 0% 0%;
    --shadow: 
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.1),
        1.5px 2.9px 3.7px -0.4px hsl(var(--shadow-color) / 0.1),
        2.7px 5.4px 6.8px -0.7px hsl(var(--shadow-color) / 0.1);
    
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

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

.card img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
}

.card-content {
    padding: var(--card-padding);
}

.card-content h3 {
    font-size: clamp(1.1rem, 1.25vw, 1.25rem);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.card-content p {
    font-size: clamp(0.875rem, 1vw, 0.95rem);
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Recent Headlines */
.recent-headlines {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #d0c9c9e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.recent-headlines h2 {
    font-family: var(--primary-font);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.headlines-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.headline-link {
    display: flex;
    align-items: baseline;
    padding: 0.75rem;
    text-decoration: none;
    border-bottom: 1px solid #e2e2e2;
    transition: background-color 0.2s ease;
}

.headline-link:hover {
    background-color: #f5f5f5;
}

.headline-link .date {
    min-width: 70px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.headline-link .title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Events Calendar */
.events-calendar {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.swipe-indicator span {
    font-size: 1.2rem;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateX(0); }
    to { transform: translateX(3px); }
}

.events-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #666 #f5f5f5;
}

.event-card {
    display: flex;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    margin-right: 1rem;
}

.month {
    font-size: 0.8rem;
    font-weight: bold;
}

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

.event-details {
    flex: 1;
}

.event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.event-details h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.event-details p {
    font-size: 0.9rem;
    color: #666;
}

/* School Ratings */
.school-ratings-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.school-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e9e9e9;
}

.tab-button.active {
    background: #fff;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.school-content {
    display: none;
    padding: 2rem;
}

.school-content.active {
    display: block;
}

.school-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    color: var(--primary-color);
}

.accordion-icon {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Photo Gallery */
.photo-gallery {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 2rem;
}

.gallery-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    margin: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

/* Footer */
.site-footer {
    background-color: #f7f7f7;
    border-top: 2px solid #000;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    font-family: var(--body-font);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-branding {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.footer-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

.footer-tagline {
    color: #666;
    margin: 0.5rem 0 0;
    font-style: italic;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav-section h4 {
    font-family: var(--heading-font);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-section ul li {
    margin-bottom: 0.5rem;
}

.footer-nav-section ul a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav-section ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .parks-grid {
        grid-template-columns: 1fr;
    }
    
    .news-article {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-content-inner {
        padding: 0 1rem 1rem;
    }
    
    .news-cards {
        --card-gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav-section {
        margin-bottom: 1.5rem;
    }
    
    .accordion {
        margin: 0 1rem;
    }
    
    .accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 1rem 1rem;
        font-size: 0.85em;
    }
}

/* Print Styles */
@media print {
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}