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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f8f9fa;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #1557b0;
}

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

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

/* ===== Header / Navigation ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 12px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body.dark .header {
    background: linear-gradient(135deg, #0a0a14 0%, #111827 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    user-select: none;
}

.logo span {
    color: #f0c040;
}

.nav {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav a {
    color: #fff;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    border-bottom-color: #f0c040;
    text-decoration: none;
    color: #f0c040;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.dark-mode-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.dark-mode-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(240,192,64,0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero .btn {
    display: inline-block;
    background: #f0c040;
    color: #1a1a2e;
    padding: 14px 40px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240,192,64,0.35);
    background: #f5c84a;
    text-decoration: none;
}

.hero .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(240,192,64,0.25);
}

/* ===== Section Common ===== */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 44px;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

body.dark .section-desc {
    color: #aaa;
}

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: 24px;
}

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

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

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

/* ===== Cards ===== */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

body.dark .card {
    background: #1e1e2f;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.05);
}

body.dark .card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

body.dark .card p {
    color: #bbb;
}

/* ===== About Section ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 16px;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 28px;
}

.team-item {
    background: #fff;
    border-radius: 50%;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

body.dark .team-item {
    background: #2a2a3e;
    color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.team-item .icon {
    font-size: 28px;
}

/* ===== Stats Section ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #f0c040;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-left: 5px solid #f0c040;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

body.dark .testimonial-card {
    background: #1e1e2f;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 14px;
    line-height: 1.7;
}

.testimonial-card .author {
    font-weight: 600;
    color: #1a1a2e;
}

body.dark .testimonial-card .author {
    color: #e0e0e0;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-item:hover {
    background: rgba(0,0,0,0.02);
}

body.dark .faq-item {
    border-color: #333;
}

body.dark .faq-item:hover {
    background: rgba(255,255,255,0.03);
}

.faq-question {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #999;
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: #f0c040;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-top: 0;
    color: #555;
    line-height: 1.7;
}

body.dark .faq-answer {
    color: #bbb;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-top: 14px;
}

/* ===== How To Steps ===== */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.howto-step .step-num {
    background: #f0c040;
    color: #1a1a2e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.howto-step:hover .step-num {
    transform: scale(1.1);
}

.howto-step .step-content {
    flex: 1;
}

.howto-step .step-content h4 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
}

.howto-step .step-content p {
    color: #555;
    line-height: 1.7;
}

body.dark .howto-step .step-content p {
    color: #bbb;
}

/* ===== Article Cards ===== */
.article-card .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

body.dark .article-card .date {
    color: #777;
}

.article-card .read-more {
    color: #1a73e8;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease, gap 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card .read-more:hover {
    color: #1557b0;
    gap: 8px;
    text-decoration: none;
}

/* ===== Search Box ===== */
.search-box {
    display: flex;
    max-width: 420px;
    margin: 0 auto 32px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 40px 0 0 40px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.search-box input:focus {
    border-color: #f0c040;
    box-shadow: 0 0 0 3px rgba(240,192,64,0.15);
}

body.dark .search-box input {
    background: #2a2a3e;
    border-color: #444;
    color: #e0e0e0;
}

body.dark .search-box input:focus {
    border-color: #f0c040;
    box-shadow: 0 0 0 3px rgba(240,192,64,0.2);
}

.search-box button {
    background: #f0c040;
    border: none;
    padding: 12px 24px;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 15px;
}

.search-box button:hover {
    background: #e5b435;
    transform: scale(1.02);
}

.search-box button:active {
    transform: scale(0.98);
}

/* ===== Contact Info ===== */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info .item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

body.dark .contact-info .item {
    background: #1e1e2f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.contact-info .item .label {
    font-weight: 600;
    min-width: 60px;
    color: #1a1a2e;
}

body.dark .contact-info .item .label {
    color: #e0e0e0;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 48px 0 24px;
    font-size: 14px;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #bbb;
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: #f0c040;
    text-decoration: none;
}

.footer p {
    line-height: 1.7;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #f0c040;
    color: #1a1a2e;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    background: #f5c84a;
    box-shadow: 0 6px 20px rgba(240,192,64,0.3);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* ===== Banner Carousel (if used) ===== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 28px;
}

.banner-slide {
    display: none;
    padding: 48px 40px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #fff;
    text-align: center;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.banner-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

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

.banner-slide h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-slide p {
    font-size: 16px;
    max-width: 500px;
    opacity: 0.9;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.banner-dots button.active {
    background: #f0c040;
    transform: scale(1.2);
}

.banner-dots button:hover {
    background: #aaa;
}

/* ===== Scroll Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease both;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }
.section:nth-child(8) { animation-delay: 0.7s; }
.section:nth-child(9) { animation-delay: 0.8s; }
.section:nth-child(10) { animation-delay: 0.9s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        z-index: 200;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        border-radius: 0 0 12px 12px;
    }
    body.dark .nav {
        background: #0f0f1a;
    }
    .nav.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero {
        padding: 70px 0 60px;
    }
    .hero p {
        font-size: 17px;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .footer .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .section-title {
        font-size: 26px;
    }
    .section {
        padding: 50px 0;
    }
    .stat-number {
        font-size: 32px;
    }
    .team-item {
        width: 76px;
        height: 76px;
        font-size: 11px;
    }
    .team-item .icon {
        font-size: 24px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .banner-slide {
        padding: 32px 20px;
        min-height: 160px;
    }
    .banner-slide h2 {
        font-size: 22px;
    }
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 15px;
    }
    .hero .btn {
        padding: 12px 28px;
        font-size: 16px;
    }
    .card {
        padding: 20px 16px;
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-item {
        padding: 20px 8px;
    }
    .stat-number {
        font-size: 28px;
    }
    .faq-question {
        font-size: 15px;
    }
    .howto-step {
        gap: 14px;
    }
    .howto-step .step-num {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .contact-info .item {
        padding: 12px 14px;
        font-size: 14px;
    }
    .footer {
        padding: 32px 0 16px;
    }
}