/*!
Theme Name: Telco World
Theme URI: http://underscores.me/
Author: Edoardo Donati
Author URI: http://telcoworld.it
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: telco-world-it
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Telco World is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* ==========================================
   CSS Reset and Base Styles
   ========================================== */

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

:root {
    --primary-color: #003442;
    --secondary-color: #007392;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #777777;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --hover-bg: #f0f0f0;
    --spacing-unit: 8px;
}

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

body {
    font-family: 'Momo Trust Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Momo Trust Display', sans-serif;
    font-weight: 700;
}

/* ==========================================
   Container and Layout
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

/* ==========================================
   Header
   ========================================== */

.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) 0;
}

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

.main-nav .nav-list {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: calc(var(--spacing-unit) * 1) 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

.has-submenu {
    position: relative;
}

.has-submenu > .nav-link {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.5);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.has-submenu:hover .dropdown-icon,
.has-submenu.active .dropdown-icon {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2.5);
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.submenu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    padding-left: calc(var(--spacing-unit) * 3);
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--secondary-color);
    transition: height 0.2s ease;
}

.submenu a:hover::before {
    height: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: calc(var(--spacing-unit) * 1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================
   Hero Carousel Section
   ========================================== */

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    position: relative;
    min-width: 100%;
    padding: calc(var(--spacing-unit) * 10) 0;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 100, 180, 0.85) 0%, rgba(0, 180, 140, 0.85) 100%);
    z-index: 1;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
}

.hero-slide:not(.active) .hero-badge,
.hero-slide:not(.active) .hero-title,
.hero-slide:not(.active) .hero-description,
.hero-slide:not(.active) .hero-meta,
.hero-slide:not(.active) .btn {
    opacity: 0;
    animation: none;
}

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

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 3);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 3);
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    opacity: 0.9;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-separator {
    opacity: 0.6;
}

.hero-slide .btn {
    animation: fadeInUp 0.6s ease 0.6s both;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: calc(var(--spacing-unit) * 3);
}

.carousel-next {
    right: calc(var(--spacing-unit) * 3);
}

.carousel-indicators {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--bg-white);
    width: 32px;
    border-radius: 6px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.75) calc(var(--spacing-unit) * 4);
    font-family: 'Momo Trust Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 146, 0.3);
}

/* ==========================================
   Main Content
   ========================================== */

.main-content {
    padding: calc(var(--spacing-unit) * 8) 0;
    background-color: var(--bg-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 5);
}

.content-grid-operator {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: calc(var(--spacing-unit) * 5);
}

/* ==========================================
   Articles Section
   ========================================== */

.articles-section {
    width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.article-grid-operator {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 6);
}
.article-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.article-category {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    left: calc(var(--spacing-unit) * 2);
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-content {
    padding: calc(var(--spacing-unit) * 3);
}

.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-separator {
    opacity: 0.5;
}

/* ==========================================
   Pagination
   ========================================== */

.pagination {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--spacing-unit) * 5);
}

.pagination-link {
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2);
    background-color: var(--bg-white);
    color: var(--text-medium);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.pagination-dots {
    color: var(--text-light);
    padding: 0 calc(var(--spacing-unit) * 1);
}

.pagination-next {
    font-weight: 600;
}

/* ==========================================
   Sidebar
   ========================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

.widget {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    border-bottom: 2px solid var(--border-color);
}

/* Category List Widget */

.category-list li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    padding: calc(var(--spacing-unit) * 1) 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.category-list a:hover {
    color: var(--secondary-color);
    padding-left: calc(var(--spacing-unit) * 1);
}

.category-list .count {
    background-color: var(--bg-light);
    color: var(--text-medium);
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.25);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts Widget */

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2.5);
}

.recent-post-item {
    padding-bottom: calc(var(--spacing-unit) * 2.5);
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-link h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    transition: color 0.3s ease;
}

