/* ===== GPA Calculator Pro - Shared Styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb; --purple: #7c3aed; --green: #16a34a; --red: #dc2626;
  --orange: #ea580c; --yellow: #ca8a04; --teal: #0d9488;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
  --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280;
  --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937;
  --gray-900: #111827;
  --bg: #f0f4ff; --card: #fff; --text: #111827; --text-muted: #6b7280;
  --border: #e5e7eb; --nav-bg: rgba(255,255,255,0.95);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
[data-theme="dark"] {
  --bg: #0f172a; --card: #1e293b; --text: #f1f5f9; --text-muted: #94a3b8;
  --border: #334155; --nav-bg: rgba(15,23,42,0.95);
  --gray-50: #1e293b; --gray-100: #334155; --gray-200: #475569;
  --gray-700: #cbd5e1; --gray-800: #e2e8f0; --gray-900: #f1f5f9;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; transition: background 0.3s, color 0.3s; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAVBAR === */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: 68px; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--text); }
.nav-logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.nav-logo-sub { font-size: 0.7rem; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 0.125rem; }
.nav-link { padding: 0.5rem 0.875rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: all 0.2s; text-decoration: none; }
.nav-link:hover, .nav-link.active { background: var(--gray-100); color: var(--text); text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn { padding: 0.5rem 0.875rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.3rem; transition: all 0.2s; }
.nav-dropdown-btn:hover { background: var(--gray-100); color: var(--text); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0.5rem; min-width: 220px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); display: none; z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown-menu:hover { display: block; }
.nav-dropdown-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--text); font-size: 0.875rem; font-weight: 500; transition: background 0.15s; text-decoration: none; }
.nav-dropdown-item:hover { background: var(--gray-50); text-decoration: none; }
.nav-dd-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.nav-dd-label { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-lang-btn { display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 0.8rem; color: var(--text-muted); transition: all 0.2s; }
.nav-lang-btn:hover { background: var(--gray-100); }
.theme-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; }
.theme-btn:hover { background: var(--gray-100); }
.hamburger { display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); z-index: 99; padding: 1rem 1.5rem; flex-direction: column; gap: 0.25rem; max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu-section-title { display: block; padding: 0.625rem 0.875rem; border-radius: 8px; font-size: 0.9rem; color: var(--text); transition: background 0.15s; }
.mobile-menu a:hover { background: var(--gray-50); text-decoration: none; }
.mobile-menu-section-title { font-weight: 700; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.875rem; }
.mobile-calc-link { display: flex !important; align-items: center; gap: 0.5rem; }
.mobile-dd-icon { display: flex; align-items: center; color: var(--blue); }


