/* ==========================================================================
   ARRIVO – HOME PAGE RESPONSIVE OVERRIDES
   Loaded AFTER style.css (see functions.php snippet). Only touches the
   header, home page sections, footer and floating social bar.
   Breakpoints: 1280 / 1024 / 768 / 640 / 480 / 360
   ========================================================================== */

/* ---------- 0. Global safety net ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 30px); }

/* ---------- 1. HEADER ---------- */
.header-bar { gap: 16px; }
.branding img { max-height: 38px; width: auto; }
.main-nav > li > a { white-space: nowrap; }

/* 993px – 1280px: seven menu items need to fit on one line */
@media (min-width: 993px) and (max-width: 1280px) {
  .header-bar { padding: 14px 24px; }
  .main-nav { gap: 18px; }
  .main-nav > li > a { font-size: 14px; padding: 8px 2px; }
}
@media (min-width: 993px) and (max-width: 1100px) {
  .header-bar { padding: 12px 16px; }
  .main-nav { gap: 10px; }
  .main-nav > li > a { font-size: 13px; }
}

/* Mobile / tablet drawer */
@media (max-width: 992px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px; z-index: 10001; position: relative;
  }
  .main-nav { height: 100vh; height: 100dvh; z-index: 10000; overscroll-behavior: contain; padding-bottom: 90px; }
  .main-nav > li > a { padding: 16px 20px; min-height: 48px; white-space: normal; }
  .menu-overlay { z-index: 9998; }
}

/* ---------- 2. HERO ---------- */
/* an old generic .hero rule in style.css adds 80px/20px padding – remove it for the home hero */
#hero.hero { padding: 0; }

