body {
  font-family: 'Hind Vadodara', 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
  display: block;
  min-height: 100vh;
}
.site-footer, nav.navbar {
  width: 100%;
}
.card {
  border: none;
  border-radius: 10px;
}
.navbar-brand {
  letter-spacing: 0.5px;
}

/* Envato Style Footer */
.site-footer {
  background-color: #0f172a !important; /* Deep modern slate */
  color: #94a3b8;
}
.site-footer h6 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #f8fafc;
}
.site-footer .footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.site-footer .footer-links a:hover {
  color: #38bdf8;
  text-decoration: none;
  transform: translateX(2px);
}
.site-footer .border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================================
   Priy Education Safar / શિક્ષણ સાગર - App Theme Styles
   Common CSS for all mediums (Gujarati, English, Hindi)
   ========================================================= */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --dark: #0f172a;
  --light-bg: #f1f5f9;
  --white: #ffffff;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* App Header */
.app-header {
  background: linear-gradient(135deg, #059669, #10b981);
  color: var(--white);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}
.brand-title i {
  font-size: 24px;
  color: #fef08a;
}
.header-icons {
  display: flex;
  gap: 12px;
  font-size: 17px;
  align-items: center;
}
.header-icons a, .header-icons span {
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  padding: 8px 10px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.header-icons a:hover, .header-icons span:hover {
  background: rgba(255,255,255,0.35);
  color: #fef08a;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Live Search Box */
.search-wrapper {
  max-width: 1200px;
  margin: 10px auto 0;
}
.search-bar {
  width: 100%;
  background: #ffffff;
  border-radius: 25px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.search-bar input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  padding-left: 10px;
  font-family: inherit;
}
.search-bar i {
  color: #64748b;
}

/* Ticker Notification */
.news-ticker {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #fde68a;
}
.ticker-tag {
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 10px;
  white-space: nowrap;
}

/* Medium Switcher Tabs */
.medium-switcher {
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.medium-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border: none;
  background: var(--white);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}
.medium-btn:hover {
  color: var(--primary-dark);
  background: #f8fafc;
}
.medium-btn.active {
  background: var(--primary);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Section Card */
.section-card {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}
.section-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header i {
  color: var(--primary);
  font-size: 19px;
}
.section-header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.section-header-link:hover {
  color: var(--primary-dark);
}

/* App Tile Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.app-tile {
  background: #ffffff;
  padding: 16px 8px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.app-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  color: var(--primary-dark);
}
/* Rotating Vibrant Borders */
.app-tile:nth-child(6n+1) { border-color: #93c5fd; background: #f0f7ff; }
.app-tile:nth-child(6n+2) { border-color: #86efac; background: #f0fdf4; }
.app-tile:nth-child(6n+3) { border-color: #fdba74; background: #fffaf5; }
.app-tile:nth-child(6n+4) { border-color: #f9a8d4; background: #fdf2f8; }
.app-tile:nth-child(6n+5) { border-color: #c4b5fd; background: #f5f3ff; }
.app-tile:nth-child(6n+6) { border-color: #fde047; background: #fefce8; }

.app-tile img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  object-fit: contain;
}
.app-tile span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Side Navigation Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
}
.drawer {
  position: fixed;
  top: 0;
  left: -290px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  left: 0;
}
.drawer-header {
  background: var(--primary);
  color: white;
  padding: 20px 16px;
}
.drawer-menu {
  list-style: none;
  padding: 15px 0;
  margin: 0;
  overflow-y: auto;
}
.drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.drawer-menu li a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* Fixed Bottom Navigation (Mobile App UI) */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
}
.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  transition: color 0.2s;
}
.bottom-item i {
  font-size: 19px;
}
.bottom-item.active, .bottom-item:hover {
  color: var(--primary-dark);
}

/* App Footer */
.app-footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 30px 15px 25px;
  margin-top: 30px;
  font-size: 13px;
}
.app-footer a {
  color: #38bdf8;
  text-decoration: none;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .app-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 650px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .app-tile {
    padding: 12px 4px;
  }
  .app-tile img {
    width: 36px;
    height: 36px;
  }
  .app-tile span {
    font-size: 11.5px;
  }
}
