/* ===== fonts ===== */
/* ===== fonts (local — put files in assets/fonts/vazirmatn/) ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ===== variables ===== */
:root {
    --dark-blue: #0a1628;
    --dark-blue-soft: #14213d;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-pale: #f5efe6;
    --cream: #fcf9f3;
    --text-dark: #1e1e2a;
    --text-gray: #4a4a5a;
    --text-light: #7a7a8a;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(10, 22, 40, 0.12);
    --shadow-gold: 0 10px 30px rgba(201, 168, 76, 0.25);
    --radius: 20px;
}

/* ===== reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* ===== buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b8942e);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 168, 76, 0.4);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 700;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}
.btn-sm {
    padding: 9px 20px;
    font-size: 13px;
}
.btn-dark {
    background: var(--dark-blue);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.25);
}
.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(10, 22, 40, 0.35);
}
.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
}

/* ===== header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: all 0.3s ease;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-size: 20px;
}
.logo-text {
    font-weight: 900;
    font-size: 20px;
    color: var(--white);
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -2px;
}

nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
nav.desktop-nav a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s;
    position: relative;
    padding: 6px 0;
}
nav.desktop-nav a:hover,
nav.desktop-nav a.active {
    color: var(--gold);
}
nav.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.search-box {
    position: relative;
}
.search-box input {
    width: 190px;
    padding: 8px 16px 8px 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
    color: var(--white);
}
.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.search-box input:focus {
    border-color: var(--gold);
    width: 230px;
    background: rgba(255, 255, 255, 0.1);
}
.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark-blue);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}
.mobile-menu-header span {
    color: var(--gold);
    font-size: 22px;
    font-weight: 800;
}
.close-menu {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.mobile-menu nav a {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu nav a:hover {
    color: var(--gold);
}

/* ===== page hero ===== */
.page-hero {
    padding: 140px 24px 80px;
    background: var(--dark-blue);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}
.page-hero h1 .gold {
    color: var(--gold);
}
.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.9;
}
.page-hero .breadcrumb {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}
.page-hero .breadcrumb a {
    color: var(--gold);
}
.section-divider {
    width: 70px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 16px;
    border-radius: 4px;
}

/* ===== sections ===== */
.section {
    padding: 80px 24px;
    background: var(--cream);
}
.section-alt {
    background: var(--white);
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 10px;
    text-align: center;
}
.section-title .gold {
    color: var(--gold);
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== services grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid rgba(201, 168, 76, 0.08);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #b8942e);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--gold-light);
}
.service-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    background: var(--gold-pale);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--gold);
    transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 14px;
}
.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.9;
}

/* ===== opinions list ===== */
.opinions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.opinion-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid rgba(201, 168, 76, 0.08);
    transition: all 0.3s;
}
.opinion-item:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow);
}
.opinion-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.opinion-item-header i {
    font-size: 28px;
    color: var(--gold);
}
.opinion-item-header div h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
}
.opinion-item-header div span {
    font-size: 13px;
    color: var(--text-light);
}
.opinion-item p {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 15px;
}

/* ===== about grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 4px;
}
.about-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 22px;
}
.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 2.1;
    font-size: 15px;
}
.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, var(--dark-blue-soft), var(--dark-blue));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(201, 168, 76, 0.12);
    font-size: 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.1);
}
.about-image-placeholder .label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    opacity: 0.5;
}

/* ===== articles grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.08);
    transition: all 0.35s;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold-light);
}
.article-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--gold-pale), #e8dcc8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--gold);
    position: relative;
    opacity: 0.6;
}
.article-date {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--dark-blue);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.article-content {
    padding: 24px 26px 28px;
}
.article-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.6;
}
.article-content p {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.8;
}
.article-content .read-more {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 12px;
}

/* ===== contact grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}
.contact-info-card {
    padding: 28px 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(201, 168, 76, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.contact-info-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 16px;
}
.contact-info-card p {
    color: var(--text-gray);
    line-height: 2.1;
    font-size: 15px;
}
.contact-info-card ul {
    margin-top: 12px;
}
.contact-info-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 14px;
    color: var(--text-gray);
}
.contact-info-card ul li i {
    color: var(--gold);
    width: 20px;
}
.contact-info-card ul li:last-child {
    border-bottom: none;
}

/* ===== form ===== */
.form-container {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(201, 168, 76, 0.08);
    box-shadow: var(--shadow);
}
.form-container h3 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}
.form-container .form-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    text-align: right;
}
.form-group.full {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: var(--cream);
    color: var(--text-dark);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.06);
}
.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* ===== stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stats-grid .stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
}
.stats-grid .stat-label {
    color: var(--text-gray);
}

