/*
Theme Name: Skill Edge Trainings
Theme URI: https://skilledgetrainings.com
Author: Skill Edge Trainings
Author URI: https://skilledgetrainings.com
Description: Official WordPress theme for Skill Edge Trainings — Pakistan's leading IT & Digital Skills Institute. Fully compatible with Elementor and Elementor Pro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skill-edge
Tags: education, training, elementor, full-width-template, custom-colors, custom-logo, custom-menu, threaded-comments, responsive-layout
*/

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  --gold: #F5A800;
  --dark: #0D0D0D;
  --navy: #0B1A2C;
  --white: #FFFFFF;
  --gray: #F7F7F7;
  --text: #333333;
  --light-text: #666666;
  --border: #E5E5E5;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px; background: #fff;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 50px; width: auto; display: block; }
.logo-text-fallback { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 20px; color: var(--dark); letter-spacing: 1px; line-height: 1.1; }
.logo-text-fallback span { color: var(--gold); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text); transition: color .2s; }
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a, .nav-links .current-page-ancestor > a { color: var(--gold); }
.nav-links .current-menu-item > a, .nav-links .current-page-ancestor > a { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: #fff; border-bottom: 2px solid var(--gold);
  padding: 20px 30px 28px; flex-direction: column; gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 998;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 600; color: var(--text); padding: 13px 0; border-bottom: 1px solid var(--border); transition: color .2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-wa { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 14px; padding: 13px 20px; border-radius: 6px; }
.btn-whatsapp { display: flex; align-items: center; gap: 8px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 13px; padding: 10px 20px; border-radius: 6px; transition: background .2s, transform .15s; }
.btn-whatsapp:hover { background: #e09600; transform: translateY(-1px); }
.wa-icon { width: 18px; height: 18px; fill: var(--dark); }

/* ─────────────────────────────────────────
   HERO CAROUSEL
───────────────────────────────────────── */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
}
.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  padding: 0 64px;
  max-width: 640px;
}
.hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: #fff;
  background: rgba(245,168,0,.22);
  border: 1px solid rgba(245,168,0,.55);
  border-radius: 40px;
  padding: 5px 16px;
  margin-bottom: 18px;
  width: fit-content;
}
.hero-slide-content h1 {
  font-family: 'Barlow', sans-serif;
  font-size: 54px; font-weight: 900; line-height: 1.06;
  color: #fff; margin: 0;
}
.hero-slide-content h1 span { color: var(--gold); }
.hero-slide-content p {
  font-size: 15px; color: rgba(255,255,255,.80);
  margin: 18px 0 30px; max-width: 420px; line-height: 1.75;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--dark); font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: 6px; transition: all .2s; cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #e09600; transform: translateY(-2px); }
