/* ================================================
   LEARNEDGE SOLUTIONS — WORDPRESS THEME CSS
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --le-navy:      #003366;
  --le-navy-dark: #001f42;
  --le-navy-mid:  #004080;
  --le-orange:    #E8600A;
  --le-orange-lt: #FF7B1C;
  --le-white:     #ffffff;
  --le-light:     #F5F8FC;
  --le-dark:      #1A1A2E;
  --le-gray:      #6c757d;
  --le-border:    #dee2e6;
  --le-font:      'Poppins', system-ui, sans-serif;
  --le-font-d:    'Playfair Display', Georgia, serif;
  --le-r:         8px;
  --le-r-lg:      14px;
  --le-shadow:    0 4px 24px rgba(0,0,0,.10);
  --le-shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --le-t:         all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--le-font); color: var(--le-dark); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--le-orange); text-decoration: none; transition: var(--le-t); }
a:hover { color: var(--le-navy); }
h1,h2,h3 { font-family: var(--le-font-d); font-weight: 700; line-height: 1.2; }
h4,h5,h6 { font-family: var(--le-font); font-weight: 600; }

.le-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.section-pad    { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.section-title  { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--le-navy); margin-bottom: .5rem; }
.section-sub    { color: var(--le-gray); font-size: 1rem; margin-bottom: 3rem; }
.tag-line       { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--le-orange); margin-bottom: .75rem; }

.btn-le, .wp-block-button__link {
  display: inline-block; padding: .75rem 1.75rem; border-radius: var(--le-r);
  font-family: var(--le-font); font-weight: 600; font-size: .9rem;
  background: var(--le-orange); color: #fff !important; border: none;
  cursor: pointer; transition: var(--le-t); text-align: center;
}
.btn-le:hover, .wp-block-button__link:hover {
  background: var(--le-navy); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232,96,10,.3);
}
.btn-navy { background: var(--le-navy) !important; }
.btn-navy:hover { background: var(--le-navy-mid) !important; }
.btn-outline-white {
  background: transparent !important; border: 2px solid rgba(255,255,255,.85) !important;
  color: #fff !important;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15) !important; }

/* ── TOPBAR ── */
.le-topbar {
  background: var(--le-navy); color: rgba(255,255,255,.85);
  padding: .4rem 0; font-size: .8rem;
}
.le-topbar a { color: rgba(255,255,255,.85); text-decoration: none; margin-right: 1rem; display: inline-flex; align-items: center; gap: .35rem; }
.le-topbar a:hover { color: #fff; }
.le-topbar-left  { display: flex; align-items: center; gap: 1.5rem; }
.le-topbar-right { display: flex; align-items: center; gap: .6rem; }
.le-topbar-right a { margin: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }

/* ── HEADER / NAVBAR ── */
.le-header {
  background: #fff; box-shadow: 0 2px 16px rgba(0,51,102,.09);
  padding: .5rem 0; position: sticky; top: 0; z-index: 1040;
}
.le-logo img { height: 65px; width: auto; }
.le-nav { display: flex; align-items: center; gap: .25rem; }
.le-nav a {
  color: var(--le-dark) !important; font-weight: 500; font-size: .9rem;
  padding: .6rem .85rem; position: relative; transition: color .2s; white-space: nowrap;
}
.le-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--le-orange); transition: width .3s;
}
.le-nav a:hover::after { width: 80%; }
.le-enquire-btn {
  background: var(--le-orange) !important; color: #fff !important;
  padding: .55rem 1.3rem !important; font-size: .875rem; border-radius: var(--le-r);
  white-space: nowrap;
}
.le-enquire-btn:hover { background: var(--le-navy) !important; }
.le-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.le-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--le-navy); margin: 5px 0; transition: var(--le-t); }

