/*
Theme Name: India's Education Standalone
Theme URI: https://indiaseducation.com
Description: Full Independent Custom Theme for India's Education Blog portal. 
Version: 1.0.0
Author: India's Education
Text Domain: indias-education-standalone
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css');

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

:root {
  --teal: #2BBFAD;
  --teal-dark: #1d9e8f;
  --teal-deeper: #0f6e56;
  --teal-light: #e0f9f6;
  --teal-mid: #b2efe8;
  --blue: #1A5FA8;
  --blue-dark: #134a85;
  --blue-deeper: #0c3d70;
  --blue-light: #e6f1fb;
  --blue-mid: #b5d4f4;
  --white: #ffffff;
  --off-white: #f8fafb;
  --gray-light: #f1f4f7;
  --gray: #8896a5;
  --gray-dark: #4a5568;
  --text: #1a202c;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(26,95,168,0.08);
  --shadow-md: 0 4px 24px rgba(26,95,168,0.12);
  --radius: 10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── TOP BAR ── */
.topbar { background: var(--blue-deeper); color: rgba(255,255,255,0.8); font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar i { font-size: 13px; vertical-align: -1px; margin-right: 4px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 26px; height: 26px; background: rgba(255,255,255,0.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: background 0.2s; }
.social-icons a:hover { background: var(--teal); }

/* ── HEADER ── */
.header { background: var(--white); border-bottom: 3px solid var(--teal); padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--teal), var(--blue)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon i { font-size: 28px; color: #fff; }
.logo-text-main { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--teal); line-height: 1.1; }
.logo-text-main span { color: var(--blue); }
.logo-tagline { font-size: 10px; color: var(--blue); letter-spacing: 2px; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 30px; padding: 8px 16px; font-size: 13px; color: var(--gray); background: var(--gray-light); cursor: pointer; transition: border-color 0.2s; }
.search-box:hover { border-color: var(--teal); }
.search-box i { font-size: 15px; color: var(--gray); }
.btn-subscribe { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; padding: 9px 20px; border-radius: 30px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s, transform 0.1s; white-space: nowrap; }
.btn-subscribe:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── NAVIGATION ── */
.navbar { background: var(--blue); position: sticky; top: 83px; z-index: 99; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; overflow-x: auto; list-style: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner li a { color: rgba(255,255,255,0.8); padding: 12px 16px; font-size: 13px; font-weight: 500; white-space: nowrap; display: block; transition: background 0.2s, color 0.2s; }
.nav-inner li a:hover, .nav-inner li.current-menu-item a { background: rgba(255,255,255,0.1); color: #fff; }

/* ── TICKER ── */
.ticker { background: var(--teal-light); border-bottom: 1px solid var(--teal-mid); padding: 8px 0; overflow: hidden; }
.ticker-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.ticker-label { background: var(--teal); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }

/* ── MAIN LAYOUT ── */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* ── SECTION HEADERS ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; margin-top: 10px; }
.section-title { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--text); }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--teal); border-radius: 2px; display: block; }
.section-title.blue-bar::before { background: var(--blue); }
.view-all { font-size: 13px; color: var(--teal); font-weight: 500; cursor: pointer; transition: color 0.2s; }
.view-all:hover { color: var(--teal-dark); }

