* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: Arial, sans-serif;
  /* background: url('./about\ img.jpg') no-repeat center center / cover fixed; */
  background: url('./service\ bc\ img.jpeg') no-repeat center center / cover fixed;
}

span{
  color: #ffcc00;
  font-weight: bold;
}

.hamburger{
  display: none;
}

.navBar{
  display:inline-block;
}

.navBar{
  /* background-color: rgb(47, 101, 87); */
  background: linear-gradient(to right, rgb(46, 104, 91), rgb(37, 87, 75));
  display: flex;
  flex-direction: row;
  gap: 120px;
  /* margin-top: 20px; */
  height: 130px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.logo{
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-left: 20px;
  align-items: center;
  margin-left: 70px;
}

.logo img {
  height: 80px;
  width: 80px;
}

.logo h3{
  color:#ffcc00;
  font-size: 30px;
}

.navLinks{
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.linkLeft{
  display: flex;
  flex-direction: row;
  gap: 40px;

  /* new */
  position: relative;         /* Creates proper stacking context */
  z-index: 1000;              /* Ensures navbar background remains visible */
  /* background-color: rgb(47, 101, 87); */
}

/*new css*/
.linkLeft,
.linkLeft ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.linkLeft li {
  position: relative;
}

.linkRight{
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.linkLeft, .linkRight {
  display: flex;
  align-items: center;

  list-style: none;
  padding: 0;
  margin: 0;
}


.linkLeft a{
  text-decoration: none;
  color:white;
  
  font-weight: bold;
  list-style: none;
}

li.dropdown {
  margin-top: 9px;       
  /* Shifts the dropdown trigger downward */
}

/* Arrow indicator */
li.dropdown > a {
  position: relative;
  padding-right: 25px;
  display: block;
  padding-bottom: 12px;
}

li.dropdown > a::after {
  content: '▾'; /* Downward arrow */
  position: absolute;
  right: 0px;
  top: 80%;
  transform: translateY(-90%);
  font-size: 1.5rem;
  cursor: pointer;
}

.dropdown-menu li:first-child a {
  /* padding-top: 15px;  */
  /* internal spacing of first submenu item—does not break hover chain */
}

/* Show menu on hover or when open */
li.dropdown:hover .dropdown-menu,
li.dropdown.open .dropdown-menu {
  display: block;
}

/* Dropdown menu styles */
.dropdown-menu {
  display: none;
  position: absolute;
  /* top: 100%;  */
  /* Positions the dropdown below the parent */
  left:0;
  background-color:rgb(2, 51, 40);
  width: 150px;
  /* margin-top: 0;    */
  border-bottom-right-radius: 40px;
  z-index: 1100;
  /* height: 50px; */
}

/* Target only anchor tags inside the dropdown submenu */
.linkLeft .dropdown-menu li a {
  display: block;       /* ensures padding works properly */
  padding-bottom: 10px; /* adjust as needed */
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding:15px;
  color:white;
  border-bottom-right-radius: 40px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.linkRight a {
  text-decoration: none;
  color:white;
  font-weight:bold;
}

.linkLeft a:hover {
  color:#ffcc00; 
}

/* Search Input Styling */
.linkRight input[type="search"] {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 40px;
}

/* SignIn Button Styling */
.linkRight button {
  padding: 6px 15px;
  border: none;
  background-color: #ffcc00; 
  color:black;
  cursor: pointer;
  font-weight: bold;
  height: 40px;
  width: 130px;
  border-bottom-right-radius: 40px;
}

.linkRight button:hover {
  background-color:rgb(2, 49, 39);
  color: white;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}


/* Mobile Styles */
@media (max-width: 450px) {
  .hamburger {
    display: block;
    font-size: 40px;
  }

  .navBar{
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;

    position: static;
    background-color:transparent;
  }
  .navBar.active{
    display:flex;
    flex-direction: column;
    gap: 20px;
  }

  .navBar .logo{
    margin-left: 2px;
  }
  .navLinks{
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin-top: 40px;
  }
  .linkLeft{
    display: flex;
    flex-direction: column;
    gap: 20px;

    display: block;
  }

  li.dropdown {
    position: relative;
  }

  /* 1. Position dropdown flush without margin-gap */
  .dropdown-menu {
    position: absolute;
    top:0%;
    left: 100px;
    margin-top: 10px; /* Remove any spacing that breaks interaction */
  }

  /* 2. Increase the clickable area of the trigger to prevent accidental navigation */
  li.dropdown > a {
    display: block;
    padding-bottom: 0px; /* Boost touch area downward */
  }

  /* 3. Optional: add internal visual spacing (doesn't break hover/tap) */
  .dropdown-menu {
    border-top: 1px solid transparent; /* or a subtle border for visual separation */
  }
  .dropdown-menu li:first-child a {
    padding-top: 15px; /* Adds spacing inside the dropdown, without margin */
  }

  .linkLeft a:hover{
    color: #ffcc00;
  }
  .linkRight{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
  }
  
  .linkLeft, .linkRight {
    flex-direction: column;
    gap: 10px;
  }

  .linkRight input[type="search"] {
    width: 70%;
  }

  .linkRight button:hover {
  background-color:rgb(2, 51, 40);
  color: white;
  }

  .linkRight button {
    width: 27%;
  }

  .logo{
    margin-left: 140px;
  }
}













/*==== section 1 ====*/
/*== hero section ==*/
.hero {
  display: flex;
  justify-content: center;  /* Horizontal center */
  align-items: center;      /* Vertical center */
  height: 100vh;            /* Full viewport height */
  gap: 80px; /* Space between slider & text if side-by-side */
  margin-top: -140px;
}

.slider-container {
  position: relative;
  max-width: 600px;
  margin-left: 150px;
}

.slider-container>img {
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}

/*==== slide animation ====*/
.slide {
  width: 75%;
  height: 75%;
  object-fit: cover;
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

/* slide in section */
.slide-in {
  border-radius: 15px;
  padding: 20px;
  margin-right: 150px;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 4rem;
  color:white;
  /* font-family: cursive; */
}

h1 span {
  position: relative;
  display: inline-block;
  color:#ffcc00;
}

/* Line animation to span tag */
h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;          /* gap below text */
  width: 0;
  height: 3px;
  /* background: #2e7d32;    */
  background:#ffcc00;
  animation: line-anim 2s infinite;
}

@keyframes line-anim {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.slide-in>p{
  /* font-weight: bold; */
  color:white;
  line-height:1.5rem;
  font-style: italic;
}



/*==== hero section's  media query ====*/
@media (max-width:450px) {
  .hero {
    flex-direction: column;   /* Stack vertically */
    gap: 40px;                 /* Reduce space between elements */
    height: auto;              /* Allow height to adjust */
    padding: 20px;
    text-align: center;        /* Center text */
    /* margin-top: 350px; */
    /* margin-top: 50px; */
    margin-top: 250px;
  }
  .slider-container {
    width: 90%;                /* Take most of the screen width */
    max-width: none;           /* Remove max limit on small screens */
    margin-right: 50px;

    /* margin-top: 100px; */
  }
  .slide-in {
    width: 90%;            /* Fit better on mobile */
    padding: 15px;
    margin-left: 150px;
    text-align: start;
  }
}









/*==== home section ====*/
.home-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  margin-top: -140px;
}

.highlight-card {
  background:rgb(43, 93, 81);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;

  /* Animation setup */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.highlight-card:hover{
  background-color:white;
}

.highlight-card:hover h3 {
  color:rgb(43, 93, 81) ;
}

.highlight-card:hover p {
  color: black;
}

/* Stagger animation for each card */
.highlight-card:nth-child(1) { animation-delay: 0.2s; }
.highlight-card:nth-child(2) { animation-delay: 0.4s; }
.highlight-card:nth-child(3) { animation-delay: 0.6s; }
.highlight-card:nth-child(4) { animation-delay: 0.8s; }

.highlight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color:#ffcc00; /* green accent */
  /* font-family: garamond; */
}

.highlight-card p {
  font-size: 1rem;
  color:white;
  line-height: 1.6;
  font-style: italic;
}

/* Hover effect */
.highlight-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  /* border-color: #2e7d32; */
}

/* Keyframes for animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Unified Responsive Media Query */
/* ==== Media Query for Mobile (450px) ==== */
@media (max-width: 450px) {

  .home-highlights {
    grid-template-columns: 1fr;   /* Stack cards in single column */
    gap: 15px;
    padding: 20px 10px;
 
    margin-top: 50px;         
  }

  .highlight-card {
    padding: 15px;
    border-radius: 10px;
    
  }

  .highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .highlight-card p {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }
}













/* About Section */
/* ===== About Us Styling ===== */
.about-section {
  background: linear-gradient(to bottom, #f5f7fa 50%,rgb(43, 93, 81) 50%);
  padding: 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 20px;
  
  width: 75%;
  margin: 0 auto;
}

#about{
  margin-top: 180px;
}

/*== hover ==*/
.about-section:hover{
  background: linear-gradient(to bottom,rgb(43, 93, 81) 50%, #f5f7fa 50%);
.about-text>h2{
  color:#ffcc00;
} 
/* .about-text span{
  color: black;
} */
.about-text>.intro{
  color: white;
}
.about-box{
  background-color:rgb(43, 93, 81);
  border:5px solid white;
}
.about-box>h3{
  color:#ffcc00;
}
.about-box>p{
  color:white;
}
.about-box>ul>li{
  color:white;
}
}

/*== about container ==*/
.about-container {
  max-width: 9000px;
  margin: 0 auto;
  
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color:rgb(43, 93, 81);
  position: relative;
  animation: fadeDown 1s ease forwards;
  /* font-family: 'Times New Roman', Times, serif; */
}

.about-text p.intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color:black;
  /* font-weight: bold; */
  animation: fadeUp 1s ease forwards;

  text-align: start;
}

.about-text span {
  font-weight: bold;
  /* color: #0dd113; */
}

.about-box {
  background: whitesmoke;
  border: 5px solid rgb(43, 93, 81);
  /* border-bottom: 5px solid white; */
  margin: 20px 0;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.about-box:nth-child(2) { animation-delay: 0.2s; }
.about-box:nth-child(3) { animation-delay: 0.4s; }
.about-box:nth-child(4) { animation-delay: 0.6s; }

.about-box h3 {
  margin-bottom: 10px;
  color:rgb(43, 93, 81);
  font-size: 1.4rem;
  /* font-family: cursive; */
  margin-top: 20px;
}

.about-box p, 
.about-box li {
  font-size: 1rem;
  color:black;
}

.about-box ul {
  list-style: none;
  padding: 0;
}

.about-box li {
  margin: 6px 0;
}

/* ===== Animations ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width:450px) {
  .about-text h2 {
    font-size: 2rem;
  }
  .intro{
    height:980px;
  }
  .about-box {
    padding: 20px;
    /* margin-top: -50px; */
  }
}











/*==== Services Section ====*/
.services{
  background-color: #f5f7fa;
  margin-top:200px;
  padding: 50px;
}

.services>h2{
  text-align: center;
  font-size:3rem;
  color:rgb(43, 93, 81);
  margin-bottom: 20px;
  /* font-family: 'Courier New', Courier, monospace; */
}

.services-slider {
  overflow: hidden;
  position: relative;
  width: 90%;
  margin: auto;
}

.service-track {
  display: flex;
  width: calc(300px * 12); /* card width × total cards */
  animation: scroll 25s linear infinite;
  margin-top: 50px;
}


/*= service card1 =*/
.service-card1{
  min-width: 300px;
  margin: 0 15px;
  padding: 20px;
  background:rgb(43, 93, 81);
  border-radius: 12px;
  border-bottom-right-radius: 50px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  color:white;
  

  /* fadeInUp effect */
  opacity: 0;
  /* transform: translateY(30px); */
  animation: fadeInUp 1s ease forwards;

  flex: 0 0 auto;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card1:hover{
  background-color:#ffcc00;
  color:rgb(16, 59, 49);
  font-weight: bold;
}


/*== service section ==*/
.services-section {
  text-align: center;
  padding: 50px 20px;
  
}

.services-scroll {
  display: flex;
  flex-wrap: wrap;       /* wrap items to next line */
  gap: 70px;
  margin-left: 140px;
  padding: 20px 0;
  margin-top: 50px;
}

.services-scroll::-webkit-scrollbar {
  height: 8px;
}
.services-scroll::-webkit-scrollbar-thumb {
  background:#ffcc00;
  border-radius: 4px;
}


/*= service card =*/
.service-card {
  position: relative;
  overflow: hidden; /* keep pseudo-element inside */
  width: 300px;
  margin: 0 15px;
  padding: 20px;
  background:rgb(43, 93, 81);
  border-radius: 12px;
  border-bottom-right-radius: 150px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  /* color: white; */
  

  /* fadeInUp effect */
  opacity: 0;
  /* transform: translateY(30px); */
  animation: fadeInUp 1s ease forwards;

  flex: 0 0 auto;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* text stays above pseudo-element */
.service-card h3,
.service-card p,
.service-card ul li,
.service-card .btn{
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* pseudo-element for bottom-to-top hover animation */
.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;          /* start from bottom */
  left: 0;
  width: 100%;
  height: 100%;
  background:rgb(90, 137, 97); 
  /* background:rgb(42, 98, 51);  */
  transform: scaleY(0); /* hidden */
  transform-origin: bottom; /* fill starts from bottom */
  transition: transform 0.5s ease;
  z-index: 1; /* behind text */
}

/* hover triggers bottom-to-top fill */
.service-card:hover::before {
  transform: scaleY(1);
}

/* optional: change text color when filled */
.service-card:hover ul li{
  color: black;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color:#ffcc00;
  /* color: white; */
  /* font-family: cursive; */
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color:white;
  font-style: italic;
  margin-bottom: 20px;
  margin-top: 20px;
}

.service-card ul {
  margin: 0 0 15px;
  padding-left: 18px;
}

.service-card ul li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color:black;
}

.service-card .btn {
  display: inline-block;
  padding: 8px 14px;
  background:#ffcc00;
  color:black;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.service-card .btn:hover {
  background:rgb(10, 68, 54);
}

/* Scroll movement */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* animation only */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*==== Responsive Media Query ====*/
@media (max-width:450px) {
   /* max-width: 1024px */
  /* Services container */
  .services, 
  .services-section {
    padding: 30px 15px;
  }

  /* Service cards wrapper */
  .services-scroll {
    flex-wrap: wrap;        /* keep wrapping */
    gap: 20px;              /* smaller gap on mobile */
    margin-left: 0;         /* remove extra left margin */
    margin-right: 0;        /* optional: remove right margin */
    padding: 10px;          /* smaller padding */
    justify-content: center; /* center cards on small screens */
  }

  /* Service cards */
  
  .service-card1 {
    width: 3%;      /* cards take most of the screen */
    margin: 10px auto;   /* center cards on smaller screens */
    padding: 15px;
  }

  .service-card {
    flex: 0 1 100%;         /* full width for each card */
    max-width: 350px;       /* optional max width */
    margin: 0 auto;         /* center each card */
  }

  /* Card text */
  .service-card h3,
  .service-card1 h3 {
    font-size: 1.2rem;
  }

  .service-card p,
  .service-card1 p,
  .service-card ul li {
    font-size: 0.9rem;
  }

  /* Buttons */
  .service-card .btn,
  .service-card1 .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* Heading */
  .services>h2 {
    font-size: 2rem;
  }
}













/*==== blog section ====*/
.blog {
  padding: 80px 20px;
  text-align: center;
  /* To make text readable */
  position: relative;
  z-index: 1;

  margin-top: 180px;
}

.blog-container{
  background: url('./blog\ card\ bc\ img.jpg') no-repeat center center; /* image centered */
  background-size: cover;       /* image covers entire container */
  background-attachment: fixed; /* optional: parallax effect */
  padding: 50px 20px;           /* spacing inside the grid */
  border-radius: 12px;          /* optional rounded corners */
  position: relative;
  overflow: hidden;
  color:black;   
}

.blog-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* semi-transparent overlay */
  z-index: 1;
}
.blog-container > * {
  position: relative;
  z-index: 2; /* ensure content is above overlay */
}

.blog-container>.title>h2{
  color:white;
  font-size: 3rem;
  /* font-family: Georgia, 'Times New Roman', Times, serif; */
}
.blog-container>.title>.blog-intro{
  color:white;
  font-style: italic;
  margin-top: 30px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-top: 100px;

  justify-items: center; /* center cards in their columns */
  align-items: start;    /* top-align cards in each row */
  width: 100%;
  max-width: 1200px;     /* optional: keep grid constrained */
  margin-left: auto;
  margin-right: auto;
}

/* Blog Cards */
.blog-card {
  position: relative;
  background:whitesmoke;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s ease forwards;

  border-bottom-right-radius:150px;
  margin-bottom: 50px;
 

  width: 100%; /* ensures cards fill the grid cell */
  max-width: 350px; /* optional max width */
  margin: 0; /* remove extra margins that break alignment */
  padding: 20px;
  box-sizing: border-box; /* includes padding in width */
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  position: relative;
  z-index: 4; /* put above hover overlay */
  font-weight: 600;
  color:rgb(1, 53, 41); /* default color */
  transition: color 0.3s ease;
}

.blog-card:hover .read-more {
  color:#ffcc00; /* text color on hover */
}

/* Underline effect */
.blog-card .read-more::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: black;
  position: absolute;
  left: 0;
  bottom: -3px;
  transition: width 0.3s ease, background 0.3s ease;
  z-index: 5; /* above overlay */
}

.blog-card:hover .read-more::after {
  width: 100%;
  /* background: white; */
}


/* Blog image stays above pseudo-element */
.blog-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 2; /* make sure image is above pseudo-element */
  transition: transform 0.3s ease;
}

/* Text above pseudo-element */
.blog-card h3,
.blog-card p,
.blog-card .block-content .read-more {
  position: relative;
  z-index: 3;
  transition: color 0.3s ease;
  color:black; /* default text color on dark image */
}

/* Pseudo-element for top-to-bottom hover fill */
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;                   /* start from top */
  left: 0;
  width: 100%;
  height: 100%;
  background:rgb(43, 93, 81);    /* hover color */
  transform: scaleY(0);      /* hidden */
  transform-origin: top;     /* fill starts from top */
  transition: transform 0.5s ease;
  z-index: 1;                /* behind text */
}

