/* ============================================
   Myanmar-China Logistics & Trade Portal
   主样式文件 - 深蓝/货运蓝主色调
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0a2463;
    --primary-light: #1e3a7a;
    --primary-dark: #061539;
    --accent: #3e92cc;
    --accent-light: #5ba8d9;
    --accent-dark: #2a7ab8;
    --gold: #d4a843;
    --gold-light: #e8c36a;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.5;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62,146,204,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--white);
}
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left { display: flex; gap: 20px; }
.top-bar-left i { margin-right: 5px; color: var(--gold); }
.lang-switch { display: flex; gap: 8px; }
.lang-switch a {
    color: rgba(255,255,255,0.6);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.lang-switch a.active, .lang-switch a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

/* --- Header --- */
.main-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.logo:hover { color: var(--gold); }
.logo i { font-size: 32px; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 11px; opacity: 0.7; }

/* --- Navigation --- */
.main-nav ul { display: flex; gap: 0; }
.main-nav li a {
    display: block;
    color: rgba(255,255,255,0.85);
    padding: 24px 18px;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    transition: var(--transition);
}
.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: var(--transition);
}
.main-nav li a:hover,
.main-nav li.active a {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.main-nav li a:hover::after,
.main-nav li.active a::after {
    width: 60%;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.user-info { color: rgba(255,255,255,0.8); font-size: 14px; }
.user-info i { margin-right: 4px; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* --- Hero Banner --- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.page-banner .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}
.page-banner .breadcrumb a { color: var(--gold); }

/* --- Section --- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-light);
    font-size: 16px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}
.service-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* --- News Cards --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.news-card .card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}
.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card .card-body { padding: 20px; }
.news-card .card-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.news-card h3 {
    font-size: 17px;
    color: var(--gray-800);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--accent); }
.news-card .card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
}

/* --- News Detail --- */
.news-detail { padding: 60px 0; }
.news-detail .article-header { margin-bottom: 30px; }
.news-detail .article-header h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.5;
}
.news-detail .article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.news-detail .article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--gray-700);
}
.news-detail .article-content p { margin-bottom: 16px; }
.news-detail .article-content h3 {
    color: var(--primary);
    margin: 25px 0 15px;
}

/* --- Clearance Process --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gray-300);
}
.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.process-step .step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(10,36,99,0.3);
}
.process-step h4 { font-size: 16px; color: var(--primary); margin-bottom: 5px; }
.process-step p { font-size: 13px; color: var(--text-light); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question i { color: var(--accent); transition: var(--transition); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.8;
}
.faq-answer.active {
    padding: 0 24px 18px;
    max-height: 500px;
}

/* --- Clearance Projects Table --- */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.projects-table th {
    background: var(--primary);
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
}
.projects-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}
.projects-table tr:hover td { background: var(--gray-100); }
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-in_progress { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }

/* --- License Section --- */
.license-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.license-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}
.license-card h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
}
.license-card p { color: var(--text-light); line-height: 1.8; margin-bottom: 10px; }
.license-card ol {
    list-style: decimal;
    padding-left: 20px;
    color: var(--text-light);
    line-height: 2;
}

/* --- AI Recommendation --- */
.ai-recommend-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
}
.ai-recommend-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
}
.ai-recommend-box .form-group { margin-bottom: 20px; }
.ai-recommend-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.ai-recommend-box textarea,
.ai-recommend-box input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-family);
}
.ai-recommend-box textarea::placeholder,
.ai-recommend-box input::placeholder { color: rgba(255,255,255,0.5); }
.ai-result {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    display: none;
}
.ai-result.show { display: block; }
.ai-result h4 { margin-bottom: 10px; color: var(--gold); }

/* --- Forms --- */
.form-section {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}
.form-group label .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-family);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(62,146,204,0.15);
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Login Page --- */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 60px 0;
}
.login-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.login-box h2 {
    color: var(--primary);
    margin-bottom: 10px;
}
.login-box p { color: var(--text-light); margin-bottom: 30px; }
.wechat-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #07c160;
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.wechat-login-btn:hover { background: #06ad56; }
.wechat-login-btn i { font-size: 22px; }
.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}
.login-divider span { padding: 0 15px; }

/* --- About Page --- */
.about-section { padding: 60px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}
.about-text h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 15px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-item .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.stat-item .label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

/* --- Pagination --- */
.pagination-nav { text-align: center; margin-top: 40px; }
.pagination {
    display: inline-flex;
    gap: 5px;
}
.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}
.pagination li a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.pagination li.active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- Tabs --- */
.tabs { margin-bottom: 30px; }
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 30px;
}
.tab-nav a {
    padding: 12px 24px;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}
.tab-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}
.tab-nav a.active, .tab-nav a:hover {
    color: var(--primary);
}
.tab-nav a.active::after {
    background: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Footer --- */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.footer-col ul li a:hover { color: var(--gold); }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.contact-list li i { color: var(--gold); margin-top: 4px; }

.wechat-qrcode {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}
.qrcode-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    gap: 5px;
}
.qrcode-placeholder i { font-size: 36px; }
.qrcode-placeholder span { font-size: 11px; color: var(--text-muted); }
.qrcode-placeholder.small i { font-size: 28px; }

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* --- WeChat Float --- */
.wechat-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 999;
}
.wechat-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #07c160;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7,193,96,0.4);
    transition: var(--transition);
}
.wechat-float-btn:hover { transform: scale(1.1); }
.wechat-float-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}
.wechat-float-popup.show { display: block; }
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--gray-100);
    font-size: 14px;
    font-weight: 500;
}
.popup-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}
.popup-body {
    padding: 15px;
    text-align: center;
}
.popup-body img { width: 150px; height: 150px; }

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 998;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }

/* --- Alert --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* --- Loading Spinner --- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .license-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 70px 0; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-nav { 
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .mobile-menu-btn { display: block; }

    .services-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .hero { padding: 50px 0; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 24px; }

    .process-steps { flex-direction: column; gap: 20px; }
    .process-steps::before { display: none; }

    .projects-table { font-size: 12px; }
    .projects-table th, .projects-table td { padding: 8px 10px; }

    .tab-nav { flex-wrap: wrap; }
    .tab-nav a { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero h1 { font-size: 22px; }
    .btn-lg { padding: 12px 24px; font-size: 15px; }
    .form-section { padding: 25px 20px; }
    .login-box { padding: 30px 25px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-item .number { font-size: 28px; }
}

/* --- Admin Styles --- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px;
    background: var(--primary-dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-header h3 { font-size: 16px; }
.admin-sidebar .sidebar-nav { padding: 15px 0; }
.admin-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}
.admin-sidebar .sidebar-nav a:hover,
.admin-sidebar .sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.admin-sidebar .sidebar-nav a i { width: 20px; text-align: center; }

.admin-main {
    margin-left: 250px;
    flex: 1;
    background: var(--gray-100);
}
.admin-topbar {
    background: var(--white);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 99;
}
.admin-content { padding: 25px; }
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}
.admin-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--gray-100);
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}
.admin-table tr:hover td { background: var(--gray-100); }
.admin-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.admin-btn-edit { background: var(--accent); color: var(--white); }
.admin-btn-delete { background: var(--danger); color: var(--white); }
.admin-btn-edit:hover { background: var(--accent-dark); }
.admin-btn-delete:hover { background: #c82333; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}
.admin-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
}
.admin-stat-card .stat-info .number { font-size: 24px; font-weight: 700; color: var(--gray-800); }
.admin-stat-card .stat-info .label { font-size: 13px; color: var(--text-muted); }
