/* Base Styles */
:root {
    --primary-color: #2c6a96;
    --primary-dark: #1d4e70;
    --primary-light: #4686b4;
    --secondary-color: #e67e22;
    --secondary-dark: #c26a1c;
    --secondary-light: #eb9950;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --gray-light: #f8f9fa;
    --gray-dark: #7f8c8d;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --font-primary: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --border-radius: 4px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(44, 106, 150, 0.9), rgba(44, 106, 150, 0.9)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

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

/* Featured Posts */
.featured-posts {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.post-card {
    background-color: white;
    border-radius: var(--border-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.12);
}

.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: 20px;
}

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

.post-content p {
    color: var(--gray-dark);
    margin-bottom: 15px;
}

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

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

.read-more:hover:after {
    transform: translateX(5px);
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.newsletter h2,
.newsletter p {
    color: white;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--secondary-color);
}

.newsletter-form button:hover {
    background-color: var(--secondary-dark);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

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

.footer-info .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-social h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

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

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Blog Page */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
}

.blog-posts {
    padding: 80px 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-item .post-image {
    height: 100%;
}

.post-item .post-content {
    padding: 30px;
}

.post-item h2 {
    margin-bottom: 10px;
}

.post-item h2 a {
    color: var(--dark-color);
}

.post-item h2 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Single Post */
.post-single {
    padding: 80px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content ul li, .post-content ol li {
    margin-bottom: 10px;
}

.post-content ul {
    list-style-type: disc;
}

.post-tags {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--gray-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.post-tags a:hover {
    background-color: var(--primary-light);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.post-share span {
    font-weight: 600;
}

.related-posts {
    margin-top: 60px;
    border-top: 1px solid var(--gray-light);
    padding-top: 40px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-post {
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.related-post h4 {
    padding: 15px;
    font-size: 1.1rem;
}

.related-post h4 a {
    color: var(--dark-color);
}

.related-post h4 a:hover {
    color: var(--primary-color);
}

/* About Page */
.about-intro {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text h2 {
    margin-top: 0;
}

.values {
    padding: 80px 0;
    background-color: var(--gray-light);
    text-align: center;
}

.values h2 {
    margin-bottom: 50px;
}

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

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team {
    padding: 80px 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

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

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.member-social a {
    color: var(--gray-dark);
}

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

.clients {
    padding: 80px 0;
    background-color: var(--gray-light);
    text-align: center;
}

.clients h2 {
    margin-bottom: 50px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-logo img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.cta h2,
.cta p {
    color: white;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

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

.info-card {
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray-dark);
    margin-bottom: 5px;
}

.info-card a {
    color: var(--primary-color);
}

.social-contact {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    margin-bottom: 10px;
}

.contact-form-container p {
    margin-bottom: 30px;
    color: var(--gray-dark);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

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

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

.checkbox-group input {
    width: 20px;
    height: 20px;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 20px;
}

.map-section {
    padding: 0 0 80px;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

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

.faq-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

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

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

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: white;
}

.btn-cookie.accept:hover {
    background-color: #219653;
}

.btn-cookie.customize {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.btn-cookie.customize:hover {
    background-color: var(--gray-color);
    color: white;
}

.btn-cookie.reject {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.btn-cookie.reject:hover {
    background-color: var(--danger-color);
    color: white;
}

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

/* Thank You Popup */
.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.thank-you-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow);
}

.popup-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.popup-content h3 {
    margin-bottom: 15px;
}

.popup-content p {
    margin-bottom: 30px;
}

/* Daily Selection */
.daily-selection {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.daily-selection h2 {
    text-align: center;
    margin-bottom: 40px;
}

.selection-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.selection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

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

.selection-item h3 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
}

.selection-item p {
    padding: 0 15px 15px;
    color: var(--gray-dark);
}

/* Pagination */
.pagination {
    padding: 20px 0;
    background-color: var(--primary-color);
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.current-page {
    font-weight: 600;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 1;
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .post-item {
        grid-template-columns: 1fr;
    }
    
    .post-item .post-image {
        height: 250px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info .footer-logo {
        margin: 0 auto 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .featured-posts, 
    .blog-posts, 
    .post-single, 
    .about-intro, 
    .values, 
    .team, 
    .clients, 
    .contact-section, 
    .daily-selection {
        padding: 60px 0;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-tags, 
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-tags {
        gap: 5px;
    }
    
    .post-share {
        gap: 10px;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
}
