
:root {
    --primary: rgb(37, 99, 235); 
    --primary-soft: rgba(37, 99, 235, 0.08);
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --hover: #f1f5f9;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --r: 12px;
    --maxw: 1250px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: #f8fafc; 
}

#nav-spacer { height: 72px; }

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    text-decoration: none;
    margin-right: auto;
    font-family: "Pacifico", cursive;
    font-weight: 700;
    font-style: normal;
    color: #000;
}

/* Desktop Links */
.nav__links {
    display: none;
    list-style: none;
    align-items: center;
    gap: 2px;
    font-family: "Roboto", sans-serif;
}

@media (min-width: 1100px) { .nav__links { display: flex; } }

.nav__links a, .nav__ddbtn {
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav__links a:hover, .nav__ddbtn:hover { background: var(--hover); color: var(--primary); }

/* Dropdown */
.nav__dd { position: relative; }
.nav__ddmenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.nav__dd:hover .nav__ddmenu { display: flex; }
.nav__ddmenu a { font-size: 0.85rem; }

/* Controls Group (Search + Burger) */
.nav__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: 0.2s;
}
.nav__iconbtn:hover { background: var(--primary-soft); color: var(--primary); }

/* Search Bar */
.search-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg);
    border-bottom: 0 solid var(--border);
}
.search-container.active { max-height: 80px; border-bottom-width: 1px; }
.search-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px;
    display: flex;
    gap: 12px;
}
.search-inner input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    outline: none;
    font-size: 1rem;
}

/* Mobile Drawer */
/* Drawer background overlay */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    justify-content: flex-end; /* align panel to right */
    backdrop-filter: blur(4px);
    
    /* Smooth fade */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Show overlay */
.drawer.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sliding panel */
.drawer__panel {
    width: min(320px, 85vw);
    background: var(--bg);
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;

    /* Start offscreen to the right */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Active panel slides in */
.drawer.active .drawer__panel {
    transform: translateX(0);
}

.drawer__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.drawer__link:hover { background: var(--hover); }
.drawer__sub { padding-left: 40px; font-size: 0.95rem; opacity: 0.8; }

.mobile-only { display: flex; }
@media (min-width: 1100px) { .mobile-only { display: none; } }



:root {
  --footer-bg: #0f172a; /* Deep slate */
  --footer-text: #94a3b8;
  --footer-heading: #f8fafc;
  --footer-accent: #3b82f6; /* Modern Blue */
  --footer-border: rgba(255, 255, 255, 0.1);
}

.site-footer {
  background-color: #0f172a !important;
  color: var(--footer-text);
  padding: 60px 0 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  /* Responsive Grid: 1 col mobile, 2 col tablet, 4 col desktop */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

/* Brand Styling */
.footer-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1.5; /* Give brand more room */
  }
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-icon {
  color: var(--footer-accent);
  width: 32px;
  height: 32px;
}

.footer-logo {
  color: var(--footer-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-slogan {
  color: var(--footer-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Links Styling */
.footer-column h3 {
  color: var(--footer-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--footer-accent);
  margin-top: 8px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--footer-accent);
  padding-left: 5px;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: var(--footer-heading);
  background: rgba(255, 255, 255, 0.05);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--footer-accent);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 25px 0;
  margin-top: 20px;
}

.bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .bottom-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
}

/* ============================= */
/* EDUCATIONAL BLUE SCROLLBAR   */
/* ============================= */

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f6fb; /* soft academic background */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #2f6fe4,
        #1e56c9
    );
    border-radius: 999px;
    border: 2px solid #f3f6fb;
    transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #3c7df0,
        #1e56c9
    );
}

/* Optional: subtle inner glow */
::-webkit-scrollbar-thumb:active {
    background: #1e56c9;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2f6fe4 #cccccc;
}

/* Remove all outlines, shadows, and tap highlights globally */
*,
*::before,
*::after {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important; /* mobile */
}

/* Remove link text decoration highlight on click */
a,
button {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Optional: remove focus styles completely */
:focus {
    outline: none !important;
    box-shadow: none !important;
}