/* ===== social buttons ===== */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ===== footer ===== */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 70px 24px 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-about .logo {
    margin-bottom: 20px;
}
.footer-about .logo-text {
    color: var(--white);
}
.footer-about p {
    font-size: 14px;
    line-height: 2;
    opacity: 0.7;
    margin-bottom: 22px;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.social-links a:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
    border-color: var(--gold);
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a:hover {
    opacity: 1;
    color: var(--gold);
    padding-right: 4px;
}
.footer-col ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.4;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}
.contact-info li i {
    color: var(--gold);
    margin-top: 4px;
    width: 18px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.4;
}

/* ===== back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s;
    z-index: 999;
    border: none;
}
.back-to-top:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.4);
}


/* ===== articles slider ===== */
.articles-slider-wrapper { position: relative; }
.articles-slider { overflow: hidden; }
.articles-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}
.articles-track::-webkit-scrollbar { display: none; }
.slide-card {
    flex: 0 0 calc(33.333% - 20px);
    width: calc(33.333% - 20px);
    min-width: 0;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.08);
    transition: all 0.35s;
}
.slide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold-light);
}
.slide-card .article-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--gold-pale), #e8dcc8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--gold);
    position: relative;
    opacity: 0.6;
}
.slide-card .article-content {
    padding: 24px 26px 28px;
}
.slide-card .article-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}
.slide-card .article-content p {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.8;
}
.slide-card .read-more {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 12px;
}
@media (max-width: 992px) {
    .slide-card { flex-basis: calc(50% - 15px); width: calc(50% - 15px); }
}
@media (max-width: 576px) {
    .slide-card { flex-basis: 85%; width: 85%; }
}
/* ===== responsive ===== */
/* ===== responsive ===== */

/* Global safeguards */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img, iframe, video, embed {
    max-width: 100%;
    height: auto;
}

/* ---------- TABLET (<= 992px) ---------- */
@media (max-width: 992px) {
    .services-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    nav.desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .search-box { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* index.php hero tablet */
    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 30px 20px 50px !important;
    }
    .hero-content h1 { font-size: 36px !important; }
    .hero-content h1 .line1 { font-size: 20px !important; }
    .hero-desc { font-size: 15px !important; max-width: 100% !important; }
    .hero-image { justify-content: center !important; }
    .hero-image > div:first-child { max-width: 320px !important; }
    .hero-image > div:last-child { font-size: 13px !important; padding: 10px 20px !important; }

    /* index.php about tablet */
    .about-inner { grid-template-columns: 1fr !important; gap: 32px !important; }

    /* contact page */
    .contact-page-grid { grid-template-columns: 1fr !important; }

    /* article */
    .article-detail { padding: 24px 16px !important; }
    .article-detail h1 { font-size: 26px !important; }
}