/* ===== Large screens (1200px+): text left, photo right. Type never gets smaller than a readable minimum ===== */
@media (min-width: 1200px) {
  .hero { min-height: 560px; }
  .img-2 { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .img-2 img { position: absolute; top: 30.2%; right: -0.9%; width: 49.5%; max-width: none; height: auto; }
  .hero-content { left: 6%; width: 40%; }
  .hero-content h1 { font-size: clamp(36px, 3.3vw, 58px); }
  .hero-content .hero-sub { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.65; margin: 14px 0 26px !important; padding: 0 !important; }
  .hero-btns { gap: 12px; margin-bottom: clamp(22px, 2.4vw, 40px); }
  .hero-btn { padding: 14px 26px; font-size: clamp(15px, 1vw, 17px); 
    border-radius: 8px;
  background: #164e63 !important;
  border: none;
  }
  .hero-stats { margin-top: 4px; }
  .hero-stat { padding: 0 clamp(12px, 1.6vw, 30px); }
  .hs-icon { width: 46px; height: 46px; }
  .hero-stat strong { font-size: clamp(16px, 1.15vw, 19px); }
  .hero-stat small { font-size: clamp(12px, .85vw, 14px); }
  .our-knowledge-partner { font-size: 12.5px !important; margin-top: clamp(24px, 2.4vw, 40px) !important; }
  .flex-img .img-cl-first img { max-width: clamp(190px, 15vw, 250px); }
}

/* ===== Laptops-small / tablets / phones (up to 1199px): text on top, photo underneath ===== */
@media (max-width: 1199px) {
  .hero { display: grid !important; grid-template-columns: 100%; aspect-ratio: auto; overflow: hidden; perspective: none; min-height: 0; }
  .hero-content {
    grid-row: 1; grid-column: 1; position: relative !important; left: auto !important; top: auto !important;
    transform: none !important; width: 100% !important; max-width: 760px; margin: 0 auto;
    padding: 44px 24px 24px; text-align: center;
  }
  .hero-content h1 { text-align: center; font-size: clamp(34px, 5.4vw, 48px); line-height: 1.12; margin-bottom: 6px; }
  .hero-content .hero-sub { text-align: center; font-size: clamp(16px, 2.2vw, 18px); max-width: 600px; margin: 14px auto 26px !important; padding: 0 !important; }
  .hero-btns { justify-content: center; gap: 12px; margin-bottom: 28px; }
  .hero-btn { width: auto; max-width: none; padding: 14px 26px; font-size: 16px; border-radius: 8px; justify-content: center; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 680px; margin: 0 auto; }
  .hero-stat { padding: 14px 8px; min-width: 0; border-left: 0; background: #fff; border: 1px solid #e1e9f7; border-radius: 12px; box-shadow: 0 2px 8px rgba(13,59,122,.06); }
  .hs-icon { width: 44px; height: 44px; margin-bottom: 8px; }
  .hero-stat strong { font-size: 17px; }
  .hero-stat small { font-size: 13px; }
  .our-knowledge-partner { text-align: center !important; margin: 30px 0 10px !important; font-size: 12.5px !important; }
  .flex-img { justify-content: center; }
  .flex-img .img-cl-first img { max-width: 230px; margin: 0 auto; }

  /* photo composition: same layers, same proportions; bottom blank band trimmed */
  .tilt, .img-2 {
    display: none !important; grid-row: 2; grid-column: 1; position: relative !important;
    inset: auto !important;  left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    width: 100%; aspect-ratio: 1698 / 926; margin-bottom: -6%;
  }

  .tilt { transform: none !important; }
  .zoom { -webkit-mask-image: none; mask-image: none; }
  .img-2 { z-index: 2; pointer-events: none; }
  .img-2 img { position: absolute; top: 30.2%; right: -0.9%; width: 49.5%; max-width: none; height: auto; }
}


/* ===== Phones ===== */
@media (max-width: 768px) {
  .hero-content { padding: 32px 20px 18px; }
  .hero-content h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-content .hero-sub { font-size: 16px; margin: 12px auto 24px !important; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
  .hero-btn { width: 100%; max-width: 360px; min-height: 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 380px; gap: 10px; }
  .hero-stat strong { font-size: 18px; }
  .hero-stat small { font-size: 13px; }
  /* show only the right ~2/3 of the picture, where the people are */
  .tilt, .img-2 { width: 150%; margin-left: -50%; margin-bottom: -9%; }
}
@media (max-width: 380px) {
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 12px 6px; }
  .hero-stat strong { font-size: 16px; }
  .hero-stat small { font-size: 12px; }
}

/* ---------- 4. SECTION HEADINGS / SPACING ---------- */
.practise-in-the-word, .apply-for-inquery { padding-block: clamp(40px, 7vw, 80px); }
.practise-in-the-word h2 { font-size: clamp(1.5rem, 4.5vw, 2rem) !important; }
.practise-in-the-word > .container > p:first-child { font-size: clamp(.75rem, 2.4vw, .9rem); letter-spacing: 1.5px; }

/* ---------- 5. PARTNER UNIVERSITY SLIDER ---------- */
/* Equal-height cards, button always at the bottom, nothing clipped or overflowing */
.univeristy-section .container { overflow: visible; }
.university-slider { padding: 0 !important; margin: 0 -12px !important; width: auto !important; max-width: none !important; }
.university-slider .slick-list { overflow: hidden; padding: 6px 0 10px !important; }
.university-slider .slick-track { display: flex !important; align-items: stretch; margin-left: 0; margin-right: 0; }
.university-slider .slick-slide { float: none !important; height: auto !important; display: flex !important; padding: 0 !important; }
.university-slider .slick-slide > div { width: 100%; display: flex; }
.university-slide-item { width: 100% !important; display: flex !important; padding: 0 !important; margin: 0 !important; box-sizing: border-box; }
.university-slide-item .university-card {
  display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0;
  /* the gap between cards is a MARGIN on the card, so no other padding rule can remove it */
  margin: 0 12px !important; width: auto !important;
  padding-bottom: 0 !important; background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #e3e8ee; box-shadow: 0 6px 18px rgba(16,42,67,.07) !important;
}
.university-slide-item .university-card:hover { transform: none; }
.university-slide-item .university-image { height: auto; aspect-ratio: 16 / 9; flex: none; }
.university-slide-item .university-image a { display: block; width: 100%; height: 100%; }
.university-slide-item .university-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.university-slide-item .university-card .university-content { flex: 1 1 auto; min-height: 0 !important; padding: 22px 22px 10px !important; }
.main-university-title { font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; }
.university-slide-item .courses-grid { display: flex !important; flex-direction: column; gap: 12px !important; margin: 18px 0 12px !important; }
.university-slide-item .courses-grid > a { display: block; min-width: 0; text-decoration: none; }
.main-course-card { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.main-course-card > span { flex: none; margin-right: 0 !important; line-height: 1.5; }
.main-course-card h3 { font-size: .92rem; line-height: 1.5; margin: 0; padding: 0; text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.university-slide-item .main-university-footer {
  position: static !important; width: auto; margin-top: auto; flex: none;
  padding: 18px 22px 22px; border-top: 1px solid #f0f0f0;
}
.university-slide-item .view-btn { width: 100%; justify-content: center; padding: 13px 18px; min-height: 46px; }
/* dots are useful on touch screens where the arrows are hidden */
@media (max-width: 1024px) {
  .university-slider .slick-dots { display: flex !important; position: static; justify-content: center; margin-top: 8px; }
  .university-slider .slick-dots li { margin: 0 2px; }
}
.university-all-btn { margin-top: 36px; }
@media (max-width: 640px) {
  .university-slider { margin: 0 -8px !important; }
  .university-slide-item .university-card { margin: 0 8px !important; }
  .university-slide-item .university-card .university-content { padding: 20px 18px 8px !important; }
  .university-slide-item .main-university-footer { padding: 16px 18px 20px; }
  .university-all-btn { margin-top: 24px; }
}

/* ---------- 6. INDUSTRY PARTNER MARQUEE ---------- */
@media (max-width: 768px) {
  .industry-partners-section .ip-item { width: 140px; height: 76px; margin: 0 8px; padding: 10px 12px; }
  .industry-partners-section .ip-item img { max-height: 100%; max-width: 100%; object-fit: contain; }
  .industry-partners-section .ip-marquee { margin-top: 20px; }
}

/* ---------- 7. STUDENT TESTIMONIAL + VIDEO SLIDERS ---------- */
@media (max-width: 991px) {
  .vt-slider { padding-inline: 48px; }
}
@media (max-width: 640px) {
  .vt-slider { padding-inline: 0; }
  .vt-card { max-width: min(290px, 78vw); }
  .vt-btn { display: none !important; }       /* swipe on touch devices */
  .vt-play { width: 54px; height: 54px; }
  .st-card { padding: 22px 18px; }
}
.vt-viewport, .st-viewport { touch-action: pan-y; }

/* ---------- 8. EVENTS (Industry Exposure) ---------- */
.latest-events-row .news-event-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .latest-events-row { display: grid !important; grid-template-columns: 1fr; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; gap: 18px; margin-top: 24px; }
  .latest-events-row .news-event-card { flex: none; width: 100%; }
}
@media (min-width: 641px) and (max-width: 991px) {
  .latest-events-row { gap: 18px; }
}

/* ---------- 9. PLACEMENT LOGOS ---------- */
.placement-grid { gap: clamp(10px, 2vw, 20px); padding-top: 28px; }
.placement-item__img-wrap { min-height: clamp(86px, 12vw, 140px); padding: 8px; }
.placement-item__img-wrap img { max-width: min(190px, 90%); height: auto; object-fit: contain; }
@media (max-width: 560px) {
  .placement-item { flex-basis: calc((100% - 10px) / 2) !important; max-width: calc((100% - 10px) / 2) !important; }
  .placement-grid { gap: 10px; }
}
@media (max-width: 340px) {
  .placement-item { flex-basis: 100% !important; max-width: 100% !important; }
}
.pa-more-wrap .cta-button, .university-all-btn .cta-button, .practise-in-the-word a.cta-button { min-height: 44px; }

/* ---------- 10. INQUIRY BANNER ---------- */
.apply-for-inquery .row { margin-inline: 0; gap: 24px; flex-wrap: nowrap; }
.apply-for-inquery .col-6 { width: auto; flex: 1 1 0; min-width: 0; padding-inline: 0; }
.apply-for-inquery .col-6 img { height: 100%; max-height: 380px; object-fit: cover; }
@media (max-width: 768px) {
  .apply-for-inquery .row { flex-direction: column; gap: 20px; flex-wrap: wrap; }
  .apply-for-inquery .col-6 { width: 100%; flex: none; }
  .apply-for-inquery .col-6 img { max-height: 240px; }
  .inqiery { padding: 24px 18px !important; text-align: center; }
  .inqiery p { text-align: center; padding: 8px 0; margin-bottom: 18px; }
  .inqiery .btn-primary { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---------- 11. FOOTER ---------- */
.site-footer .container { padding-inline: clamp(16px, 4vw, 30px); }
.footer-container { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(24px, 3vw, 40px); }
.footer-contact, .footer-links a { overflow-wrap: anywhere; }
.footer-social a, .fs-icon { min-width: 40px; min-height: 40px; }
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-container { grid-template-columns: 1fr; text-align: left; gap: 26px; }
  .footer-col h3 { margin-bottom: 12px; }
}
/* leave room so the fixed bottom bar never hides the copyright line */
@media (max-width: 992px) {
  .site-footer { padding-bottom: 64px; }
  .footer-bottom { padding-inline: 16px; text-align: center; }
}

/* ---------- 12. FLOATING SOCIAL BAR ---------- */
@media (min-width: 993px) and (max-width: 1360px) {
  .floating-social-bar { left: 8px; gap: 6px; }
  .floating-social-bar a { padding: 8px 11px; }
}
@media (max-width: 992px) {
  .floating-social-bar {
    top: auto !important; bottom: 0; left: 0; right: 0; transform: none !important;
    width: 100%; flex-direction: row; gap: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #174f64; box-shadow: 0 -2px 10px rgba(0,0,0,.15);
  }
  .floating-social-bar a {
    flex: 1 1 0; width: auto !important; min-width: 0; padding: 14px 0 !important;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0 !important; border: 0 !important; border-right: 1px solid rgba(255,255,255,.18) !important;
    color: #fff; font-size: 18px;
  }
  .floating-social-bar a:last-child { border-right: 0 !important; }
}

/* ---------- 13. LARGE SCREENS ---------- */
@media (min-width: 1700px) {
  .container { max-width: 1320px; }
}

/* ---------- 14. REDUCED MOTION / TOUCH ---------- */
@media (hover: none) {
  .placement-item__img-wrap:hover img, .vt-card:hover img { transform: none; }
}
html{scroll-behavior:smooth}

 

.hero-stat:first-child {
  border: none;
}


.pa-more-wrap .cta-button{
  border-radius: 10px;
  font-size: 16px;
}

