/* Base styles and variables */
:root {
    --primary-color: #3e64ff;
    --secondary-color: #2a4de5;
    --accent-color: #ff6b6b;
    --dark-color: #1a1a2e;
    --light-color: #f7f7f7;
    --gray-color: #8a8a8a;
    --border-color: #e0e0e0;
    --text-color: #333333;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --max-width: 1200px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 15px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    font-size: 16px;
}

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 20px;
}

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

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

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

.logo img {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 25px;
}

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

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

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

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

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

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 60px;
}

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

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

/* Featured posts */
.featured-posts {
    margin-bottom: 60px;
}

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

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

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

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

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

.post-content {
    padding: 20px;
}

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

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

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

.read-more:hover {
    color: var(--secondary-color);
}

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

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

/* Daily tip section */
.daily-tip {
    background-color: var(--light-color);
    padding: 40px 0;
    margin-bottom: 60px;
}

.daily-tip h2 {
    text-align: center;
    margin-bottom: 20px;
}

.tip-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--primary-color);
}

.tip-content p {
    font-style: italic;
    margin-bottom: 0;
}

/* Countdown section */
.countdown {
    text-align: center;
    margin-bottom: 60px;
}

.countdown h2 {
    margin-bottom: 20px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timer > div {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timer span {
    font-size: 1.5rem;
    font-weight: 700;
}

.timer .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Newsletter section */
.newsletter {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.newsletter h2 {
    color: white;
}

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

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

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

.newsletter button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 25px;
}

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

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

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

.footer-logo p {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

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

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

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: white;
}

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

/* Blog page */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.blog-posts {
    margin-bottom: 60px;
}

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

.post-meta .date, 
.post-meta .category,
.post-meta .author {
    display: flex;
    align-items: center;
}

.post-meta .date:before {
    content: '📅';
    margin-right: 5px;
}

.post-meta .category:before {
    content: '🏷️';
    margin-right: 5px;
}

.post-meta .author:before {
    content: '👤';
    margin-right: 5px;
}

/* Blog post page */
.blog-post {
    margin-bottom: 60px;
}

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

.post-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
}

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

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin-top: 40px;
}

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

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

.post-content ol {
    list-style-type: decimal;
}

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

.post-content blockquote {
    padding: 20px;
    background-color: var(--light-color);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    font-style: italic;
}

.post-tags {
    margin-bottom: 30px;
}

.post-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: var(--gray-color);
}

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

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

.post-share span {
    font-weight: 600;
    margin-right: 15px;
}

.post-share a {
    margin-right: 15px;
    transition: var(--transition);
}

.post-share a:hover {
    transform: translateY(-3px);
}

.author-box {
    display: flex;
    gap: 20px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-social {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.related-posts {
    margin-top: 60px;
}

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th, 
.comparison-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.comparison-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--light-color);
}

/* About page */
.about-intro {
    margin-bottom: 60px;
}

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

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

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

.about-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

.about-text li {
    margin-bottom: 10px;
}

.team {
    margin-bottom: 60px;
}

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

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

.team-member {
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    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%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

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

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

.testimonials {
    margin-bottom: 60px;
    background-color: var(--light-color);
    padding: 60px 0;
}

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

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin: 0 15px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Contact page */
.contact-section {
    margin-bottom: 60px;
}

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

.contact-info {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

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

.info-item .icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.info-content h3 {
    margin-bottom: 5px;
}

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

.social-media h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--body-font);
}

.contact-form textarea {
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

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

.map-section {
    margin-bottom: 60px;
}

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

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

.map-container iframe {
    border: none;
}

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

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 25px;
}

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

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

#accept-cookies:hover {
    background-color: var(--secondary-color);
}

#customize-cookies {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
}

#customize-cookies:hover {
    background-color: #e0e0e0;
}

#reject-cookies {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

#reject-cookies:hover {
    background-color: var(--light-color);
}

/* Responsive design */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .timer > div {
        width: 60px;
        height: 60px;
    }
    
    .timer span {
        font-size: 1.2rem;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .timer {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}
