/* Adinlabs Academy — Custom overrides (loaded AFTER the original template CSS) */

/* Logo (image) */
.site-logo-img {
  height: 45px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 48px;
  margin: 0 auto 4px;
}
@media (max-width: 480px) {
  .site-logo-img { height: 38px; }
}

/* Legacy text-logo styles (kept for any page still using them) */
.logo-text {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #5A4BAD;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #8D52BC, #467DFA);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 16px;
  line-height: 1;
}
.site-footer .logo-text { color: #fff; }

/* Fix homepage hero student avatars */
.product-design-hero.homepage .students div img {
  border-radius: 50%;
  object-fit: cover;
}

/* Page hero for inner pages */
.page-hero-inner {
  text-align: center;
  padding: 100px 0 60px;
  background: #292443;
  color: #fff;
  margin-bottom: 0;
}
.page-hero-inner h1 { color: #fff; }
.page-hero-inner h1 span { color: #E9BA3A; }
.page-hero-inner p { color: rgba(255,255,255,.65); font-size: 20px; max-width: 600px; margin: 0 auto; }
@media (max-width: 765px) {
  .page-hero-inner { padding: 80px 20px 45px; }
  .page-hero-inner h1 { font-size: 32px; }
}

/* Course cards for listing page */
.course-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-top: 40px; }
.course-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 13px 3px rgba(0,0,0,.07); border: 1px solid #f1f1f1;
  transition: all .4s;
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.course-card .thumb { height: 200px; overflow: hidden; position: relative; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .thumb .badge {
  position: absolute; top: 14px; left: 14px;
  color: #fff; font-family: 'Titillium Web',sans-serif; font-weight: 700;
  font-size: 11px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
}
.course-card .body { padding: 22px; }
.course-card .meta { display: flex; gap: 14px; font-size: 12px; color: #999; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.course-card h4 { font-size: 19px; margin-bottom: 8px; }
.course-card .desc { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 18px; }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #f1f1f1; }
.course-card .price { font-family: 'Titillium Web',sans-serif; font-weight: 700; font-size: 22px; color: #292443; }
.course-card .view-link { color: #5A4BAD; font-weight: 700; font-size: 13px; text-transform: uppercase; }
@media (max-width: 992px) { .course-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .course-cards { grid-template-columns: 1fr; } }

/* Filter bar */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 35px; }
.filter-btn {
  font-family: 'Titillium Web',sans-serif; font-weight: 600; font-size: 13px;
  text-transform: uppercase; padding: 10px 22px; border-radius: 30px;
  border: 1px solid #d3d3d3; background: none; color: #8c8c8c; cursor: pointer; transition: all .3s;
}
.filter-btn:hover { color: #292443; border-color: #bbb; }
.filter-btn.active { background: #5A4BAD; color: #fff; border-color: #5A4BAD; }

/* Detail page layout */
.detail-flex { display: flex; gap: 40px; padding: 50px 0; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 340px; flex-shrink: 0; }
.detail-img { border-radius: 12px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.detail-img img { width: 100%; height: 380px; object-fit: cover; display: block; }

/* Tabs */
.tabs-bar { display: flex; background: #f4f3f9; border-radius: 6px; padding: 5px; margin-bottom: 28px; width: fit-content; }
.tab-btn {
  font-family: 'Titillium Web',sans-serif; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 4px; background: none; border: none;
  color: #888; cursor: pointer; transition: all .3s;
}
.tab-btn.active { background: #fff; color: #292443; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Sidebar */
.side-box {
  background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: 28px; margin-bottom: 20px; border: 1px solid #f1f1f1;
}
.side-price { font-family: 'Titillium Web',sans-serif; font-size: 36px; font-weight: 700; color: #292443; margin-bottom: 18px; }
.side-price del { font-size: 16px; color: #bbb; font-weight: 400; margin-left: 8px; }
.side-feat { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f1f1; font-size: 14px; }
.side-feat:last-child { border-bottom: none; }
.side-feat i { color: #5A4BAD; width: 18px; text-align: center; }

/* Accordion */
.acc-item { background: #fbf9fe; border-radius: 6px; margin-bottom: 8px; border: 1px solid rgba(90,75,173,.12); }
.acc-hd { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 15px; color: #292443; }
.acc-hd:hover { color: #5A4BAD; }
.acc-bd { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 18px; }
.acc-item.open .acc-bd { max-height: 600px; }
.acc-item.open .acc-hd .fa-chevron-down { transform: rotate(180deg); }
.acc-lesson { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(90,75,173,.08); font-size: 14px; color: #666; }
.acc-lesson:last-child { border-bottom: none; padding-bottom: 15px; }

/* Stats bar */
.stats-bar { background: #5A4BAD; padding: 50px 20px; text-align: center; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 25px; max-width: 1100px; margin: 0 auto; }
.stat-n { font-family: 'Titillium Web',sans-serif; font-size: 42px; font-weight: 700; color: #fff; }
.stat-l { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }
@media (max-width: 765px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* Team */
.team-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.team-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 13px rgba(0,0,0,.06); border: 1px solid #f1f1f1; transition: all .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0,0,0,.1); }
.team-card .photo { height: 260px; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 18px; text-align: center; }
.team-card .info h4 { font-size: 17px; margin-bottom: 3px; }
.team-card .info span { font-size: 13px; color: #999; }
@media (max-width: 765px) { .team-row { grid-template-columns: 1fr; } }

/* Contact two-col */
.contact-cols { display: flex; gap: 50px; flex-wrap: wrap; padding: 50px 0; }
.contact-left { flex: 0 0 38%; }
.contact-right { flex: 1; }
@media (max-width: 765px) { .contact-left, .contact-right { flex: 0 0 100%; } }

/* Form */
.form-box { box-shadow: 0 3px 19px 3px rgba(0,0,0,.07); border-radius: 6px; overflow: hidden; }
.form-box .inner { padding: 30px; }
.form-box label { display: block; font-weight: 500; margin-bottom: 6px; }
.form-box input[type="email"], .form-box input[type="text"], .form-box input[type="tel"],
.form-box select, .form-box textarea {
  border-radius: 4px; color: #000; background: #fff; font-size: 15px; padding: 13px;
  border: 1px solid #ddd; width: 100%; margin-bottom: 18px; outline: none; font-family: 'Lato',sans-serif;
}
.form-box textarea { height: 130px; resize: vertical; }
.form-box button[type="submit"] { width: 100%; border-radius: 0 0 6px 6px; font-size: 15px; padding: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* FAQ (reusing template's faqs-toggle class) */
.faq-wrap { max-width: 750px; margin: 0 auto; padding: 0 15px; }

/* CTA banner */
.cta-box {
  background: #5A4BAD; border-radius: 12px; padding: 45px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-box h2 { color: #fff; margin-bottom: 8px; font-size: 28px; }
.cta-box p { color: rgba(255,255,255,.7); margin: 0; }
@media (max-width: 765px) { .cta-box { padding: 30px; text-align: center; flex-direction: column; }
  .detail-flex { flex-direction: column; } .detail-side { width: 100%; }
  .tabs-bar { flex-wrap: wrap; width: 100%; }
}

/* Scroll reveal */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s cubic-bezier(.22,1,.36,1); }
.sr.vis { opacity: 1; transform: translateY(0); }
.srd1 { transition-delay: .1s; } .srd2 { transition-delay: .2s; } .srd3 { transition-delay: .3s; }

/* Peek modal */
#peek-overlay { cursor: pointer; }
#peek-modal { border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,.25); background: #fff; }
#peek-modal .close-modal {
  position: absolute; top: 12px; right: 16px; font-size: 28px; color: #999;
  text-decoration: none; line-height: 1; z-index: 10;
}
#peek-modal .close-modal:hover { color: #333; }

/* Hero peek button */
.product-design-hero.course .link {
  color: #292443; font-size: 15px; font-weight: 600;
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; font-family: 'Lato', sans-serif;
}
.product-design-hero.course .link::after {
  border-color: #444;
}

/* Feature cards — no extra CSS needed, ScrollReveal inline styles handle animation */

/* Video-library course card overrides */
.video-library .video .thumbnail {
  position: relative;
  display: block;
}

/* Category badges — different color per category */
.video-library .video .video-category {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 2;
}
.video-category.cat-cybersecurity { background: #E9BA3A; }
.video-category.cat-datascience { background: #8252BC; }
.video-category.cat-gis { background: #467DFA; }

/* Meta row — spacing from description */
.video-library .video .video-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.video-library .video .video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .3px;
}
/* Different icon color per meta type */
.video-library .video .meta-dur i { color: #E9BA3A; }
.video-library .video .meta-lvl i { color: #8252BC; }
.video-library .video .meta-les i { color: #467DFA; }

/* View Details — centered with divider above */
.video-library .video .video-details-wrap {
  text-align: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.video-library .video .video-details-link {
  display: inline-block;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #5A4BAD;
  text-decoration: none;
  transition: color .2s;
}
.video-library .video .video-details-link:hover {
  color: #E9BA3A;
}

/* ============================================================
   RESPONSIVE / MOBILE OVERRIDES
   ============================================================ */

/* --- Mobile nav: fully handled by base template CSS ---
   Base CSS shows hamburger at ≤765px, hides main-nav,
   and .mobile-nav.open { height: 100vh } reveals the menu.
   Our JS just toggles .open on both toggle + nav + body.mobile-header.
*/
/* Ensure X button stays above the open nav overlay */
body.mobile-header .mobile-nav-toggle {
  position: fixed !important;
  z-index: 99999 !important;
  top: 22px;
  right: 20px;
}

/* --- Hide course side nav on mobile --- */
@media (max-width: 992px) {
  .course-nav.manual {
    display: none !important;
  }
  /* Remove the sidebar margin on content sections */
  .course-highlights-v2 .container,
  .course-how-it-works .container,
  .course-curriculum .container,
  .course-instructor .container,
  .course-price .container,
  .course-faqs .container,
  .course-whos-it-for .container {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* --- Course detail page responsive --- */
@media (max-width: 765px) {
  .product-design-hero.course .content h1 {
    font-size: 32px;
  }
  .product-design-hero.course .course-time {
    flex-wrap: wrap;
    gap: 12px;
  }
  .product-design-hero.course .top-reviews {
    flex-direction: column;
    gap: 8px;
  }
  .course-highlights-v2 ul {
    columns: 1;
  }
  .course-how-it-works .features .feature {
    flex-direction: column;
  }
  .course-curriculum .modules > li {
    flex-wrap: wrap;
  }
  .course-instructor .instructor-box {
    flex-direction: column;
  }
  .course-price .columns {
    flex-direction: column;
  }
  .course-price .columns .divider {
    display: none;
  }
  .course-faqs .faq .title h4 {
    font-size: 15px;
  }
}

/* --- Homepage responsive --- */
@media (max-width: 765px) {
  .product-design-hero.homepage .content h1 {
    font-size: 32px;
  }
  .product-design-hero.homepage .students {
    flex-wrap: wrap;
    justify-content: center;
  }
  .resources .resource-grid {
    grid-template-columns: 1fr;
  }
  .values .top-columns {
    flex-direction: column;
  }
  .values .bottom-columns {
    grid-template-columns: 1fr;
  }
  .design-articles .articles {
    flex-direction: column;
  }
}

/* --- About page responsive --- */
@media (max-width: 765px) {
  .stats-bar .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-n { font-size: 32px; }
  .team-row {
    grid-template-columns: 1fr !important;
  }
}

/* --- Contact page responsive --- */
@media (max-width: 765px) {
  .contact-cols {
    flex-direction: column;
    gap: 30px;
  }
  .contact-left, .contact-right {
    flex: 0 0 100% !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- Courses page responsive --- */
@media (max-width: 765px) {
  .page-hero.shop h1 {
    font-size: 30px;
  }
  .video-library-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .videos.video-library {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 766px) and (max-width: 992px) {
  .videos.video-library {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- General small screen fixes --- */
@media (max-width: 480px) {
  .product-design-hero.homepage .content h1,
  .product-design-hero.course .content h1 {
    font-size: 26px;
  }
  .page-hero-inner h1,
  .page-hero.shop h1 {
    font-size: 26px;
  }
  .section-title {
    font-size: 24px;
  }
  .video-library .video .video-meta {
    gap: 10px;
  }
  .video-library .video .video-meta span {
    font-size: 11px;
  }
  #peek-modal {
    width: 95% !important;
    max-width: none !important;
  }
  .cta-box h2 {
    font-size: 22px;
  }
}

/* ===================================================================
   Blog page — category filter tabs + article grid polish
   (The template's .subheader nav styles are scoped to .free-lessons,
   so the blog page needs its own copy of the filter-pill styling.)
   =================================================================== */
.blog .subheader {
  text-align: center;
  margin: 30px 0 10px;
}
.blog .subheader nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  padding-top: 10px;
}
.blog .subheader nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog .subheader nav ul li {
  display: inline-block;
  margin: 0 6px 12px;
}
.blog .subheader nav ul li a {
  display: inline-block;
  color: #444;
  padding: 8px 20px;
  border: 1px solid #999;
  opacity: 0.6;
  border-radius: 18px;
  font-size: 14px;
  font-family: "Titillium Web", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.blog .subheader nav ul li a:hover {
  opacity: 1;
  border-color: #5a4bad;
  color: #5a4bad;
}
.blog .subheader nav ul li a.active {
  background: #5a4bad;
  border-color: #5a4bad;
  opacity: 1;
  color: #fff;
}

/* Blog article cards: consistent thumbnail height + tidy category chip */
.blog .design-articles .articles,
.blog-article .design-articles .articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog .design-articles .article .thumb,
.blog-article .design-articles .article .thumb {
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}
.blog .design-articles .article .content span {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #eef0f6;
  color: #5a4bad;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .blog .design-articles .articles,
  .blog-article .design-articles .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .blog .design-articles .articles,
  .blog-article .design-articles .articles {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   Homepage success-stories / testimonials (social proof).
   Uses a unique .success-stories class — NOT .testimonials — because the
   template's compiled CSS already styles .testimonials as a full-bleed
   grey band with a 50px block heading, which broke this layout.
   =================================================================== */
/* Extra breathing room between the hero and the programs section (homepage) */
.homepage #resources {
  margin-top: 80px;
}
@media (max-width: 768px) {
  .homepage #resources {
    margin-top: 48px;
  }
}

.success-stories {
  margin: 40px 0 50px;
  text-align: center;
}
.success-stories .testi-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 700;
  color: #8252bc;
  margin: 0 0 10px;
  font-family: "Titillium Web", sans-serif;
}
.success-stories h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.success-stories h2 span {
  color: #5a4bad;
}
.success-stories .subheading {
  max-width: 640px;
  margin: 0 auto 40px;
  color: #666;
  font-size: 17px;
  line-height: 1.6;
}
.success-stories .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: left;
}
.success-stories .testimonial-card {
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 26px rgba(40, 30, 90, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.success-stories .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(90, 75, 173, 0.14);
}
.success-stories .stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.success-stories .quote {
  color: #3a3f4d;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 22px;
  flex: 1 1 auto;
}
.success-stories .person {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f0f0f5;
  padding-top: 18px;
}
.success-stories .person img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.success-stories .person .name {
  font-weight: 700;
  color: #1f2430;
  font-size: 15px;
}
.success-stories .person .role {
  font-size: 13px;
  color: #7a8091;
}
.success-stories .person .role em {
  color: #5a4bad;
  font-style: normal;
  font-weight: 600;
}
.success-stories .testi-cta {
  margin-top: 40px;
}
.success-stories .testi-cta p {
  font-size: 18px;
  font-weight: 600;
  color: #1f2430;
  margin: 0 0 16px;
}
@media (max-width: 900px) {
  .success-stories .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .success-stories h2 {
    font-size: 26px;
  }
}
