/* Global Styles */
:root {
    --primary-color: #1a3c6e; /* Основен цвят - тъмно синьо */
    --secondary-color: #8a1c1c; /* Вторичен цвят - бордо */
    --accent-color: #d4af37; /* Акцентен цвят - златисто/охра */
    --light-color: #f4f4f4; /* Много светъл фон, почти бял */
    --dark-color: #333333; /* Тъмен текст */
    --grey-color: #767676; /* Средно сиво за текст/елементи */
    --dark-grey: #444444; /* По-тъмно сиво */
    --light-grey: #eaeaea; /* Светло сиво за рамки/фонове */
    --white-color: #ffffff;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

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

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    padding-top: 80px; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary-color);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

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

ul {
    list-style: none;
}

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

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

section {
    padding: 5rem 0;
}
section:nth-of-type(even) {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.underline {
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 2rem auto;
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--grey-color);
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}
.btn.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}
.btn.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn.contact-us {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
    font-size: 1.1rem;
    padding: 15px 35px;
}
.btn.contact-us:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Header */
#header {
    background-color: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
#header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
#header.header-hidden {
    top: -150px; 
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a,
.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:active {
    text-decoration: none;
    color: #1a3c6e !important;
}
.logo h1,
.logo .logo-name {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: #1a3c6e !important;
    display: block;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
}
.logo .tagline {
    font-size: 0.85rem;
    color: var(--grey-color);
    margin-bottom: 0;
}
.nav-menu {
    display: flex;
}
.nav-menu li {
    margin-left: 25px;
}
.nav-menu .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0.4rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}
.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    width: 100%;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary-color);
}
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}
.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.lang-btn:not(.active):hover {
    background-color: var(--light-grey);
}
.mobile-menu-btn {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1005;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.header-content.nav-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.header-content.nav-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}
.header-content.nav-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Hero Section - КОРЕКЦИЯ ЗА ЦЕНТРИРАНЕ */
#hero {
    background: linear-gradient(rgba(26, 60, 110, 0.75), rgba(10, 30, 58, 0.85)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white-color);
    padding-top: 80px; 
    padding-bottom: 80px; 
    min-height: calc(70vh - 80px); /* 80px е padding-top на body. Може да се настрои 70vh. */
    position: relative;
    display: flex;        
    align-items: center;   /* Вертикално центриране на .container (ако е пряк наследник) */
    justify-content: center; /* Хоризонтално центриране на .container (ако е пряк наследник) */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;   
    margin-left: auto;  /* Центрира блока .hero-content хоризонтално в родителя му (.container) */
    margin-right: auto; /* Центрира блока .hero-content хоризонтално в родителя му (.container) */
    position: relative; 
    z-index: 1;         
    text-align: center; /* Центрира текста и бутона ВЪТРЕ в .hero-content */
}
/* Край на Hero Section корекциите */

