/* Base Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --accent-color: #f1c40f;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --gray-color: #a8dadc;
    --text-color: #333333;
    --white-color: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Dark Theme Colors */
.dark-theme {
    --primary-color: #ff4d5a;
    --secondary-color: #5b9bd5;
    --accent-color: #ffdb58;
    --light-color: #2e3b4e;
    --dark-color: #f1faee;
    --gray-color: #3a6b70;
    --text-color: #e0e0e0;
    --white-color: #1a1a1a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    transition: var(--transition);
}

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

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn.secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
}

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

/* Header & Navigation */
header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    max-width: 120px;
}

.logo img {
    max-height: 60px;
    border-radius: 0;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
}

#theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

#theme-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-color);
    transition: var(--transition);
}

#theme-btn:hover svg {
    fill: var(--primary-color);
}

.sun-icon {
    display: none;
}

.dark-theme .sun-icon {
    display: block;
}

.dark-theme .moon-icon {
    display: none;
}

/* Hero Section */
.hero {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.8)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 4rem;
}

.hero h1 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Featured Posts Section */
.featured-posts {
    padding: 4rem 0;
}

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

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.post-content p {
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

/* Future Quote Section */
.future-quote {
    background-color: var(--gray-color);
    padding: 4rem 0;
    text-align: center;
    margin: 4rem 0;
}

.future-quote h2 {
    margin-bottom: 2rem;
}

.future-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.future-quote blockquote::before,
.future-quote blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.5;
}

.future-quote blockquote::before {
    top: -20px;
    left: 0;
}

.future-quote blockquote::after {
    bottom: -40px;
    right: 0;
}

.future-quote cite {
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    font-style: normal;
}

/* CTA Section */
.cta {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

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

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.cta .btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    max-width: 120px;
    margin-bottom: 1rem;
    border-radius: 0;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white-color);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

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

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

.footer-links ul li a,
.footer-contact a {
    color: var(--light-color);
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--dark-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

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

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: var(--dark-color);
}

.social-icons a:hover svg {
    fill: var(--white-color);
}

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

/* Blog Page Styles */
.blog-header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    color: var(--white-color);
}

.blog-posts {
    padding: 1rem 0 4rem;
}

.blog-post {
    background-color: var(--white-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .blog-post {
        grid-template-columns: 300px 1fr;
    }
}

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

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

.post-body {
    line-height: 1.8;
}

.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.post-body ul,
.post-body ol {
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

/* About Page Styles */
.about-header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    color: var(--white-color);
}

.about-intro {
    padding: 2rem 0 4rem;
}

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

.about-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.team-section {
    background-color: var(--gray-color);
    padding: 4rem 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-member {
    background-color: var(--white-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 1.5rem;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.team-member h3 {
    margin: 1.25rem 0 0.25rem;
}

.team-member p {
    padding: 0 1.25rem;
    margin-bottom: 0.75rem;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member .social-icons {
    justify-content: center;
    margin-top: 1rem;
}

.join-team {
    padding: 4rem 0;
    text-align: center;
}

.join-team p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Contact Page Styles */
.contact-header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    color: var(--white-color);
}

.contact-section {
    padding: 2rem 0 4rem;
}

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

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

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.social-contact h3 {
    margin-bottom: 1rem;
}

.contact-form {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(69, 123, 157, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.map-section {
    padding: 3rem 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white-color);
    margin: 1rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalOpen 0.4s ease-in-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

.thank-you-message {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.thank-you-message svg {
    fill: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    display: none;
    z-index: 1500;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
}

.cookie-btn {
    margin: 0;
}

.cookie-link {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-image img {
        height: 300px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 3.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-posts h2,
    .team-section h2,
    .future-quote h2 {
        font-size: 1.7rem;
    }
    
    .future-quote blockquote {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-group.checkbox {
        align-items: flex-start;
    }
    
    .form-group.checkbox input {
        margin-top: 0.3rem;
    }
}
