/*RESET*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0071e3;
  --secondary-color: #13161a;
  --text-color: #333;
  --light-bg: #e8f0f7;
  --white: #fff;
  --gray: #666;
  --light-gray: #e6e9ee;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* BASE STYLE */

body {
  background-color: var(--light-bg);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 120px;
  margin-bottom: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background-color: var(--light-gray);
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  font-size: 14px;
  color: var(--primary-color);
}

.icon {
  margin-right: 3px;
  color: rgba(8, 32, 255, 1);
}

.green-icon {
  color: green;
  font-weight: 500;
  font-size: 14px;
}

.bottom-bar {
  background-color: var(--secondary-color);
}

.bottom-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.logo_img {
  height: 35px;
}

.logo_text {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.nav {
  transition: all 0.3s ease-in-out;
}

.nav_list {
  display: flex;
  gap: 40px;
}

.nav_item {
}

.nav_link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav_link:hover {
  color: var(--white);
}

.btn {
  color: #fff;
  background-color: #0071e3;
  padding: 8px 20px;
  border-radius: 1000px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover {
  background-color: rgb(28, 128, 228);
}

.hamburger {
  cursor: pointer;
  display: none;
}

.bar {
  height: 2px;
  width: 27px;
  background-color: #fff;
  margin: 5px 0;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

/* For JS */
.nav--open {
  transform: translateX(0%) !important;
}

.hamburger-open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.container-move {
  margin-top: 200px;
}

/* MEDIA QUERIES */
@media (max-width: 650px) {
  .nav {
    position: fixed;
    top: 90px;
    left: 0;
    background-color: var(--secondary-color);
    width: 100%;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav_list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .nav_link {
    font-size: 14px;
  }

  .btn {
    font-size: 11px;
    padding: 7px 17px;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 360px) {
  .top-bar-content {
    font-size: 10px;
  }
}

/* For content */

.header-1 {
  padding: 5px;
  font-family: "Inter" sans-serif;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
}

.header-2 {
  padding: 5px;
  font-family: "Inter" sans-serif;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.main-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 30px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0;
}

.text-content {
  order: 1;
}

.image-content {
  order: 2;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.primary-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.secondary-heading {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.tertiary-heading {
  font-size: 1.4rem;
  color: var(--gray);
  margin-bottom: 3rem;
  font-weight: 500;
}

.features {
  display: grid;
  gap: 40px;
  margin-top: 60px;
}

.feature-item {
  background: var(--white);
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-item p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.7;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;
}

.card {
  width: 325px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 20px;
}

.card img {
  width: 100%;
  height: auto;
  margin-top: 8px;
  margin-bottom: 5px;
}

.card-content {
  padding: 16px;
}

.card-content h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.card-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.3;
  padding-left: 30px;
}

.card-content .reg-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0071e3;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 16px;
  color: #f0f0f0;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background-color: var(--white);
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-gray);
  background-color: var(--white);
}

.modal-header img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--secondary-color);
}

.modal-body {
  padding: 0;
  height: 80vh;
  max-height: 800px;
  overflow: hidden;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

/* Modal responsive adjustments */
@media (max-width: 900px) {
  .modal {
    padding: 15px;
  }

  .modal-content {
    width: 95%;
    margin: 15px auto;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header img {
    width: 50px;
    height: 50px;
  }

  .modal-body {
    height: 75vh;
  }
}

@media (max-width: 650px) {
  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    margin: 10px auto;
    border-radius: 10px;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-header img {
    width: 40px;
    height: 40px;
  }

  .close {
    top: 15px;
    right: 15px;
    font-size: 28px;
  }

  .modal-body {
    height: 70vh;
  }
}

/* Button to Open Modal */
.open-modal-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.open-modal-btn:hover {
  background-color: #0062c4;
  transform: translateY(-2px);
}

/* - Footer CSS */

/* Footer Styling */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 80px 0 0;
  margin-top: 100px;
}

/* Footer Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: center;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  gap: 30px;
}

.footer-social a {
  color: var(--white);
  font-size: 24px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 25px;
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 20px 0;
  }

  .text-content {
    order: 2;
  }

  .image-content {
    order: 1;
  }

  .primary-heading {
    font-size: 2rem;
  }

  .secondary-heading {
    font-size: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer .logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .features {
    gap: 30px;
    margin-top: 40px;
  }
}

@media (max-width: 650px) {
  body {
    padding-top: 100px;
  }

  .main-section {
    margin: 40px auto;
  }

  .feature-item {
    padding: 25px;
  }

  .footer {
    padding: 60px 0 0;
    margin-top: 60px;
  }

  .primary-heading {
    font-size: 1.8rem;
  }

  .secondary-heading {
    font-size: 1.3rem;
  }

  .tertiary-heading {
    font-size: 1.1rem;
  }
}

/* Quote Card Styling */
.blockquote-container {
  text-align: center;
  font-style: italic;
  padding: 20px 0;
}

.blockquote-container p {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.blockquote-container cite {
  color: rgba(255, 255, 255, 0.7);
}

/* setting social-icons color */
.fa-facebook {
  color: #1554f5;
}

.fa-x-twitter {
  color: #f0f0f0;
}

.fa-square-instagram {
  color: orangered;
  background-color: whitesmoke;
}

.fa-linkedin {
  color: #1554f5;
  background-color: whitesmoke;
}

.fa-youtube {
  color: red;
}

.landing-page {
  background: no-repeat center center/cover;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.overlay {
  background-color: rgba(254, 249, 249, 0.5);
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
}

/* Main heading styles for CBSE/ISC pages */
.main-heading {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.main-heading h1 {
  font-size: 2.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.main-heading h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.main-heading h3 {
  font-size: 1.6rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.main-heading p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Services section styles */
.services-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 30px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services-heading {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: 600;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.services-list p {
  color: var(--gray);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.services-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Course content section */
.course-content {
  margin-top: 60px;
}

.section-heading {
  font-size: 2rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

/* Card grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Card styles */
.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-content h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.card-content h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 10px 0;
  font-weight: 500;
}

.card-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
  margin: 5px 0;
}

.card-content .product-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-heading {
    padding: 30px;
    margin-bottom: 40px;
  }

  .main-heading h1 {
    font-size: 2.2rem;
  }

  .main-heading h2 {
    font-size: 1.6rem;
  }

  .main-heading h3 {
    font-size: 1.3rem;
  }

  .services-section {
    padding: 25px;
    margin-bottom: 40px;
  }

  .services-heading {
    font-size: 1.8rem;
  }

  .section-heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 650px) {
  .main-heading {
    padding: 25px;
    margin-bottom: 30px;
  }

  .main-heading h1 {
    font-size: 1.8rem;
  }

  .main-heading h2 {
    font-size: 1.4rem;
  }

  .main-heading h3 {
    font-size: 1.2rem;
  }

  .main-heading p {
    font-size: 1rem;
  }

  .services-section {
    padding: 20px;
    margin-bottom: 30px;
  }

  .services-heading {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-heading {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-content h4 {
    font-size: 1.1rem;
  }
}