.hero-title {
    font-size: 3.2rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.8rem;
    color: var(--light-grey);
    font-family: var(--font-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.hero-taglines .tagline {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    font-style: italic;
}
.hero-taglines .tagline:last-child {
    margin-bottom: 2rem;
}

/* Expertise Section - UPDATED STYLES */
#expertise .section-header {
    margin-bottom: 2rem; 
}
#expertise .expertise-intro-text {
    text-align: center; 
    max-width: 800px;  
    margin: 0 auto 3rem auto; 
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-grey);
}
#expertise .expertise-areas-wrapper { 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 2rem;
}
#expertise .expertise-area {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}
#expertise .expertise-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
#expertise .expertise-area .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
#expertise .expertise-area h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
#expertise .expertise-area p {
    font-size: 0.95rem;
    color: var(--dark-grey);
}
@media (min-width: 768px) {
    #expertise .expertise-areas-wrapper {
        grid-template-columns: repeat(2, 1fr); 
    }
}
/* END OF UPDATED Expertise Section STYLES */

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 3rem;
    }
     .about-image img {
        max-width: 100%; 
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: var(--white-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-top: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-top-color: var(--accent-color);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    min-height: 54px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card > p { 
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
    color: var(--dark-grey);
}
.service-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    align-self: center; 
    margin-top: auto; 
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.service-btn:hover {
    background-color: var(--secondary-color);
}

/* Service Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.modal.show {
    display: block;
    opacity: 1;
}
.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 750px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}
.modal.show .modal-content {
    transform: translateY(0);
}
.close-modal {
    color: var(--grey-color);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    transition: var(--transition);
}
.close-modal:hover,
.close-modal:focus {
    color: var(--dark-color);
    text-decoration: none;
    cursor: pointer;
}
.modal-service-content { 
    display: none;
}
.modal-service-content.active { 
    display: block;
    animation: fadeInModal 0.4s ease-in-out;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-service-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}
.modal-service-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark-grey);
}
.modal-service-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}
.modal-service-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.review-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-color);
}
.review-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.review-content p {
    font-style: italic;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
}
.review-author h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-family: var(--font-secondary);
    font-weight: 600;
}
.review-author p {
    font-size: 0.9rem;
    color: var(--grey-color);
    margin-bottom: 0;
}

/* International Section */
#international .international-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
#international .international-text {
    font-size: 1.05rem;
    line-height: 1.7;
}
.international-partners .partner-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}
.partners-grid {
    display: grid;
    gap: 1.5rem; 
}
.partner {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.partner-flag {
    width: 80px;
    height: auto; 
    margin-bottom: 1rem;
}
.partner-flag img {
    width: 100%;
    height: auto;
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.partner-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.partner-content p {
    font-size: 0.95rem;
    color: var(--dark-grey);
}
@media (min-width: 768px) {
    #international .international-content {
        grid-template-columns: 1fr 1fr; 
    }
    .partner {
        flex-direction: row; 
        text-align: left;
        align-items: flex-start;
    }
    .partner-flag {
        margin-right: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0; 
    }
}

/* Contact Section */
#contact .contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.contact-form-container {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.form-group {
    margin-bottom: 1.5rem;
}
.contact-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}
.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--dark-color);
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.contact-form-container button {
    width: 100%;
    font-size: 1rem;
}
.form-feedback-message {
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.form-feedback-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}
.form-feedback-message.error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}
.contact-info .contact-item {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 1.5rem;
}
.contact-info .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    width: 30px; 
    text-align: center;
}
.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-secondary);
    font-weight: 600;
}
.contact-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
}
.map-container {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden; 
    box-shadow: var(--box-shadow);
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
}
@media (min-width: 992px) {
    #contact .contact-content {
        grid-template-columns: 1.2fr 1fr; 
    }
}

/* Footer */
#footer {
    background-color: var(--dark-color);
    color: var(--light-grey);
    padding: 4rem 0 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo h3,
.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.3rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: var(--font-primary);
}
.footer-logo h3::after,
.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}
.footer-logo .tagline {
    font-size: 0.9rem;
    color: var(--grey-color);
}
.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.8rem;
}
.footer-links a,
.footer-services a {
    color: var(--light-grey);
    font-size: 0.95rem;
}
.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.footer-contact p {
    font-size: 0.95rem;
    color: var(--light-grey);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}
.footer-contact p i {
    color: var(--accent-color);
    margin-right: 0.8rem;
    margin-top: 4px; 
    width: 18px;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-color);
    font-size: 0.9rem;
    color: var(--grey-color);
}

/* Footer Grid (new standardized footer) */
.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 40px;
    align-items: start;
}
.footer-about h3,
.footer-contact h3 {
    color: #c4a484;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 999;
}
#back-to-top:hover {
    background-color: var(--secondary-color);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Article Page Specific Styles */
body.single-article-page { 
    background-color: var(--light-color);
}
.article-page { 
    padding-bottom: 40px;
    background-color: var(--white-color); 
    max-width: 800px; 
    margin: 40px auto; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-radius: var(--border-radius);
}
.article-page .article-header { 
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 20px 0; 
}
.article-page .article-title { 
    font-size: 2.3em; 
    margin-bottom: 1rem;
    color: var(--primary-color); 
    line-height: 1.3;
}
.article-page .article-meta { 
    font-size: 0.9rem;
    color: var(--grey-color); 
    margin-bottom: 2rem;
}
.article-page .article-meta time {
    font-weight: 500;
}
.article-page .featured-image { 
    width: 100%; 
    max-width: 350px; /* ПРОМЕНЕНО НА 350px */
    height: auto;     
    display: block;   
    margin-left: auto;  
    margin-right: auto; 
    margin-bottom: 2.5rem; 
    border-radius: var(--border-radius); 
}
.article-page .article-content { 
    padding: 0 30px; 
}
.article-page .article-content h2, 
.article-page .article-content h3,
.article-page .article-content h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-grey); 
}
.article-page .article-content h2 { font-size: 1.8em; }
.article-page .article-content h3 { font-size: 1.5em; }
.article-page .article-content h4 { font-size: 1.3em; }

