/* =========================================================
   iTech Computer Academy Inc. — Final style.css
   ========================================================= */

:root {
  --green:        #1B6B2F;
  --green-mid:    #228B3B;
  --green-light:  #E8F5EC;
  --green-dark:   #134D22;
  --yellow:       #F5C400;
  --yellow-light: #FFFBE6;
  --yellow-dark:  #B38F00;
  --white:        #FFFFFF;
  --off-white:    #F7F8F6;
  --gray-light:   #EDEEEC;
  --gray:         #9DA89B;
  --gray-dark:    #3E4A3C;
  --text:         #1E2B1C;
  --text-muted:   #5C6B5A;
  --border:       #D8DDD6;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(27,107,47,0.10);
  --shadow-lg:    0 8px 48px rgba(27,107,47,0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}

img, svg, video {
  max-width: 100%;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: 1rem; color: var(--text-muted); }

/* ── LAYOUT ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 100px 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--green-dark);
}

.btn-primary:hover {
  background: #D4AB00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,196,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img,
.itech-logo {
  display: block;
  width: auto;
  height: 62px;
  max-width: 230px;
  object-fit: contain;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.main-menu a {
  position: relative;
  color: #222222;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.main-menu a:hover {
  color: var(--green);
}

.main-menu .enroll-btn,
.nav-enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  background: var(--yellow);
  color: var(--green-dark);
  border-radius: 50px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.main-menu .enroll-btn:hover,
.nav-enroll:hover {
  background: #0f6618;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  color: var(--green-dark);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 3px;
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.itech-hero {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  min-height: 680px;
  padding: 70px 30px;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
}

.itech-hero-content {
  width: 100%;
  max-width: 560px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #14821f;
}

.itech-hero-content h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  color: #151515;
}

.itech-hero-content h1 span {
  color: #14821f;
}

.hero-lead {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #555555;
}

.hero-achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 15px 20px;
  margin-top: 18px;
  background: #ffffff;
  border-left: 5px solid #14821f;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.achievement-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}

.hero-achievement-content {
  display: flex;
  flex-direction: column;
}

.hero-achievement .rate {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  color: #14821f;
}

.hero-achievement .program {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 1px;
  color: #222;
}

.hero-achievement small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: #777;
}

.itech-hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

.itech-hero-visual {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.itech-hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   ACHIEVEMENTS SECTION
   ========================================================= */

.itech-achievements {
  padding: 80px 20px;
  background: #f7f8f7;
}

.itech-achievements-container {
  max-width: 1180px;
  margin: 0 auto;
}

.itech-achievements-heading {
  max-width: 700px;
  margin: 0 auto 55px;
  text-align: center;
}

.itech-achievements-heading > span {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #14821f;
}

.itech-achievements-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: #181818;
}

.itech-achievements-heading h2 strong {
  display: block;
  color: #14821f;
}

.itech-achievement-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 25px;
}

.itech-achievement-years {
  min-height: 390px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 22px;
  background: #14821f;
  color: white;
}

.years-number {
  font-size: 90px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -3px;
}

.years-title {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.itech-achievement-years p {
  max-width: 280px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  color: #ffffff;
}

.itech-achievement-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.itech-achievement-item {
  flex: 1;
  min-height: 182px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: white;
  border-radius: 22px;
  border: 1px solid #e8e8e8;
  transition: 0.25s ease;
}

.itech-achievement-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.09);
}

.achievement-percent {
  flex-shrink: 0;
  font-size: 50px;
  font-weight: 900;
  color: #14821f;
}

.achievement-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #222;
}

.achievement-info p {
  margin: 0;
  font-size: 14px;
  color: #777;
}


/* =========================================================
   COURSES SECTION (Guaranteed High Contrast & Readability)
   ========================================================= */

.courses {
  background: var(--green-dark) !important;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.courses .section-header h2 {
  color: var(--white) !important;
}

.courses .section-header p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.courses .course-card {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses .course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.courses .course-card h3 {
  color: var(--green-dark) !important;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.courses .course-card p {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.courses .course-price {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--green) !important;
}

.courses .course-link {
  color: var(--green) !important;
  font-weight: 700;
  text-decoration: none;
}

.courses .course-link:hover {
  color: var(--green-dark) !important;
}


/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 900px) {
  .site-header .container {
    min-height: 72px;
  }
  
  .itech-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
    min-height: auto;
  }
  
  .itech-hero-content {
    max-width: 100%;
  }
  
  .hero-eyebrow, 
  .hero-achievement {
    margin-left: auto;
    margin-right: auto;
  }
  
  .itech-hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .itech-achievement-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 16px;
  }
  
  .main-menu.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-achievement {
    width: 100%;
    max-width: 430px;
    margin: 20px auto 0;
    padding: 14px 15px;
    text-align: left;
  }
  
  .itech-hero-visual {
    height: 380px;
    border-radius: 20px;
  }
}