/* Hover state triggers fill */
.blog-card:hover::before {
  transform: scaleY(1);
}

.blog-card:hover img {
  transform: scale(1.05); /* slight zoom */
}

/* Optional: change text color when filled */
.blog-card:hover h3,
.blog-card:hover .blog-content .read-more  {
  color:#ffcc00;  /* text color on hover */
}

.blog-card:hover p {
  color: white;
}

/* Ensure pseudo-element for underline */
.blog-card .blog-content .read-more::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: black; /* default underline */
  position: absolute;
  left: 0;
  bottom: -3px;
  transition: width 0.3s ease, background 0.3s ease;
}

.blog-card:hover .blog-content .read-more::after {
  background: white;         /* change underline / pseudo-element color */
  width: 100%;        /* expand underline */
}

/* Optional hover effect */
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}



.blog-card:nth-child(1) { animation-delay: 0.2s; }
.blog-card:nth-child(2) { animation-delay: 0.4s; }
.blog-card:nth-child(3) { animation-delay: 0.6s; }
.blog-card:nth-child(4) { animation-delay: 0.8s; }
.blog-card:nth-child(5) { animation-delay: 1s; }
.blog-card:nth-child(6) { animation-delay: 1.2s; }

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Blog Image Hover */
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: perspective(800px) rotateY(8deg) rotateX(8deg);
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}


