:root {
    --primary: #0066FF;
    --primary-dark: #0052cc;
    --secondary: #64748b;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;
}

[data-theme="dark"] {
    --dark: #f8fafc;
    --light: #0f172a;
    --white: #1e293b;
    --border: #334155;
    --text: #cbd5e1;
    --text-light: #94a3b8;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* HEADER */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions button {
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.2s;
}

.header-actions button:hover {
    background: var(--light);
    color: var(--primary);
}

.header-actions svg {
    width: 24px;
    height: 24px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    border: 1px solid var(--border);
    font-family: var(--font-urdu);
}

/* HERO SECTION */
.hero {
    background: var(--white);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* FILTERS */
.filter-section {
    position: sticky;
    top: 81px;
    z-index: 90;
    background: var(--light);
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(248, 250, 252, 0.9);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-tab svg {
    width: 20px;
    height: 20px;
}

/* MAIN CONTENT */
.main-content {
    padding: 4rem 0;
}

.content-header {
    margin-bottom: 2rem;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.content-title span {
    color: var(--primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.post-card-image {
    position: relative;
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-card-placeholder svg {
    color: #cbd5e1;
}

.post-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--white);
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.badge-verified {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--success);
}

.badge-verified svg {
    width: 14px;
    height: 14px;
}

.badge-job {
    color: var(--primary);
}

.badge-scholarship {
    color: var(--accent);
}

.badge-hot {
    background: var(--danger);
    color: white;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: var(--dark);
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-meta-item svg {
    width: 16px;
    height: 16px;
}

.post-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-card-views {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-views svg {
    width: 16px;
    height: 16px;
}

.share-post-btn {
    color: var(--text-light);
    padding: 0.4rem;
    border-radius: 50%;
}

.share-post-btn:hover {
    background: #e2e8f0;
    color: var(--dark);
}

/* NEWSLETTER */
.newsletter {
    background: var(--primary);
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 3rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 2rem;
}

.newsletter-btn {
    background: var(--dark);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: black;
}

/* FOOTER */
.footer {
    background: var(--white);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

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

.footer-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.footer-trust-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.5rem;
    border-radius: 50%;
}

.footer-trust-icon svg {
    width: 24px;
    height: 24px;
}

.footer-trust-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
}

.footer-trust-text p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-heading {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 24px;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--dark);
        border-radius: 2px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0;
        background: none;
        box-shadow: none;
        gap: 1rem;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* UTILS */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
}

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

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 1.5rem;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    font-size: 1.5rem;
    color: white;
    padding: 1rem 0 1rem 3rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-input-wrapper svg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.5);
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    padding: 1rem;
}

.search-close svg {
    width: 32px;
    height: 32px;
}
