* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* color: rgb(152, 9, 9); */
  /* color: #f0a500; */
    overflow-x: hidden;
  width: 100%;
}
/* Make sure images / media are not overflowing */
img, video, iframe {
  max-width: 100%;
  height: auto;
}


/*=== topbar ===*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;  
  width: 100%;
}


/*... header ...*/
/*=== topbar header's logo ===*/
.header {
  display: flex;
  justify-content:space-between;
  align-items: center;
  padding: 12px 200px 15px 70px;
  background-color: #f0a500;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header .logo img {
  height: 40px;
  width: auto;
}
.header .logo button{
  border: none;
}
.header .logo h2 {
  margin: 0;
  font-size: 1.8rem;
  color:rgb(152, 9, 9);
  background:#f0a500 ;
}
/*== topbar contact's contact ==*/
.header .contact {
  display: flex;
  align-items: center;
  gap:25px; /* space between items */
  list-style: none; /* if you are using li directly, remove bullets */
  margin: 0;
  padding: 0;
}
.header .contact li a {
  text-decoration: none;
  padding: 6px 12px;
}
.header .contact .signin{
    display: flex;
    flex-direction: row;
    gap:5px;
    width: 150px;
}
.header .contact .signin img{
    margin-top: 15px;
    width: 30px;
    height: 30px;
}
.header .contact .signin a{
    color: rgb(152, 9, 9);
    font-weight: bold;
}
.header .contact li a:hover {
    color: black;
}
/* "Contact Us" button */
.header .contact li.sign button {
  background:rgb(152, 9, 9);
  color:#f0a500;
  border: none;
  padding: 8px 16px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header .contact li.sign button:hover {
  transform: scale(1.2);
}


/* Hamburger button styling */
.hamburger {
  display: none;
  font-size:2.5rem;
  color:rgb(152, 9, 9);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

/* ... header's media query ... */
@media (max-width:768px) {
    html, body {
        overflow-x: hidden;
    }
    .header .logo{
        display: flex;
        flex-direction: column;
        margin-left:-10px;
    }
    .header .logo h2{
        font-size: 1.5rem;
    }
    .header .contact {
        flex-direction: column;
        gap: 20px;
        margin-left: 40px;
    }
    .header .contact .signin img{
        margin-top: 10px;
    }
    .header .contact li a,
    .header .contact li.sign button {
        font-size: 0.8rem;
    }
    .header .contact li.sign button {
        padding: 6px 12px;
        margin-left: -42px;
    }
    /* Optional: adjust any padding / margin that might push things out */
    .header {
        padding-left: 20px;
        padding-right: 20px;
    }
    .navBar .navLinks {
        padding-left: 0;  /* instead of 220px */
    }
    .hamburger{
        display: block;
        margin-left:-12px;
    }
}



/*=== navbar ===*/
.navBar {
  display: block;
  background-color:rgb(152, 9, 9) ;
  /* background-color: orangered; */
  height: 80px;
  border-top: 1px solid white;
  padding: 10px;
}
.navBar .navLinks {
  margin: 0 auto;
  padding-left: 220px;
}
.navBar .linkRight {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem;
  gap: 1.5rem;
}

/*=== topbar navbar's Dropdown menu ===*/
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  min-width: 180px;
  padding: 0.5rem 0;
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5);
}
.dropdown-menu li a {
  display: block;
  color:black;
  margin-top:-22px;
  font-size:1rem;
}

