/* Base Styles */
:root {
    --primary-color: #5d4037;
    --secondary-color: #8d6e63;
    --accent-color: #bf360c;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f9f6f2;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --hover-color: #7d5d4e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --custom-frame-border: 15px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Georgia', serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

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

/* Icons */
.icon-home::before {
    content: '🏠';
}

.icon-blog::before {
    content: '📝';
}

.icon-info::before {
    content: 'ℹ️';
}

.icon-contact::before {
    content: '✉️';
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--hover-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Custom Frame for Images */
.custom-frame {
    position: relative;
    padding: var(--custom-frame-border);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 6px 15px var(--shadow-color);
    border-radius: calc(var(--border-radius) + 5px);
}

.custom-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    pointer-events: none;
    z-index: 1;
}

.custom-frame img {
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
    width: 100%;
}

.custom-frame:hover img {
    transform: scale(1.03);
}

/* Header */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/8.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 3rem;
}

.featured-posts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.featured-posts h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

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

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

.post-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
}

.post-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left var(--transition-speed) ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Expert Interview Section */
.expert-interview {
    margin-bottom: 3rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.expert-interview h2 {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.expert-interview h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

.interview-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

.interview-image {
    align-self: start;
}

.interview-content .question {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.interview-content .answer {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.interview-content .bio {
    font-size: 0.9rem;
    background-color: rgba(93, 64, 55, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Blog Page */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

/* About Page */
.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.mission-content ul {
    list-style-type: none;
}

.mission-content li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

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

.team-section {
    margin-bottom: 3rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.team-member p {
    padding: 0 1rem 1.5rem;
    color: #666;
}

.team-member p:first-of-type {
    font-weight: 600;
    color: var(--secondary-color);
}

.values-section {
    margin-bottom: 3rem;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

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

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

.value-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

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

.value-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Contact Page */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

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

.contact-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-form-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.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 var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.map-section {
    margin-top: 3rem;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.close-btn {
    margin-top: 1.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--primary-color);
    transition: color var(--transition-speed) ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icons.small {
    gap: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
}

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

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links ul li a,
.footer-social a {
    color: var(--light-text);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-links ul li a:hover,
.footer-social a:hover {
    opacity: 1;
    color: var(--light-text);
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 -2px 10px var(--shadow-color);
    padding: 1.5rem;
    z-index: 999;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-policy {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .interview-container {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail {
        height: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-mission {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .post-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .btn {
        width: 100%;
    }
}
