/* Base Styles and Variables */
:root {
    --primary-color: #1e4b94;
    --primary-light: #3a6ec7;
    --primary-dark: #103366;
    --secondary-color: #ffc107;
    --secondary-light: #ffeb3b;
    --secondary-dark: #ff9800;
    --dark-color: #333333;
    --grey-color: #6c757d;
    --light-grey: #e9ecef;
    --lightest-grey: #f8f9fa;
    --text-color: #212529;
    --light-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--lightest-grey);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.btn-resource {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-cookie {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

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

.site-title h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.site-title p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--grey-color);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--light-grey);
}

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

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

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

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

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 75, 148, 0.8) 0%, rgba(16, 51, 102, 0.9) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-image img {
    transition: var(--transition);
}

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

/* Editor Note Section */
.editor-note {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.editor-note h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.editor-note h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.editor-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--lightest-grey);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.editor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-color);
}

.editor-text p {
    margin-bottom: 1rem;
}

.editor-name {
    font-weight: 700;
    font-style: italic;
    color: var(--primary-color);
}

/* Featured Posts Section */
.featured-posts {
    padding: 4rem 0;
    background-color: var(--lightest-grey);
}

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

.featured-posts h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

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

.posts-grid.full-width {
    grid-template-columns: 1fr;
}

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

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

.post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.tag.new {
    background-color: var(--danger-color);
    color: var(--light-color);
}

.post-content {
    padding: 1.5rem;
}

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

.post-content p {
    color: var(--grey-color);
    margin-bottom: 1rem;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--light-grey);
}

.read-more i {
    transition: var(--transition);
}

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

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background-color: var(--primary-dark);
    color: var(--light-color);
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

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

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

/* Newsletter in Resources */
.newsletter-resources {
    padding: 4rem 0;
    background-color: var(--primary-light);
    color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

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

.footer-about p {
    margin: 1rem 0;
    opacity: 0.8;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

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

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact address {
    font-style: normal;
    margin: 1.5rem 0;
}

.footer-contact address p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
}

.footer-contact address p i {
    color: var(--secondary-color);
}

.registration {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    color: var(--light-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.cookie-content p {
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
}

.page-header p {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Posts Section */
.posts-section {
    padding: 4rem 0;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

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

.about-text {
    flex: 1.5;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Values Section */
.values-section {
    padding: 4rem 0;
    background-color: var(--lightest-grey);
}

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

.value-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: var(--light-color);
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--grey-color);
    margin-bottom: 0;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

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

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

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

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    padding: 0 1.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.team-member p {
    padding: 0 1.5rem;
    color: var(--grey-color);
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 2rem;
}

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

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

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--light-color);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Resources Section Styles */
.ebooks-section,
.tools-section,
.webinars-section {
    padding: 4rem 0;
}

.ebooks-section,
.webinars-section {
    background-color: var(--light-color);
}

.tools-section {
    background-color: var(--lightest-grey);
}

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

.resource-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.resource-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.resource-card:hover .resource-image img {
    transform: scale(1.1);
}

.resource-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.resource-content p {
    color: var(--grey-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    color: var(--light-color);
    margin-bottom: 2rem;
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.info-item h3 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 3rem;
}

.social-contact h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-form-container {
    background-color: var(--lightest-grey);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
    margin-bottom: 2rem;
    position: relative;
}

.contact-form-container h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 75, 148, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.form-check input {
    width: auto;
    margin-top: 0.3rem;
}

.form-check label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-check a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var(--lightest-grey);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

.faq-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

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

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: var(--lightest-grey);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    flex: 1;
}

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

.faq-answer {
    background-color: var(--light-color);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

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

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

.modal-content {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--grey-color);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.modal h2 {
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 2rem;
    color: var(--grey-color);
}

#modal-close-btn {
    padding: 0.8rem 3rem;
}

/* Single Post Styles */
.post-single {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.post-header {
    margin-bottom: 2rem;
    position: relative;
}

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

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

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

.post-intro {
    font-size: 1.2rem;
    color: var(--grey-color);
    line-height: 1.7;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.post-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.8rem;
}

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

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

.post-image {
    margin: 2.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey-color);
    padding: 1rem 0;
}

.post-quote {
    margin: 2.5rem 0;
    padding: 2rem;
    background-color: var(--lightest-grey);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
}

.post-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-quote cite {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
}

.post-callout {
    margin: 2.5rem 0;
    padding: 2rem;
    background-color: rgba(30, 75, 148, 0.1);
    border-radius: 10px;
}

.post-callout h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-callout p,
.post-callout ul {
    margin-bottom: 1rem;
}

.post-callout ul {
    padding-left: 1.5rem;
}

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

.table-responsive {
    margin: 2.5rem 0;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-grey);
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 500;
}

.data-table tr:nth-child(even) {
    background-color: var(--lightest-grey);
}

.table-footnote {
    font-size: 0.9rem;
    color: var(--grey-color);
    margin-top: 1rem;
    font-style: italic;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

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

.post-tags a {
    background-color: var(--lightest-grey);
    color: var(--grey-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.post-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

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

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

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

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

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

.post-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.post-author {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--lightest-grey);
    border-radius: 10px;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-color);
}

.author-info h3 {
    font-size: 1.1rem;
    color: var(--grey-color);
    margin-bottom: 0.5rem;
}

.author-info h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.author-info p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

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

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

.related-posts h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

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

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

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

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

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

.related-post a {
    display: inline-block;
    margin: 0.5rem 1.5rem 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.post-comments {
    margin-top: 4rem;
}

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

.post-comments h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.comments-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--lightest-grey);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.comments-form h4 {
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .post-header h1 {
        font-size: 2.3rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-author {
        flex-direction: column;
        text-align: center;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .editor-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .post-quote blockquote {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1,
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid,
    .resources-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-tags,
    .post-share {
        width: 100%;
        justify-content: center;
    }
}