.article-page .article-content p,
.article-page .article-content li {
    font-family: var(--font-secondary);
    line-height: 1.8;
    margin-bottom: 1.1rem;
    color: var(--dark-grey);
    text-align: left;
}
.article-page .article-content ul,
.article-page .article-content ol {
    list-style-position: outside;
    margin-left: 1.5rem; 
    padding-left: 0;
    margin-bottom: 1.2rem;
}
.article-page .article-content ul li { list-style-type: disc; }
.article-page .article-content ol li { list-style-type: decimal; }

.article-page .article-content ul ul,
.article-page .article-content ol ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.article-page .article-content .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem auto;
}
.article-page .article-content table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid var(--light-grey);
}
.article-page .article-content th, 
.article-page .article-content td {
    border: 1px solid var(--light-grey); 
    padding: 12px 15px; 
    text-align: left;
    vertical-align: top;
}
.article-page .article-content th {
    background-color: var(--light-color); 
    font-weight: 600; 
    color: var(--primary-color);
}
.article-page .article-content table caption {
    caption-side: top;
    font-weight: 700;
    margin-bottom: 1rem; 
    text-align: left;
    font-size: 1.3em; 
    color: var(--primary-color);
    font-family: var(--font-primary);
}
.article-page .article-content table tfoot td {
    font-weight: bold;
    background-color: var(--light-color);
}
.article-page .article-content hr {
    border: 0;
    height: 1px;
    background-color: var(--light-grey); 
    margin: 3rem 0;
}
.article-page .article-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 20px; 
    border-top: 1px solid var(--light-grey);
}
.article-page .back-to-blog { 
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.article-page .back-to-blog:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design Adjustments */
@media screen and (max-width: 992px) {
    html { font-size: 15px; }
    body { padding-top: 70px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.6rem; }

    .about-content { grid-template-columns: 1fr; }
    .about-image img { max-width: 400px; margin: 0 auto 2rem auto; }
    
    .service-card h3 { min-height: auto; }

    #international .international-content { grid-template-columns: 1fr; }
    #expertise .expertise-areas-wrapper { grid-template-columns: 1fr; }

    .article-page { margin: 30px 20px; padding-right: 15px; padding-left: 15px; } 
    .article-page .article-header { padding: 1.5rem 15px 0; }
    .article-page .article-title { font-size: 2em; }
    .article-page .article-content { padding: 0 15px; }
}

@media screen and (max-width: 768px) {
    html { font-size: 14px; }
    body { padding-top: 60px; }
    #header { padding: 0.8rem 0; }
    .logo h1, .logo .logo-name { font-size: 1.5rem; }
    .logo .tagline { font-size: 0.75rem; }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: auto;
        min-width: 220px;
        background-color: var(--white-color);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 0.5rem 0;
        z-index: 999;
    }
    body.mobile-menu-open .nav-menu {
        display: flex;
    }
    .nav-menu li {
        margin-left: 0;
        text-align: left;
        border-bottom: 1px solid var(--light-grey);
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu .nav-link {
        display: block;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        color: var(--dark-color);
    }
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background-color: var(--light-color);
        color: var(--primary-color);
    }
    .nav-menu .nav-link::after {
        display: none;
    }
    .mobile-menu-btn { display: flex; }
    .language-switch { margin-left: auto; margin-right: 15px; }

    section { padding: 3.5rem 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.4rem; }

    #expertise .expertise-intro-text { max-width: 90%; margin-bottom: 2rem;}

    .modal-content { width: 90%; margin: 10% auto; padding: 25px; }
    .modal-service-content h3 { font-size: 1.6rem; }

    #contact .contact-content { grid-template-columns: 1fr; }

    .article-page { margin: 20px 10px; } 
    .article-page .article-title { font-size: 1.8em; }
    .article-page .article-content h2 { font-size: 1.5em; } 
    .article-page .article-content h3 { font-size: 1.3em; } 
    .article-page .article-content p, .article-page .article-content li { font-size: 0.95em; } 
    .article-page .featured-image { margin-bottom: 25px; } 
    .article-page .article-content table { font-size: 0.9rem; min-width: 400px; }
    .article-page .article-content th, .article-page .article-content td { padding: 8px 10px; }

    .map-container iframe { height: 280px; }
}

@media screen and (max-width: 576px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .btn { padding: 10px 20px; font-size: 0.85rem; }
    .btn.contact-us { padding: 12px 28px; font-size: 1rem;}
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-logo h3::after, .footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact p { justify-content: center; }

    .article-page { margin: 15px 0; border-radius: 0; box-shadow: none; }
    .article-page .article-header { padding: 1rem 10px 0; }
    .article-page .article-content { padding: 0 10px; }
    .article-page .article-title { font-size: 1.6em; }
}