/* ── HERO BANNER ── */
.hero { background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 50%, var(--teal-dark) 100%); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 24px; min-height: 220px; position: relative; }
.hero::before { content: ''; position: absolute; inset: 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.03'%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 { padding: 32px 28px; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 30px; letter-spacing: 1px; margin-bottom: 14px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 10px; }
.hero-title a { color: #fff; }
.hero-excerpt { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 18px; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: rgba(255,255,255,0.6); font-size: 12px; }
.hero-meta span { display: flex; align-items: center; gap: 4px; }
.btn-read { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--blue); padding: 9px 20px; border-radius: 30px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-read:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-visual-icon { font-size: 90px; color: rgba(255,255,255,0.12); position: absolute; right: -10px; bottom: -10px; }
.hero-visual-inner { display: flex; flex-direction: column; gap: 10px; z-index: 1; padding: 20px; }
.hero-stat { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); padding: 10px 16px; backdrop-filter: blur(4px); }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ── ARTICLE CARDS GRIDS ── */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-thumb { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb.teal { background: var(--teal-light); color: var(--teal); border-bottom: 3px solid var(--teal); }
.card-thumb.blue { background: var(--blue-light); color: var(--blue); border-bottom: 3px solid var(--blue); }
.card-body { padding: 14px; flex-grow: 1; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.badge.teal { background: var(--teal-light); color: var(--teal-deeper); }
.badge.blue { background: var(--blue-light); color: var(--blue-dark); }
.badge.orange { background: #fff3e0; color: #bf6000; }
.card-title { font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text); margin-top: 8px; margin-bottom: 10px; }
.card-footer { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--gray); margin-top: auto; }

.cards-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.list-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.list-card:hover { box-shadow: var(--shadow); border-color: var(--teal-mid); }
.list-thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.list-thumb.teal { background: var(--teal-light); color: var(--teal); }
.list-thumb.blue { background: var(--blue-light); color: var(--blue); }
.list-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); margin-top: 6px; margin-bottom: 6px; }
.list-meta { font-size: 11px; color: var(--gray); display: flex; align-items: center; gap: 8px; }

/* ── SCHOLARSHIPS PROMO BANNER ── */
.promo-banner { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; color: #fff; }
.promo-left { display: flex; align-items: center; gap: 14px; }
.promo-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo-icon i { font-size: 24px; color: #fff; }
.promo-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.promo-sub { font-size: 12px; color: rgba(255,255,255,0.75); }
.promo-btn { background: #fff; color: var(--teal-dark); padding: 10px 22px; border-radius: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; flex-shrink: 0; transition: transform 0.15s; }
.promo-btn:hover { transform: scale(1.03); }

/* ── SIDEBAR & WIDGETS ── */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-header { padding: 11px 16px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; letter-spacing: 0.3px; text-transform: uppercase; font-size: 12px; }
.widget-header.teal { background: var(--teal); }
.widget-header.blue { background: var(--blue); }
.widget-body { padding: 14px 16px; }

.newsletter-widget { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-radius: var(--radius); padding: 20px; color: #fff; }
.newsletter-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.newsletter-icon i { font-size: 20px; color: var(--teal); }
.newsletter-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.newsletter-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.5; }
.newsletter-input { width: 100%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 9px 12px; font-size: 13px; color: #fff; margin-bottom: 10px; font-family: 'DM Sans', sans-serif; outline: none; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-btn { width: 100%; background: var(--teal); color: #fff; padding: 9px; border-radius: 6px; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.newsletter-btn:hover { background: var(--teal-dark); }

.popular-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--teal); min-width: 30px; line-height: 1; margin-top: 2px; }
.popular-title { font-size: 12.5px; font-weight: 500; line-height: 1.45; color: var(--text); }
.popular-title:hover { color: var(--teal); }

.exam-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.exam-item:last-child { border-bottom: none; }
.exam-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.exam-date { font-size: 11px; color: var(--gray); margin-top: 2px; }
.days-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 30px; white-space: nowrap; }
.days-badge.done { background: var(--teal-light); color: var(--teal-deeper); }
.days-badge.soon { background: var(--blue-light); color: var(--blue-dark); }
.days-badge.far { background: #fff3e0; color: #bf6000; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12px; padding: 5px 13px; border-radius: 30px; cursor: pointer; font-weight: 500; transition: background 0.2s, color 0.2s; }
.tag.teal { background: var(--teal-light); color: var(--teal-deeper); }
.tag.teal:hover { background: var(--teal); color: #fff; }
.tag.blue { background: var(--blue-light); color: var(--blue-dark); }
.tag.blue:hover { background: var(--blue); color: #fff; }

/* ── FOOTER ── */
.footer { background: var(--blue-deeper); color: rgba(255,255,255,0.8); margin-top: 30px; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand-name span { color: var(--teal); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; transition: background 0.2s; }
.footer-social a:hover { background: var(--teal); }
.footer-col-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 24px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .header-right .btn-subscribe { display: none; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
}