/* General styles */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: #444444;
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: top 0.4s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  width: 48px;
  height: 48px;
}

/* Navbar brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 36px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #222;
  text-transform: uppercase;
}

/* Ensure the nav container handles spacing properly */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff5722;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url("assets/hero-bg.jpeg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero h1 span {
  color: #ff5722;
}

.hero p {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #f3f3f3;
}

/* Buttons */
.btn {
  display: inline-block;
  margin: 1rem 0.5rem 0;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn.primary {
  background: #ff5722;
  color: #fff;
}

.btn.primary:hover {
  background: #e64a19;
  transform: translateY(-2px);
}

.btn.secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn.secondary:hover {
  background: #fff;
  color: #ff5722;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 1rem;
  text-align: center;
}

.alt-bg {
  background: #fafafa;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  color: #444;
  font-size: 1.1rem;
}

/* Future Section */

#future {
  background-color: #fafafa;
  padding: 80px 0;
  text-align: center;
}

#future .container {
  max-width: 1100px;
  margin: 0 auto;
}

#future .future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

#future .future-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  max-width: 260px; /* limit width per card */
}

#future .future-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#future .future-card .icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: #fff2ec;
  color: #ef4b2e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px; /* removed auto centering */
}

/* Courses */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.course-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h3 {
  color: #ff5722;
  margin: 1rem 1rem 0.5rem;
}

.course-card p {
  margin: 0 1rem 1.5rem;
  color: #555;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  background: #ff5722;
  color: #fff;
  padding: 4rem 1rem;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.btn.large {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #ccc;
  font-size: 0.9rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 10px;
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    color: #222;
  }

  .nav-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .logo {
    width: 40px;
  }
}


/* Lovable-style course section */
.badge {
  display: inline-block;
  background: #fff3ed;
  text-align: left;
  color: #ef4b2e;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.subtitle {
  max-width: 650px;
  text-align: center;
  margin: 0 auto 2rem;
  color: #555;
}

.course-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.tag {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag.licensed {
  background: #fff3ed;
  color: #ef4b2e;
}

.tag.popular {
  background: #ffe9e3;
  color: #ef4b2e;
}

.course-meta {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;       /* aligns icons and text vertically */
  gap: 10px;                 /* space between each item */
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
}

/* CTA Banner */
.cta-banner {
  background: #fff8f6;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 3rem auto;
}

.cta-banner h2 {
  margin-bottom: 1rem;
  color: #222;
}

.cta-banner p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: #1f1f22;
  color: #ddd;
  padding: 3rem 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  width: 70px;
  margin-bottom: 0.8rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ddd;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ef4b2e;
}

.copyright {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* Footer brand layout */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: 40px;
  height: auto;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #ef4b2e;
  color: #ef4b2e;
  transition: all 0.2s ease;
}

.btn.secondary:hover {
  background: #ef4b2e;
  color: #fff;
}

.future-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Headline scaling inspired by Tailwind sizes */

/* Hero main title */
.hero h1 {
  font-size: 3rem;              /* roughly text-5xl */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;          /* roughly text-7xl */
  }
}

/* Section titles */
.section h2,
#future h2,
#courses h2 {
  font-size: 2rem;              /* roughly text-4xl */
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section h2,
  #future h2,
  #courses h2 {
    font-size: 3rem;            /* roughly text-5xl */
  }
}