/* Blog Content */
.blog-content {
  padding: 20px;
  text-align: left;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color:rgb(1, 53, 41);
  /* font-family: cursive; */
  margin-bottom: 20px;
}

.blog-content p{
  margin-bottom: 15px;
  
}

/* Read More Link Animation */
.read-more {
  display: inline-block;
  margin-top: 10px;
  color:black;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  font-style: italic;
}

.read-more::after {
  content: "";
  display: block;
  width: 0;
  height: 2.5px;
  background:black;
  transition: width 0.3s ease;
  position: absolute;
  left: 0;
  bottom: -3px;
}

.read-more:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}


@media (max-width: 450px) {
  .blog-grid {
    grid-template-columns: 1fr; /* single column on small screens */
    gap: 20px;
  }
  .blog-card {
    max-width: 90%; /* slightly smaller than container */
  }
}








/*==== contact section ====*/
.contact-section {
  /* background: linear-gradient(135deg, #f5f7fa, #c3cfe2); */
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  margin-top: 100px;
}



/*== contact container ==*/
.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  gap: 40px;
  justify-content: space-between;
}

/* Contact Info Styling */
.contact-info {
  flex: 1 1 400px;
  /* background: rgba(255, 255, 255, 0.8); */
  background-color: rgb(43, 93, 81);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding-top: 100px;
  border: 5px solid white;
  
}