.btn-outline {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 2px solid rgba(255,255,255,.85); color: #fff;
  font-weight: 700; font-size: 14px; padding: 13px 26px; border-radius: 6px; transition: all .2s;
}
.btn-outline:hover { background: #fff; color: var(--dark); }

.hero-badges { display: flex; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.80); }
.badge-icon { width: 26px; height: 26px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge-icon svg { width: 13px; height: 13px; fill: #fff; }

.hero-stat-row {
  display: flex; gap: 0; margin-top: 28px;
  background: rgba(0,0,0,.45); border-radius: 10px; overflow: hidden;
  backdrop-filter: blur(4px); width: fit-content;
}
.hero-stat-item {
  padding: 12px 22px; border-right: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 10px;
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-icon { width: 30px; height: 30px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-stat-icon svg { width: 16px; height: 16px; fill: #fff; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.2; }
.hero-stat-val { font-size: 13px; font-weight: 700; color: #fff; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
  font-size: 18px;
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.carousel-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ─────────────────────────────────────────
   SECTION COMMON
───────────────────────────────────────── */
section.content-section { padding: 80px 60px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-family: 'Barlow', sans-serif; font-size: 38px; font-weight: 900; color: var(--dark); line-height: 1.1; }
.section-center { text-align: center; }
.section-sub { font-size: 15px; color: var(--light-text); margin-top: 12px; line-height: 1.7; }

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 12px; overflow: hidden; height: 380px; background: linear-gradient(135deg, #1a2744, #0d1b2a); display: flex; align-items: center; justify-content: center; }
.about-img-inner { color: var(--gold); font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 32px; text-align: center; letter-spacing: 2px; }
.about-content p { font-size: 14px; color: var(--light-text); line-height: 1.8; margin: 16px 0 28px; }
.about-features { display: flex; gap: 24px; flex-wrap: wrap; }
.about-feat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--dark); }
.feat-icon { width: 36px; height: 36px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-icon svg { width: 16px; height: 16px; fill: var(--dark); }

/* ─────────────────────────────────────────
   COURSES
───────────────────────────────────────── */
.courses-section { background: var(--gray); }
.courses-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin-top: 40px; }
.course-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.course-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.c1 { background: linear-gradient(135deg, #1a1a2e, #4a0080); }
.c2 { background: linear-gradient(135deg, #2d0050, #7b00d4); }
.c3 { background: linear-gradient(135deg, #0d1b2a, #1a2744); }
.c4 { background: linear-gradient(135deg, #000, #2a0050); }
.c5 { background: linear-gradient(135deg, #001a33, #003366); }
.c6 { background: linear-gradient(135deg, #003300, #006600); }
.c7 { background: linear-gradient(135deg, #1a1a1a, #333); }
.course-body { padding: 12px; }
.course-body h4 { font-size: 12px; font-weight: 700; color: var(--dark); line-height: 1.3; min-height: 32px; }
.btn-explore { display: flex; align-items: center; gap: 6px; margin-top: 10px; background: transparent; border: 1.5px solid var(--border); color: var(--text); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 5px; cursor: pointer; transition: all .2s; width: 100%; }
.btn-explore:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ─────────────────────────────────────────
   WHY CHOOSE US
───────────────────────────────────────── */
.why-section { background: #fff; }
.why-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 48px; }
.why-card { text-align: center; max-width: 160px; }
.why-icon { width: 60px; height: 60px; background: var(--dark); border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.why-icon svg { width: 26px; height: 26px; fill: var(--gold); }
.why-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.why-card p { font-size: 12px; color: var(--light-text); line-height: 1.5; }

/* ─────────────────────────────────────────
   STATS
───────────────────────────────────────── */
.stats-section { background: var(--dark); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.stats-content { padding: 72px 60px; display: flex; flex-direction: column; justify-content: center; }
.stats-content .section-title { color: #fff; font-size: 42px; }
.stats-content p { color: rgba(255,255,255,.6); font-size: 14px; margin: 14px 0 40px; line-height: 1.7; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stat-item h3 { font-family: 'Barlow', sans-serif; font-size: 44px; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-item p { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; line-height: 1.4; }
.stats-image { background: linear-gradient(135deg, #1a2744, #0d1b2a); display: flex; align-items: center; justify-content: center; min-height: 400px; position: relative; }
.stats-img-content { text-align: center; padding: 40px; }
.stats-logo { color: var(--gold); font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 28px; letter-spacing: 3px; }

/* ─────────────────────────────────────────
   GALLERY
───────────────────────────────────────── */
.gallery-section { background: var(--gray); }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.gallery-item { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1a2744, #0d1b2a); display: flex; align-items: center; justify-content: center; font-size: 28px; transition: transform .2s; cursor: pointer; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────────────────────────────────
   CTA BAND
───────────────────────────────────────── */
.cta-band { background: var(--gold); display: flex; align-items: center; justify-content: space-between; padding: 40px 80px; gap: 24px; flex-wrap: wrap; }
.cta-band-left { display: flex; align-items: center; gap: 20px; }
.cta-rocket { font-size: 48px; }
.cta-band-left h2 { font-family: 'Barlow', sans-serif; font-size: 28px; font-weight: 900; color: var(--dark); }
.cta-band-left p { font-size: 14px; color: rgba(0,0,0,.65); margin-top: 4px; }
.btn-cta { display: flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; font-weight: 700; font-size: 15px; padding: 16px 28px; border-radius: 8px; transition: all .2s; }
.btn-cta:hover { background: #222; transform: translateY(-2px); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 16px 0 20px; color: rgba(255,255,255,.5); max-width: 260px; }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all .2s; cursor: pointer; color: rgba(255,255,255,.6); }
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li::before { content: '›'; color: var(--gold); font-size: 16px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.fc-icon { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; margin-top: 1px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; margin-top: 48px; text-align: center; font-size: 12px; color: rgba(255,255,255,.3); }

/* ─────────────────────────────────────────
   STANDARD PAGE / BLOG
───────────────────────────────────────── */
.page-content-wrap { max-width: 900px; margin: 0 auto; padding: 60px 40px; }
.page-content-wrap h1 { font-family: 'Barlow', sans-serif; font-size: 36px; font-weight: 900; color: var(--dark); margin-bottom: 24px; }
.page-content-wrap .entry-content { font-size: 15px; line-height: 1.8; color: var(--light-text); }
.page-content-wrap .entry-content h2, .page-content-wrap .entry-content h3 { font-family: 'Barlow', sans-serif; color: var(--dark); margin: 28px 0 12px; }
.page-content-wrap .entry-content p { margin-bottom: 16px; }
.page-content-wrap .entry-content ul, .page-content-wrap .entry-content ol { margin: 12px 0 16px 24px; }
.page-content-wrap .entry-content li { margin-bottom: 6px; }
.page-content-wrap .entry-content a { color: var(--gold); }
.page-content-wrap .entry-content a:hover { text-decoration: underline; }
.page-content-wrap .entry-content img { border-radius: 8px; margin: 20px 0; }
.page-content-wrap .entry-content blockquote { border-left: 4px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--gray); font-style: italic; border-radius: 0 8px 8px 0; }

/* Blog post list */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 60px 60px; }
.post-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-3px); }
.post-card-thumb { height: 200px; background: linear-gradient(135deg, #1a2744, #0d1b2a); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-body .post-meta { font-size: 12px; color: var(--light-text); margin-bottom: 8px; }
.post-card-body h2 { font-family: 'Barlow', sans-serif; font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.post-card-body h2 a:hover { color: var(--gold); }
.post-card-body .post-excerpt { font-size: 13px; color: var(--light-text); line-height: 1.7; }
.post-card-body .read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gold); }
.post-card-body .read-more:hover { text-decoration: underline; }

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; padding: 0 0 60px; }
.pagination-wrap a, .pagination-wrap span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text); transition: all .2s; }
.pagination-wrap a:hover, .pagination-wrap .current { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ─────────────────────────────────────────
   SEARCH RESULTS
───────────────────────────────────────── */
.search-hero { background: var(--dark); padding: 40px 60px; }
.search-hero h1 { font-family: 'Barlow', sans-serif; font-size: 28px; font-weight: 900; color: #fff; }
.search-hero p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 6px; }

/* ─────────────────────────────────────────
   404 PAGE
───────────────────────────────────────── */
.page-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 40px; }
.page-404 .error-code { font-family: 'Barlow', sans-serif; font-size: 120px; font-weight: 900; color: var(--gold); line-height: 1; }
.page-404 h2 { font-family: 'Barlow', sans-serif; font-size: 32px; font-weight: 900; color: var(--dark); margin: 16px 0 12px; }
.page-404 p { font-size: 15px; color: var(--light-text); max-width: 480px; line-height: 1.7; }
.page-404 .back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: 6px; transition: all .2s; }
.page-404 .back-home:hover { background: #e09600; transform: translateY(-2px); }

/* ─────────────────────────────────────────
   ELEMENTOR COMPATIBILITY
───────────────────────────────────────── */
.elementor-section, .elementor-container { max-width: 100% !important; }
.elementor-page .site-footer { display: block; }
.elementor-full-width .page-content-wrap { max-width: 100%; padding: 0; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(4, 1fr); }
  nav.site-nav { padding: 0 30px; }
  section.content-section { padding: 60px 30px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); padding: 40px 30px; }
}
@media (max-width: 900px) {
  .hero-carousel { height: 520px; }
  .hero-slide-content { padding: 60px 24px; max-width: 100%; }
  .hero-slide-content h1 { font-size: 36px; }
  .about-grid, .stats-section { grid-template-columns: 1fr; }
  .stats-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-whatsapp { display: none; }
  nav.site-nav { padding: 0 20px; }
  section.content-section { padding: 50px 20px; }
  .cta-band { padding: 32px 30px; }
  .hero-stat-row { flex-wrap: wrap; }
  .site-footer { padding: 50px 30px 0; }
  .search-hero { padding: 30px 30px; }
}
@media (max-width: 600px) {
  .hero-carousel { height: 480px; }
  .hero-slide-content h1 { font-size: 28px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid { gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .carousel-btn { width: 36px; height: 36px; font-size: 14px; }
  .posts-grid { grid-template-columns: 1fr; padding: 30px 20px; }
  .cta-band { padding: 28px 20px; flex-direction: column; text-align: center; }
  .cta-band-left { flex-direction: column; gap: 10px; }
  .site-footer { padding: 40px 20px 0; }
}