/* ── HERO ── */
.hero-section {
  position: relative; overflow: hidden;
  background: var(--le-navy); min-height: 90vh;
}
.hero-slider { width: 100%; position: relative; }
.hero-slide  {
  position: relative; min-height: 90vh;
  display: flex !important; align-items: center;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,51,102,.75) 0%, rgba(0,51,102,.5) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 5rem 0; width: 100%; }
.hero-title { color: #fff; font-size: clamp(2rem,5vw,4rem); margin-bottom: 1.25rem; }
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 620px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2) !important; border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; z-index: 10; transition: var(--le-t); display: flex; align-items: center; justify-content: center;
}
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }
.hero-prev:hover, .hero-next:hover { background: var(--le-orange) !important; }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 10; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: var(--le-t); border: none; }
.hero-dot.active { background: var(--le-orange); }

/* ── UNIVERSITY STRIP ── */
.university-strip { background: #fff; padding: 2.5rem 0; border-bottom: 1px solid var(--le-border); }
.university-strip h5 { color: var(--le-gray); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem; text-align: center; }
.uni-logos-carousel .slick-slide { padding: 0 1rem; display: flex !important; align-items: center; justify-content: center; }
.uni-logos-carousel img { max-height: 55px; max-width: 130px; object-fit: contain; filter: grayscale(1) opacity(.6); transition: var(--le-t); }
.uni-logos-carousel img:hover { filter: grayscale(0) opacity(1); }

/* ── ABOUT SNIPPET ── */
.about-snippet { padding: 5rem 0; background: var(--le-light); }
.about-snippet .about-img { border-radius: var(--le-r-lg); box-shadow: var(--le-shadow-lg); }
.about-snippet ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-snippet ul li { padding: .45rem 0; display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.about-snippet ul li::before { content: '✅'; flex-shrink: 0; }

/* ── STATS ── */
.stats-section { background: var(--le-navy); padding: 4rem 0; }
.stats-section .stat-card { text-align: center; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.15); }
.stats-section .stat-card:last-child { border-right: none; }
.stats-section .stat-num { font-size: 3rem; font-weight: 700; color: var(--le-orange-lt); font-family: var(--le-font-d); line-height: 1; }
.stats-section .stat-lbl { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: .5rem; }

/* ── TEAM ── */
.team-section { padding: 5rem 0; }
.team-card { text-align: center; }
.team-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--le-orange); box-shadow: var(--le-shadow); }
.team-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: .2rem; color: var(--le-navy); }
.team-card p  { font-size: .82rem; color: var(--le-gray); }

/* ── COURSES ── */
.courses-page { padding: 5rem 0; }
.course-type-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
.course-type-tab {
  padding: .55rem 1.4rem; border: 2px solid var(--le-border); background: transparent;
  border-radius: 30px; font-size: .875rem; font-weight: 500; cursor: pointer;
  color: var(--le-gray); transition: var(--le-t); font-family: var(--le-font);
}
.course-type-tab:hover, .course-type-tab.active { background: var(--le-navy); border-color: var(--le-navy); color: #fff; }
.university-card {
  background: #fff; border-radius: var(--le-r-lg); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: var(--le-t);
  border: 1px solid var(--le-border); cursor: pointer;
}
.university-card:hover { box-shadow: var(--le-shadow); transform: translateY(-4px); }
.university-card .uni-logo-wrap { padding: 1.5rem; display: flex; align-items: center; justify-content: center; min-height: 100px; }
.university-card .uni-logo-wrap img { max-height: 70px; object-fit: contain; }
.university-card .uni-body { padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--le-border); }
.university-card .uni-name { font-size: 1rem; font-weight: 600; color: var(--le-navy); margin-bottom: .25rem; }
.university-card .uni-sub  { font-size: .8rem; color: var(--le-gray); }

