@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(82, 60%, 28%);
  --title-color: hsl(0, 0%, 15%);
  --text-color: hsl(0, 0%, 35%);
  --body-color: hsl(0, 0%, 95%);
  --container-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h2-font-size: 1.25rem;
  --small-font-size: .813rem;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1120px) {
  :root {
    --h2-font-size: 1.5rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
logobox {
  display: flex;
  justify-content: center; /* Center the logo box */
  align-items: center; /* Center items vertically */
}

.logo {
  display: flex;
  justify-content: space-around; /* Space the text elements evenly */
  align-items: center; /* Center text vertically */
  flex: 1;
  color: black;
  text-transform: uppercase;
  font-size: 40px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 10px;
  height: 100px;
}

.logo-text {
  margin: 0 20px; /* Add some margin to ensure there's space between texts */
}

.apply-btn1 {
  display: block;
  color: black;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid orange;
  padding: 10px 20px;
  border-radius: 25px;
  text-transform: uppercase;
  transition: 0.5s;
}

.apply-btn1:hover {
  background: orange;
  color: white;
}

.apply-btn1::before {
  background: orange;
  content: "";
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: -1;
  transition: all 0.6s ease;
  width: 100%;
  height: 0;
}

.apply-form {
  display: none;
  width: 80%;
  max-width: 600px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1003;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

form h3 {
  color: #555;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

form input, form textarea {
  border: 1px solid #ccc;
  margin: 10px 0;
  padding: 15px;
  background: #f5f5f5;
  font-size: 16px;
  border-radius: 5px;
}

form button {
  padding: 15px;
  background: #ff5361;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  margin-top: 20px;
}

.icon-close-form {
  position: absolute;
  top: 10px;
  right: 10px;
  color: black;
  cursor: pointer;
}
/* Header Styles */
/* Header Styles 
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: #d9e2e3 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1001;
  overflow: visible;
}


header ul {
  flex: 2;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
}

header ul li {
  position: relative;
}

header ul li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: black;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 15px;
  font-size: 1.2em;
  overflow: hidden;
}

header ul li a span {
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: color 0.5s;
  text-shadow: 0 0 5px #69cffa;
}

header ul li a:before,
header ul li a:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 0;
  background-color: #18f08b;
  transition: width 0.5s;
  z-index: 0; /* Ensure the lines are behind the text 
}

header ul li a:before {
  left: 0;
  top: 0;
}

header ul li a:after {
  right: 0;
  bottom: 0;
}

header ul li:hover > a:before,
header ul li:hover > a:after {
  width: 100%;
}

/* Dropdown Content 
header ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #d9e2e3;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

header ul li:hover .dropdown-content {
  display: block;
}

header ul li .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.5s;
}

header ul li .dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Blink Effect 
@keyframes blink {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

header ul li .dropdown-content a:hover span {
  animation: blink 0.8s;
}

/* Remove green line hover effect for dropdown-content links 
header ul li .dropdown-content a:before,
header ul li .dropdown-content a:after {
  width: 0; /* Ensure no green line 
  transition: none; /* Disable width transition 
}

header ul li .dropdown-content a:hover:before,
header ul li .dropdown-content a:hover:after {
  width: 0; /* Ensure no green line on hover 
}


.menu-toggle {
  display: none;
  font-size: 1.5em;
  margin-right: 50px;
  cursor: pointer;
}

.menu-toggle i {
  color: black;
}

.menu-items {
  display: flex;
  align-items: center;
}



/* Dropdown Styles 
.menu-items .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f7f2f2;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(114, 112, 112, 0.2);
  top: 100%;
  left: 0;
  z-index: 1002; /* Increased z-index to ensure it appears in front 
}

.menu-items .dropdown-content li {
  display: block;
}

.menu-items .dropdown-content li a {
  padding: 10px 20px;
  text-decoration: none;
  color: rgb(5, 4, 4);
  display: block;
}

.menu-items .dropdown:hover .dropdown-content {
  display: block;
}

#chk1{
  display: none;
}
*/


/* === HEADER STYLES === */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: #d9e2e3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1001;
  overflow: visible;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

header ul {
  flex: 2;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
}

header ul li {
  position: relative;
}

header ul li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: black;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 15px;
  font-size: 1.2em;
  overflow: hidden;
}

header ul li a span {
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: color 0.5s;
  text-shadow: 0 0 5px #69cffa;
}
/* Header Styles */
header ul li a:before,
header ul li a:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 0;
  background-color: #18f08b;
  transition: width 0.5s;
  z-index: 0; /* Ensure the lines are behind the text */
}

header ul li a:before {
  left: 0;
  top: 0;
}

header ul li a:after {
  right: 0;
  bottom: 0;
}

header ul li:hover > a:before,
header ul li:hover > a:after {
  width: 100%;
}

/* Dropdown Content */
header ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #d9e2e3;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

header ul li:hover .dropdown-content {
  display: block;
}

header ul li .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.5s;
}

header ul li .dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Blink Effect */
@keyframes blink {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

header ul li .dropdown-content a:hover span {
  animation: blink 0.8s;
}

/* Remove green line hover effect for dropdown-content links */
header ul li .dropdown-content a:before,
header ul li .dropdown-content a:after {
  width: 0; /* Ensure no green line */
  transition: none; /* Disable width transition */
}

header ul li .dropdown-content a:hover:before,
header ul li .dropdown-content a:hover:after {
  width: 0; /* Ensure no green line on hover */
}

/* Dropdown Styles */
.menu-items .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f7f2f2;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(114, 112, 112, 0.2);
  top: 100%;
  left: 0;
  z-index: 1002; /* Increased z-index to ensure it appears in front */
}

.menu-items .dropdown-content li {
  display: block;
}

.menu-items .dropdown-content li a {
  padding: 10px 20px;
  text-decoration: none;
  color: rgb(5, 4, 4);
  display: block;
}

.menu-items .dropdown:hover .dropdown-content {
  display: block;
}

/* === HAMBURGER ICON === */
.hamburger {
  cursor: pointer;
  position: absolute;
  left: 20px;     /* This puts it 20px from the right edge */
  top: 40px;       /* Adjust this value to move it further down */
  display: none;   /* hidden by default, shown on mobile with media query */
  z-index: 1100;
}


.hamburger input {
  display: none;
}

.hamburger svg {
  height: 3em;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: black;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* === MEDIA QUERIES === */
@media screen and (max-width: 1024px) {
  .hamburger {
    display: block;
    position: sticky;
    transform: translatex(40%);
    top: 30px;          /* Move it down */
    right: 10px;        /* Move it to the right */
    background-color: rgb(96, 206, 223);
    border-radius: 25px;
    width:-200px;        /* Remove full width */
    height:50px ;       /* No forced height */
    z-index: 1100;
    
    
  }


  
  .hamburger svg {
    display: block;
    margin: 0 auto;
  }

  header {
    transform: translateY(-100%);
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #d9e2e3;
    flex-direction: column;
    height: auto;
    padding: 20px;
    z-index: 1000;
  }

  header.active {
    transform: translateY(0);
    opacity: 1;
  }

  header ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }
}


@media screen and (max-width: 1024px) {
  header {
    transform: translateY(-120%);
    opacity: 0;
    position: fixed;
    top: 220px; /* Push it down a bit from top */
    left: 0;
    background-color: #d9e2e3;
    flex-direction: column;
    height: auto;
    padding: 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
  }

  header.active {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger {
    display: block;
    position: fixed;
    top: 200px;
    right: 20px;
    background-color: #64cbeb;
    padding: 5px;
    border-radius: 20px;
    z-index: 1100;
  }
}


body {
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--text-color);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
.mainh1{
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-top: 110px;
  margin-bottom: 1rem;
}
.mainh2{
  font-size: 1.7rem;
  font-weight: 500;
  text-align: center;
  margin-top: 20px;
  color: rgb(8, 74, 20);
}

/*=============== CARD ===============*/
.container25 {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  gap: 10px;          /* 20px gap between rows and columns */
  margin-inline: 325px;
  padding-block: 5rem;
}

.card__container25 {
  display: flex; /* or grid */
  flex-direction: column;
  gap: 0.1rem;
}


.card__article25 {
  position: relative;
  overflow: hidden;
  width: 100%; /* Use full width of grid cell */
  max-width: 328px; /* Optional max width */
  height: 340px;
  margin: 0 auto; /* center in cell */
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1.5rem;
}
.card__data {
  width: 280px;
  background-color: var(--container-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
  border-radius: 1rem;
  position: absolute;
  bottom: -5rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.card__description {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.card__title {
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--title-color);
  margin-bottom: .75rem;
}

.card__button {
  text-decoration: none;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--first-color);
}

.card__button:hover {
  text-decoration: underline;
}

/* Naming animations in hover */
.card__article25:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
 
}

.card__article25:hover {
  animation: remove-overflow 2s forwards;
}

.card__article25:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article25:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(1.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
/* Small devices: one narrow column */
@media screen and (max-width: 540px) {
  .container25 {
    grid-template-columns: 20px; /* 1 narrow column */
    grid-template-columns: repeat(1, 300px);
    margin-inline: 100px;
  }
  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* Medium devices: 2 columns */
@media screen and (min-width: 551px) and (max-width: 1024px) {
  .container25 {
    grid-template-columns: repeat(2, 300px);
    gap: 1.5rem; /* gap for rows and columns */
    margin-inline: 50px;
  }
}
  .mainh1 {
    font-size: 3rem;
    margin-top: 60px; /* Increased from 40px */
    padding-top: 260px;
  }


/* For large devices
@media screen and (min-width: 1120px) {
  .container25 {
    height: 100vh;
  }

  .card__container25 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__img {
    width: 348px;
  }
  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
  .mainh1{
    font-size: 3rem;
    margin-top: 40px;
   
  }
  .mainh2{
    font-size: 2rem;
  }
  }
 */


  /* Footer */

footer {
    width: 100%;
    margin-top: 100px; /* added top margin */
   background: linear-gradient(to right, #1e86b7, #00c2b2, #0ce076);
    color: #000000;
    padding: 100px 0 30px;
    border-top-left-radius: 125px;
    font-size: 13px;
    line-height: 20px;
    position: relative;
}

.row {
    width: 85%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.col {
    flex-basis: 25%;
    padding: 10px;
}

.col:nth-child(2), .col:nth-child(3) {
    flex-basis: 15%;
}

.logo111 {
    width: 150px;
    margin-bottom: 30px;
    background-color: white;
}

.col h3 {
    width: fit-content;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.underline {
    width: 100%;
    height: 5px;
    background: #767676;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.underline span {
    width: 15px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
}

@keyframes moving {
    0% {
        left: -20px;
    }
    100% {
        left: 100%;
    }
}

.email-id {
    width: fit-content;
    border-bottom: 1px solid #ccc;
    margin: 20px 0;
}

ul li {
    list-style: none;
    margin-bottom: 12px;
}

ul li a {
    text-decoration: none;
    color: #000000;
}

.newsletter-form {
  display: flex;
  flex-direction: row;         /* Ensures horizontal layout */
  align-items: center;         /* Vertical alignment */
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 30px;
  gap: 10px;                   /* Spacing between items */
}

.newsletter-form i {
  font-size: 18px;
  color: #000000;
}

.newsletter-form input {
  flex: 1;                     /* Takes up remaining space */
  background: transparent;
  border: none;
  outline: none;
  color: #000000;
  font-size: 18px;
}

.newsletter-form input::placeholder {
  color: #000000; /* Change to any color you prefer */
  opacity: 1;     /* Ensures full opacity */
}

.newsletter-form button {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.newsletter-form button i {
  font-size: 18px;
  color: #000000;
}



.social-icons .fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    background: #fff;
    margin-right: 15px;
    cursor: pointer;
}



.social-icons a:hover i {
    color: rgb(0, 0, 0);
      background-color: #111;
    transform: scale(1.1);
}

hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
}

.copyright {
    text-align: center;
}

@media(max-width: 700px) {
    .col {
        flex-basis: 100%;
    }
    .col:nth-child(2), .col:nth-child(3) {
        flex-basis: 100%;
    }
}
