/* ==========================================================================
   Academy of IT — site styles (rebuild of the Elementor / Hello theme design)
   Colours: yellow #F2C94C, dark #1E1E1E, purple #831B7E. Font: Poppins.
   ========================================================================== */

@font-face {
  font-family: "NotoNastaliqUrdu";
  src: url("/assets/fonts/NotoNastaliqUrdu-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --yellow: #F2C94C;
  --dark: #1E1E1E;
  --ink: #121212;
  --purple: #831B7E;
  --max: 1300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 10px; }
.container.narrow { max-width: 860px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Urdu text after Google Translate is wrapped in <font> — use Nastaliq. */
font { font-family: "NotoNastaliqUrdu", serif; }

/* ---------- Language bar ---------- */
.lang-bar { background: var(--yellow); }
.lang-bar .container {
  display: flex; justify-content: flex-end; align-items: center; gap: 0 10px;
  padding-top: 3px; padding-bottom: 3px; font-size: 16px; line-height: 24px; color: #2b2b2b;
}
.glink { color: #2b2b2b; padding: 0 3px; }
.glink:hover, .glink.gt-current-lang { background: #fff; }
.glink.gt-current-lang { font-weight: 700; }

/* ---------- Header ----------
   Desktop: logo 28% | menu 45.333% (centred) | button 26%, like the Elementor columns. */
.site-header { position: relative; border-bottom: 1px solid #1E1E1E4F; background: #fff; z-index: 50; }
.site-header > .container { display: flex; align-items: center; padding: 20px 0 0; }
.brand { display: flex; align-items: center; flex: 0 0 28%; padding: 10px; }
.brand img { width: 25%; height: auto; margin: 0 10px 20px 0; border-radius: 50%; }
.brand-name { margin-top: -20px; font-size: 25px; line-height: 1; font-weight: 600; letter-spacing: -0.4px; color: var(--dark); white-space: nowrap; }

.main-nav ul, .mobile-nav ul, .footer-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav { flex: 0 0 45.333%; padding: 10px 10px 30px; }
.main-nav ul { display: flex; justify-content: center; gap: 20px; }
.main-nav a, .footer-nav a {
  position: relative; display: block; padding: 13px 16px; font-size: 15px; line-height: 20px; color: var(--dark);
}
/* Elementor "framed" pointer on desktop: yellow 3px frame on hover / current page */
.main-nav a::before, .main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .3s;
}
.main-nav a::before { top: 0; bottom: 0; border: 3px solid var(--yellow); }
.main-nav a:hover::before, .main-nav a.active::before { opacity: 1; }
.main-nav .nav-register { display: none; }
/* Desktop menu: thin grey divider between items, 10px either side of each link */
.main-nav ul { gap: 0; }
.main-nav li { display: flex; align-items: center; }
.main-nav li + li a { margin-left: 10px; }
.main-nav li:not(:nth-last-child(-n+2)) a { margin-right: 10px; }
.main-nav li:not(:nth-last-child(-n+2))::after { content: ""; height: 16px; border-left: 1px solid #7a7a7a; }
.header-cta-wrap { flex: 0 0 26%; display: flex; justify-content: flex-end; padding: 10px 10px 16px; }

/* Register Now: colour-overlay button (dark fill grows from the corner) */
.btn-overlay {
  position: relative; display: inline-block; overflow: hidden;
  background: var(--yellow); border-radius: 5px; padding: 12px 30px; font-size: 15px;
}
.btn-overlay .btn-fill {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
  background: #1E2333; border-radius: 5px; transition: all .5s;
}
.btn-overlay .btn-txt { position: relative; color: var(--dark); transition: color .5s; }
.btn-overlay:hover .btn-fill { width: 100%; height: 100%; }
.btn-overlay:hover .btn-txt { color: #fff; }

.menu-toggle {
  display: none; border: 0; background: var(--yellow); color: var(--dark);
  width: 33px; height: 33px; padding: 5.5px; border-radius: 3px; cursor: pointer; margin-left: auto;
}
.menu-toggle .icon { width: 22px; height: 22px; fill: currentColor; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Page title band (dark, yellow heading) ---------- */
.page-title { background: var(--dark); text-align: center; padding: 50px 10px; }
.page-title h1 { font-size: 65px; font-weight: 600; letter-spacing: -2px; color: var(--yellow); }
.post-title h1 { font-size: 34px; letter-spacing: -.5px; max-width: 1000px; margin: 0 auto; line-height: 1.5; }

/* ---------- Home: three circular logos ---------- */
.home-logos { margin: 60px 0; }
.home-logos .container { display: flex; padding: 0; }
.logo-col {
  flex: 1 1 33.333%; display: flex; justify-content: center; align-items: center;
  padding: 10px; border-right: 1px solid #02010147;
}
.logo-col:last-child { border-right: 0; }
.logo-circle { display: block; border-radius: 500px; max-width: 100%; }
.logo-circle img { border-radius: 50%; transition: .5s all; }
.logo-circle:hover img { scale: .92; }
.ring-black, .ring-purple { border: 2px solid var(--purple); }
.ring-yellow { border: 2px solid var(--yellow); }

/* ---------- Muhammad Asif profile ---------- */
.profile-hero { background: var(--dark); padding: 30px 0; }
.profile-hero .container { display: flex; align-items: center; padding: 0; }
.profile-photo { flex: 0 0 24%; display: flex; justify-content: center; padding: 10px; }
.profile-photo img { width: 100%; border: 10px solid var(--yellow); border-radius: 500px; }
.profile-intro { flex: 1; margin-left: 20px; padding: 10px; }
.profile-intro h1 { font-size: 65px; font-weight: 600; letter-spacing: -2px; color: var(--yellow); }
.profile-intro p { margin: 10px 0 0; font-size: 20px; line-height: 30px; color: #fff; }

.profile-body { margin: 60px 0; color: var(--ink); }
.profile-body h2 { font-size: 26px; line-height: 27px; font-weight: 600; color: var(--ink); margin: 30px 0 11px; }
.profile-body .container { padding-top: 10px; }
.profile-body h2:first-child { margin-top: 0; }
.profile-body h2 a { color: #00f; font-size: 16px; font-weight: 400; line-height: 1; }
.profile-body h2 a:hover { text-decoration: underline; }
.profile-body p { margin: 0; }
/* WordPress emoji images (Twemoji) so they look the same on every device */
img.emoji { display: inline; width: 1em; height: 1em; margin: 0 .07em; vertical-align: top; }
.profile-social { list-style: none; margin: 0 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.profile-social + h2 { margin-top: 26px; }
.profile-social a { display: flex; align-items: center; gap: 8px; min-height: 33px; font-size: 16px; font-weight: 600; color: var(--dark); }
.ps-icon { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; border-radius: 50%; }
.ps-icon .icon { width: 27px; height: 27px; }
.ps-youtube { color: #FF0000; }
.ps-facebook { color: #4421FF; }
.ps-instagram { color: #AD6600; }
.ps-tiktok { width: 29px; height: 29px; border-radius: 2px; background: #000; color: #fff; }
.ps-tiktok .icon { width: 21px; height: 21px; }
.profile-contact { list-style: none; margin: 0; padding: 0; }
.profile-contact li { display: flex; padding: 0 0 6.5px; }
.profile-contact li:last-child { padding-bottom: 0; }
.profile-contact li + li { margin-top: 6.5px; }
.profile-contact a, .profile-contact span { display: inline-flex; align-items: center; gap: 5px; color: #54595F; font-size: 16px; line-height: 24px; }
.profile-contact .icon { color: var(--yellow); width: 20px; height: 20px; }

/* ---------- Short courses ---------- */
.courses { padding: 60px 0 50px; }
.courses .container { padding: 0; }
.course-row { display: flex; flex-wrap: wrap; }
.course-col { flex: 0 0 33.333%; padding: 10px; }
.course-row-2 .course-col { flex-basis: 33%; }
.course-row-2 .course-col:first-child { margin-left: 17%; }
.course-card {
  height: 100%; background: var(--yellow); padding: 10px; border-radius: 10px; text-align: center;
  transition: background .3s;
}
.course-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 13px; margin-bottom: 29px; }
.course-card h2 { font-size: 32px; line-height: 1.2; font-weight: 600; color: #000; margin: 0 0 16px; transition: color .3s; }
.course-card p { font-size: 16px; color: #000; margin: 0; padding-bottom: 10px; transition: color .3s; }
.course-card:hover { background: #000; }
.course-card:hover h2, .course-card:hover p { color: #fff; }

/* ---------- Contact ---------- */
/* Three yellow boxes: round icon on top, text under it (Elementor icon box, icon position "top") */
.contact-boxes { margin: 80px 0 0; }
.contact-boxes .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-box {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 15px;
  min-height: 170px; background: var(--yellow); padding: 20px; border-radius: 20px; text-align: center;
}
.cb-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 80px; height: 80px; padding: 20px; border-radius: 50%; background: var(--dark); color: var(--yellow);
  transition: background .3s;
}
.cb-icon .icon { width: 40px; height: 40px; }
.cb-title { margin-top: 8px; font-size: 16px; line-height: 1.2; font-weight: 600; color: var(--dark); word-break: break-word; transition: color .3s; }
.contact-box:hover .cb-icon { background: #000; }
.contact-box:hover .cb-title { color: #000000B5; }

.contact-form-sec { margin: 90px 0 70px; }
.contact-form-sec .container { display: flex; justify-content: center; }
.dark-form {
  width: 70%; background: var(--dark); border-radius: 10px;
  display: flex; flex-wrap: wrap; padding: 20px 12.5px 5px;
}
.dark-form .field { padding: 0 7.5px; margin-bottom: 15px; }
.dark-form .full { flex: 0 0 100%; }
.dark-form .half { flex: 0 0 50%; }
.dark-form input, .dark-form textarea, .dark-form select {
  width: 100%; background: #fff; color: #000; border: 1px solid #69727d; border-radius: 4px;
  padding: 6px 16px; min-height: 47px; font-size: 16px; line-height: 1.4;
}
/* Gravity Forms "gravity theme" field look */
.reg-form input[type="text"], .reg-form input[type="email"], .reg-form input[type="tel"], .reg-form select {
  width: 100%; height: 41px; background: #fff; color: #000; border: 1px solid #666; border-radius: 3px;
  padding: 8px; font-size: 15px; line-height: 1.5;
}
.dark-form input::placeholder, .dark-form textarea::placeholder { color: #7a7a7a; }
.dark-form .btn-block { border-width: 3px; border-radius: 3px; padding: 10px 0; line-height: 20px; }
.dark-form textarea { display: block; resize: vertical; }
.btn-wobble {
  display: inline-block; border: 1px solid var(--yellow); background: var(--yellow); color: #000;
  font-size: 20px; font-weight: 500; padding: 10px 24px; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn-wobble:hover { background: var(--dark); color: #fff; animation: wobble-bottom 1s ease-in-out 1; }
.btn-block { width: 100%; }
@keyframes wobble-bottom {
  16.65% { transform: skew(-12deg); } 33.3% { transform: skew(10deg); } 49.95% { transform: skew(-6deg); }
  66.6% { transform: skew(4deg); } 83.25% { transform: skew(-2deg); } 100% { transform: skew(0); }
}
.btn-wobble:hover { transform-origin: 0 100%; }

.form-notice {
  flex: 0 0 100%; margin: 0 7.5px 15px; padding: 10px 14px; border-radius: 4px;
  background: #fdecea; color: #8a1c13; border-left: 4px solid #d93025; font-size: 15px;
}

/* ---------- Registration ---------- */
.registration { margin: 70px 0 70px; }
.registration .container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.reg-heading { font-size: 35px; line-height: 40px; font-weight: 600; letter-spacing: -2px; color: var(--dark); text-align: center; }
.reg-intro { width: 50%; background: var(--yellow); padding: 10px; margin: 0; border-radius: 10px; text-align: center; color: var(--dark); font-family: "Roboto", sans-serif; font-weight: 500; }
.reg-form {
  width: 80%; background: var(--dark); padding: 20px; border-radius: 20px;
  display: flex; flex-wrap: wrap; column-gap: 2%; color: #fff;
}
.reg-form .field { margin-bottom: 16px; }
.reg-form .full { flex: 0 0 100%; }
.reg-form .half { flex: 0 0 49%; }
.reg-section { color: var(--yellow); margin: 0 0 16px; font-size: 16px; line-height: 24px; padding: 0; }
.reg-label { display: block; color: var(--yellow); font-size: 16px; line-height: 16px; margin-bottom: 8px; }
.reg-radios { border: 0; padding: 0; margin: 0 0 16px; }
.reg-radios legend { margin-bottom: 16px; }
.reg-radios .radio { display: flex; align-items: center; gap: 6px; height: 24px; cursor: pointer; }
.reg-radios input { width: 13px; height: 13px; margin: 0; }
.reg-form input[type="file"] { color: #fff; width: 100%; }
.reg-form .field-upload[hidden] { display: none; }
.reg-hint { display: block; font-size: 14px; color: #fff; margin-top: 6px; }
.reg-submit {
  width: 100%; background: var(--yellow); color: #000; border: 1px solid var(--yellow);
  padding: 8px 16px; font-size: 16px; line-height: 24px; cursor: pointer; border-radius: 3px; transition: .3s;
}
.reg-submit:hover { background: #000; color: var(--yellow); }
.reg-form .form-notice { margin: 0 0 15px; }
.reg-form .field:last-child { margin: 6px 0 24px; }

/* ---------- Video feed (Hikayat-e-Asif, posts) ---------- */
.video-feed { margin: 60px 0; }
.video-feed h2 { font-size: 32px; font-weight: 600; color: var(--dark); margin-bottom: 20px; text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.video-card { display: flex; flex-direction: column; gap: 8px; padding: 5px; }
.video-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 38px; border-radius: 10px;
  background: rgba(0, 0, 0, .7); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.video-play .icon { width: 16px; height: 16px; }
.video-card:hover .video-thumb img { transform: scale(1.05); opacity: .85; }
.video-card:hover .video-play { background: #FF0000; }
.video-title { font-size: 14px; line-height: 1.6; color: var(--dark); }
.video-date { font-size: 12px; color: #777; }
.video-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.yt-more {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 4px; font-size: 15px;
  background: var(--dark); color: #fff;
}
.yt-more:hover { background: var(--yellow); color: var(--dark); }

/* Hikayat-e-Asif YouTube feed (Feeds for YouTube look): 4-column thumbnail grid,
   title on a dark overlay on hover, "Load More..." + red "Subscribe" under it. */
.yt-feed-sec { margin: 70px 0 65px; }
.yt-feed { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; }
.yt-item {
  position: relative; display: block; aspect-ratio: 16 / 9; margin: 5px; overflow: hidden;
  background: #000 center / cover no-repeat;
}
.yt-item[hidden] { display: none; }
.yt-hover {
  position: absolute; inset: 0; padding: 10px; background: rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .3s;
}
.yt-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  color: #fff; font-size: 15.6px; font-weight: 700; line-height: 1.2;
}
.yt-item:hover .yt-hover, .yt-item:focus-visible .yt-hover { opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 57px; height: 50px; margin: -25px 0 0 -28.5px;
  display: flex; align-items: center; justify-content: center; color: rgba(0, 0, 0, .8);
  transition: opacity .3s;
}
.yt-play::before { content: ""; position: absolute; width: 20px; height: 20px; background: #fff; }
.yt-play .icon { position: relative; width: 57px; height: 50px; }
.yt-item:hover .yt-play { opacity: 0; }
.yt-feed-footer { display: flex; justify-content: center; gap: 9px; padding: 5px 0; }
.yt-load, .yt-subscribe {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 4px;
  font: 400 13px/19.5px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #fff; cursor: pointer; transition: opacity .3s;
}
.yt-load { background: #333; }
.yt-subscribe { background: #FF0000; }
.yt-subscribe .icon { width: 15px; height: 15px; }
.yt-load:hover, .yt-subscribe:hover { opacity: .85; }

.post-video { margin: 40px 0 0; }
.post-date { text-align: center; color: #777; font-size: 14px; }
.short-embed { width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 9 / 16; background: #000; }
.short-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center; padding: 50px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-frame { width: min(400px, 100%, calc((100vh - 100px) * 9 / 16)); aspect-ratio: 9 / 16; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; padding: 10px;
  background: transparent; color: #fff; cursor: pointer;
}
.lightbox-close .icon { width: 100%; height: 100%; }

/* ---------- Privacy, thank you, 404 ---------- */
/* Privacy policy = plain WordPress (Hello theme) page: title in the theme container,
   grey Roboto text in a 1140px Elementor section */
.wp-page-header, .wp-post { width: 100%; margin-left: auto; margin-right: auto; padding-left: 10px; padding-right: 10px; }
/* Hello theme container widths */
.wp-page-header.is-page { padding-left: 0; padding-right: 0; }
@media (max-width: 575px) { .wp-page-header:not(.is-page) h1 { padding: 0 10px; } }
@media (min-width: 576px) { .wp-page-header, .wp-post { max-width: 500px; padding-left: 0; padding-right: 0; } }
@media (min-width: 768px) { .wp-page-header, .wp-post { max-width: 600px; } }
@media (min-width: 992px) { .wp-page-header, .wp-post { max-width: 800px; } }
@media (min-width: 1200px) { .wp-page-header, .wp-post { max-width: 1140px; } }
.wp-page-header h1 {
  margin: 8px 0 16px; font: 500 40px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #333;
}
.legal { margin: 0; color: #7A7A7A; font-family: "Roboto", sans-serif; }
.legal-inner { max-width: 1140px; margin: 0 auto; padding: 10px; }
.legal h2 { margin: 8px 0 16px; font-family: "Roboto", sans-serif; font-size: 32px; font-weight: 500; line-height: 1.2; color: #7A7A7A; }
.legal p { margin: 0 0 14.4px; line-height: 24px; }
.legal strong { font-weight: 700; }
.wp-post { padding-bottom: 40px; color: #333; }
.wp-post p { margin: 0 0 14.4px; }
.wp-post iframe { display: block; max-width: 100%; height: auto; aspect-ratio: 563 / 1000; border: 0; }
.thank-you { margin: 60px 0; text-align: center; }
.thank-you h2 { font-size: 30px; font-weight: 600; color: var(--dark); margin-bottom: 15px; }
.thank-you a:not(.btn-yellow) { color: var(--purple); font-weight: 500; }
.thank-you-icon {
  width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--yellow);
  color: var(--dark); font-size: 42px; line-height: 80px; font-weight: 700;
}
.thank-you-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.btn-yellow { display: inline-block; background: var(--yellow); color: var(--dark); padding: 12px 30px; border-radius: 5px; transition: .3s; }
.btn-yellow:hover { background: #1E2333; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 20px 0 10px; text-align: center; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 11px; padding-bottom: 10px; }
.footer-nav ul { display: flex; justify-content: center; gap: 10px; }
.footer-nav-mobile { display: none; }
.footer-nav a { color: #fff; border-radius: 4px; transition: background .3s, color .3s; }
.footer-nav a:hover { background: var(--yellow); color: #000; }
.footer-phone { margin: 0; font-size: 16px; }
.footer-phone a { text-decoration: underline; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 10px; }
.social-icons a { display: block; transition: transform .5s; }
.social-icons a:hover { transform: rotate(360deg); }
.social-icon {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50px;
  background: #fff; color: #000; border: 2px solid #000; transition: background .3s;
}
.social-icon .icon { width: 16px; height: 16px; }
.social-icons a:hover .social-icon { background: var(--yellow); color: var(--dark); }
.footer-title { font-size: 26px; line-height: 1; font-weight: 600; color: #fff; }
.newsletter-form { display: flex; width: 50%; }
.newsletter-form input {
  flex: 0 0 66.666%; min-width: 0; height: 40px; border: 0; border-radius: 0; background: #fff; color: #000;
  padding: 8px 16px; font-size: 15px;
}
.newsletter-form input::placeholder { color: #7a7a7a; }
.newsletter-form .btn-wobble { flex: 1 1 33.333%; height: 41px; line-height: 20px; padding: 8px 0 7px; border-radius: 0; }
.site-footer .form-notice { margin: 0; }
.footer-divider { width: 100%; border: 0; border-top: 1px solid #E2E2E224; margin: 20px 0 0; }
.copyright { margin: 0; font-family: "Roboto", sans-serif; font-size: 14px; }

/* ---------- Newsletter popup ---------- */
.popup {
  position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .8);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade-in 1.2s;
}
.popup[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* 640px black box: text column 2/3, image column 1/3 (Elementor popup 486) */
.popup-box {
  position: relative; display: flex; align-items: center;
  width: 640px; max-width: 100%; background: #000; padding: 10px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.popup-text { flex: 0 0 66.666%; padding: 10px; }
.popup-text h2 { margin: 9px 0 20px; font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -1px; text-transform: capitalize; color: var(--yellow); }
.popup-text p { margin: 0 0 20px; font-size: 14px; line-height: 21px; color: #fff; }
.popup-form { width: 100%; }
.popup-form input { flex-basis: 66.666%; height: 40px; font-size: 15px; }
.popup-form .btn-wobble { flex: 1 1 33.333%; height: 40px; font-size: 16px; line-height: 16px; padding: 8px 0 7px; }
.popup-img { flex: 0 0 33.333%; padding: 10px; }
.popup-img img { width: 100%; }
.popup-close {
  position: absolute; top: 6px; right: 7px; width: 25px; height: 25px; padding: 5px; border: 0;
  background: #ff0000; color: #fff; cursor: pointer;
}
.popup-close .icon { width: 100%; height: 100%; }

/* ---------- WhatsApp chat button ---------- */
.chat-widget { position: fixed; right: 29px; bottom: 25px; z-index: 800; display: flex; align-items: center; gap: 13px; }
.chat-cta {
  background: #fff; color: #333; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1), 0 2px 24px rgba(0, 0, 0, .2); position: relative;
}
.chat-cta::after {
  content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px;
  border: 6px solid transparent; border-right: 0; border-left-color: #fff;
}
.chat-btn {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 54px; height: 54px; border-radius: 50%; background: #49E670; color: #fff; border: 0; padding: 0;
  cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 32px rgba(0, 0, 0, .16);
}
.chat-btn .icon { width: 30px; height: 30px; }
.chat-btn .chat-open, .chat-btn .chat-close { display: flex; }
.chat-btn .chat-close { display: none; }
.chat-btn .chat-close .icon { width: 22px; height: 22px; }
/* Open: purple close button (Chaty widget colour), no tooltip or badge */
.chat-widget.open .chat-btn { background: #A886CD; }
.chat-widget.open .chat-open, .chat-widget.open .chat-badge, .chat-widget.open .chat-cta,
.chat-widget.opened .chat-badge { display: none; }
.chat-widget.open .chat-close { display: flex; }
.chat-widget.open .chat-btn::before { display: none; }

/* WhatsApp chat box */
.wa-box {
  position: absolute; right: 0; bottom: 69px; width: 320px; max-width: calc(100vw - 32px);
  background: #F0EDE7; border-radius: 6px; overflow: hidden;
  box-shadow: 0 5px 40px rgba(0, 0, 0, .16); font-family: "Poppins", sans-serif;
  animation: wa-up .25s ease-out;
}
.wa-box[hidden] { display: none; }
@keyframes wa-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-head {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 10px 15px;
  background: #4AA485; color: #fff; box-shadow: 0 16px 32px rgba(26, 14, 53, .16);
}
.wa-head-icon { display: flex; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4AA485; align-items: center; justify-content: center; }
.wa-head-icon .icon { width: 15px; height: 15px; }
.wa-head-title { flex: 1; font-size: 14px; }
.wa-head-close { border: 0; background: none; color: #fff; width: 24px; height: 24px; padding: 0; cursor: pointer; }
.wa-head-close svg { width: 24px; height: 24px; }
.wa-body { height: 260px; padding: 20px; overflow-y: auto; }
.wa-msg {
  display: inline-block; position: relative; background: #fff; color: #333; font-size: 14px;
  padding: 7px 14px 6px; border-radius: 0 10px 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.wa-msg p { margin: 0; }
.wa-time { display: block; font-size: 10px; color: #888; margin-top: 2px; }
.wa-foot { display: flex; align-items: center; gap: 10px; padding: 20px 15px; position: relative; }
.wa-emoji { position: absolute; left: 25px; font-size: 22px; line-height: 1; color: #ccc; }
.wa-foot input {
  flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 24px; background: #fff;
  color: #111B21; padding: 0 10px 0 38px; font-size: 15px; outline: none;
}
.wa-send {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #4AA485; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s;
}
.wa-send svg { width: 20px; height: 20px; fill: currentColor; }
.wa-send:disabled { opacity: .45; cursor: default; }
.chat-badge {
  position: absolute; top: 0; right: 0; width: 17px; height: 17px; border-radius: 50%;
  background: #ff6060; color: #fff; font-size: 11px; line-height: 17px; text-align: center;
}
/* "sheen" attention effect */
.chat-btn::before {
  content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: rgba(255, 255, 255, .35); transform: rotate(30deg); animation: sheen 4s infinite;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Hide Google Translate's own bar / tooltips */
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ==========================================================================
   Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* logo 30% | menu 70%, "Register Now" moves into the menu */
  .site-header > .container { padding: 0; }
  .brand { flex: 0 0 30%; }
  .brand img { width: 45%; margin: 0; }
  .brand-name { display: none; }
  .header-cta-wrap { display: none; }
  .main-nav { flex: 0 0 70%; padding: 10px; }
  .main-nav .nav-register { display: block; }
  .main-nav ul { gap: 0; }
  .main-nav li::after { display: none; }
  .main-nav li a, .main-nav li + li a, .main-nav li:not(:nth-last-child(-n+2)) a { margin: 0 2px; }
  .main-nav a { font-size: 14px; padding: 13px 10px; }
  /* Elementor "double line" pointer on tablet */
  .main-nav a::before { border: 0; height: 3px; bottom: auto; background: var(--yellow); }
  .main-nav a::after { bottom: 0; height: 3px; background: var(--yellow); }
  .main-nav a:hover::after, .main-nav a.active::after { opacity: 1; }
  .profile-intro h1 { font-size: 35px; }
  .profile-social a { font-size: 14px; }
  .home-logos { margin: 30px 0; }
  .logo-col { padding: 15px; }
  .logo-col:last-child { padding: 10px; }
  /* tablet: 2 + 1 wide, then 2 (spacer columns collapse) */
  .course-col { flex-basis: 50%; }
  .course-row-1 .course-col:last-child { flex-basis: 100%; }
  .course-row-2 .course-col { flex-basis: 50%; }
  .course-row-2 .course-col:first-child { margin-left: 0; }
  .contact-boxes { margin: 40px 0 0; }
  .cb-title { font-size: 14px; }
  .contact-form-sec { margin: 20px 0 40px; }
  .contact-box { min-height: 168px; }
  .dark-form { width: 100%; }
  .reg-intro, .reg-form { width: 100%; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter-form { width: 60%; }
}

/* ==========================================================================
   Mobile (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
  /* logo + name 85% | burger 15% */
  .lang-bar .container { padding-bottom: 4px; }
  .brand { flex: 0 0 85%; }
  .brand img { width: 24%; margin: 0 10px 5px 0; }
  .brand-name { display: inline; margin: 0; font-size: 22px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; margin-right: 10px; }
  /* Elementor dropdown: opens just under the burger, slides down, no shadow */
  .mobile-nav {
    display: block; position: absolute; top: 75px; left: 0; right: 0; z-index: 60; background: #fff;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .mobile-nav.open { max-height: 320px; }
  .mobile-nav a { display: block; padding: 10px 20px; font-size: 14px; line-height: 20px; color: #33373d; }
  .mobile-nav a.active, .mobile-nav a:hover { background: #3F444B; color: #fff; }

  .page-title h1 { font-size: 45px; }
  .post-title h1 { font-size: 24px; }

  .home-logos .container { flex-direction: column; }
  .logo-col, .logo-col:last-child { border-right: 0; }
  .logo-circle { width: 80%; }
  .logo-circle img { width: 100%; }

  /* phones: name + title first, photo under it (Elementor reversed columns) */
  .profile-hero .container { flex-direction: column-reverse; gap: 0; text-align: center; }
  .profile-social { flex-direction: column; gap: 10px; }
  .profile-social + h2 { margin-top: 25px; }
  .profile-photo { flex: none; width: 100%; }
  .profile-photo img { width: 80%; }
  .profile-intro { margin-left: 0; }
  .profile-intro h1 { font-size: 35px; }
  .profile-intro p { font-size: 16px; line-height: 24px; }

  .course-col, .course-row-2 .course-col { flex-basis: 100%; }
  .course-card img { height: 200px; }
  .course-card h2 { font-size: 28px; }

  .contact-boxes .container { grid-template-columns: 1fr; gap: 19px; }
  .contact-form-sec { margin-top: 50px; }
  .dark-form .btn-block { border-width: 1px; line-height: 18px; }
  .dark-form .half { flex-basis: 100%; }
  .dark-form input, .dark-form textarea { font-size: 14px; }
  .btn-wobble { font-size: 16px; }

  .registration { margin: 40px 0 40px; }
  .reg-heading { font-size: 25px; line-height: 30px; letter-spacing: -1.4px; }
  .reg-form .half { flex-basis: 100%; }

  .video-grid { grid-template-columns: 1fr; }
  .video-feed { margin: 30px 0; }

  .newsletter-form { width: 90%; }
  .newsletter-form input { flex-basis: 70%; font-size: 14px; }
  .newsletter-form .btn-wobble { height: 40px; }
  /* phone number first, then the stacked menu */
  .footer-nav { display: none; }
  .footer-nav-mobile { display: block; width: 100%; }
  .footer-nav-mobile ul { flex-direction: column; gap: 10px; }
  .footer-phone { max-width: 244px; }

  /* phones: full-width box, image column hidden */
  .popup { padding: 0; }
  .popup-box { width: 100%; }
  .popup-img { display: none; }
  .popup-text { flex-basis: 100%; }
  .popup-text h2 { margin-top: 0; }
  .popup .popup-form { width: 100%; }
  .popup-form input { flex-basis: 70%; }
  .popup-close { top: 7px; right: 4px; }

  .chat-cta { font-size: 17px; }
}

/* Gravity Forms makes text fields and the button taller on small screens */
@media (max-width: 640px) {
  .reg-form input[type="text"], .reg-form input[type="email"], .reg-form input[type="tel"] { height: 48px; line-height: 30px; }
  .reg-submit { line-height: 32px; }
  .reg-form .field-country { margin-top: -8px; }
}

/* Feeds for YouTube switches to one column on small phones */
@media (max-width: 480px) {
  .yt-feed { grid-template-columns: 1fr; }
}
