/* Preload critical fonts */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* System font stack for fallback */
@font-face {
  font-family: 'System';
  font-style: normal;
  font-weight: 400;
  src: local(-apple-system), BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Reset and base styles */
:root {
  --font-primary: 'Poppins', 'System', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Agu Display', 'System', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --accent-primary: #7d3ef0;
  --accent-secondary: #fc0bf7;
  --bg-light: #f8f9fa;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimizations */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: 'kern' 1;
  font-feature-settings: 'kern';
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Optimize rendering */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* Base typography and layout */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 1rem;
  overflow-x: hidden;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Optimized Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  will-change: opacity;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.loader {
  display: flex;
  gap: 15px;
}

.loader div {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #7d3ef0;
  animation: bounce 0.5s cubic-bezier(0.8, 0.5, 0.2, 1.4) infinite alternate;
}

.loader div:nth-child(2) {
  animation-delay: 0.1s;
}

.loader div:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-30px);
  }
}

/* Mobile Header */
.mobileview header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  z-index: 100;
}

.logo {
  height: 40px;
  padding-left: 10px;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding-right: 5px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  transition: 0.3s;
}

.hamburger span:nth-child(2) {
  width: 75%;
}

.hamburger span:nth-child(3) {
  width: 50%;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -75%;
  width: 75%;
  height: 100vh;
  background: #1a083a;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  z-index: 200;
}

.sidebar.active {
  right: 0;
}

.sidebar-content {
  padding: 2rem;
  padding-top: 5rem;
  position: relative;
}

.sidebar-content ul {
  list-style: none;
}

.sidebar-content ul li {
  margin: 1.5rem 0;
}

.sidebar-content ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
}
.sidebar-content ul li i {
  color: #fff;
  padding-right: 3px;
}
.sidebar-content ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  transition: 0.3s;
}

.sidebar-content ul li a:hover::after {
  width: 100%;
}

/* Sidebar Close Button */
.sidebar-close {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.sidebar-close::before,
.sidebar-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  transform-origin: center;
}

.sidebar-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Large Screen Navbar */
.largescreen {
  display: none;
}
.nav-button {
  border-radius: 30px;
  padding: 15px 50px;
  border: none;
  background-color: #333;
}
.nav-button a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-btn {
  animation: pulse 1.2s ease-in-out infinite;
}

.sidebar-button {
  border-radius: 30px;
  padding: 10px 50px;
  border: none;
  background-color: #7D3EEF;
}
.sidebar-button a {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
}
@media (min-width: 1200px) {
  .mobileview header {
    display: none;
  }

  .largescreen {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
  }

  .firstul ul {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  nav .firstul ul li a {
    text-decoration: none;
    color: #000;
    position: relative;
  }

  .firstul ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
    transition: 0.3s;
  }

  .firstul ul li a:hover::after {
    width: 100%;
  }
}

.hero-section {
  font-family: "Poppins", sans-serif;
}

.hero-carousel {
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 40px;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: #fff;
}
/* Visible state */

.hero-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-content p bold {
  font-weight: 400;
}

.hero-buttons .button {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 20px 40px;
  margin-right: 20px;
  font-size: 15px;
  font-weight: 400;
  transition: background-color 0.3s ease;
}

.hero-buttons .button:hover {
  background-color: #7d3ef0;
  color: #fff;
}

.hero-buttons .enroll {
  background-image: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  border-radius: 30px;
}

.hero-buttons .join {
  background-color: transparent;
  border-radius: 30px;
  color: #fff;
  border: 1px solid white;
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    margin-top: 80px;
  }

  .hero-content {
    padding: 8em 20px;
  }

  .hero-content h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    padding-top: 0.2em;
  }

  .hero-buttons .button {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
  }
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

@media (min-width: 769px) {
  .hero-section {
    margin-top: 200px;
  }
  .hero-content h1 {
    font-size: 3.5em;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
    margin-top: 1em;
  }
}

:root {
  --primary-color: #7d3ef0;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --button-bg: #7d3ef0;
  --button-hover-bg: #5a2cb6;
  --button-text: #fff;
}

.core {
  padding: 2rem 1rem;
}

