/* ============================================
   ResearchersMedia Public Website
   Theme: Premium Modern (Indigo/Violet + Glassmorphism)
   Font: Inter, Outfit
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --royal: #4f46e5;
    --royal-dark: #3730a3;
    --royal-deeper: #1e1b4b;
    --royal-light: #e0e7ff;
    --royal-glow: rgba(79, 70, 229, 0.15);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px var(--accent-glow);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
}

a { color: var(--royal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--royal-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.navbar.scrolled { 
    /* background: rgba(255,255,255,0.9); */
    box-shadow: var(--shadow-sm); 
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 76px; width: auto; object-fit: contain; mix-blend-mode: multiply; padding: 10px;}
.brand-text { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.brand-accent { color: var(--royal); }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-link {
    position: relative;
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px;
    font-weight: 500; color: var(--gray-600); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--royal); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--royal); transition: var(--transition); border-radius: 2px;
}
.nav-link.active::after { width: 60%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-800); margin: 6px 0; transition: var(--transition); border-radius: 2px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px;
    border-radius: var(--radius-full); font-weight: 600; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; transition: var(--transition);
    text-decoration: none; font-family: 'Inter', sans-serif;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary { background: var(--royal); color: white; border-color: var(--royal); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #2563eb; border-color: #2563eb; transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline { background: transparent; color: var(--royal); border-color: var(--royal); }
.btn-outline:hover { background: var(--royal); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white { background: white; color: var(--royal); border-color: white; box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--gray-50); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-2px); }

/* ── Sections ── */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; background: var(--royal-light);
    color: var(--royal-dark); border-radius: var(--radius-full); font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.section-title { font-size: 40px; color: var(--gray-900); margin-bottom: 16px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 18px; color: var(--gray-600); }
.section-cta { text-align: center; margin-top: 56px; }

/* ── Page Header ── */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--royal-deeper) 0%, var(--royal) 100%);
    color: white; text-align: center; position: relative;
    overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
}
.page-header h1 { font-size: 48px; margin-bottom: 16px; position: relative; z-index: 1; color: white; }
.page-header p { opacity: 0.9; font-size: 18px; position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

/* ── Content + Sidebar Layout ── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar-ads { display: flex; flex-direction: column; gap: 24px; }
.sidebar-ad-card { background: white; border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); display: block; margin-bottom: 12px; font-weight: 600; }
.ad-inline { margin: 40px 0; padding: 20px; background: white; border-radius: var(--radius); text-align: center; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.ad-section { padding: 20px 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.ad-banner { display: block; text-align: center; }
.ad-banner img { max-height: 120px; margin: 0 auto; border-radius: var(--radius-sm); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 80px 20px; background: white; border-radius: var(--radius); border: 1px dashed var(--gray-300); }
.empty-icon { font-size: 72px; margin-bottom: 24px; opacity: 0.8; }
.empty-state h3 { color: var(--gray-900); margin-bottom: 12px; font-size: 24px; }
.empty-state p { color: var(--gray-600); margin-bottom: 32px; font-size: 16px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; }
.page-info { font-size: 15px; font-weight: 600; color: var(--gray-600); background: white; padding: 12px 24px; border-radius: var(--radius-full); border: 1px solid var(--gray-200); }

/* ── Footer ── */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 80px 0 0; font-size: 15px; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--royal), var(--accent)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .nav-brand { margin-bottom: 20px; }
.footer-brand .brand-logo { filter: invert(1) grayscale(1) brightness(2); mix-blend-mode: screen; }
.footer-brand .brand-text { color: white; }
.footer-brand p { font-size: 15px; line-height: 1.8; max-width: 300px; }
.footer-links h4 { color: white; font-size: 16px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--gray-400); transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); flex-direction: column; padding: 24px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-200); }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 140px 0 80px; }
    .hero-title { font-size: 40px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat-divider { display: none; }
    .articles-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .verify-input-group { flex-direction: column; }
    .cert-row { grid-template-columns: 1fr; }
    .about-stats { flex-direction: column; gap: 24px; }
    .article-meta-bar { flex-direction: column; gap: 16px; align-items: flex-start; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .content-page { margin-top: -20px; padding: 24px; }
    .sidebar-ads { grid-template-columns: 1fr; }
    .search-result-item { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .hero-search-form { flex-direction: column; padding: 12px; border-radius: var(--radius); gap: 12px; }
    .hero-search-input { width: 100%; text-align: center; }
    .search-btn { width: 100%; }
    .search-kbd { display: none; }
}
