/* ============================================================
   CGPACalc.site - Main Stylesheet
   Color Scheme: Blue #1a73e8 + White
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --primary-mid: #4285f4;
  --accent: #fbbc04;
  --success: #34a853;
  --danger: #ea4335;
  --text-dark: #1a1a2e;
  --text-body: #3c4043;
  --text-muted: #6c757d;
  --border: #dadce0;
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Lora', serif;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ---- Container ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-logo span { color: var(--text-dark); }
.site-logo:hover { color: var(--primary-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 18px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  background: #f1f3f4;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 28px 0;
  text-align: center;
}
.ad-slot-banner { min-height: 90px; }
.ad-slot-rect { min-height: 250px; }
.ad-slot-side { min-height: 600px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 60%, #0d3c7a 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.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.04'%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; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  padding: 5px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '›'; color: var(--border); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text-dark); font-weight: 500; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-section { padding: 60px 0 40px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tool-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tool-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.tool-card-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.tool-card-body { padding: 22px; }

/* ---- Form elements ---- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.form-control.error { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,0.25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c62828; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.83rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- Results ---- */
.result-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e3f0ff 100%);
  border: 1.5px solid #b3d4ff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
  display: none;
}
.result-box.show { display: block; }
.result-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.result-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -1px;
  line-height: 1.1;
}
.result-sub { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

.error-msg {
  color: var(--danger);
  font-size: 0.83rem;
  font-weight: 500;
  margin-top: 4px;
  display: none;
}
.error-msg.show { display: block; }

/* ---- Subject rows ---- */
.subject-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 36px;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}
.subject-row input, .subject-row select { font-size: 0.88rem; }
.remove-row {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--danger);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.remove-row:hover { background: #fce8e6; }
.subject-row-header {
  display: grid;
  grid-template-columns: 1fr 80px 80px 36px;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ---- Semester tracker ---- */
.semester-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.semester-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   GRADE TABLE
   ============================================================ */
.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}
.grade-table th, .grade-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.grade-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.grade-table tr:hover td { background: var(--primary-light); }
.grade-table td:first-child { font-weight: 600; color: var(--text-dark); }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { padding: 60px 0; background: var(--bg-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.4);
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.blog-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}
.read-more:hover { gap: 8px; }

/* ============================================================
   UNIVERSITY SECTION
   ============================================================ */
.uni-section { padding: 60px 0; }
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.uni-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.uni-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.uni-logo {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
  font-weight: 800;
  color: var(--primary);
}
.uni-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.uni-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.uni-cgpa-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 60px 0; background: var(--bg-white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  padding: 16px 20px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--primary-light); }
.faq-question.open { background: var(--primary-light); color: var(--primary); }
.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open { padding: 14px 20px 18px; max-height: 600px; }

/* ============================================================
   CONTENT / ARTICLE STYLES
   ============================================================ */
.content-section { padding: 56px 0; }
.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-body);
}
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 36px 0 14px;
  letter-spacing: -0.2px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.article-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 26px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin: 12px 0 20px 20px;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 7px; }
.article-body strong { color: var(--text-dark); }
.article-body a { color: var(--primary); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}
.article-body th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.article-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.article-body tr:hover td { background: var(--primary-light); }
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.info-box strong { color: var(--primary-dark); }
.warn-box {
  background: #fff8e1;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}

/* Page layout with sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
}
.page-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links a:last-child { border-bottom: none; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--primary);
  color: #fff;
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.stat-item p { font-size: 0.9rem; opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo { color: #fff; font-size: 1.3rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1557b0 100%);
  color: #fff;
  padding: 44px 0 38px;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.page-hero p { font-size: 1rem; opacity: 0.85; max-width: 580px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
}
.contact-info-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.contact-item-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item strong { color: var(--text-dark); display: block; margin-bottom: 2px; }

.contact-form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
}
.contact-form-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 22px; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-success {
  background: #e6f4ea;
  border: 1px solid #a8d5b5;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #1e7e34;
  font-weight: 500;
  margin-top: 14px;
  display: none;
}
.form-success.show { display: block; }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.not-found h1 { font-size: 6rem; font-weight: 800; color: var(--primary); letter-spacing: -4px; }
.not-found h2 { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin: 10px 0 16px; }
.not-found p { color: var(--text-muted); max-width: 440px; margin: 0 auto 28px; }

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.blog-post-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1557b0 100%);
  color: #fff;
  padding: 52px 0 44px;
}
.blog-post-hero .blog-tag { background: rgba(255,255,255,0.2); color: #fff; }
.blog-post-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin: 12px 0 14px;
  letter-spacing: -0.3px;
  max-width: 760px;
  line-height: 1.25;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  opacity: 0.85;
}
.blog-post-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.py-48 { padding: 48px 0; }
.py-60 { padding: 60px 0; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }

.highlight { color: var(--primary); font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---- Tools listing page ---- */
.tools-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-list-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow var(--transition);
}
.tool-list-card:hover { box-shadow: var(--shadow-md); }
.tool-list-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tool-list-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.tool-list-card p { font-size: 0.83rem; color: var(--text-muted); }
.tool-list-card a { font-size: 0.83rem; color: var(--primary); font-weight: 600; margin-top: 6px; display: inline-block; }

/* ---- Progress bar ---- */
.progress-bar {
  background: var(--border);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 6px 0;
}
.progress-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-white); padding: 16px 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .nav-inner { position: relative; }
  .tools-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .subject-row { grid-template-columns: 1fr 70px 70px 32px; }
  .blog-grid, .uni-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 28px; }
  .blog-post-meta { gap: 10px; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .ad-slot { display: none; }
  .article-body { font-size: 11pt; }
}
