/* 
 * IT Courses Mexico - Main Stylesheet
 * Theme: Education Technology Blog
 * Version: 1.0
 */

/* ========== Base Styles ========== */
:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2a5db0;
    --primary-light: #5a94e2;
    --secondary-color: #00c6ff;
    --accent-color: #ff7e5f;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-family-sans: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Merriweather', Georgia, serif;
    --font-family-mono: 'Source Code Pro', monospace;
}

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

html {
    font-size: 62.5%; /* 10px base size for easier rem calculation */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.5rem;
}

button, .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-family-sans);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1rem 2.4rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

input, select, textarea {
    font-family: var(--font-family-sans);
    font-size: 1.6rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    width: 100%;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.logo {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1.5rem;
}

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

header h1 {
    font-size: 2.4rem;
    margin: 0;
}

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

nav ul {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

nav li {
    margin-left: 3rem;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.7rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

nav a i {
    margin-right: 0.8rem;
    font-size: 1.8rem;
}

nav a.active, nav a:hover {
    color: var(--primary-color);
    background-color: rgba(58, 123, 213, 0.1);
}

/* ========== Hero Section ========== */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 0 4rem;
}

.hero-content h2 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

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

/* ========== Inspiration Box ========== */
.inspiration-box {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    margin: 4rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.inspiration-box h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.8rem;
}

.inspiration-content ul {
    list-style-type: none;
    margin-bottom: 2rem;
}

.inspiration-content li {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    position: relative;
    font-style: italic;
}

.inspiration-content li:before {
    content: '"';
    position: absolute;
    left: 0;
    font-size: 3rem;
    line-height: 0;
    top: 1.3rem;
}

.inspiration-content p {
    font-weight: 600;
    margin-bottom: 0;
}

/* ========== Featured Posts ========== */
.featured-posts {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

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

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

.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 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 22rem;
    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: 2rem;
}

.post-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-meta {
    color: var(--text-lighter);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

/* ========== Newsletter Section ========== */
.newsletter {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 70rem;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 3.6rem;
    color: white;
    margin-bottom: 2rem;
}

.newsletter p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.newsletter-form {
    display: flex;
    max-width: 60rem;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.6rem;
    padding: 1.5rem 2rem;
}

.newsletter-form button {
    background-color: var(--accent-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.5rem 3rem;
    font-weight: 700;
}

.newsletter-form button:hover {
    background-color: darken(var(--accent-color), 10%);
}

/* ========== Footer ========== */
footer {
    background-color: #2b3945;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 2rem 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo p {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.footer-links, .footer-legal, .footer-social {
    margin-bottom: 3rem;
}

.footer-links h3, .footer-legal h3, .footer-social h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 1rem;
}

.footer-links a, .footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    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: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* ========== Cookie Notice ========== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(43, 57, 69, 0.95);
    color: white;
    padding: 2rem;
    z-index: 1000;
    display: none;
}

.cookie-notice.active {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cookie-content p {
    flex: 1;
    margin: 0 2rem 1rem 0;
    font-size: 1.5rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-cookie {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-cookie.customize {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-cookie.reject {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-more {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    text-decoration: underline;
    margin-top: 0.5rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ========== Post Detail Page ========== */
.post-detail {
    max-width: 120rem;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.post-header .post-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.6rem;
}

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

.post-meta i {
    margin-right: 0.5rem;
}

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

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

.post-content {
    font-size: 1.8rem;
    line-height: 1.7;
}

.post-content h2 {
    font-size: 3rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.post-content h3 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 2.5rem;
    margin-left: 2rem;
}

.post-content li {
    margin-bottom: 1rem;
}

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

.post-content blockquote p {
    margin-bottom: 0.5rem;
}

.post-content blockquote cite {
    display: block;
    font-size: 1.6rem;
    font-style: normal;
    color: var(--text-light);
}

.post-tags {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags span {
    display: inline-block;
    margin-right: 1rem;
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

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

.post-share {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.post-share span {
    margin-right: 1.5rem;
    font-weight: 600;
}

.social-share {
    display: flex;
    gap: 1rem;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--background-light);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

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

/* ========== Related Posts ========== */
.related-posts {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 3rem;
}

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

.related-post {
    display: block;
    background-color: var(--background-light);
    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 20px rgba(0, 0, 0, 0.1);
}

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

.related-post h4 {
    padding: 1.5rem;
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color);
    transition: var(--transition);
}

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

/* ========== Comments Section ========== */
.comments {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.comments h3 {
    margin-bottom: 3rem;
}

.comment-form {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
}

.comment-form h4 {
    margin-bottom: 2rem;
}

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

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

.comment-list {
    margin-top: 4rem;
}

.comment {
    display: flex;
    margin-bottom: 3rem;
}

.comment-reply {
    margin-left: 6rem;
}

.comment-avatar {
    margin-right: 2rem;
}

.comment-avatar img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-body h5 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.comment-date {
    font-weight: 400;
    color: var(--text-lighter);
    margin-left: 1rem;
    font-size: 1.4rem;
}

/* ========== About Page ========== */
.about-page {
    padding-bottom: 6rem;
}

.about-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.about-hero-content {
    flex: 1;
    padding: 0 4rem;
}

.about-hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.about-hero-content p {
    font-size: 2rem;
    color: var(--text-light);
}

.about-hero-image {
    flex: 1;
    text-align: center;
}

.about-hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.our-mission {
    padding: 6rem 2rem;
}

.our-mission h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.mission-text p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.mission-values h3 {
    margin-bottom: 2rem;
}

.mission-values ul {
    list-style: none;
}

.mission-values li {
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.mission-values li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.our-story {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.our-story h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.story-content {
    max-width: 80rem;
    margin: 0 auto 4rem;
    font-size: 1.8rem;
}

.timeline {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

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

.our-team {
    padding: 6rem 2rem;
}

.our-team h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.team-intro {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto 5rem;
    font-size: 1.8rem;
    color: var(--text-light);
}

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

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

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

.team-member h3 {
    margin-bottom: 0.5rem;
}

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

.member-social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--background-light);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

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

.our-approach {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.our-approach h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.approach-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
}

.approach-item {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.approach-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 8rem;
    background-color: rgba(58, 123, 213, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
}

.approach-icon i {
    font-size: 3.6rem;
    color: var(--primary-color);
}

.approach-item h3 {
    margin-bottom: 1.5rem;
}

.testimonials {
    padding: 6rem 2rem;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.testimonial {
    flex: 1;
    min-width: 30rem;
    max-width: 50rem;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    position: relative;
    padding: 0 2rem;
}

.testimonial-content:before, .testimonial-content:after {
    content: '"';
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    line-height: 1;
}

.testimonial-content:before {
    top: -1rem;
    left: -1rem;
}

.testimonial-content:after {
    bottom: -4rem;
    right: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--text-light);
}

.cta {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

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

.cta p {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.social-cta {
    margin-top: 4rem;
}

.social-cta p {
    margin-bottom: 2rem;
}

/* ========== Contact Page ========== */
.contact-page {
    padding-bottom: 6rem;
}

.contact-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.contact-hero-content {
    flex: 1;
    padding: 0 4rem;
}

.contact-hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.contact-hero-content p {
    font-size: 2rem;
    color: var(--text-light);
}

.contact-hero-image {
    flex: 1;
    text-align: center;
}

.contact-hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info {
    padding: 6rem 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    margin-right: 2rem;
    font-size: 2.4rem;
    color: var(--primary-color);
}

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

.contact-text p {
    margin: 0;
    color: var(--text-light);
}

.social-connect {
    text-align: center;
    margin-top: 4rem;
}

.social-connect h3 {
    margin-bottom: 1.5rem;
}

.social-connect p {
    margin-bottom: 2rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-section {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form-section > p {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

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

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
}

.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.active {
    display: flex;
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.8rem;
    color: var(--text-lighter);
    cursor: pointer;
}

.thank-you-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 10rem;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    margin: 0 auto 3rem;
}

.thank-you-icon i {
    font-size: 5rem;
    color: var(--success-color);
}

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

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

.btn-modal-close {
    background-color: var(--text-light);
}

.btn-modal-close:hover {
    background-color: var(--text-color);
}

.faq-section {
    padding: 6rem 2rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

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

.faq-toggle {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 50rem;
}

/* ========== Icons ========== */
.icon-home:before { content: '🏠'; }
.icon-info-circle:before { content: 'ℹ️'; }
.icon-envelope:before { content: '✉️'; }
.icon-calendar:before { content: '📅'; }
.icon-folder:before { content: '📁'; }
.icon-tag:before { content: '🏷️'; }
.icon-arrow-right:before { content: '→'; }
.icon-check-circle:before { content: '✓'; }
.icon-map-marker:before { content: '📍'; }
.icon-phone:before { content: '📞'; }
.icon-clock:before { content: '🕒'; }
.icon-plus:before { content: '+'; }
.icon-search:before { content: '🔍'; }
.icon-balance-scale:before { content: '⚖️'; }
.icon-users:before { content: '👥'; }
.icon-refresh:before { content: '🔄'; }

/* ========== Media Queries ========== */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
    
    .post-grid, .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    }
}

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero, .about-hero, .contact-hero {
        flex-direction: column;
        padding: 4rem 0;
    }
    
    .hero-content, .about-hero-content, .contact-hero-content {
        order: 2;
        padding: 4rem 2rem;
        text-align: center;
    }
    
    .hero-image, .about-hero-image, .contact-hero-image {
        order: 1;
        padding: 0 2rem;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .timeline:before {
        left: 2rem;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .timeline-content {
        width: calc(100% - 5rem);
    }
    
    .timeline-item:nth-child(odd) .timeline-content, 
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 5rem;
        margin-right: 0;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    header {
        flex-direction: column;
        padding: 2rem 0;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
        margin-left: 0;
        justify-content: center;
    }
    
    nav ul {
        justify-content: center;
        margin-right: 0;
    }
    
    nav li {
        margin: 0 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1.5rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .comment-reply {
        margin-left: 3rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    nav li {
        margin: 0 1rem;
    }
    
    nav a {
        font-size: 1.6rem;
        padding: 0.5rem;
    }
    
    nav a i {
        margin-right: 0.5rem;
    }
    
    .post-grid, .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        max-width: 35rem;
        margin: 0 auto;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin: 0 auto;
    }
    
    .approach-content {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin: 0 auto;
    }
}
