/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
  }
  .container {
    width: 100%;
    /* max-width: 1200px; */
    margin: auto;
    padding: 2rem 0;
  }
  
  .epi_logo{
    width: 125px;
    position: fixed;
    top: 2px;
    left: 2px;
  }

  /* Navigation */
  .navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo a {
    margin-left: 150px;
    text-decoration: none;
    font-size: 1.5rem;
    color: #007BFF;
  }
  .nav-links {
    list-style: none;
    display: flex;
  }
  .nav-links li {
    margin-left: 1.5rem;
  }
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: #007BFF;
  }
  
  /* Hero Section */
  .hero {
    background: url('img5.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
  }
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  .btn {
    background: #007BFF;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
  }
  .btn:hover {
    background: #0056b3;
  }
  
  /* Section Headings */
  section h1, section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  /* Highlights, Service & Initiative Items */
  .highlight, .service-item, .initiative-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    /* box-shadow: 0 1px 1px rgba(0,0,0,0.1); */
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  
  /* Blog Grid */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  .blog-post {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
  }
  .blog-post img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    max-width: 600px;
    margin: auto;
  }
  .form-group {
    margin-bottom: 1rem;
  }
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* Footer */
  footer {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
  }
  .social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .social-links li {
    margin: 0 0.5rem;
  }
  .social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
  }
  


  #page-header.blog-header{
    background-image: url(banner/b19.jpg);
  }
  @keyframes revealright{
    0%{
      margin-top: -20px ;
    }
    100%{
      margin-top: 0px ;
    }
  }
  @keyframes revealleft{
    0%{
      margin-left: 50px ;
    }
    100%{
      margin-left: 10px;
    }
  }
  @keyframes float{
    50%{
      transform: translate(15px);
    }
    100%{
      transform: translate(0px);
      transition: ease 2s;
    }
  }
  
  #home_blog{
    padding: 80px 80px 0 150px;
    height: 530px;
    position: relative;
    overflow: hidden;
  }
  .home_blog_container{
    position: absolute;
    top: 1;
    transition: 1s;
    display: none;
  }
  
  #home_blog .blog-box{
    display: flex;
    align-items: center;
    width: 100%;
    top: 1;
    position: relative;
    padding-bottom: 90px;/*for space between 2 diff blogs*/
  }
  
  #home_blog .homeImage{
    width: 60%;
    margin-right: 40px;
  }
  
  #home_blog img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    animation: revealleft 2s forwards;
  }
  
  #home_blog .blog-details{
    width: 50%;
    transition: 2s;
    animation: revealright 2s forwards;
  }
  
  #home_blog .blog-details a{
    text-decoration: none;
    font-size: 11px;
    color: #000;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
  }
  
  #home_blog .blog-details a::after{/*for line after continue reading in blog page*/
    content: "";/*everytime u create pseudo after u must add content so we added n kept it as empty*/
    width: 50px;
    height: 1px;
    background-color: #000;
    position: absolute;/*everytime u use position absolute in child element declare position relative in parent element*/
    top: 4px;
    right: -60px;
  }
  
  #home_blog .blog-details a:hover{
    color: #088178;
  }
  
  #home_blog .blog-details a:hover::after{
    background-color: #088178;/*for changing color for both continue reading and line while cursor on it*/
  }
  
  #home_blog .blog-box h1{
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 70px;
    font-weight: 700;
    color: #c9cbce;
    z-index: -9;/* to place element under or behind another element 13/01 behind that img in blog*/
  }
  #home_blog2{
    padding: 30px 30px 0 30px;
  }
  
  #home_blog2 .blog-box{
    margin: auto;
    width: 100%;
    padding-bottom: 90px;/*for space between 2 diff blogs*/
  }
  
  #home_blog2 img{
    width: 100%;
    height: 700px;
    object-fit: cover;
    animation: revealleft 2s forwards;
  }
  
  #home_blog2 .blog-details{
    width: 100%;
    transition: 2s;
    animation: revealright 2s forwards;
    animation: float 7s reverse infinite;
  }
  
  
  #home_blog2 .blog-details:hover{
  transform: translate(5px);
  }
  
  #home_blog2 .blog-details a:hover::after{
    background-color: #088178;/*for changing color for both continue reading and line while cursor on it*/
  }

  

  .main img{
    height: auto;
    width: 550px;
    border-radius: 20px;
}
.about-text{
    width: 550px;
}
.main{
    width: 1130px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.about-text h2{
    color: white;
    font-size: 75px;
    text-transform: capitalize;
    margin-bottom: 20px;
}
.about-text h5{
    color: white;
    letter-spacing: 2px;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: capitalize;
}
.about-text p{
    color: rgba(173, 137, 173, 0.8);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: 18px;
    margin-bottom: 45px;
    text-align: left;
}




  .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
  }
  .service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  .service-card:hover {
    transform: translateY(-5px);
  }
  .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .service-content {
    padding: 1.5rem;
  }
  .service-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #007BFF;
  }
  .service-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
  }
  .service-content .btn {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
  }
  .service-content .btn:hover {
    background: #0056b3;
  }





  .contact-me{
    width: 100%;
    height: 290px;
    background: #191919;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.contact-me p{
    color: white;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}
