/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Transparent for homepage */
body.home .site-header {
  background: transparent;
  box-shadow: none;
}

/* Solid white for all other pages */
body:not(.home) .site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Brand (logo + name) */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo {
  height: 42px;
  width: auto;
  transition: filter 0.3s ease;
}

/* White logo on homepage header */
body.home .logo {
  filter: brightness(0) invert(1);
}

/* Normal colored logo + black text on white header */
body:not(.home) .brand {
  color: #111;
}
body:not(.home) .logo {
  filter: brightness(1) invert(0);
}
main {
  padding-top: 60px; /* adjust based on header height */
}

/* Navigation */
.menu a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a.active {
  color: #ffd700;
}

/* Dark text for inner pages */
body:not(.home) .menu a {
  color: #222;
}
body:not(.home) .menu a:hover,
body:not(.home) .menu a.active {
  color: #c59f00;
}

/* Header layout */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========== HERO ========== */
.hero.with-bg {
  position: relative;
  height: 85vh;
  background-image: url('../img/Imagebackground.png');
  background-size: cover; /* fills full width */
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}


@media (max-width: 768px) {
  .hero.with-bg {
    height: 70vh;
    margin-top: 60px;
    background-size: cover;
    background-position: top;
  }
}

.hero.with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-box {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.35);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero-box h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-box p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ===== HERO LOGO OVERLAY ===== */
.hero-logo-overlay {
  position: absolute;
  top: 10%;
  right: 6%; /* moved to the right side */
  width: 160px;
  height: auto;
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .hero-logo-overlay {
    top: 5%;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    opacity: 0.8;
  }
}


.cta-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ---------- Eligibility CTA ---------- */
.eligibility-cta {
  background: linear-gradient(90deg, #d4af37, #ffda44);
  color: #111;
  text-align: center;
  padding: 25px 10px;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.eligibility-cta p {
  margin: 0;
  line-height: 1.6;
}

.eligibility-btn {
  display: inline-block;
  margin-left: 10px;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.eligibility-btn:hover {
  background: transparent;
  color: #111;
  border: 2px solid #111;
  transform: translateY(-2px);
}


.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 600;
}

.btn.primary {
  background: #ffd700;
  color: #000;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn.primary:hover {
  background: #ffcc00;
}

/* ========== SECTIONS ========== */
.section {
  padding: 30px 0; /* reduced from 80px to 50px */
}

.section.light {
  padding: 60px 0; /* optional, for lighter sections */
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
}

.card .link {
  display: inline-block;
  margin-top: 10px;
  color: #0078ff;
  text-decoration: none;
  font-weight: 500;
}

/* ========== ABOUT PAGE ========== */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}

.logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  background: url('../img/phoenix-logo.png') no-repeat center center;
  background-size: contain;
  opacity: 0.07;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.about-hero h1,
.about-hero p {
  position: relative;
  z-index: 1;
}

/* ========== QR CARDS (ABOUT & CONTACT) ========== */
.qr-section {
  margin-top: 40px;
  gap: 40px;
  align-items: flex-start;
}

.qr-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.qr-card h3 {
  margin-bottom: 10px;
  color: #111;
}

.qr-card p {
  margin-bottom: 15px;
  color: #444;
}

.qr-image {
  width: 260px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.qr-image:hover {
  transform: scale(1.05);
}

/* ========== CONTACT PAGE SECTION ========== */
.contact-section {
  background: linear-gradient(to right, #fffef5, #fffdf0);
  border-top: 2px solid #e8d06b;
  padding: 80px 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.contact-info {
  flex: 1 1 420px;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
}

.contact-info h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #d4af37;
  margin-top: 8px;
}

.contact-info p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 15px;
}

.contact-details {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.contact-link {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #c59f00;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
}

/* QR Right Side */
.contact-qr {
  flex: 0 0 280px;
  text-align: center;
}

.qr-frame {
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.qr-caption {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 30px 0;
  background: #111;
  color: #ccc;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  background: #fafafa;
  text-align: center;
  padding: 50px 0;
}

.gallery-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.gallery-subtext {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ======= POPULAR COURSES SMALL LOGO ======= */
.popular-courses-section .courses-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.popular-courses-section .courses-logo-small {
  width: 120px; /* QR-code-like size */
  height: auto;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popular-courses-section .courses-logo-small:hover {
  transform: scale(1.05);
  opacity: 1;
}

.popular-courses-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

/* Optional: for smaller screens */
@media (max-width: 768px) {
  .popular-courses-section .courses-header {
    flex-direction: column;
    gap: 10px;
  }

  .popular-courses-section .courses-logo-small {
    width: 100px;
  }

  .popular-courses-section h2 {
    text-align: center;
  }
}