/* ---------- PHONE (<= 576px) ---------- */
@media (max-width: 576px) {
    .services-grid, .articles-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 24px; }
    .section-title { font-size: 22px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stats-grid .stat-number { font-size: 24px; }

    /* ===== GLOBAL: force all sections to fit viewport ===== */
    section, .section, .hero, .about, .services, .articles, .faq, .consultation, .contact {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    section > div, .section > div {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ===== index.php HERO — full rewrite for mobile ===== */
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding-top: 60px !important;
        padding-bottom: 0 !important;
        display: block !important;
    }
    .hero > div:first-child,
    .hero > div:nth-child(2) {
        display: none !important;
    }
    .hero-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px 16px 30px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        grid-template-columns: none !important;
    }
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        position: static !important;
        z-index: auto !important;
    }
    .hero-badge {
        font-size: 11px !important;
        padding: 5px 14px !important;
        margin-bottom: 12px !important;
    }
    .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .hero-content h1 .line1 {
        font-size: 13px !important;
        margin-bottom: 4px !important;
        letter-spacing: 0 !important;
    }
    .hero-content h1 .highlight {
        display: inline !important;
    }
    .hero-desc {
        font-size: 13px !important;
        max-width: 100% !important;
        margin: 0 auto 14px !important;
        line-height: 1.8 !important;
        text-align: center !important;
    }
    .hero-desc strong {
        color: var(--gold-light) !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
        align-items: center !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 260px !important;
        padding: 11px 18px !important;
        font-size: 13px !important;
    }
    .hero-image {
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 8px !important;
    }
    .hero-image > div:first-child {
        width: 200px !important;
        max-width: 65% !important;
        min-width: auto !important;
        aspect-ratio: 3/4 !important;
        border-radius: 18px !important;
        margin: 0 auto !important;
        position: relative !important;
    }
    .hero-image > div:first-child img {
        width: 100% !important;
        height: 100% !important;
    }
    .hero-image > div:last-child {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 10px auto 0 !important;
        transform: none !important;
        font-size: 12px !important;
        padding: 8px 16px !important;
        white-space: normal !important;
        text-align: center !important;
        display: inline-block !important;
        border-radius: 12px !important;
    }
    .hero-image > div:last-child small {
        font-size: 10px !important;
    }

    /* ===== index.php ABOUT ===== */
    .about {
        padding: 40px 16px !important;
    }
    .about > div:first-child {
        display: none !important;
    }
    .about-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 !important;
        grid-template-columns: none !important;
    }
    .about-content {
        width: 100% !important;
    }
    .about-content .section-divider {
        margin: 0 auto 10px !important;
    }
    .about-content h2 {
        font-size: 22px !important;
        text-align: center !important;
    }
    .about-content h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    .about-content p {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        line-height: 1.8 !important;
        text-align: center !important;
    }
    .about-content .btn {
        margin: 10px auto 0 !important;
        display: block !important;
        width: fit-content !important;
    }
    .about-image {
        width: 100% !important;
        position: relative !important;
    }
    .about-image > div:first-child {
        width: 100% !important;
        aspect-ratio: 4/3 !important;
        border-radius: 14px !important;
    }
    .about-image > div:first-child img {
        width: 100% !important;
        height: 100% !important;
    }
    .about-image > div:first-child > div:last-child {
        font-size: 14px !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
    }
    .about-image > div:last-child {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 10px auto 0 !important;
        font-size: 11px !important;
        padding: 8px 16px !important;
        white-space: normal !important;
        text-align: center !important;
        display: inline-block !important;
        width: fit-content !important;
    }

    /* ===== Services ===== */
    .services { padding: 50px 16px !important; }
    .services-inner { padding: 0 !important; }
    .service-card { padding: 22px 16px !important; }
    .service-card h3 { font-size: 16px !important; }
    .service-card p { font-size: 12px !important; line-height: 1.7 !important; }
    .service-icon { width: 50px !important; height: 50px !important; font-size: 20px !important; }

    /* ===== Articles ===== */
    .articles { padding: 50px 16px !important; }
    .articles-inner { padding: 0 !important; }
    .article-image { height: 150px !important; }
    .article-content { padding: 14px 16px 18px !important; }
    .article-content h3 { font-size: 14px !important; }
    .article-content p { font-size: 12px !important; }
    .slide-card { flex-basis: 85% !important; width: 85% !important; min-width: 0 !important; }

    /* ===== FAQ ===== */
    .faq { padding: 50px 16px !important; }
    .faq-inner { padding: 0 !important; }
    .faq-question { padding: 14px 16px !important; font-size: 13px !important; }
    .faq-answer p { padding: 0 16px 14px !important; font-size: 12px !important; }

    /* ===== Consultation ===== */
    .consultation { padding: 50px 16px !important; }
    .consultation-inner {
        padding: 22px 14px !important;
        border-radius: 16px !important;
        width: 100% !important;
    }
    .consultation-inner h2 { font-size: 18px !important; }
    .consultation-inner .sub { font-size: 12px !important; margin-bottom: 14px !important; }
    #homeConsultForm .form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    #homeConsultForm .form-group.full { grid-column: auto !important; }
    #homeConsultForm input, #homeConsultForm textarea {
        font-size: 16px !important;
        padding: 10px 14px !important;
    }
    #homeConsultForm button[type="submit"] { width: 100% !important; min-width: auto !important; }

    /* ===== Contact index ===== */
    .contact { padding: 40px 16px !important; }
    .contact-inner { padding: 0 !important; }
    .contact-inner h2 { font-size: 20px !important; margin-bottom: 20px !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 14px !important; margin-bottom: 20px !important; }
    .contact-grid p { padding: 14px !important; font-size: 13px !important; }
    .contact-buttons { flex-direction: column !important; gap: 10px !important; }
    .contact-buttons .btn { width: 100% !important; }

    /* ===== Contact page ===== */
    .contact-page-grid { gap: 16px !important; }
    .contact-info-box, .contact-form-box { padding: 16px !important; }
    .contact-info-box h3, .contact-form-box h3 { font-size: 15px !important; }
    .contact-info-item { margin-bottom: 12px !important; gap: 8px !important; }
    .contact-info-item i { font-size: 16px !important; }
    .contact-info-item div h4 { font-size: 13px !important; }
    .contact-info-item div p { font-size: 12px !important; }
    .contact-form-box input, .contact-form-box textarea { font-size: 16px !important; padding: 10px 14px !important; }
    .map-box { height: 200px !important; margin-top: 20px !important; }

    /* ===== Article detail ===== */
    .article-detail { padding: 16px 12px !important; max-width: 100% !important; }
    .article-detail h1 { font-size: 18px !important; margin-bottom: 8px !important; }
    .article-meta { flex-direction: column !important; gap: 4px !important; font-size: 12px !important; margin-bottom: 12px !important; }
    .article-summary { padding: 12px !important; margin-bottom: 16px !important; font-size: 13px !important; }
    .article-body { font-size: 14px !important; line-height: 1.8 !important; }
    .article-body h2, .article-body h3 { font-size: 16px !important; margin: 18px 0 8px !important; }
    .article-body p { margin-bottom: 12px !important; }
    .article-body img { margin: 10px 0 !important; border-radius: 8px !important; }

    /* ===== Page hero ===== */
    .page-hero { padding: 100px 16px 40px !important; }
    .page-hero h1 { font-size: 20px !important; margin-bottom: 8px !important; }
    .page-hero p { font-size: 13px !important; }
    .breadcrumb { font-size: 11px !important; margin-top: 10px !important; }

    /* ===== CTA ===== */
    .services-btn .btn, .articles-btn .btn, .faq-btn .btn { width: 100% !important; }

    /* ===== Slider ===== */
    .slider-arrows { margin-top: 16px !important; gap: 10px !important; }
    .slider-arrow { width: 40px !important; height: 40px !important; font-size: 14px !important; }

    /* ===== Stats ===== */
    .stats-grid { gap: 12px !important; }
    .stat-number { font-size: 22px !important; }
    .stat-label { font-size: 12px !important; }

    /* ===== Opinions ===== */
    .opinion-item { padding: 16px 14px !important; }
    .opinion-item-header div h4 { font-size: 14px !important; }
    .opinion-item p { font-size: 12px !important; }

    /* ===== Back to top ===== */
    .back-to-top { width: 40px !important; height: 40px !important; font-size: 14px !important; bottom: 16px !important; left: 16px !important; }

    /* ===== Header ===== */
    .header-inner { height: 60px !important; padding: 0 14px !important; }
    .logo-text { font-size: 14px !important; }
    .logo-sub { font-size: 9px !important; }
    .logo-icon { width: 34px !important; height: 34px !important; font-size: 16px !important; }

    /* ===== Mobile menu ===== */
    .mobile-menu { padding: 20px 16px !important; }
    .mobile-menu-header { margin-bottom: 28px !important; }
    .mobile-menu nav a { font-size: 16px !important; padding: 6px 0 !important; }

    /* ===== Footer ===== */
    footer { padding: 40px 16px 0 !important; }
    .footer-inner { gap: 28px !important; padding-bottom: 28px !important; }
    .footer-col h4 { font-size: 15px !important; margin-bottom: 16px !important; }
    .footer-about p { font-size: 12px !important; }
    .footer-col ul li a { font-size: 12px !important; }
    .contact-info li { font-size: 12px !important; }
    .footer-bottom { flex-direction: column !important; gap: 4px !important; text-align: center !important; padding: 16px 0 !important; }
    .footer-bottom p { font-size: 11px !important; }
}