.linkRight li {
  position: relative;
}
.linkRight li a {
  text-decoration: none;
  font-size: 1.03rem;
  color: white;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  transition: background 0.3s, color 0.3s;
}
.linkRight li a:hover {
  /* color:#555; */
  color: #f0a500;
}
.linkRight li.sign button {
  background: red;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
  box-sizing: border-box;
    /* Pulse animation */
  animation: pulse-btn 2s ease-in-out infinite;
}
/* @keyframes for pulse */
@keyframes pulse-btn {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Mobile / small-screen styles */
@media (max-width:768px) {
  .header{
    height: 150px;
  }
  .navBar {
    display: none;
    width: 100%;
  }
  .navBar.active {
    display: block;
    background:rgb(152, 9, 9);
    height: 60vh;
  }
  .navBar .navLinks {
    padding: 1rem;
  }
  .navBar .linkRight {
    flex-direction: column;
    gap: 0;
  }
  .linkRight li {
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
  }
  .linkRight li a {
    display: block;
    width: 100%;
    color: #f0a500;
    padding: 0.75rem 1rem;
    background: transparent;
  }
  
  /* Allow scrolling if list is long */
  .navBar.active .linkRight {
    overflow-y: auto;
    max-height: 80vh;
    padding-bottom: 100px; /* space for button visibility */
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
  }
  .dropdown-menu li a {
    color:white;
    padding-left: 2rem;
  }

}










.hero {
  background: rgb(250, 250, 250);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;

  /* Add animation on load */
  animation: jump 1s ease-in-out;
  animation-fill-mode: both;
}

/* Keyframes for the jump effect */
@keyframes jump {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 20px;
  color: orangered;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 0 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  color: #555;
}

.hero .cta-button {
  background: orangered;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.hero .cta-button:hover {
  background: black;
  transform: translateY(-2px);
  color:white;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin-bottom: 20px;
  }

  .hero .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}










.case-section {
  /* max-width: 1000px; */
  margin: 60px auto;
  background-color: rgb(250, 250, 250);
}

.case-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: orangered;
}

.case-grid {
  display: grid;
  /* 3 items per row by default */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.case-section .case-grid .case-item .case-thumb{
  height: 350px;
}


.case-item {
  background: orangered;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  
}

/* Staggered animation delay */
.case-item:nth-child(1) { animation-delay: 0.1s; }
.case-item:nth-child(2) { animation-delay: 0.2s; }
.case-item:nth-child(3) { animation-delay: 0.3s; }
.case-item:nth-child(4) { animation-delay: 0.4s; }
.case-item:nth-child(5) { animation-delay: 0.5s; }
.case-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.case-thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.case-content {
  padding: 20px;
}

.case-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: white;
}

.case-content p {
  margin: 0 0 15px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: white;
  margin-bottom: 40px;
}

.case-content .read-more {
  text-decoration: none;
  color:white;
  margin-left: 100px;
  /* margin-top: 20px; */
  background: black;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.case-content .read-more:hover {
  /* background: black; */
  /* transform: scale(1.3); */
  border: 1px solid orangered;
  background-color: white;
  color: orangered;
}

/* Media Query for <= 768px */
@media only screen and (max-width: 768px) {
  .case-section {
    margin: 40px 0;
  }
  .case-item {
    margin-bottom: 20px;
    /* width: 450px; */
  }
  .case-section h1 {
    font-size: 1.8rem;
  }
  .case-content h3 {
    font-size: 1.1rem;
  }
  .case-content p {
    font-size: 0.9rem;
  }
  .case-content .read-more {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}









.challenge-section {
  /* max-width: 800px; */
  margin: 60px auto;
  background:orangered;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);

  /* Animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.challenge-section h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #c0392b;
  width: 700px;
  margin-left: 400px;
  color: white;
  text-decoration: underline;
  margin-bottom: 20px;

  /* Add pulse animation */
  animation: pulse 2s infinite ease-in-out;
  transform-origin: center center;
}

/* Define the pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.challenge-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  width: 700px;
  margin-left: 400px;
  color: white;
}

.challenge-section .context {
  /* background: #f0f0f0; */
  padding: 20px;
  border-left: 4px solid black;
  margin-left: 400px;
  border-radius: 4px;
}

.challenge-section .context p {
  margin: 0;
  color: white;
   width: 700px;
  /* margin-left: 400px; */
}

/* Media query for <= 768px */
@media only screen and (max-width: 768px) {
  .challenge-section {
    margin: 40px 20px;
    padding: 30px 20px;
    border-radius: 6px;
  }

  .challenge-section h2 {
    font-size: 1.6rem;
    width: auto;
    margin-left: 0;
    text-align: center;
    text-decoration: none; /* maybe remove underline if it looks too big */
  }

  .challenge-section p {
    font-size: 0.95rem;
    width: auto;
    margin-left: 0;
  }

  .challenge-section .context {
    margin-left: 0;
    padding: 15px;
    border-left: 4px solid black;
  }

  .challenge-section .context p {
    font-size: 0.95rem;
    width: auto;
  }
}