/* === LAYOUT === */
.main-wrap { padding-top: 68px; min-height: calc(100vh - 68px); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page { padding: 2.5rem 0; }

/* === CARDS === */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-header.gradient-blue { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.card-header.gradient-green { background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; }
.card-header.gradient-purple { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; }
.card-header.gradient-teal { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; }
.card-header.gradient-orange { background: linear-gradient(135deg, var(--orange), var(--yellow)); color: #fff; }
.card-header h2, .card-header h3 { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.card-header p { font-size: 0.875rem; opacity: 0.85; margin-top: 0.25rem; }
.card-body { padding: 1.5rem; }

/* === GRID === */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.calc-grid .col-2 { grid-column: span 2; }
.calc-grid .col-1 { grid-column: span 1; }

/* === FORM ELEMENTS === */
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }
input, select, textarea { width: 100%; padding: 0.5rem 0.75rem; border: 2px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font-size: 0.9rem; outline: none; transition: border-color 0.2s; height: 40px; }
textarea { height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 2rem; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.2s; height: 40px; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { background: var(--card); border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--gray-50); }
.btn-outline-blue { background: var(--card); border: 2px solid var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: #eff6ff; }
.btn-outline-red { background: var(--card); border: 2px solid #fca5a5; color: var(--red); }
.btn-outline-red:hover { background: #fef2f2; }
.btn-ghost { background: none; border: none; cursor: pointer; padding: 0.5rem; border-radius: 8px; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; width: 40px; height: 40px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--red); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { height: 34px; padding: 0.375rem 0.875rem; font-size: 0.8rem; }
.btn-lg { height: 48px; padding: 0.75rem 2rem; font-size: 1rem; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f4ff; }

/* === COURSE ROW === */
.course-row { display: grid; gap: 0.75rem; align-items: center; }
.course-row-5 { grid-template-columns: 5fr 3fr 3fr 1fr; }
.course-row-4 { grid-template-columns: 5fr 3fr 1fr; }
.course-row-6 { grid-template-columns: 4fr 2fr 3fr 2fr 1fr; }
.course-header { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }

/* === SEMESTER BLOCK === */
.semester-block { border: 2px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
.semester-header { background: linear-gradient(to right, #ede9fe, #dbeafe); padding: 0.875rem 1rem; display: flex; align-items: center; justify-content: space-between; }
[data-theme="dark"] .semester-header { background: linear-gradient(to right, #4c1d95, #1e3a5f); }
.semester-header h3 { font-weight: 700; font-size: 1rem; }
.semester-toggle { background: none; border: none; cursor: pointer; color: var(--text-muted); transition: transform 0.2s; padding: 0.25rem; }
.semester-toggle.open { transform: rotate(180deg); }
.semester-body { padding: 1rem; background: var(--card); }

/* === RESULTS PANEL === */
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.result-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* === CIRCULAR METER === */
.meter-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.meter { position: relative; }
.meter svg { transform: rotate(-90deg); }
.meter-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.meter-gpa { font-size: 2.5rem; font-weight: 800; }
.meter-label { font-size: 0.8rem; color: var(--text-muted); }

/* === ACCORDION === */
.accordion { border: 2px solid var(--border); border-radius: 12px; overflow: hidden; }
.accordion-trigger { width: 100%; background: var(--card); border: none; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.15s; }
.accordion-trigger:hover { background: var(--gray-50); }
.accordion-trigger h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.accordion-trigger p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; text-align: left; }
.accordion-trigger .chevron { color: var(--purple); transition: transform 0.3s; flex-shrink: 0; }
.accordion-trigger.open .chevron { transform: rotate(180deg); }
.accordion-content { display: none; padding: 1.5rem; background: var(--card); border-top: 1px solid var(--border); }
.accordion-content.open { display: block; }

/* === TABLE === */
.grade-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); }
.grade-table thead tr { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; }
.grade-table th { padding: 0.875rem 1.25rem; text-align: left; font-weight: 600; }
.grade-table td { padding: 0.75rem 1.25rem; }
.grade-table tbody tr:nth-child(even) { background: var(--gray-50); }
.grade-table tbody tr:hover { background: #eff6ff; }

/* === HERO === */
.hero { background: linear-gradient(135deg, #eff6ff, #f5f3ff, #f0fdfa); padding: 3.5rem 0 2.5rem; text-align: center; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #1e3a5f, #2d1b69, #0d3d38); }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 1.5rem; }

/* === CONTENT SECTIONS === */
.content-section { background: var(--card); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.content-section h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.content-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.content-section p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.formula-box { background: linear-gradient(to right, #ede9fe, #dbeafe); border-radius: 12px; padding: 1.25rem; text-align: center; font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0; }
[data-theme="dark"] .formula-box { background: linear-gradient(to right, #4c1d9540, #1e3a5f40); }
.example-box { background: var(--gray-50); border-radius: 12px; padding: 1.25rem; margin: 1.25rem 0; }
.example-box h4 { font-weight: 700; margin-bottom: 0.75rem; }
.example-box li { list-style: none; padding: 0.25rem 0; color: var(--text-muted); }

/* === GPA BADGES === */
.gpa-badge { display: inline-block; padding: 0.25rem 0.875rem; border-radius: 99px; font-weight: 600; font-size: 0.85rem; }
.gpa-perfect { background: #f3e8ff; color: #7e22ce; }
.gpa-excellent { background: #dcfce7; color: #15803d; }
.gpa-good { background: #dbeafe; color: #1d4ed8; }
.gpa-average { background: #fef9c3; color: #854d0e; }
.gpa-poor { background: #ffedd5; color: #9a3412; }
.gpa-fail { background: #fee2e2; color: #991b1b; }

/* === GRID ITEMS === */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.info-box { background: var(--gray-50); border-radius: 12px; padding: 1.25rem; }
.info-box.blue { background: #eff6ff; }
.info-box.purple { background: #f5f3ff; }
.info-box.green { background: #f0fdf4; }
.info-box.orange { background: #fff7ed; }
.info-box.teal { background: #f0fdfa; }
[data-theme="dark"] .info-box { background: var(--gray-100); }
[data-theme="dark"] .info-box.blue, [data-theme="dark"] .info-box.purple, [data-theme="dark"] .info-box.green, [data-theme="dark"] .info-box.orange, [data-theme="dark"] .info-box.teal { background: var(--gray-100); }
.info-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.info-box ul { list-style: none; }
.info-box li { font-size: 0.875rem; color: var(--text-muted); padding: 0.2rem 0; }
.info-box li::before { content: '✓ '; color: var(--green); }

/* === FEATURE ITEMS === */
.feature-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.feature-icon.blue { background: #dbeafe; }
.feature-icon.purple { background: #ede9fe; }
.feature-icon.green { background: #dcfce7; }
.feature-icon.orange { background: #ffedd5; }
.feature-icon.teal { background: #ccfbf1; }
.feature-icon.pink { background: #fce7f3; }
[data-theme="dark"] .feature-icon.blue, [data-theme="dark"] .feature-icon.purple, [data-theme="dark"] .feature-icon.green, [data-theme="dark"] .feature-icon.orange, [data-theme="dark"] .feature-icon.teal, [data-theme="dark"] .feature-icon.pink { background: var(--gray-100); }
.feature-text h4 { font-weight: 700; margin-bottom: 0.25rem; }
.feature-text p { font-size: 0.875rem; color: var(--text-muted); }

/* === FAQ === */
.faq-item { background: var(--gray-50); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.faq-item h3 { font-weight: 700; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* === CTA SECTION === */
.cta-section { background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 16px; padding: 2.5rem; text-align: center; color: #fff; }
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p { opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; font-size: 1rem; line-height: 1.6; }

/* === FOOTER === */
footer { background: #0f172a; color: #94a3b8; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-col-brand {}
.footer-col {}
footer h3 { color: #f1f5f9; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.625rem; }
footer a { color: #94a3b8; font-size: 0.875rem; transition: color 0.2s; }
footer a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 0.625rem; color: #f1f5f9; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.875rem; }
.footer-brand-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.25rem; color: #94a3b8; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: #1e293b; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: all 0.2s; }
.footer-social a:hover { background: #3b82f6; color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.85rem; color: #94a3b8; }
.footer-contact-row svg { flex-shrink: 0; margin-top: 1px; }
.footer-contact-row a { color: #94a3b8; }
.footer-contact-row a:hover { color: #fff; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #64748b; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #64748b; font-size: 0.8rem; }
.footer-bottom-links a:hover { color: #fff; }


/* === OTHER CALCULATORS SIDEBAR === */
.other-calcs a { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--text); transition: box-shadow 0.2s; }
.other-calcs a:hover { box-shadow: var(--shadow); text-decoration: none; }

/* === NOTIFICATION / TOAST === */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.875rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; animation: slideIn 0.3s ease; max-width: 320px; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === SWITCH TOGGLE === */
.switch-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 99px; transition: 0.3s; cursor: pointer; }
.switch-slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; bottom: 3px; left: 3px; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.switch input:checked + .switch-slider { background: var(--purple); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* === PAGE HEADER === */
.page-header { text-align: center; margin-bottom: 2.5rem; }
.page-header h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.page-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* === STAT BOXES === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.stat-box { background: var(--card); border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-grid .col-2, .calc-grid .col-1 { grid-column: span 1; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .course-row-5 { grid-template-columns: 1fr 1fr; }
  .course-row-5 .col-name { grid-column: span 2; }
  .course-row-6 { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-body { padding: 1rem; }
  .content-section { padding: 1.25rem; }
}

/* === ABOUT PAGE === */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.team-card { text-align: center; }
.team-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; border: 3px solid var(--border); }
.team-card h3 { font-weight: 700; margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.875rem; color: var(--blue); font-weight: 600; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* === CONTACT FORM === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1.25rem; }
.contact-info-item .ci-icon { width: 40px; height: 40px; background: var(--gray-50); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-info-item h4 { font-weight: 600; font-size: 0.9rem; }
.contact-info-item p { font-size: 0.875rem; color: var(--text-muted); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* Overflow x scroll on small screens for tables */
.table-wrap { overflow-x: auto; }

/* === PLANNING PAGE === */
.planning-input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.projection-result { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border-radius: 12px; padding: 1.5rem; text-align: center; border: 2px solid #bfdbfe; }
[data-theme="dark"] .projection-result { background: linear-gradient(135deg, #1e3a5f, #2d1b69); border-color: #3730a3; }
.projection-gpa { font-size: 3rem; font-weight: 800; }
.projection-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 99px; font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }
.projection-badge.achievable { background: #dcfce7; color: #15803d; }
.projection-badge.warning { background: #fee2e2; color: #991b1b; }

/* === SGPA TABLE === */
.sgpa-result-bar { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }
