:root {
   --bg-900: #0b0e16;
  --primary: #16ceec;
  --pulse: #ff9d42;
  --accent: #7cc0ff;
  --muted: #a5b1d8;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: #eef3ff;
  background: var(--bg-900);
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 34, 0.65);
  backdrop-filter: blur(10px);
  height: 73px; /* Giving header a fixed height for calculations */
  display: flex;
  align-items: center;
}
.nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem; /* Adjusted padding */
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--primary);
}
.brand img {
  height: 45px;
}

.btn {
  background: #ffffff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: #0a1022;
  text-decoration: none;
  display: inline-block;
}
.btn.secondary {
  background: transparent;
  border: 1px solid #334155;
  color: #eef3ff;
}
.header-buttons {
  display: flex;
  gap: 0.5rem;
}

/* HERO */
.hero {
  position: relative;
  padding: 8rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: right 50px top -105px;
  background-size: contain;
}
canvas#neurons {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg-900);
}
.hero-inner {
  max-width: 1200px;
  width: 100%;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
}
.hero-content {
  flex-basis: 55%;
  min-width: 0;
  text-align: left;
  margin-left: 15rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}
.subtitle {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

/* SHARED STYLES */
section { padding: 5rem 0; }
h2 { text-align: center; font-size: 2rem; font-weight: 900; margin-bottom: 1rem; margin-bottom: 2.5rem; }
.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 600px;
    margin: -1.5rem auto 3rem;
}

/* SWIPER */
.swiper { overflow: hidden; }
.home-hero-carousel .swiper-slide {
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, visibility;
}
.home-hero-carousel .swiper-slide-active {
    opacity: 1;
    visibility: visible;
}
.team-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
}
.swiper-pagination-bullet-active { background-color: var(--primary) !important; }
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

