/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
  background-color: #f5f6f7;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
  border-radius: 0.75rem;
  width:100%;
  padding: 1rem;
  position:sticky;
  top:0;   
  z-index: 999; 
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  /* background: rgb(14, 14, 105); */
  /* color: aliceblue; */
  /* height: 60px; */
  /* width: 100%; */
  /* margin: 0; */
  /* border-radius: 0.5rem; */
  /* box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75); */
}

.tabs a {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.tabs a img {
  height: 60px;
  width: 60px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 10%;
}

.nav-menu {
  display: flex;
  list-style: none;
  justify-content: space-between;
  /* background-color: rgb(18, 16, 114); */
  gap: 2rem;
}

.nav-item {
  margin: 10px;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-size: 1.125rem;
}
.nav-link:hover{
  color:rgb(63, 201, 232);
  font-weight: bold;
}

.hamburger {
  display: none;
  cursor: pointer;
  color: white;
  background-color: transparent;
  border: none;
  font-size: 2rem;
}

@media screen and (max-width: 768px) {
  .nav-menu {
   position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* margin: 20px 0rem; */
    padding-top: 80px;
    z-index: 400;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    justify-content: start;
    transition: all 0.5s ease-in-out;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: block;
    position: relative;
    z-index: 401;
  }
}

.section {
  background: white;
  border-radius: 12px;
  padding: 50px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Hero Section */
.hero-section {
  background: url("./exam.bg.jpg") no-repeat center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  height: 500px;
}

.hero-sectiono h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(37, 117, 252, 0.6);
}

.btn i {
  margin-right: 10px;
  font-size: 18px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 40px auto;
  width: 90%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.4s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.8rem;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s;
}

.close-btn:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 30px;
}

.modal-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eaeaea;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 1.4rem;
  color: #2575fc;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f5ff;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-group {
  flex: 1 1 300px;
  margin: 0 10px 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

.optional {
  color: #888;
  font-style: italic;
}

.register-btn-container {
  text-align: center;
  margin-top: 20px;
}

.register-btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(37, 117, 252, 0.6);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }

  .modal-body {
    padding: 20px;
  }

  .header h1 {
    font-size: 2.2rem;
  }
}

section {
  background: white;
  border-radius: 12px;
  padding: 50px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.benefits-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.benefits-section h2 {
  margin-bottom: 50px;
  font-size: 30px;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  max-width: 1200px;
}

.card {
  background: linear-gradient(
    to bottom right,
     #b41ae7 0%, #4485f6 100%
  );
  padding: 20px;
  border-radius: 10px;
  min-height: 120px;
  width: 345px;
  margin: auto;
  transition: transform 0.3s ease;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card :hover {
  transform: translateY(-5px);
  z-index: 10;
}

.card-content {
  position: relative;
  padding: 15px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* z-index:2; */
}

.card-content:hover {
  background-color: #f5f5f5;
}

.card-content .content-heading {
  font-size: 1.25rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heading-icon {
  margin-right: 10px;
  font-size: 1.5rem;
}

.content-description-popout {
  position: absolute;
  top: 100%;
  /* Position below the heading */
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0 15px;
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.card-content:hover .content-description-popout {
  opacity: 1;
  visibility: visible;
  transition: transform(0);
}

.content-description {
  padding: 15px;
  color: #555;
  line-height: 1.6;
  border-top: 1px solid #eee;
}

.test-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

 .tests {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tests h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tests .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.layout-preview {
  padding: 30px;
  min-height: 600px;
}

/* Alternating Layout */
.alternating .content-item {
  display: flex;
  margin-bottom: 40px;
  align-items: flex-start;
}

.alternating .content-item:nth-child(odd) {
  flex-direction: row;
}

.alternating .content-item:nth-child(even) {
  flex-direction: row-reverse;
}

.alternating .text-content {
  flex: 1;
  padding: 0 20px;
}

.alternating h2 {
  color: #6a11cb;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.alternating .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .alternating .content-item {
    flex-direction: column !important;
  }

  .alternating .icon {
    margin-bottom: 15px;
  }
}
.notice ul{
     font-weight: bold;
    color:red;
}

.contact-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background-color: #fff;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.contact-form .section-title {
  color: white;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #2575fc;
}

.contact-form .section-title::after {
  background: white;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  background: rgba(203, 221, 236, 0.9);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(51, 41, 41, 0.5);
  background: rgb(243, 245, 246);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: white;
  color: #2575fc;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #f0f5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #2575fc;
  font-size: 20px;
}

.contact-text h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-text p {
  color: #666;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f5ff;
  border-radius: 50%;
  color: #2575fc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #2575fc;
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .contact-form,
  .contact-info {
  flex: 100%;
  }
  .contact-form,
  .contact-info {
    padding: 30px 25px;
  }
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-top: 20px;
  display: none;
}

/* Why Choose Us Section */
.choose-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background:#2575fc;;
}

.choose-section-content{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  
}

.choose-section h2 {
  text-align: center;
}
.choose-section-content b{
  font-size:1.75rem;
}

/*list2*/
#l2 {
  /*list-style-type: none;*/
  margin-top: 30px;
  font-size: 1rem;
  text-align: left;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  width: 300px;
 /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);*/
  height: 60vh;
  box-shadow:0 3px 5px rgb(10, 67, 125);
}

.choose-section p{
  margin-top: 2rem;
}

/* About Us Section */

/*.about-content{
  display:flex;
  flex-direction: row;
  font-size:1.5rem;
}*/

.about-section{
  background: rgb(16, 5, 73);
  color:white;
}
.about-section h2{
  text-align: center;
}

.about-section p{
  margin: 1rem 1.5rem 0 1.5rem;
  text-align: center;
}
/*
.image-container{
  text-align: center;
  margin-top: 2rem;
}
.image-container img{
  height:auto;
  object-fit: cover;
}
*/

.gototop:active {
 transform: translateY(-1px);
}

#back{
  color:#f8f6f8;
  font-size: 1.05rem;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
   /* width:100px; */
   padding: 0.5rem;
   height:50px;
   border-radius: 5rem;
   background: #2575fc;
   color: white;
   gap:5px;
   cursor:pointer;
   transition: background-color 0.3s ease;
   opacity: 0;
   visibility: hidden;
   z-index: 1000;
   transition: transform 0.5s ease-in;
   animation : slide 0.6s ease infinte;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
 transform: translateY(-1rem);
 box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top p{
  margin-left:2px ;
  font-size: 1rem;
}

.back-to-top i{
  color:#f8f6f8;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
  }
  .back-to-top p{
    display: none;
  }
  .back-to-top i{
  font-size: 1.5rem;
  }
}

@keyframes moveDown {
  from {
    bottom: 30px;
  }
  to {
    bottom: 80px;
  }
}