/* Base Styles */
:root {
    --primary-color: #2c5282;
    --secondary-color: #4299e1;
    --accent-color: #f6ad55;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --gray-color: #a0aec0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --text-color: #4a5568;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

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

ul {
    list-style: none;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
}

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

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

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background-color: #edf2f7;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
}

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

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

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Featured Posts Section */
.featured-posts {
    padding: 5rem 5%;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.featured-posts h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

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

.post-card {
    background-color: white;
    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 15px rgba(0, 0, 0, 0.1);
}

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

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

.post-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
}

.post-card .btn-small {
    margin: 0 1.5rem 1.5rem;
}

/* Info Block */
.info-block {
    padding: 5rem 5%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

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

.info-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.info-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-content .btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.info-content .btn:hover {
    background-color: white;
}

/* Random Fact Section */
.random-fact {
    padding: 3rem 5%;
    background-color: #edf2f7;
}

.fact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.fact-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fact-container p {
    font-style: italic;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 5% 2rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p, .footer-section li {
    margin-bottom: 0.75rem;
    color: var(--gray-color);
}

.footer-section a {
    color: var(--gray-color);
}

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

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

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--gray-color);
    transition: var(--transition);
}

.social-icons a:hover .social-icon {
    fill: white;
    transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
    display: none;
}

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

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

.btn-cookie {
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.btn-cookie:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cookie-more-info {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.cookie-more-info a {
    text-decoration: underline;
}

/* Blog Page Styles */
.blog-header, .about-header, .contact-header {
    text-align: center;
    padding: 4rem 5% 2rem;
    background-color: #edf2f7;
}

.blog-header h2, .about-header h2, .contact-header h2 {
    color: var(--primary-color);
}

.blog-posts {
    padding: 3rem 5%;
}

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

.post-image {
    flex: 0 0 300px;
}

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

.post-content {
    flex: 1;
    padding: 2rem;
}

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

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* About Page Styles */
.about-us {
    padding: 3rem 5%;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-content {
    flex: 2;
}

.about-image {
    flex: 1;
}

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

.values-list {
    margin: 2rem 0;
}

.values-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.team-section {
    padding: 3rem 5%;
    background-color: #edf2f7;
}

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

.team-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

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

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

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

.team-member img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.team-member p {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.testimonials {
    padding: 5rem 5%;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.testimonials h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

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

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 2rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
}

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

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

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

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

/* Contact Page Styles */
.contact-content {
    padding: 3rem 5%;
    display: flex;
    gap: 3rem;
}

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

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

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.social-contact h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

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

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

.required {
    color: var(--danger-color);
}

.form-group input, .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.2);
}

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

.checkbox-group input {
    margin-top: 0.3rem;
}

.map-section {
    padding: 2rem 5% 5rem;
    text-align: center;
}

.map-section h3 {
    margin-bottom: 2rem;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

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

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

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

.thank-you-content {
    padding: 1rem;
}

.icon-check-circle {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.thank-you-content h3 {
    margin-bottom: 1rem;
}

.thank-you-content p {
    margin-bottom: 2rem;
}

.modal-close-btn {
    width: 100%;
}

/* Blog Post Page Styles */
.post-content {
    padding: 3rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.post-text h3 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.post-text ul, .post-text ol {
    margin: 1.5rem 0 2rem 1.5rem;
}

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

.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

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

.post-tags a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #edf2f7;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.share-post {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #edf2f7;
    border-radius: var(--border-radius);
    text-align: center;
}

.share-post h4 {
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.share-button.email {
    background-color: var(--dark-color);
}

.share-button:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
}

.share-button .social-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.related-posts {
    margin-top: 4rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

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

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

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

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

.related-post h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-post a {
    display: inline-block;
    margin: 0 1rem 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Icons */
.icon-home, .icon-blog, .icon-about, .icon-contact, 
.icon-calendar, .icon-tag, .icon-user, .icon-location,
.icon-phone, .icon-email, .icon-clock, .icon-id, .icon-check {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .post-image {
        flex: 0 0 auto;
        height: 200px;
    }
    
    .about-us {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 5%;
        height: auto;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .testimonial-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .post-header h2 {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }
}
