/* custom.css — site-specific overrides loaded after style.css */

/* ── Footer legal links ────────────────────────────────────────────────── */
.td_legal_links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.td_legal_links li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.td_legal_links li + li::before {
  content: '|';
  padding: 0 6px;
  opacity: .3;
  display: inline;
}

.td_legal_links a {
  color: inherit;
  opacity: .75;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity .2s;
}

.td_legal_links a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 767px) {
  .td_legal_links { gap: 4px 10px; }
  .td_legal_links a { font-size: 12px; }
}

/* ── Footer bottom — 3-col layout ──────────────────────────────────────── */
.td_footer_bottom {
  font-size: 13px !important;
}

.td_footer_bottom_in {
  display: flex !important;
  align-items: center;
  gap: 16px;
}

.td_footer_bottom .td_copyright {
  flex: 1;
  min-width: 0;
  text-align: start;
  font-size: 13px !important;
}

.td_footer_bottom .td_legal_links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.td_footer_bottom .td_powered_by {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px !important;
}

.td_footer_bottom .td_powered_by span {
  font-size: 13px !important;
}

@media (max-width: 991px) {
  .td_footer_bottom_in {
    flex-direction: column !important;
    gap: 10px;
    text-align: center;
  }
  .td_footer_bottom .td_copyright,
  .td_footer_bottom .td_legal_links,
  .td_footer_bottom .td_powered_by {
    flex: none;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

/* ── Side header box padding ───────────────────────────────────────────── */
.td_side_header .td_side_header_box {
  padding: 20px 0 !important;
}

/* ── Top header right gap ──────────────────────────────────────────────── */
.td_site_header.td_style_1 .td_top_header_right {
  gap: 5px;
}

/* ── Contact list gap on tablet ────────────────────────────────────────── */
@media (max-width: 991px) {
  .td_header_contact_list {
    gap: 0;
  }
}

/* ── Header logos — only one visible at a time ─────────────────────────── */
@media (max-width: 1199px) {
  .td_main_header_center .td_main_logo { display: none !important; }
}
@media (min-width: 1200px) {
  .td_main_header_left .td_site_branding:not(.td_main_logo) { display: none !important; }
}

/* ── Hero title ────────────────────────────────────────────────────────── */
.td_hero_title.td_fs_64 {
  font-size: 46px !important;
}

@media (max-width: 767px) {
  .td_hero_title.td_fs_64 {
    font-size: 30px !important;
  }
}

/* ── Footer link columns — narrower (≈col-6) ───────────────────────────── */
.td_footer_row .td_footer_col_sm {
  flex: 0.55 !important;
  min-width: 0;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .td_footer_row .td_footer_col,
  .td_footer_row .td_footer_col_sm {
    flex: 1 !important;
  }
}

/* Tablet: all cols 50% — 2×2 grid */
@media (max-width: 991px) {
  .td_footer_row .td_footer_col,
  .td_footer_row .td_footer_col_sm {
    flex: none !important;
    width: calc(50% - 25px) !important;
  }
}

@media (max-width: 575px) {
  .td_footer_row {
    gap: 30px 16px !important;
  }
  .td_footer_row .td_footer_col {
    width: 100% !important;
  }
  .td_footer_row .td_footer_col_sm {
    width: calc(50% - 8px) !important;
  }
}

/* ── Footer — smaller font & centered top section ──────────────────────── */
.td_footer.td_style_1 {
  font-size: 14px;
}

.td_footer.td_style_1 .td_footer_widget_title {
  font-size: 15px !important;
}

.td_footer.td_style_1 .td_footer_widget_menu li a,
.td_footer.td_style_1 .td_footer_text_widget p,
.td_footer.td_style_1 .td_newsletter p {
  font-size: 11px;
}

/* ── Blog details — cover image full width ──────────────────────────────── */
.td_blog_details_head > img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Legal page content ─────────────────────────────────────────────────── */
.td_legal_body {
  font-size: 15px;
  line-height: 1.8;
}

.td_legal_body h2,
.td_legal_body h3 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}

/* ── Sidebar dropdown nav ──────────────────────────────────────────────── */
.td_side_has_dropdown > a {
  position: relative;
  display: flex !important;
  align-items: center;
}

/* Chevron */
.td_side_has_dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: auto;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.td_side_has_dropdown.open > a::after {
  transform: rotate(-135deg);
}

/* Sub-nav hidden by default */
.td_side_dropdown_nav {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-inline-start: 12px;
}

.td_side_has_dropdown.open > .td_side_dropdown_nav {
  display: flex;
}

.td_side_dropdown_nav li a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--heading-color);
  text-decoration: none;
  border-radius: 6px;
  background-color: rgba(87, 28, 37, 0.04);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.td_side_dropdown_nav li a:hover {
  background-color: var(--accent-color);
  color: #fff;
}