/* ── SERVICES ── */
.services-page { padding: 5rem 0; }
.service-card { background: #fff; border-radius: var(--le-r-lg); padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,.07); height: 100%; transition: var(--le-t); border-top: 4px solid transparent; }
.service-card:hover { box-shadow: var(--le-shadow); border-top-color: var(--le-orange); transform: translateY(-4px); }
.services-360 { background: var(--le-navy); padding: 4rem 0; }
.service-360-item { text-align: center; padding: 1.5rem; }
.service-360-item .icon-circle { width: 70px; height: 70px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.8rem; }
.service-360-item h5 { color: #fff; font-size: .95rem; font-weight: 600; }
.service-360-item p  { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ── PARTNERS ── */
.partners-page { padding: 5rem 0; }
.partner-benefit-card { background: var(--le-light); border-radius: var(--le-r-lg); padding: 1.75rem; border-left: 4px solid var(--le-orange); height: 100%; }
.partner-benefit-card h5 { color: var(--le-navy); font-weight: 600; margin-bottom: .5rem; }

/* ── GALLERY ── */
.gallery-page { padding: 5rem 0; background: var(--le-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1rem; }
.gallery-item { border-radius: var(--le-r); overflow: hidden; aspect-ratio: 4/3; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(0,51,102,0); transition: background .3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .overlay { background: rgba(0,51,102,.35); }
.gallery-item .overlay i { color: #fff; font-size: 2rem; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .overlay i { opacity: 1; }

/* ── FAQ / BLOGS ── */
.faq-section { padding: 5rem 0; }
.faq-item { background: #fff; border-radius: var(--le-r); box-shadow: 0 1px 8px rgba(0,0,0,.06); margin-bottom: 1rem; overflow: hidden; }
.faq-question { padding: 1.25rem 1.5rem; font-weight: 600; color: var(--le-navy); cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: .97rem; }
.faq-question i { color: var(--le-orange); transition: transform .3s; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--le-gray); font-size: .92rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ── CONTACT ── */
.contact-page { padding: 5rem 0; }
.contact-info-box { background: var(--le-navy); border-radius: var(--le-r-lg); padding: 2.5rem; color: #fff; height: 100%; }
.contact-info-box h3 { color: #fff; margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item i { color: var(--le-orange-lt); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.contact-item p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; line-height: 1.6; }
.contact-item strong { display: block; color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.contact-form-box { background: #fff; border-radius: var(--le-r-lg); padding: 2.5rem; box-shadow: var(--le-shadow); }

/* ── CORPORATES ── */
.corporates-page { padding: 5rem 0; }
.corp-hero { background: linear-gradient(135deg,var(--le-navy),var(--le-navy-mid)); padding: 4rem 0; }
.corp-benefit-card { background: #fff; border-radius: var(--le-r-lg); padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); height: 100%; transition: var(--le-t); border-top: 3px solid var(--le-orange); }
.corp-benefit-card:hover { box-shadow: var(--le-shadow); transform: translateY(-3px); }

/* ── ENQUIRY FORM ── */
.le-form .form-control, .le-form .form-select {
  border: 1.5px solid var(--le-border); border-radius: var(--le-r);
  padding: .65rem 1rem; font-size: .9rem; font-family: var(--le-font);
  transition: border-color .2s, box-shadow .2s;
}
.le-form .form-control:focus, .le-form .form-select:focus {
  border-color: var(--le-orange); box-shadow: 0 0 0 3px rgba(232,96,10,.12); outline: none;
}
.le-form .form-label { font-size: .875rem; font-weight: 500; margin-bottom: .35rem; }
.btn-form-submit { background: var(--le-orange); color: #fff; border: none; padding: .8rem 2rem; border-radius: var(--le-r); font-weight: 600; font-size: .95rem; cursor: pointer; width: 100%; transition: var(--le-t); font-family: var(--le-font); }
.btn-form-submit:hover { background: var(--le-navy); }
.form-success { background: #d1e7dd; color: #0f5132; padding: .85rem 1rem; border-radius: var(--le-r); font-size: .875rem; margin-top: .75rem; display: none; }
.form-error   { background: #f8d7da; color: #842029; padding: .85rem 1rem; border-radius: var(--le-r); font-size: .875rem; margin-top: .75rem; display: none; }

/* ── POPUP ── */
.le-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.le-popup-overlay.show { display: flex; }
.le-popup-box { background: #fff; border-radius: var(--le-r-lg); max-width: 520px; width: 100%; overflow: hidden; box-shadow: var(--le-shadow-lg); animation: popIn .3s ease; }
@keyframes popIn { from { opacity:0; transform:scale(.92) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
.le-popup-header { background: var(--le-navy); padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.le-popup-header h4 { color: #fff; margin: 0; font-size: 1.1rem; }
.le-popup-close { background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.le-popup-body { padding: 1.5rem; }

/* ── WHATSAPP ── */
.le-wa-btn {
  position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px;
  background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 8000; box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: var(--le-t);
}
.le-wa-btn:hover { background: #1ebe5b; transform: scale(1.1); }
.le-wa-btn i { color: #fff; font-size: 1.6rem; }

/* ── FOOTER ── */
.le-footer { background: var(--le-dark); padding: 4rem 0; color: rgba(255,255,255,.8); }
.le-footer h5 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 2px solid var(--le-orange); display: inline-block; }
.le-footer ul { list-style: none; padding: 0; margin: 0; }
.le-footer ul li { padding: .3rem 0; }
.le-footer ul li a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color .2s; }
.le-footer ul li a:hover { color: var(--le-orange-lt); }
.le-footer p  { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.7; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .9rem; border: 1px solid rgba(255,255,255,.1); transition: var(--le-t); }
.footer-social a:hover { background: var(--le-orange); color: #fff; border-color: var(--le-orange); }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(135deg,var(--le-navy) 0%,var(--le-navy-mid) 100%); padding: 4rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem,3vw,3rem); }
.page-hero p  { color: rgba(255,255,255,.8); }

/* ── RESPONSIVE ── */
@media (max-width:991px) {
  .le-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,.1); align-items: flex-start; }
  .le-nav.open { display: flex; }
  .le-nav-toggle { display: block; }
  .le-enquire-btn { display: none; }
  .hero-section { min-height: auto; }
  .hero-slide   { min-height: 70vh; }
  .stats-section .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width:767px) {
  .section-pad { padding: 3rem 0; }
  .hero-title  { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .course-type-tabs { justify-content: flex-start; }
  .le-wa-btn { bottom: 1rem; right: 1rem; }
}

/* ── FSE block wrapper overrides ── */
.wp-block-group,
.wp-block-group__inner-container,
.entry-content,
.wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.hero-section,
.hero-slider,
.hero-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove WordPress default padding on main content area */
.wp-block-post-content,
main.wp-block-group {
    padding: 0 !important;
    max-width: 100% !important;
}

/* ── FSE constrained layout override ──
   The wp:group with layout:constrained wraps all shortcode output
   in a max-width container. We need to break out of it for full-width sections. */

/* Remove all padding/margin from FSE wrappers */
.wp-site-blocks,
.wp-site-blocks > *,
.is-layout-constrained,
.is-layout-constrained > *,
.wp-block-group.is-layout-constrained,
.wp-block-group__inner-container,
main.wp-block-group,
.entry-content > *,
.wp-block-post-content > * {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix the topbar to always show */
.le-topbar {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 100 !important;
}

/* ── Hero slide background fix ──
   WordPress block styles override background-image on elements.
   Force it to display correctly. */
.hero-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 90vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

/* Ensure hero section takes full viewport width */
.hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-1 * (100vw - 100%) / 2) !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Fix for FSE adding padding to wp-site-blocks */
:where(body .is-layout-flow) > :not(.alignleft):not(.alignright):not(.alignfull) {
    max-width: 100% !important;
}
:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}
.wp-site-blocks {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
