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

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary: #f4b41a;
    --accent: #34a853;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.7;
    background: var(--light);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-inner span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.social-links a {
    color: #aaa;
    font-size: 13px;
}

.social-links a:hover {
    color: var(--white);
}

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: var(--dark);
}

.logo i {
    font-size: 28px;
    color: var(--primary);
}

.logo strong {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    background: var(--white);
    padding: 10px 20px;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow);
}

.mobile-nav a {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
}

.mobile-nav a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 50%, #0d47a1 100%);
    color: white;
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--secondary);
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: #e5a515;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244,180,26,0.3);
}

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

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.hero-stats span {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== CATEGORIES ===== */
.categories-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray);
    font-size: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-card p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
}

.cat-arrow {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: 0.3s;
}

.category-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== LATEST SECTION ===== */
.latest-section {
    padding: 60px 0;
    background: var(--white);
}

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.latest-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    border-left: 4px solid var(--primary);
    transition: 0.3s;
}

.article-card:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--secondary);
}

.tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tag-red { background: #ffebee; color: #c62828; }
.tag-blue { background: #e3f2fd; color: #1565c0; }
.tag-green { background: #e8f5e9; color: #2e7d32; }
.tag-orange { background: #fff3e0; color: #e65100; }
.tag-purple { background: #f3e5f5; color: #6a1b9a; }

.article-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--dark);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--light);
    border-radius: var(--radius);
    padding: 22px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.trending-list li:last-child {
    border-bottom: none;
}

.trending-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}

.trending-list a:hover {
    color: var(--primary);
}

.trending-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.cta-widget {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
    justify-content: center;
}

.cta-widget p {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.btn-whatsapp {
    background: var(--white);
    color: #25d366;
    font-weight: 700;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #f0f0f0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.newsletter-form button {
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ===== RESOURCES ===== */
.resources-section {
    padding: 60px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.resource-icon {
    width: 55px;
    height: 55px;
    background: #e3f2fd;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 15px;
}

.resource-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.resource-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* ===== WHY SECTION ===== */
.why-section {
    padding: 60px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.why-card {
    text-align: center;
    padding: 25px;
}

.why-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.why-card p {
    font-size: 13px;
    color: #666;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    text-align: center;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark);
    color: #aaa;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary);
    font-size: 24px;
}

.footer-logo strong {
    color: var(--primary);
}

.footer-col p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.footer-col ul li a {
    font-size: 13px;
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.contact-info i {
    color: var(--primary);
    width: 16px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-tags a {
    padding: 3px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 12px;
    color: #999;
}

.footer-tags a:hover {
    background: var(--primary);
    color: white;
}

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

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

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,115,232,0.3);
}

/* ===== PAGE BANNER ===== */
.page-banner {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-banner p {
    opacity: 0.85;
    font-size: 15px;
}

/* ===== CONTENT AREA ===== */
.content-area {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.main-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 25px 0 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.main-content h2:first-child {
    margin-top: 0;
}

.main-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 20px 0 10px;
}

.main-content p {
    font-size: 15px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.8;
}

.main-content ul, .main-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.main-content ul li, .main-content ol li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    list-style: disc;
}

.main-content ul li { list-style: disc; }
.main-content ol li { list-style: decimal; }

.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    padding: 15px 18px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-size: 14px;
    color: #1565c0;
}

.info-box.warning {
    background: #fff3e0;
    border-color: #e65100;
    color: #e65100;
}

.info-box.success {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

.info-box i { margin-right: 8px; }

.download-box {
    background: var(--light);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.download-box h4 {
    margin-bottom: 8px;
}

.download-box p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: var(--primary);
    color: white;
}

table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 11px 15px;
    border-bottom: 1px solid var(--border);
}

table tbody tr:nth-child(even) {
    background: var(--light);
}

table tbody tr:hover {
    background: #e8f4fd;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

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

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-info-card i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-info-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 14px;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .latest-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
        font-size: 12px;
    }
    .social-links {
        margin-left: 0;
    }
    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
    .hero-stats {
        gap: 20px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 50px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .category-card {
        padding: 18px 14px;
    }
    .article-card {
        padding: 18px;
    }
    .article-card h3 {
        font-size: 15px;
    }
}