.contact-info h2 {
  font-size: 2em;
  margin-bottom: 45px;
  background:#ffcc00;
  /* color: #ffcc00; */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 130px;
  
}

.contact-info p {
  margin-bottom: 20px;
  color:white;
}

.contact-info ul {
  list-style: none;
}

.contact-info ul li {
  margin-bottom: 10px;
  font-weight: 500;
  color: white;
}

.contact-info ul li a {
  color:white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info ul li a:hover {
  color:black;
  font-weight: bold;
}



/*== Contact Form Styling ==*/
.contact-form {
  flex: 1 1 400px;
  /* background: rgba(255, 255, 255, 0.9); */
  /* background:rgb(238, 177, 63); */
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border:5px solid #ffcc00;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: 500;
  /* color:#ffcc00; */
  color: white;
  /* color: rgb(2, 43, 33); */
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 3px solid rgb(2, 43, 33);
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
}

/* .contact-form input:focus,
.contact-form textarea:focus {
  background-color:white;
  box-shadow: 0 0 8px rgba(37, 117, 252, 0.3);
} */

.contact-form button {
  padding: 12px 25px;
  /* background: linear-gradient(45deg, #6a11cb, #2575fc); */
  background:#ffcc00;
  color:black;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border-bottom-right-radius: 250px;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background-color:rgb(2, 45, 36);
  color: white;
}

/* ===== Responsive Styling ===== */
@media (max-width:450px) {
  .contact-container {
    flex-direction: column;
    gap: 20px;
  }
  .contact-section .contact-container .contact-info h2{
    margin-left: 10px;
  }
}

















/* Footer Base */
.footer {
  /* background: #222;   */

  color:black;
  padding: 50px 20px 20px;
  font-family: Arial, sans-serif;
}

/* Footer container layout */
.footer-container {
  display: flex;
  flex-wrap: wrap; /* Responsive */
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
  background-color: white;
  padding: 30px;
  border-radius: 20px;
}

.footer-container:hover{
  background-color:rgb(43, 93, 81);
}

/* Change text color of all headings inside on hover */
.footer-container:hover h2,
.footer-container:hover h3 {
  color:#ffcc00; /* choose any color you like */
}

/* Footer columns */
.footer-col {
  flex: 1 1 250px; /* Flexible width */
  min-width: 200px;
}

.footer-col h3, 
.footer-col h2 {
  font-size: 20px;
  margin-bottom: 15px;
  /* border-bottom: 2px solid #ff9900; */
  padding-bottom: 5px;
  color:rgb(12, 124, 98);
  position: relative; /* needed for ::after */
  cursor: pointer;
  display: inline-block;
  /* font-family: cursive; */
}

/* Underline animation */
.footer-col h3::after,
.footer-col h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background:rgb(12, 124, 98);

  animation: underlineAnim 2s infinite; /* runs automatically */
}

/* Keyframes for underline growth */
@keyframes underlineAnim {
  0%   { width: 0; }
  50%  { width: 100%; }
  100% { width: 0; }
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color:black;
  font-weight: bold;
  
}

/* Quick Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color:black;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color:white;
}

/* Contact Info */
.footer-col a {
  color:black;
  text-decoration: none;
  font-weight: bold;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Social Media Icons */
.social-links a img {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite; /* Pulse animation */
}

/* Extra zoom effect on hover */
.social-links a img:hover {
  transform: scale(1.2);
}

/* Pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.5);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(255, 69, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0);
  }
}


/* Bottom bar */
.footer-bottom {
  text-align: center;
  padding-top: 15px;
  margin-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color:white;
}

/* Responsive */
@media (max-width:450px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .social-links {
    margin-top: 25px;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}