/* "WHAT WE OFFER" SECTION */
#courses { background: rgba(0, 0, 0, 0.55); }
.offer-cards-container { display: flex; gap: 2rem; justify-content: center; }
.offer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* This is key for spacing */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  max-width: 350px;
}
.offer-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(22, 206, 236, 0.1);
}
.offer-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* This creates a consistent container for all card images */
.offer-image-wrapper {
  aspect-ratio: 16 / 9; /* Maintains consistent card height */
  width: 100%;
  overflow: hidden; /* Ensures images don't spill out */
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-container {
  width: 130px; /* The size of the colored square */
  height: 130px;
  /* background: linear-gradient(270deg, #0b1835, #0a122b); */
   background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 16px; /* Rounded corners like the image */
  padding: 1.5rem;     /* Space inside the square */
  margin: 1.5rem auto 0; /* Top-margin | centers horizontally | no bottom margin */
  flex-shrink: 0;
}
.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* This applies the background ONLY to the logo's container */
.offer-image-wrapper.has-logo-background {
  background: linear-gradient(270deg, #0b1835, #0a122b);
}

/* Default style for the photographic images */
.offer-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Special style for the logo inside its colored container */
.offer-image-wrapper.has-logo-background img {
  object-fit: contain;
  padding: 2rem; /* THIS is the padding you wanted, inside the square */
}

.offer-card img.is-logo {
  object-fit: contain;  /* This makes the logo fit inside the area */
  padding: 2rem;        /* This creates space around the logo, making it smaller */
}
.offer-card-content {
    padding: 1.5rem;
    padding-top: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.offer-card-content h3 { font-size: 1.25rem; text-align: center;font-weight: 600; margin: 0 0 0.5rem; }
.offer-card-content p { color: var(--muted); margin: 0 0 1.5rem; flex-grow: 1; }
.offer-card-content a { color: var(--primary); text-align: center; text-decoration: none; font-weight: 600;  }
.offer-card-content a:hover { text-decoration: underline; }

/* TESTIMONIAL SECTION */
#testimonial { padding-top: 6rem; background: rgba(10, 12, 16, 0.55); padding-bottom: 3rem;  }
.testimonial-card-single {
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    padding-top: 4rem;
    max-width: 512px;
     margin: 5rem auto 0;
    text-align: center;
    position: relative;
}
.testimonial-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--bg-900);
}
.testimonial-card-single h4 { font-size: 1.125rem; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.testimonial-card-single .title { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }
.testimonial-card-single blockquote { font-style: italic; color: var(--muted); margin: 0; }

/* "ABOUT US" SECTION */
#about { background: rgba(0, 0, 0, 0.55); }
.about-paragraph {
    max-width: 72rem;
    margin: -1.5rem auto 5rem;
    text-align: justify;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}
.about-features-container { display: flex; gap: 2rem; justify-content: center; }
.about-feature-card {
    flex: 1;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.about-feature-card img { width: 48px; height: 48px; margin: 0 auto 1rem; }
.about-feature-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; }
.about-feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* TEAM SECTION */
#team { background: rgba(10, 12, 16, 0.55); }
.team-card {
    display: block;
    background: linear-gradient(270deg, #0b1835, #0a122b);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(22, 206, 236, 0.1);
}
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.team-card-content { padding: 1rem; }
.team-card-content h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.25rem; }
.team-card-content p { color: var(--muted); font-size: 0.8rem; }

/* CONTACT FORM */
#contact { background: rgba(0, 0, 0, 0.55); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-input, .form-textarea {
    background: linear-gradient(270deg, #0b1835, #0a122b);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #eef3ff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 206, 236, 0.2);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-full-width { grid-column: 1 / -1; }

/* FOOTER */
footer { padding: 3rem 0; background: #080d19; text-align: left; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid #334155;
    padding-top: 3rem;
}
.footer-col h3 { font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-socials { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-socials svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
    /* Mobile responsive styles */
    .hero { padding: 4rem 0; background-position: center 95%; background-size: 90% auto; align-items: center; }
    .hero-inner { justify-content: center; text-align: center; padding: 1rem; }
    .hero-content { flex-basis: 100%; text-align: center; margin-left: 0; }
    .subtitle { margin-left: auto; margin-right: auto; }
    .offer-cards-container, .about-features-container { flex-direction: column; align-items: center; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
}

/* --- CORRECTED PROFILE PAGE STYLES --- */
.profile-section {
  background: rgba(0, 0, 0, 0.55);
  padding: 4rem 0; /* Vertical padding for the section */
}

.profile-layout {
  display: flex;
  align-items: flex-start; /* This aligns items to the top, including the image and heading */
  gap: 4rem;
}

.profile-image-container {
  flex: 0 0 350px;
  height: 500px;
  position: sticky;
  top: 115px; /* Stick below the header (73px) + top padding (4rem ~ 42px) */
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  margin-top: 0.8rem;
}

.profile-text-container {
  flex: 1;
  overflow-y: auto; /* Enable scrolling */
  max-height: calc(100vh - 200px);
  padding-right: 1rem; /* Space for the scrollbar */
}

/* Custom Scrollbar */
.profile-text-container::-webkit-scrollbar { width: 8px; }
.profile-text-container::-webkit-scrollbar-track { background: transparent; }
.profile-text-container::-webkit-scrollbar-thumb {
  background-color: rgba(165, 177, 216, 0.4);
  border-radius: 4px;
}
.profile-text-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 177, 216, 0.4) transparent;
}

.profile-text-container h2 { text-align: left; margin-top: 0; margin-bottom: 0.5rem; font-size: 2.5rem; }
.profile-designation { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 2rem; }
.profile-text-container p { text-align: justify; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.8; }
.profile-text-container ul { list-style-type: disc; padding-left: 20px; color: var(--muted); margin-bottom: 1.5rem; }
.profile-text-container ul li { margin-bottom: 0.75rem; }
.role-highlight { font-weight: 600; color: #eef3ff; }

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .profile-section { padding: 4rem 0; }
  .profile-layout { flex-direction: column; align-items: center; gap: 2rem; }
  .profile-image-container {
    width: 90%;
    max-width: 350px;
    flex-basis: auto;
    position: static; /* Disable sticky on mobile */
  }
  .profile-text-container {
    max-height: none; /* Disable max-height on mobile */
    overflow-y: visible;
    padding-right: 0;
  }
  .profile-text-container h2,
  .profile-designation { text-align: center; }
}

/* This is the new container that will have the background and padding */
.logo-background-frame {
  width: 100%;
  height: 100%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(12, 12, 12, 0.05); */
  background: #121829;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* This ensures the image fits neatly inside the new container */
.logo-background-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- STYLES FOR PRIVACY POLICY & TEXT-HEAVY PAGES --- */

/* Hero section for internal pages */
.page-hero {
  position: relative;
  height: 40vh; /* Reduced height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 1rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 2vw, 2rem);
  color: #fff;
  z-index: 2;
  line-height: 1.1;
}

.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section for the legal text content */
.legal-section {
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem 0;
}

.legal-content {
  max-width: 80ch; /* Optimal width for reading long text */
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #eef3ff;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #eef3ff;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content strong {
  color: #eef3ff;
  font-weight: 600;
}

.legal-content ul {
  list-style-position: inside;
  list-style-type: disc;
  padding-left: 1rem;
}

.legal-content ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem; /* Space between input and button */
}
.subscribe-form .form-input {
  flex-grow: 1; /* Allows input to take up available space */
}
.subscribe-form .btn {
  flex-shrink: 0; /* Prevents button from shrinking */
  background-color: var(--primary); /* Sets the button color */
}