.contact-me .button-two{
    background-color: #f9004d;
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 13px 30px;
    border-radius: 30px;
    transition: .4s;   
}
.contact-me .button-two:hover{
    background-color: transparent;
    border: 2px solid #f9004d;
    cursor: pointer;   
}

footer{
    position: relative;
    width: 100%;
    height: 400px;
    background: #101010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer p:nth-child(1){
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}
footer p:nth-child(2){
    color: white;
    font-size: 17px;
    width: 500px;
    text-align: center;
    line-height: 26px;
}
.social{
    display: flex;
}
.social a{
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    margin: 22px 10px;
    color: blue;
    text-decoration: none;
    font-size: 20px;
}
.social a:hover{
    transform: scale(1.3);
    transition: .3s;
}
.end{
    position: absolute;
    color: #f9004d;
    bottom: 35px;
    font-size: 14px;
}

/* contact Us */
.p{
    text-align: center;
    background-color: transparent;
    font-size: 30px;
    font-weight: 700;
    text-decoration: underline;
}

.contact{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.contact input{
    width: 190px;
    height: 40px;
}

.Contact-Us{
    margin-bottom: 20px;
    height: 550px;
    box-shadow: 0 0 10px #f44336;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    border: #f44336 solid 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.e input{
    border-radius: 6px;
    font-size: 20px;
    margin-top: 10px;
    width: 80px;
}
.newsletter form{
  width: 300px;
  max-width: 100px;
  position: relative;
  margin-left: -150px;
}
.newsletter form input:first-child{
  display: inline-block;
  width: 300px;
  padding:14px 130px 14px 15px;
  border: 2px solid  #f9004d;
  outline: none;
  border-radius: 30px;
}
.newsletter form input:last-child{
  position: absolute;
  display: inline-block;
  outline: none;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  background-color:  #f9004d;
  color: white;
  box-shadow: 0px 0px 5px #000, 0px 0px 15px #858585;
  top: 6px;
  right: -195px;
}


/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .logo a {
    margin-left: 100px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .main {
    flex-direction: column;
    text-align: center;
  }
  .main img, .about-text {
    width: 100%;
  }

  #home_blog {
    padding: 40px 40px 0 40px;
    /* height: auto; */
  }
  #home_blog .blog-box {
    flex-direction: column;
  }
  #home_blog .homeImage,
  #home_blog .blog-details {
    width: 95%;
  }
  #home_blog img {
    height: auto;
  }
  #home_blog .blog-box h1{
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 30px;
    font-weight: 700;
    color: #c9cbce;
    z-index: -9;/* to place element under or behind another element 13/01 behind that img in blog*/
  }

  footer p:nth-child(2) {
    width: 80%;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  /* Navigation */
  .homeui img{
    width: 100%;
  }
  .homeStory{
    padding: 3px;
  }
  .ig img{
    width: 100%;
  }
  /* Container alignment */
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.2rem;
  }

  /* Hamburger */
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1100;
  }
  .hamburger div {
    width: 26px;
    height: 3px;
    background: #003366;
    margin: 5px;
    transition: 0.3s;
  }

  /* Animate hamburger into "X" */
  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Full-height menu drawer */
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050; /* above overlay */
  }

  .nav-links.show {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 1.8rem 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
    color: #003366;
    text-decoration: none;
  }

  /* Semi-transparent dark overlay behind menu */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* below the menu */
  }

  .overlay.show {
    display: block;
  }

  /* Adjust logo spacing */
  .logo a {
    font-size: 1.4rem;
    color: #003366;
    font-weight: 700;
  }

 
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .main {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }
  .about-text {
    width: 100%;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-me p {
    font-size: 22px;
    text-align: center;
  }

  footer {
    height: auto;
    padding: 2rem 1rem;
  }
  footer p:nth-child(2) {
    width: 90%;
  }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .epi_logo {
    width: 90px;
  }

  .about-text h2 {
    font-size: 36px;
  }
  .about-text h5 {
    font-size: 18px;
  }
  .about-text p {
    font-size: 15px;
  }

  .contact-me {
    height: auto;
    padding: 2rem 1rem;
  }
  .contact-me p {
    font-size: 20px;
  }
}