.recent-post-link:hover h4 {
    color: var(--secondary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Newsletter Widget */

.widget-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
}

.widget-newsletter .widget-title {
    color: var(--bg-white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.newsletter-input {
    padding: calc(var(--spacing-unit) * 1.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'Momo Trust Sans', sans-serif;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.25);
}

.newsletter-form .btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    font-weight: 600;
}

.newsletter-form .btn-secondary:hover {
    background-color: var(--bg-light);
}

/* Ad Widget */

.widget-ad {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    text-align: center;
    color: var(--text-light);
}

.ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.ad-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 3) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing-unit) * 5);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-logo {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.social-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: calc(var(--spacing-unit) * 1);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}

.footer-legal a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
        gap: calc(var(--spacing-unit) * 4);
    }

    .article-grid {
        gap: calc(var(--spacing-unit) * 3);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-prev {
        left: calc(var(--spacing-unit) * 2);
    }

    .carousel-next {
        right: calc(var(--spacing-unit) * 2);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: calc(var(--spacing-unit) * 3);
        gap: 0;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }

    .nav-list > li {
        width: 100%;
    }

    .has-submenu {
        position: relative;
    }

    .has-submenu > .nav-link {
        cursor: pointer;
        justify-content: space-between;
    }

    .nav-link {
        width: 100%;
        padding: calc(var(--spacing-unit) * 2);
        border-bottom: 1px solid var(--border-color);
    }

    .submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background-color: var(--bg-light);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .has-submenu.active .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: calc(var(--spacing-unit) * 1) 0;
    }

    .submenu a {
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
        font-size: 0.85rem;
    }

    .submenu a:hover {
        padding-left: calc(var(--spacing-unit) * 4.5);
    }

    .has-submenu.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-slide {
        padding: calc(var(--spacing-unit) * 6) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: calc(var(--spacing-unit) * 1.5);
    }

    .carousel-next {
        right: calc(var(--spacing-unit) * 1.5);
    }

    .carousel-indicators {
        bottom: calc(var(--spacing-unit) * 3);
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 5);
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--spacing-unit) * 4);
    }

    .footer-bottom {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }

    .logo img {
        height: 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 1);
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev {
        left: calc(var(--spacing-unit) * 1);
    }

    .carousel-next {
        right: calc(var(--spacing-unit) * 1);
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* ==========================================
   Article Page Styles
   ========================================== */

.article-page {
    background-color: var(--bg-white);
}

.article-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 6) 0;
    color: var(--bg-white);
}

.article-hero-content {
    max-width: 800px;
}

.article-category-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 3);
    backdrop-filter: blur(10px);
}

.article-page-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-page-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
}

.author-title {
    font-size: 0.85rem;
    opacity: 0.9;
}

.article-stats {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: 0.9rem;
    opacity: 0.95;
}

.stat-item svg {
    opacity: 0.9;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: calc(var(--spacing-unit) * 5);
    padding: calc(var(--spacing-unit) * 8) 0;
}

.article-main {
    max-width: 800px;
}

.article-content-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.article-content-body p {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.lead-paragraph {
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-content-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.3;
}

.article-content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-quote {
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 5) 0;
    border-radius: 0 8px 8px 0;
}

.article-quote p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-style: italic;
}

.article-quote cite {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-style: normal;
    font-weight: 600;
}

.article-highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    margin: calc(var(--spacing-unit) * 5) 0;
}

.article-highlight-box h3 {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.article-highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-highlight-box li {
    padding-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    line-height: 1.6;
}

.article-highlight-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bg-white);
    font-weight: 700;
}

.article-highlight-box li:last-child {
    margin-bottom: 0;
}

.article-highlight-box strong {
    font-weight: 700;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-wrap: wrap;
    padding: calc(var(--spacing-unit) * 4) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.tag-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
}

.tag {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    background-color: var(--bg-light);
    color: var(--text-medium);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.article-share {
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.article-share h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.share-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2.5);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background-color: #1DA1F2;
    color: var(--bg-white);
}

