/* ===================================
   Friary WBWR - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #2C5F2D;
    --secondary-color: #97BC62;
    --accent-color: #FF6B35;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #757575;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

/* Header */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

/* Featured Article */
.featured-article {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    box-shadow: var(--shadow-hover);
}

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

.featured-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-text h3 {
    font-size: 1.75rem;
    margin: 1rem 0;
}

.featured-text h3 a {
    color: var(--text-dark);
}

.featured-text h3 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
}

/* Posts Grid */
.latest-posts {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3,
.post-content h2 {
    font-size: 1.125rem;
    margin: 0.75rem 0;
}

.post-content h3 a,
.post-content h2 a {
    color: var(--text-dark);
}

.post-content h3 a:hover,
.post-content h2 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

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

.category-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.category-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.category-item:hover h3 {
    color: var(--bg-white);
}

.category-item p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.category-item:hover p {
    color: rgba(255,255,255,0.9);
}

/* Newsletter */
.newsletter-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.newsletter-content h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #e55a2b;
    color: var(--bg-white);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.cta-center {
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

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

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col a {
    color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-address {
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Posts Page */
.posts-page {
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Filters */
.filters-section {
    margin-bottom: 3rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-medium);
    font-weight: 500;
}

/* Article Page */
.article-page {
    padding: 3rem 0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.article-meta-detailed {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-hero {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.article-hero img {
    width: 100%;
    border-radius: 8px;
}

.article-hero figcaption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
}

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

.article-image {
    margin: 2.5rem 0;
}

.article-image img {
    width: 100%;
    border-radius: 8px;
}

.article-image figcaption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.article-disclaimer {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin: 3rem 0;
    font-size: 0.9375rem;
}

/* Related Articles */
.related-articles {
    max-width: 1000px;
    margin: 4rem auto 0;
}

.related-articles h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

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

.related-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.25rem;
}

.related-content h3 {
    font-size: 1.0625rem;
    margin: 0.75rem 0 0;
}

.related-content h3 a {
    color: var(--text-dark);
}

.related-content h3 a:hover {
    color: var(--primary-color);
}

/* About Page */
.about-page,
.contact-page {
    padding: 3rem 0;
}

.content-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.categories-about {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.category-about-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.category-about-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-section h2,
.contact-info-section h2 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Thanks Page */
.thanks-page {
    padding: 6rem 0;
    min-height: 60vh;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.thanks-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thanks-message {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
}

.legal-date {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.legal-content ul {
    margin-top: 1rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.contact-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-text {
        padding: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        justify-content: flex-start;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .thanks-content h1 {
        font-size: 2rem;
    }
    
    .thanks-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .article-meta,
    .article-meta-detailed {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Google Map Section */
.map-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.map-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 450px;
}

@media (max-width: 768px) {
    .map-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .map-section h2 {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        min-height: 350px;
    }
}