.more-stories-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
  background-color: rgb(250, 250, 250);
}

.more-stories-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: orangered;
}

.stories-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.story-item {
  background: #555;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.story-item:nth-child(1) { animation-delay: 0.1s; }
.story-item:nth-child(2) { animation-delay: 0.2s; }
.story-item:nth-child(3) { animation-delay: 0.3s; }
/* Add more delay rules if you have more items */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color:white;
  text-decoration: underline;
}

.story-item p {
  margin-bottom: 15px;
  color:white;
  line-height: 1.4;
}

.story-item .read-more {
  text-decoration: none;
  color: #fff;
  background: orangered;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s;
}

.story-item .read-more:hover {
  background:black;
}

/* Pagination styles */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-btn {
  background: #e0e0e0;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.page-btn:hover:not([disabled]) {
  background: #c0c0c0;
  transform: translateY(-2px);
}

.page-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Load More Button */
.load-more-btn {
  margin-top: 30px;
  background: orangered;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.load-more-btn:hover {
  background:black;
  transform: translateY(-2px);
}

/* Media Query for ≤ 768px */
@media only screen and (max-width: 768px) {
  .stories-list {
    grid-template-columns: 1fr;
  }

  .story-item {
    padding: 15px;
  }

  .more-stories-section h2 {
    font-size: 1.6rem;
  }

  .load-more-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}










/* Base reset for footer */
.auto-footer {
  position: relative;
  background:rgb(152, 9, 9);
  /* background: orangered; */
  color: #eee;
  padding-top: 30px; 
  font-family: sans-serif;
  overflow: hidden;
}

.auto-footer .logo{
  display: flex;
  flex-direction: row;
  margin-left: 550px;
  margin-bottom: 30px;
}
.auto-footer .logo button{
  border: none;
  background-color: rgb(152, 9, 9);
}
.auto-footer .logo button h2{
  font-size: 2.5rem;
  color: white;
}

/* Footer content */
.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 1500px;
  margin: auto;
}


.footer-col {
  flex: 1 1 200px;
  margin: 10px;
}
.footer-col h4 {
  margin-bottom: 10px;
  color: #f0a500;
  /* color: #555; */
  text-shadow: 2px 2px 2px;
  font-size: 1.5rem;

  /* Pulse animation */
  animation: pulse 2s infinite ease-in-out;
  transform-origin: center center;
}
/* Define the pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.footer-content .services{
    padding-left: 100px;
}


.footer-col p,
.footer-col ul {
  font-size: 14px;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: #f0a500;
  text-decoration: underline;
}


.social-links {
    margin-top: 30px;
}
.social-links a {
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
  margin: 0 10px;
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
/* Social-links hover animation */
.social-links a {
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
  /* Animation */
  animation: pulse 2s infinite ease-in-out;
  display: inline-block; /* ensures transform works correctly */
  will-change: transform, opacity; /* helps performance */
}
/* Pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes content-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer bottom */
.footer-bottom {
  padding: 15px 100px;
  margin-left: 550px;
  margin-bottom: 20px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
}




/* Responsive for small screens (<= 450px) */
@media (max-width:768px) {
  .auto-footer .logo {
    /* For smaller screens, you probably don't want huge left margin */
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* adjust as needed */
  }

  .auto-footer .logo button {
    width: 100%; /* make button full width or adjust */
    padding: 10px; /* optional padding */
    /* you can change background, border or other styles if needed */
  }

  .auto-footer .logo button h2 {
    font-size: 1.8rem; /* smaller font for smaller screen */
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .footer-col {
    margin: 5px 0;
    text-align: center;
  }
  .footer-content .services{
    padding-left: 2px;
    /* margin-bottom: 30px; */
    /* padding-top: -40px; */
    padding-bottom: 40px;
  }
  .footer-col p, .footer-col ul li a {
    font-size: 12px;
  }
  .footer-bottom {
    margin-left: 2px;
  }
  .social-links{
    margin-left:-1px;
  }
  .social-links img{
    /* width: 25px; */
    margin-top: 25px;
    margin-bottom: 15px;
  }
}
