/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #e63946;
    --accent-color: #ffd166;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --container-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: #fff;
    font-size: 16px;
}

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

a:hover {
    color: #003d7a;
}

ul {
    list-style: none;
}

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

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

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

.btn-primary:hover {
    background-color: #004494;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Header Styles */
header {
    background-color: white;
    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;
    height: var(--header-height);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.font-size-control {
    display: flex;
    align-items: center;
}

#decrease-font {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

#decrease-font:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Featured Posts Section */
.featured-posts {
    padding: 60px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
}

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

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

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

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

.post-date {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

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

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Common Mistakes Section */
.common-mistakes {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.common-mistakes h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
}

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

.mistake-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.mistake-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.mistake-item i {
    font-size: 36px;
    color: var(--warning-color);
    margin-bottom: 15px;
}

.mistake-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.mistake-item p {
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    text-align: center;
    background-color: #e6f2ff;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.newsletter-form button {
    padding: 12px 20px;
}

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

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
}

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

.footer-column p {
    color: #b8b8b8;
    margin-bottom: 10px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #b8b8b8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info li i {
    color: var(--accent-color);
    margin-top: 5px;
}

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

.social-icons a {
    display: 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 {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #b8b8b8;
    font-size: 14px;
}

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

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

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

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

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

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

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

.btn-cookie.customize {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-cookie.reject {
    background-color: white;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.cookie-policy-link {
    font-size: 14px;
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background-color: #f0f7ff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Page Styles */
.post-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

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

.post-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.post-intro {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.post-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.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;
    position: relative;
}

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

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

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

.post-tags span {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-tags a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f7ff;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

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

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

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

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.post-share a.facebook {
    background-color: #1877f2;
}

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

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

.post-share a.whatsapp {
    background-color: #25d366;
}

.post-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.prev-post a,
.next-post a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

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

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

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

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

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

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

.related-post-card h4 {
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background-color: #0056b3;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-section .btn-primary:hover {
    background-color: var(--light-color);
}

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

.about-intro h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-intro p {
    margin-bottom: 25px;
}

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

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

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

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

.team-member h3 {
    margin: 20px 20px 5px;
    font-size: 20px;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

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

.team-member .social-icons {
    padding: 0 20px 20px;
}

.team-member .social-icons a {
    background-color: #f0f7ff;
    color: var(--primary-color);
}

.team-member .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.values-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

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

.value-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.value-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-container {
    background-color: #f0f7ff;
    border-radius: 8px;
    overflow: hidden;
}

.contact-info {
    padding: 30px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

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

.contact-details {
    margin-bottom: 30px;
}

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

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

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

.contact-form {
    padding: 30px;
}

.contact-form h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-form > p {
    margin-bottom: 25px;
    color: var(--text-light);
}

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

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input {
    width: auto;
    margin-top: 3px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 60px;
}

.map-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

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

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

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

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

.close-btn {
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .featured-posts h2,
    .common-mistakes h2,
    .newsletter h2,
    .cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
    }
    
    .nav-links li a:after {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .featured-posts h2,
    .common-mistakes h2,
    .newsletter h2,
    .cta-section h2 {
        font-size: 24px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .post-header h1 {
        font-size: 28px;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
}