.share-btn.twitter:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-btn.linkedin {
    background-color: #0A66C2;
    color: var(--bg-white);
}

.share-btn.linkedin:hover {
    background-color: #084d93;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.share-btn.facebook {
    background-color: #1877F2;
    color: var(--bg-white);
}

.share-btn.facebook:hover {
    background-color: #155db2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn.email {
    background-color: var(--text-medium);
    color: var(--bg-white);
}

.share-btn.email:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.3);
}

.author-bio {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 4);
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-white);
    flex-shrink: 0;
}

.author-bio-content {
    flex: 1;
}

.author-bio-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.author-bio-title {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 600;
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.author-bio-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.author-social {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-white);
    border-radius: 50%;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.author-social a:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.related-articles {
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 3);
}

/* Article Page Responsive Design */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: calc(var(--spacing-unit) * 4);
    }

    .article-page-title {
        font-size: 2.5rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 4) 0;
    }

    .article-page-title {
        font-size: 2rem;
    }

    .article-page-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 2);
    }

    .article-stats {
        width: 100%;
    }

    .article-layout {
        grid-template-columns: 1fr;
        padding: calc(var(--spacing-unit) * 5) 0;
    }

    .article-content-body {
        font-size: 1rem;
    }

    .article-content-body h2 {
        font-size: 1.75rem;
    }

    .lead-paragraph {
        font-size: 1.15rem;
    }

    .article-quote p {
        font-size: 1.1rem;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-bio-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .author-social {
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-page-title {
        font-size: 1.75rem;
    }

    .author-avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .article-stats {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .article-content-body h2 {
        font-size: 1.5rem;
    }

    .article-highlight-box {
        padding: calc(var(--spacing-unit) * 3);
    }

    .share-buttons {
        width: 100%;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
}

/* ==========================================
   Generic Page Layout Styles
   ========================================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 8) 0;
    color: var(--bg-white);
    text-align: center;
}

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

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.page-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
}

.page-content {
    padding: calc(var(--spacing-unit) * 8) 0;
    background-color: var(--bg-light);
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: calc(var(--spacing-unit) * 5);
}

.page-main {
    background-color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   Contact Page Styles
   ========================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: calc(var(--spacing-unit) * 5);
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.contact-form-section {
    width: 100%;
}

.contact-form-card {
    background-color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    padding: calc(var(--spacing-unit) * 1.75);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Momo Trust Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 146, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 2);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.contact-info-card {
    background-color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.contact-info-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.contact-info-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.office-hours {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.office-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 1.5) 0;
    border-bottom: 1px solid var(--border-color);
}

.office-hours-item:last-child {
    border-bottom: none;
}

.office-hours-item .day {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.office-hours-item .hours {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1.5);
    background-color: var(--bg-light);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link-large:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateX(4px);
}

.social-link-large svg {
    width: 24px;
    height: 24px;
}

.contact-map-section {
    margin-top: calc(var(--spacing-unit) * 8);
}

.map-placeholder {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px dashed var(--border-color);
}

.map-placeholder svg {
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.map-placeholder p {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* ==========================================
   Contact Page Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 350px;
        gap: calc(var(--spacing-unit) * 4);
    }

    .page-layout {
        grid-template-columns: 1fr 300px;
        gap: calc(var(--spacing-unit) * 4);
    }

    .page-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 5) 0;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .page-description {
        font-size: 1.1rem;
    }

    .page-layout {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }

    .contact-form-card {
        padding: calc(var(--spacing-unit) * 4);
    }

    .contact-info-section {
        order: 2;
    }

    .contact-form-section {
        order: 1;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .contact-form-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .contact-info-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .contact-form-title {
        font-size: 1.5rem;
    }

    .map-placeholder {
        padding: calc(var(--spacing-unit) * 6);
    }

    .map-placeholder svg {
        width: 48px;
        height: 48px;
    }

    .map-placeholder p {
        font-size: 0.95rem;
    }
}
