/* ========================================================
   Pudugai Sai Vetha Academy - Responsive & Alignment Upgrade
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@500;700;800&display=swap');

html, body {
  overflow-x: hidden !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
  -webkit-text-size-adjust: 100%;
}

.tamil-font {
  font-family: 'Noto Sans Tamil', sans-serif;
}

/* ================= Header Alignment & Branding ================= */
.tp-header-area {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.header-brand-logo {
  flex-shrink: 0;
}

.header-brand-logo img {
  max-width: 170px;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.header-brand-text {
  flex: 1;
}

.header-title-en {
  font-size: 26px;
  font-weight: 800;
  color: #0A79E1;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.header-title-en span {
  color: #dc2626;
}

.header-title-ta {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0A79E1;
  margin-top: 2px;
}

.header-title-ta span {
  color: #dc2626;
}

.header-tagline {
  font-size: 13px;
  font-weight: 700;
  color: #0211B5;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.header-address-link {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.header-address-link:hover {
  color: #0A79E1;
}

.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-header-phone:hover {
  background: #e2e8f0;
  color: #0A79E1;
}

.btn-portal-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  background: #0A79E1;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(10, 121, 225, 0.3);
  transition: all 0.2s ease;
}

.btn-portal-login:hover {
  background: #005bb5;
  box-shadow: 0 6px 16px rgba(10, 121, 225, 0.4);
  transform: translateY(-1px);
}

/* Responsive Mobile Header */
@media (max-width: 991px) {
  .header-brand-logo img {
    max-width: 80px;
  }
  .header-title-en {
    font-size: 18px;
  }
  .header-title-ta {
    font-size: 14px;
  }
  .header-tagline {
    font-size: 11px;
  }
  .header-address-link {
    display: none;
  }
  .btn-header-phone {
    padding: 8px 10px;
    font-size: 12px;
  }
  .btn-portal-login {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .header-brand-wrap {
    gap: 6px;
    padding: 6px 0;
    flex-wrap: nowrap;
    align-items: center;
  }
  .header-brand-logo {
    flex-shrink: 0;
  }
  .header-brand-logo img {
    max-width: 40px;
    max-height: 38px;
    height: auto;
  }
  .header-brand-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .header-title-en {
    font-size: 11.5px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-title-ta {
    font-size: 10px;
    line-height: 1.15;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-tagline {
    display: none;
  }
  .header-quick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .btn-portal-login {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 6px;
  }
  .btn-portal-login span {
    display: none !important;
  }
  #openOffcanvasBtn {
    padding: 5px 8px !important;
    border-radius: 6px !important;
  }
}

/* ================= Sticky Header Navigation ================= */
.tp-header-main-sticky {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* At top of page, let navigation menu occupy the space cleanly without repeating logo */
#header-sticky:not(.tp-header-sticky) .header-sticky-logo-col {
  display: none !important;
}

#header-sticky:not(.tp-header-sticky) .header-sticky-menu-col {
  width: 75% !important;
  max-width: 75% !important;
  flex: 0 0 75% !important;
  text-align: left !important;
}

#header-sticky:not(.tp-header-sticky) .tp-main-menu ul {
  justify-content: flex-start;
}

/* When sticky (scrolled past 200px), show compact logo */
#header-sticky.tp-header-sticky .header-sticky-logo-col {
  display: block !important;
}

.tp-main-menu ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-main-menu ul li a {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  padding: 18px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.tp-main-menu ul li a:hover {
  color: #0A79E1;
}

.tp-main-menu ul li.has-dropdown {
  position: relative;
}

.tp-main-menu ul li .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  border: 1px solid #f1f5f9;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}

.tp-main-menu ul li.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tp-main-menu ul li .submenu li a {
  padding: 8px 18px;
  display: block;
  font-size: 13px;
  color: #334155;
  transition: background 0.15s, color 0.15s;
}

.tp-main-menu ul li .submenu li a:hover {
  background: #f8fafc;
  color: #0A79E1;
}

/* ================= Features & Winners Cards ================= */
.features-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.section-badge-pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-head-title {
  font-size: 24px;
  font-weight: 800;
  color: #0A79E1;
  margin-bottom: 18px;
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #334155;
}

.feature-check-list li:last-child {
  border-bottom: none;
}

.feature-check-list li i {
  color: #10b981;
  font-size: 17px;
  margin-top: 3px;
  flex-shrink: 0;
}

.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.winner-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.winner-item:hover {
  background: #ffffff;
  border-color: #0A79E1;
  box-shadow: 0 4px 10px rgba(10, 121, 225, 0.1);
}

.winner-roll {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  display: block;
}

.winner-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* ================= Course & Demo Cards ================= */
.academic-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.academic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 121, 225, 0.12);
  border-color: #0A79E1;
}

.academic-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0A79E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.academic-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.academic-card-desc {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.5;
  flex: 1;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-primary {
  background: #0A79E1;
  color: #ffffff !important;
}

.btn-card-primary:hover {
  background: #005bb5;
}

.btn-card-youtube {
  background: #fee2e2;
  color: #dc2626 !important;
  margin-bottom: 8px;
}

.btn-card-youtube:hover {
  background: #dc2626;
  color: #ffffff !important;
}

.btn-card-drive {
  background: #e0f2fe;
  color: #0369a1 !important;
}

.btn-card-drive:hover {
  background: #0284c7;
  color: #ffffff !important;
}

.btn-card-test {
  background: #fef3c7;
  color: #92400e !important;
  margin-bottom: 8px;
}

.btn-card-test:hover {
  background: #d97706;
  color: #ffffff !important;
}

/* ================= Offcanvas Mobile Navigation (Guaranteed Hidden when Closed) ================= */
.offcanvas__area {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 99999 !important;
  box-shadow: -5px 0 25px rgba(0,0,0,0.2) !important;
  transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
  transform: translateX(110%) !important;
  visibility: hidden !important;
  overflow-y: auto !important;
  padding: 24px 20px !important;
}

.offcanvas__area.offcanvas-opened {
  transform: translateX(0) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.offcanvas-backdrop.opened {
  opacity: 1;
  visibility: visible;
}

.offcanvas-close-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #64748b;
  margin-left: auto;
  margin-bottom: 12px;
}

.offcanvas-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.mobile-nav-list li {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list li a {
  display: block;
  padding: 12px 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

.mobile-nav-list li a:hover {
  color: #0A79E1;
}

.mobile-portal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.mobile-portal-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