.core h3 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.cardsection {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  flex: 1;
  padding: 1.5rem;
  background-color: transparent;
  border-right: 1px solid #000;
  border-left: none;
  text-align: left;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

.card h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  text-align: left;
  gap: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card i {
  font-size: 4.5rem;
  color: #7d3ef0;
  text-align: left;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--button-hover-bg);
}

.cta-button a {
  color: var(--button-text);
  text-decoration: none;
}
.cta-button:hover {
  background-image: linear-gradient(90deg, #7d3ef0, #fc0bf7);
}

@media screen and (max-width: 768px) {
  .cardsection {
    flex-direction: column;
  }
}

.content .button-more {
  background-image: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  border-radius: 30px;
  padding: 15px 30px;
}
.content a {
  text-decoration: none;
  color: #fff;
}
.button-more:hover {
  transform: scale(1);
  background: #7d3ef0;
}
.impact {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #fdfdfd, #f7f9fc);
  color: #333;
}

.impact h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.impact p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555;
  font-style: italic;
}

.impact-content {
  display: flex;
  justify-content: center; /* Ensures proper centering */
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.impact-item {
  text-align: center;
  color: #333;
  transition: transform 0.3s ease, color 0.3s ease;
}

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

.impact-item h2 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  background-clip: padding-box; /* Gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.impact-item h2 span {
  font-size: 2.8rem;
}

.impact-item p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #666;
}

@media (max-width: 768px) {
  .impact-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .impact-item h2 {
    font-size: 2.5rem;
  }

  .impact-item p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 890px) {
  .faq {
    background: #f4f0ff;
    margin-bottom: -20px;
  }
  .faq h1 {
    text-align: center;
    font-size: 3em;
    color: #333;
  }
  .faq hr {
    width: 50px;
    height: 5px;
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    background-clip: padding-box;
    border: none;
    border-radius: 3px;
    margin: 0 auto;
  }
  .hr-25 {
    text-align: center;
  }
  .faq-list > div {
    border-bottom: 0.07em solid #1a1033;
    padding: 1.5em 0em;
  }
  .faq-list > div:last-child {
    border: unset;
  }

  details > summary {
    list-style: none;
  }
  details > summary::-webkit-details-marker {
    display: none;
  }

  summary {
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.3s ease;
    color: #333;
  }

  summary:hover {
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    background-clip: padding-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  details[open] summary ~ * {
    animation: sweep 0.5s ease-in-out;
  }

  @keyframes sweep {
    0% {
      opacity: 0;
      margin-left: -10px;
    }
    100% {
      opacity: 1;
      margin-left: 55px;
    }
  }

  details[open] summary {
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    background-clip: padding-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  details[open] p {
    border-left: 2px solid #7d3ef0;
    margin-left: 55px;
    padding-left: 25px;
    opacity: 1;
    will-change: opacity, margin-left;
    transition: opacity 0.3s ease,
                margin-left 0.3s ease;
    color: #333;
  }

  details[open] summary:after {
    content: "-";
    font-size: 3.2em;
    margin: -33px 0.35em 0 0;
    font-weight: 200;
  }

  .faq-body {
    width: 70em;
    margin: 4em auto;
    box-shadow: 0px 0px 16px #5b5b5b;
    border-radius: 0.2em;
    padding: 5em;
    background-color: #fff;
  }

  .faq-list {
    width: 55em;
    margin: 1em auto;
    padding: 2em 0;
  }

  summary::-webkit-details-marker {
    display: none;
  }

  summary:after {
    background: transparent;
    border-radius: 0.3em;
    content: "+";
    color: #7d3ef0;
    float: left;
    font-size: 1.8em;
    font-weight: bold;
    margin: -0.3em 0.65em 0 0;
    padding: 0;
    text-align: center;
    width: 25px;
  }
}

@media screen and (max-width: 889px) {
  .faq {
    background: #f4f0ff;
    margin-bottom: -20px;
  }

  .faq h1 {
    text-align: center;
    font-size: 2.5em; /* Adjusted for smaller screens */
    color: #333;
  }

  .faq hr {
    width: 50px;
    height: 5px;
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    background-clip: padding-box;
    border: none;
    border-radius: 3px;
    margin: 0 auto;
  }

  .hr-25 {
    text-align: center;
  }

  .faq-list > div {
    border-bottom: 0.07em solid #333;
    padding: 1.5em 0em;
  }

  .faq-list > div:last-child {
    border: unset;
  }

  details > summary {
    list-style: none;
  }

  details > summary::-webkit-details-marker {
    display: none;
  }

  summary {
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between; /* Aligns icon and text */
    align-items: center; /* Vertically centers icon with text */
    color: #1a1033;
  }

  summary:hover {
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    background-clip: padding-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  details[open] summary ~ * {
    animation: sweep 0.5s ease-in-out;
  }

  @keyframes sweep {
    100% {
      opacity: 1;
      margin-left: 20px;
    }
  }

  details[open] summary {
    background: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    background-clip: padding-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  details[open] p {
    border-left: 1px solid #7d3ef0;
    margin-left: 5px;
    padding-left: 5px;
    opacity: 100;
    transition: all 3s ease;
    color: #333;
  }

  details[open] summary:after {
    content: "-";
    font-weight: 200;
  }

  .faq-list {
    width: 80%;
    margin: 1em auto;
  }

  .faq-content {
    font-size: 0.8em;
  }

  summary:after {
    content: "+";
    color: #7d3ef0;
    font-size: 1.8em;
    font-weight: bold;
  }
}

/*Testimonial*/

.testimonial {
    background: #fefefe;
    padding: 4rem 2rem;
  }
  .testimonial-bg {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
  }
  .testimonial h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
  }
  .carousel-container {
    overflow: hidden;
  }
  .carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  .testimonial-info {
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .testimonial-info p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin: 1.5rem 0;
  }
  .testimonial-face h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
  }
  .testimonial-face h4 {
    font-size: 0.95rem;
    font-weight: 400;
    color: #777;
  }
  .avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    margin: auto;
  }
  .arrow-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .arrow-controls button {
    width: 45px;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  .arrow-controls button:hover {
    background: #f4f0ff;
    transform: scale(1.1);
  }

.why-choose-us {
  background: #1a083a; /* Matches the FAQ section's dark theme but adds a gradient */
  color: #f4f0ff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.why-choose-us h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
}

.reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.reason {
  background: #1a083a; /* Slightly darker than the light purple section */
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #fc0bf7; /* Gradient border effect color */
  will-change: transform, box-shadow;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reason:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(252, 11, 247, 0.4); /* Glow effect on hover */
}

.reason i {
  font-size: 2.5rem;
  color: #fc0bf7; /* Gradient color from your palette */
  margin-bottom: 15px;
}

.reason h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff; /* Matches the section heading */
}

