/*
 * ThinkArk Academy - Website Stylesheet
 *
 * This stylesheet defines the visual appearance of the ThinkArk Academy
 * website. It uses CSS variables for easy theme management and includes
 * responsive layouts so the site looks great on desktop and mobile devices.
 */

/* CSS variables for consistent theming */
:root {
  /* Updated colour palette inspired by the latest ThinkArk branding. */
  --primary: #0B1F3B;      /* deep navy taken from the updated logo */
  --secondary: #143C6E;    /* complementary blue for gradients and hover states */
  --accent: #E8B230;       /* golden accent hue for buttons and highlights */
  --light-bg: #F7F7F7;     /* light grey background for increased contrast */
  --dark-text: #1E2A47;    /* dark blue‑grey text colour for readability */
  --muted-text: #4D5A78;   /* muted text colour for secondary copy */
  --white: #ffffff;
  --max-width: 1200px;
  --transition: 0.3s ease-in-out;
}

/* Global resets and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

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

/* Container utility */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo img {
  /* Increase logo size by ~40% to stand out more */
  height: 90px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-text);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: transform var(--transition);
}

/* Hero section */
.hero {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition), color var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
}

/* On hover, darken the accent slightly */
.btn-primary:hover {
  background-color: #e0b135;
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary);
}

/* Courses section */
.courses-section {
  padding: 80px 0;
  background-color: var(--white);
}

.courses-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

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

.course-card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.course-card p {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.course-card ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-card li::before {
  content: '\f058'; /* Font Awesome check-circle icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  color: var(--accent);
}

/* Competitive exams brief section */
/* Highlight section for boards + competitive exams */
.competitive-highlight {
  padding: 80px 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

.competitive-highlight h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.competitive-highlight .highlight-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.competitive-highlight .highlight-list {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: left;
}

.competitive-highlight .highlight-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--white);
  font-size: 1rem;
}

.competitive-highlight .highlight-list li::before {
  content: '\f058'; /* check-circle icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
}

.competitive-highlight .btn {
  background-color: var(--accent);
  color: var(--primary);
}

.competitive-highlight .btn:hover {
  background-color: #d9a820;
}

/* USP section */
.usp-section {
  padding: 80px 0;
  background-color: var(--white);
}

.usp-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.usp-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--light-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition);
}

.usp-item:hover {
  transform: translateY(-4px);
}

.usp-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.usp-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.usp-item p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Enrollment offer section */
.enroll-section {
  padding: 60px 0;
  background-color: var(--light-bg);
}

.enroll-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.enroll-text {
  flex: 1 1 350px;
}

.enroll-text h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.enroll-text p {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.enroll-image {
  flex: 1 1 350px;
  text-align: center;
}

.enroll-image img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Contact call to action */
.contact-cta {
  padding: 60px 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

.contact-cta h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.contact-cta p {
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.contact-cta .btn {
  background-color: var(--accent);
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-about img {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  color: #e3e9f0;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #d7e4f6;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #d7e4f6;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #c9d6e6;
}

/* Contact page styles */
.contact-hero {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form-section {
  padding: 60px 0;
}

.lead-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.lead-form label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-weight: 500;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.lead-form textarea {
  resize: vertical;
  min-height: 120px;
}

.lead-form button {
  width: 100%;
}

/* About page styles */
.about-hero {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about-section {
  padding: 60px 0;
  background-color: var(--white);
}

.about-section h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-section p {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.about-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.about-card p {
  font-size: 0.95rem;
}

/* Competitive exams page styles */
.comp-hero {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.comp-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.comp-section {
  padding: 60px 0;
  background-color: var(--white);
}

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

.exam-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.exam-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.exam-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
}

/* Thank you page styles */
.thankyou-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--light-bg);
}

/* ------------------------------------------------------------------ */
/* Career page styles */
.career-hero {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.career-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.career-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.career-section {
  padding: 60px 0;
  background-color: var(--white);
}

.career-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2rem;
  text-align: left;
}

.career-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.career-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--muted-text);
}

.career-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
}

.career-section .apply {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--dark-text);
}

/* ------------------------------------------------------------------ */
/* Courses page styles */
/* Hero on the courses page reuses the default hero gradient */
.courses-hero {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

/* Tab navigation linking to course sections */
.course-tabs {
  background-color: var(--light-bg);
  border-bottom: 1px solid #e1e8f0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.tab-link {
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background-color var(--transition), color var(--transition);
}

.tab-link:hover,
.tab-link:focus {
  background-color: var(--primary);
  color: var(--white);
}

/* Course detail sections */
.course-detail {
  padding: 60px 0;
  background-color: var(--white);
}

.course-detail:nth-of-type(even) {
  background-color: var(--light-bg);
}

.course-detail h2 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.course-detail h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.course-detail p {
  color: var(--muted-text);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.course-detail ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.course-detail ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted-text);
}

.course-detail ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
}

.course-detail a.btn {
  margin-top: 1rem;
}

/* Common benefits section */
.course-common {
  padding: 60px 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

.course-common h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--accent);
}

.course-common ul {
  list-style: none;
  padding-left: 0;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.course-common ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.course-common ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
}

.course-common .btn {
  background-color: var(--accent);
  color: var(--primary);
}

.course-common .btn:hover {
  background-color: #d9a820;
}

/* ------------------------------------------------------------------ */
/* Carousel Styles */
/*
 * The top banner on the home page is now a carousel. It cycles through
 * several slides, each conveying a key offering (Foundation, Launchpad,
 * Boards + Competitive, Careers). The carousel is mobile‑friendly and
 * accessible, with keyboard navigation and indicator dots for manual
 * selection.
 */
.carousel {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--white);
}

/* Individual slides occupy the full carousel area. Only the active
 * slide is displayed; others are hidden via display:none. Flexbox
 * centres the content.
 */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  display: flex;
}

/* Semi‑transparent overlay to ensure text remains legible on
 * photographic backgrounds. Only used when background images are set.
 */
/*
 * Remove the semi‑transparent overlay from carousel slides when using
 * fully designed banner images. The overlay darkened photographic
 * backgrounds to improve text contrast, but is unnecessary now that
 * each slide is a self‑contained graphic. Hiding the ::before pseudo
 * element ensures the banners display at full brightness.
 */
.carousel-slide::before {
  display: none;
}

.carousel-content {
  position: relative;
  z-index: 1;
}

.carousel-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.carousel-content p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.carousel-content .btn {
  margin-top: 0.5rem;
}

/* Carousel indicators (dots) */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background-color var(--transition);
}

.carousel-dot.active {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Optional navigation arrows (hidden on small screens) */
.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.carousel-nav button {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color var(--transition);
}

.carousel-nav button:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Ensure anchored sections do not sit behind the sticky nav */
section[id] {
  scroll-margin-top: 80px;
}

.thankyou-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.thankyou-section p {
  font-size: 1.1rem;
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 64px;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: none;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    padding: 0.5rem 0;
  }

  .enroll-content {
    flex-direction: column;
    text-align: center;
  }

  .enroll-image {
    order: -1;
  }
}

/* Focus visible styles for keyboard navigation */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Anchor offset so headings are not hidden behind sticky header when linking */
section[id] {
  scroll-margin-top: 80px;
}