/* ── Top Bar Action Buttons ────────────────────────────────────────────── */
.td_topbar_actions {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
}

.td_topbar_actions .td_btn.td_style_1 {
  height: 100%;
  display: flex;
  align-items: stretch;
  border-radius: 0;
}

.td_topbar_actions .td_btn_in {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 0 !important;
  white-space: nowrap;
}

/* Apply Now + Scholarship — same design */
.td_topbar_apply .td_btn_in,
.td_topbar_scholar .td_btn_in {
  background: var(--accent-color) !important;
  gap: 7px;
}
.td_topbar_apply:hover .td_btn_in,
.td_topbar_scholar:hover .td_btn_in { opacity: .92; }

/* Responsive */
@media (max-width: 1199px) {
  .td_topbar_actions .td_btn_in { padding: 0 10px !important; font-size: 12px; }
}
@media (max-width: 767px) {
  .td_topbar_actions .td_btn_in { padding: 0 8px !important; font-size: 11px; gap: 4px; }
}

/* ── Floating Side Consultation Tab ────────────────────────────────────── */
.td_consult_float {
  position: fixed;
  top: 68%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--heading-color);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 20px 14px;
  border-radius: 0 10px 10px 0;
  text-decoration: none !important;
  z-index: 9990;
  box-shadow: 4px 0 20px rgba(0,0,0,.22);
  transition: background .25s, padding .25s;
}

.td_consult_float i {
  font-size: 16px;
  flex-shrink: 0;
}

.td_consult_float span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  line-height: 1.3;
}

.td_consult_float:hover {
  background: var(--accent-color);
  padding: 22px 16px;
  color: #fff !important;
}

html[dir="rtl"] .td_consult_float {
  left: auto;
  right: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 20px rgba(0,0,0,.22);
}

html[dir="rtl"] .td_consult_float span {
  transform: rotate(0deg);
}

@media (max-width: 575px) {
  .td_consult_float { font-size: 11px; padding: 16px 11px; }
}

/* Hide template's built-in dropdown toggle in bottom nav — we use ::after */
.td_bottom_nav .td_munu_dropdown_toggle { display: none !important; }

/* Bottom nav link alignment & responsive font */
.td_bottom_nav_list > li > a {
  text-align: center;
}

@media (max-width: 1199px) {
  .td_bottom_nav_list > li > a {
    font-size: 13px;
  }
}

/* ── Bottom Nav Dropdown ───────────────────────────────────────────────── */
.td_bottom_nav_list li { position: relative; }

.td_bottom_nav_list > li > ul {
  display: block !important;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.13);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, top .25s ease, visibility .25s;
}

.td_bottom_nav_list > li:hover > ul,
.td_bottom_nav_list > li.open > ul {
  top: 100%;
  opacity: 1;
  visibility: visible;
}

.td_bottom_nav_list > li > ul > li > a {
  display: block !important;
  padding: 9px 16px;
  color: var(--heading-color) !important;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  background: none;
  text-align: center;
  transition: color .2s ease, background .2s ease;
}

.td_bottom_nav_list > li > ul > li > a:hover {
  color: var(--accent-color) !important;
  background: rgba(0,0,0,.04);
}

.td_bottom_nav_list > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: 7px;
  position: relative;
  top: -2px;
  transition: transform .25s ease, top .25s ease;
}

.td_bottom_nav_list > li.menu-item-has-children:hover > a::after,
.td_bottom_nav_list > li.menu-item-has-children.open > a::after {
  transform: rotate(-135deg);
  top: 1px;
}

/* ── WhatsApp Float Button ─────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 50px;
  left: 48px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: box-shadow .25s, transform .25s;
}

.wa-float:hover,
.wa-float:focus-visible {
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.wa-float__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-float__icon svg {
  width: 28px;
  height: 28px;
}

/* Tooltip label — appears to the right of the button */
.wa-float__label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  direction: ltr;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* Small arrow pointing left toward button */
.wa-float__label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-width: 0;
  border-right-color: #fff;
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}



.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #25d366;
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.18); opacity: 0;  }
  100% { transform: scale(1.18); opacity: 0;  }
}

@media (max-width: 575px) {
  .wa-float { bottom: 30px; left: 20px; right: auto; }
}