.reason p {
  font-size: 1rem;
  color: #d1d1e0; /* Lighter text for contrast */
  line-height: 1.6;
}

.news-section {
  background-color: #fff;
}
.subscribe {
  background-color: #ff6f61;
  color: #fff;
  margin: auto;
  text-align: center;
  max-width: 350px;
  border-radius: 15px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .reasons {
    flex-direction: column;
    align-items: center;
  }
}

footer {
  background-color: #1A083A;
  color: white;
  padding: 50px 30px;
}

footer h1 {
  font-size: 2.5em;
  font-weight: bold;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #fff;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Improve text rendering */
p, h1, h2, h3, h4, h5, h6, a, span, div {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimize images for dark mode */
@media (prefers-color-scheme: dark) {
  img {
    opacity: 0.9;
    transition: opacity 0.3s ease-in-out;
  }
  
  img:hover {
    opacity: 1;
  }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Logo Section */
.footer-container > div:first-child .logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-container > div:first-child h4 {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-container > div:first-child h4 img {
  margin-right: 10px;
}
.social {
  margin-bottom: 20px;
}
/* Social Icons */
.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #000;
  will-change: transform, background-color, color;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.social-icons i:hover {
  background-color: #7d3ef0;
  color: white;
  transform: scale(1.1);
}

/* Common Styles for Sections */
.footer-container h5 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
}

.footer-container h5::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #7d3ef0;
}

.footer-container ul {
  list-style: none;
  padding: 0;
}

.footer-container ul li {
  margin-bottom: 10px;
}

.footer-container ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container ul li a:hover {
  color: #d1d1e0;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.loader {
  padding: 10px;
  background: #f4f0ff;
  border-radius: 4px;
  text-align: center;
  margin: 10px 0;
  will-change: opacity;
  transition: opacity 0.3s ease;
}

.response-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: center;
  will-change: opacity, transform;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.response-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.response-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.news {
  background-color: #1A083A;
  padding: 1rem 1rem;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-writeup {
  text-align: center;
}

.news-writeup h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.news-writeup p {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #ffffff;
}

.newsletter {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 1.5rem 1rem;
  color: black;
  font-size: 1rem;
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
  border: none;
  outline: none;
  min-width: 200px;
}

.newsletter button {
  background-color: #7d3ef0;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  padding: 1.5rem 2rem;
  white-space: nowrap;
}

.newsletter button:hover {
  background-color: #6032b7;
}

@media (max-width: 482px) {
  .newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .newsletter input[type="email"] {
    width: 100%;
    border-radius: 0.375rem;
    padding: 1rem;
  }

  .newsletter button {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
  }

  .newsletter button:active {
    transform: scale(0.98);
  }
}

@media (min-width: 483px) and (max-width: 767px) {
  .newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .newsletter input[type="email"] {
    width: 100%;
    border-radius: 0.375rem;
    padding: 1rem;
  }

  .newsletter button {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
  }

  .newsletter button:active {
    transform: scale(0.98);
  }
}

@media (min-width: 768px) {
  .news-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
  }

  .news-writeup {
    text-align: left;
    flex: 1;
  }

  .news-writeup h1 {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .newsletter {
    flex: 1;
  }
}

.news-hr1 {
  border-color: #000;
  border-style: solid;
  border-width: 1px 0 0 0;
  margin: 1.5rem 0;
}

.about-us {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.about-us .container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.about-us .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.about-us .content {
  flex: 1;
  max-width: 50%;
  padding-top: 150px;
  text-align: left;
  padding-left: 20px;
}

.about-us .content h3 {
  font-size: 1rem;
  color: #7d3ef0;
  margin-bottom: 10px;
}

.about-us .content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.about-us .image {
  flex: 1;
  max-width: 50%;
  padding: 0 10px; /* Add padding for better spacing */
}

.about-us .image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about-us .row {
    flex-direction: column;
    text-align: center; /* Center text and image for smaller screens */
  }

  .about-us .content,
  .about-us .image {
    max-width: 100%;
    padding: 0;
  }
}

/*.our-values {
  padding: 50px 10px;
}*/
.our-values .container {
  max-width: 1200px;
  margin: 0 auto;
}

.our-values .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px; /* Space between columns */
}

.our-values .value-box {
  padding: 20px 5px;
  text-align: left;
}

.our-values .value-box h3 {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 10px;
}

.our-values .value-box p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Keep 3 columns for iPad */
  .our-values .row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Overlap on small screens */
  .our-values .row {
    grid-template-columns: 1fr; /* Single column layout */
  }
}

.team {
  padding: 40px 20px;
  background-color: #f4f0ff;
  text-align: center;
}

.team h3 {
  font-size: 1rem;
  color: #7d3ef0;
  margin-bottom: 10px;
}

.team h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.team-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.team-member:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  align-items:center;
}

.team-member h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.linkedin-icon {
  color: #0077b5;
}

.linkedin-icon:hover {
  color: #005983;
}

.team-member p {
  color: #666;
  margin-bottom: 8px;
}

/* Responsive Layout */
@media (max-width: 992px) {
  .team-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-carousel {
    grid-template-columns: 1fr;
  }
}

/*contact us page*/
.form-section {
  padding-top: 150px;
}
.form-section h3 {
  font-size: 1rem;
  color: #7d3ef0;
  margin-bottom: 10px;
  text-align: center;
}
.form-section h1 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 10px;
  text-align: center;
}
.form-section p {
  color: #666;
  margin-bottom: 16px;
  text-align: center;
}
.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  width: 370px;
  margin: auto;
}
.form-group {
  margin-bottom: 20px;
}
.input,
textarea {
  width: 100%;
  padding: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  font-size: 14px;
}
.input::placeholder,
textarea::placeholder {
  color: #666;
}
.submit-btnn {
  width: 100%;
  padding: 12px;
  background-image: linear-gradient(90deg, #7d3ef0, #fc0bf7);
  border-radius: 30px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-btnn:hover {
  background-color: #333;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #4a4a4a;
}
@media screen and (min-width: 1024px) {
  .contact-form {
    width: 700px;
  }
  .contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .contact-form .form-group:nth-child(1) {
    grid-column: 1;
  }
  .contact-form .form-group:nth-child(2) {
    grid-column: 2;
  }
  .contact-form .form-group:nth-child(3) {
    grid-column: 1;
  }
  .contact-form .form-group:nth-child(4) {
    grid-column: 2;
  }
  .contact-form .form-group:nth-child(5) {
    grid-column: 1 / span 2;
    width: 100%;
  }
  .contact-form .submit-btnn {
    grid-column: 1 / span 2;
    width: 50%;
    margin: auto;
  }
}

.connect {
  background-color: #f4f0ff;
  padding: 20px;
  text-align: center;
}

.connect-header h3 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 10px;
}

.connect-header .bold {
  color: #7d3ef0;
}

.connect-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.connect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connect-icon img {
  width: 200px;
  height: 200px;
  text-align: center;
}

.connect-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.connect-info p {
  color: #666;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .connect-items {
    grid-template-columns: 1fr;
  }
}

.e-book {
  background-color: #fdfdfd;
}
.ebooks {
  text-align: center;
  align-items: center;
  justify-content: center;
  padding-top: 300px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 8rem;
}

.ebooks h1 {
  font-size: 1rem;
  color: #7d3ef0;
  margin-bottom: 1rem;
}

.upcoming-books h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.ebooks p {
  font-size: 1rem;
  color: #666;
}

.partner-text {
  margin: 1rem 0;
}

.cta {
  display: inline-block;
  background: #7d3ef0;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: transform 0.3s;
}

.cta:hover {
  background: #333;
  transform: scale(1.1);
}

.ser {
  margin: 0;
  margin-top: 80px;
  font-family: "Poppins", sans-serif;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem 0;
  padding-bottom: 100px;
}

.services {
  text-align: center;
  max-width: 1200px;
  width: 90%;
}

.services h1 {
  font-size: 1rem;
  color: #7d3ef0;
  margin-bottom: 1rem;
}

.services .intro {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); /* Adjust to fit 3 cards per row */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ser-card {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ser-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ser-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.ser-card h2 {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ser-card p {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services h1 {
    font-size: 2rem;
  }

  .services .intro {
    font-size: 1rem;
  }

  .ser-card {
    padding: 1rem;
  }

  .service-cards {
    grid-template-columns: 1fr; /* Single column layout for smaller screens */
  }
}

/*Newsletter Page*/
.newsletter-p {
    padding: 8rem 2rem;
    text-align: center;
    border-radius: 16px;
    margin: 3rem auto;
    max-width: 800px;
    

}
.newsletter-pcontent h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.newsletter-pcontent p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.newsletter-formp {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
  .newsletter-formp input {
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    width: 280px;
    font-size: 1rem;
    outline: none;
}
.newsletter-formp button {
    padding: 0.9rem 1.5rem;
    background-image: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.newsletter-formp button:hover {
    background: #333;
}

/*Community*/
  .h1-c, .h2-c, .h3-c {
    margin: 0 0 10px;
  }

.hero-c {
    padding: 8rem 10px;
    text-align: center;
 }

.hero-c h1 {
    font-size: 5rem;
    margin-bottom: 10px;
}

.hero-c p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

  .btn-c {
    background-image: linear-gradient(90deg, #7d3ef0, #fc0bf7);
    color: #fff;
    padding: 1rem 60px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
  }

  .btn-c:hover {
    background: #333;
  }

.video-section {
    text-align: center;
    padding: 10px 20px;
}

  .video-section iframe {
    width: 100%;
    max-width: 100%;
    height: 500px;
    border-radius: 10px;
  }

  .offers {
    padding: 60px 20px;
    background: #fafafa;
    text-align: center;
  }

  .offers h2 {
    font-size: 3rem;
    margin-bottom: 40px;
  }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
}

  .grid-item {
    background: #1a083a;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #fc0bf7;
    text-align: left;
    color: #fff;
  }
  .grid-item h3{
    font-size: 1.5rem;
  }

  .circle {
    background: #D0E6FF;
    color: #333;
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .circle-c {
    background: #FF7F9F;
    color: white;
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
  }


.membership {
  width: 100%;
}


  @media (max-width: 600px) {
    .hero-c h1 {
      font-size: 2rem;
    }

    .video-section iframe {
      height: 250px;
    }

    .circle {
      width: 35px;
      height: 35px;
      line-height: 35px;
    }
  }