/* =======================
   0. Base & Global
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f6f6f6;
  color: #333;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 1rem;
  padding: 0 1rem;
}

/* Utility */
.btn {
  display: inline-block;
  background: #031603;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover { background: #fff; color: #031603; }

/* =======================
   1. NAV BAR
======================= */
.navbar {
  background: #566956;
  padding: 0.1rem 0;
}
.nav-container {
  margin-top: 0.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  max-width: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  background: #fff;
  color: #566956;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =======================
   2. HERO SECTION
======================= */
.hero {
  background: #d3d3d3;
  padding: 4rem 0;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 200px;
  max-width: 500px;
  animation: fadeInUp 0.8s ease forwards;
}
.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: #222;
}
.hero-text span {
  color: #031603;
}
.hero-text p {
  margin: 1.5rem 0;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #555;
}

.hero-images {
  flex: 1 1 350px;
  max-width: 450px;
  position: relative;
}
.hero-images img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}
.hero-images img:hover {
  transform: scale(1.05);
}

/* =======================
   3. FOOTER
======================= */
.site-footer {
  background: #566956;
  color: #bfbfbf;
  padding: 1rem 0;
  margin-top: auto; /* sticks to bottom */
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  row-gap: 1rem;
}
.footer-col {
  flex: 1 1 200px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 0;
  font-weight: 600;
}
.footer-col .links {
  list-style: none;
}
.footer-col .links li {
  margin-bottom: 0.4rem;
}
.footer-col .links a {
  text-decoration: none;
  color: #bfbfbf;
  transition: color 0.3s;
}
.footer-col .links a:hover { color: #fff; }

.footer-col p {
  margin-bottom: 1rem;
}

.footer-col form {
  display: flex;
  gap: 0.5rem;
}
.footer-col input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #7489c6;
  border-radius: 6px;
  background: none;
  color: #fff;
}
.footer-col input::placeholder { color: #ccc; }

.footer-col button {
  padding: 0.6rem 1rem;
  background: #fff;
  color: #031603;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.footer-col button:hover { background: #ddd; }

.icons {
  margin-top: 1.5rem;
}
.icons a {
  color: #afb6c7;
  margin-right: 1rem;
  font-size: 1.3rem;
  transition: color 0.3s;
}
.icons a:hover { color: #fff; }

/* =======================
   4. RESPONSIVE BREAKPOINTS
======================= */

/* Large Laptops */
@media (min-width: 1441px) {
  .container { max-width: 1320px; }
}

/* Laptops & Large Tablets */
@media (max-width: 1440px) {
  .hero-text h1 { font-size: 2.8rem; }
}

/* Tablets */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 2.5rem; }
  .container { width: 95%; margin-top: 1rem;
  }
  .logo img { max-width: 80px; }
}

/* Medium Tablets */
@media (max-width: 768px) {
  /* General */
  .container { width: 95%; margin-top: 1.5rem; }
  
  /* Nav */
  .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    row-gap: 0.2rem;
    flex-wrap: wrap;
  }
  .logo {
    flex: 0 0 auto;
  }
  .logo img {
    max-width: 70px;
  }
  .nav-search {
    flex: 0 1 200px;
    max-width: 240px;
  }
  .nav-search input {
    max-width: 100%;
  }
  .nav-toggle { 
    display: block;
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle.open {
    display: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #031603;
    margin-top: 0.3rem;
    border-radius: 6px;
    padding: 1rem 0;
    flex-basis: 100%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; padding: 0.5rem 0; }

  /* Hero */
  .hero {
    padding: 2.5rem 0;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; margin: 1rem 0; }
  .hero-images { max-width: 320px; margin-top: 0; }

  /* Footer */
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
  .footer-col { 
    text-align: center;
  }
  
  /* About */
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .about-text h1 { font-size: 2rem; }
  .about-photo { max-width: 300px; }
}

/* Small Tablets & Large Phones */
@media (max-width: 640px) {
  .container { width: 100%; padding: 0 1rem; }
  
  /* Nav */
  .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    row-gap: 0.2rem;
    flex-wrap: wrap;
  }
  .logo img { max-width: 70px; }
  .nav-links { margin-top: 0.5rem; }
  
  /* Hero */
  .hero { padding: 1rem 0; }
  .hero-content { gap: 1rem; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text p { font-size: 0.95rem; margin: 0.6rem 0; }
  .hero-images{ margin-top: 0.5rem; }

  /* Services */
  .services-header h1 { font-size: 2rem; }
  .card { padding: 1.5rem 1rem; }
  
  /* Plans */
  .plans-header h1 { font-size: 2rem; }
  .plan-card { padding: 1.5rem 1rem;}
  
  /* Contact */
  .contact { padding: 40px 0; }
  .contact-header { font-size: 2rem; margin-top: 0; }
  .contact-info h1 { font-size: 2rem; }
  .contact-wrapper { gap: 1.5rem; }
  .contact-form { padding: 1.5rem; }
  
  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-carousel-container { display: flex; margin-top: 2rem; }
  .carousel-nav { display: flex !important; }
  
  /* Newsletter */
  .newsletter-grid { gap: 1rem; }
  
  /* Footer */
  .footer-col {
    border-bottom: 1px solid #3d5940;
    padding: 0;
    margin: 0;
  }
  .footer-col:last-child {
    border-bottom: none;
  }
}

/* Phones */
@media (max-width: 480px) {
  .container { width: 100%; padding: 0 0.75rem; margin-top: 1rem; }
  
  /* Nav */
  .nav-container { 
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    row-gap: 0.2rem;
    flex-wrap: wrap;
  }
  .logo img { max-width: 60px; }
  .nav-search {
    flex: 0 1 130px;
    max-width: 160px;
  }
  .nav-search input {
    max-width: 100%;
  }
  .nav-toggle { 
    font-size: 1.5rem;
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle.open {
    display: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #031603;
    margin-top: 0.8rem;
    border-radius: 6px;
    padding: 1rem 0;
    flex-basis: 100%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; padding: 0.5rem 0; }
  
  /* Hero */
  .hero { padding: 1rem 0; }
  .hero-content { gap: 0.8rem; }
  .hero-text h1 { font-size: 1.6rem; line-height: 1.1; }
  .hero-text p { font-size: 0.9rem; margin: 0.5rem 0; }
  .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .hero-images{ margin-top: 0.3rem; }
  
  /* Services */
  .services { padding: 20px 0; }
  .services-header h1 { font-size: 1.5rem; }
  .services-header p { font-size: 0.9rem; }
  .service-cards { gap: 1rem; }
  .card { padding: 1.2rem 1rem; border-radius: 8px; }
  .card i { font-size: 2rem; }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: 0.9rem; }
  
  /* About */
  .about { padding: 40px 0; }
  .about-text h1 { font-size: 1.5rem; margin-bottom: 15px; }
  .about-text p { font-size: 0.9rem; margin-bottom: 15px; }
  .highlights li { margin-bottom: 8px; font-size: 0.9rem; }
  
  /* Mission */
  .mission { padding: 40px 0; margin-top: 40px; }
  .mission h2 { font-size: 1.5rem; }
  .mission p { font-size: 0.9rem; }
  
  /* Plans */
  .plans { padding: 40px 0; }
  .plans-header h1 { font-size: 1.5rem; }
  .plan-grid { gap: 1.2rem; }
  .plan-card { padding: 1.5rem 1rem; border-radius: 10px; }
  .plan-card h3 { font-size: 1.3rem; }
  .price { font-size: 1.8rem; }
  .features li { font-size: 0.9rem; margin-bottom: 0.6rem; }
  
  /* Contact */
  .contact { padding: 30px 0; margin-bottom: 0; }
  .contact-header { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .contact-info h1 { font-size: 1.5rem; margin-bottom: 0.8rem; }
  .contact-info p { font-size: 0.9rem; margin-bottom: 1rem; }
  .contact-info li { font-size: 0.9rem; }
  .contact-form { padding: 1.2rem; border-radius: 8px; }
  .contact-form input,
  .contact-form textarea { padding: 0.6rem; font-size: 0.95rem; }
  
  /* Footer */
  .site-footer { padding: 0rem 0; }
  .footer-col { 
    flex: 1 1 150px;
    padding: 0;
    border-bottom: 1px solid #3d5940;
    margin: 0;
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-col h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
  .footer-col p { font-size: 0.85rem; }
  .icons a { font-size: 1.1rem; margin-right: 0.8rem; }
  
  /* Grids */
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .blog-grid article { padding: 1.2rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonials-grid blockquote { padding: 1.2rem; }
  .testimonials-carousel-container { display: flex; }
  .carousel-nav { display: flex !important; }
  
  /* Newsletter */
  .newsletter-grid { flex-direction: column; margin-bottom: 0; margin-top: 15px; }
  .newsletter-text { flex: 1 1 100%; }
  .newsletter-text form { flex-direction: column; }
  .newsletter-text input { width: 100%; }
  .newsletter-text button { width: 100%; }
  
  /* Services Grid */
  .services-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-card { padding: 1.2rem 1rem; }
}

/* Extra Small Phones */
@media (max-width: 400px) {
  .container { padding: 0 0.5rem; }
  
  /* Nav */
  .nav-container { 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    row-gap: 0.2rem;
    flex-wrap: wrap;
  }
  .logo img { max-width: 50px; }
  .nav-search {
    flex: 0 1 100px;
    max-width: 130px;
  }
  .nav-search input {
    max-width: 100%;
  }
  .nav-toggle { 
    flex: 0 0 auto;
    font-size: 1.3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle.open {
    display: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #031603;
    margin-top: 0.8rem;
    border-radius: 6px;
    padding: 1rem 0;
    flex-basis: 100%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; padding: 0.5rem 0; }
  
  .hero-text h1 { font-size: 1.4rem; }
  .hero-text p { font-size: 0.85rem; }
  
  .btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  
  .footer-col { 
    padding: 0;
    border-bottom: 1px solid #3d5940;
    margin: 0;
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-col h4 { font-size: 0.9rem; }
  .footer-col form { flex-direction: column; }
  .footer-col input { width: 100%; margin-bottom: 0.5rem; }
  .footer-col button { width: 100%; }
}

/* ===== About Section ===== */

.about {
  padding: 60px 0;
}

.about-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: rgb(3,22,3);
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.highlights {
  list-style: none;
  padding-left: 0;
}

.highlights li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
}

.highlights i {
  color: rgb(3,22,3);
  margin-right: 8px;
}

.about-photo {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}
.about-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}
.about-photo img:hover {
  transform: scale(1.05);
}

/* Mission section */
.mission {
  background: darkgray;
  color: #222;
  padding: 60px 0;
  margin-top: 60px;
  text-align: center;
}
.mission h2 {
  font-size: 2rem;
  color: rgb(3,22,3);
  margin-bottom: 20px;
}
.mission p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Simple fade-up animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .about-text h1 { font-size: 2rem; }
  .about-photo { max-width: 300px; }
}

/* ===== Services ===== */
.services {
  padding: 30px 0;
  background: white; /* matches hero background on home */
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}
.services-header h1 {
  font-size: 2.5rem;
  color: rgb(3,22,3);
  margin-bottom: 0.5rem;
}
.services-header p {
  color: #444;
  max-width: 600px;
  margin: 0 auto;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(5, 36, 15, 0.527);
  transition: transform 0.5s ease;
}

.card:hover {
  transform: scale(1.05);
}
.card i {
  font-size: 2.5rem;
  color: rgb(3,22,3);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.card h3 {
  margin-bottom: 0.8rem;
  color: rgb(3,22,3);
  font-size: 1.3rem;
}
.card p {
  color: #555;
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.card:hover i {
  color: #0a3c0a;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .services-header h1 { font-size: 2rem; }
  .card { padding: 1.5rem 1rem; }
  
}

/* ===== Plans Section ===== */
.plans {
  padding: 60px 0;
  background: white; /* matches theme */
}
.plans-header {
  text-align: center;
  margin-bottom: 3rem;
}
.plans-header h1 {
  font-size: 2.5rem;
  color: rgb(3,22,3);
  margin-bottom: 0.5rem;
}
.plans-header p {
  color: #444;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.plan-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(2, 43, 22, 0.644);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.plan-card h3 {
  font-size: 1.6rem;
  color: rgb(3,22,3);
  margin-bottom: .8rem;
}
.price {
  font-size: 2rem;
  font-weight: bold;
  color: rgb(3,22,3);
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.features li {
  margin-bottom: 0.8rem;
  color: #555;
}
.features i {
  color: rgb(3,22,3);
  margin-right: 6px;
}

.btn {
  display: inline-block;
  background: rgb(3,22,3);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s;
}
.btn:hover { background: #0a173c; }

/* Highlight Popular Plan */
.popular {
  border: 2px solid rgb(3,22,3);
}
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgb(3,22,3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .plans-header h1 { font-size: 2rem; }
  .plan-card { padding: 2rem 1rem; }
}

/* ===== Contact Section ===== */
.contact {
  background: white;
  padding: 60px 0;
  margin-bottom: 0;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

/* Left: Info */
.contact-info {
  flex: 1 1 400px;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
}

.contact-header {
  font-size: 2.5rem;
  color: rgb(3,22,3);
  margin-bottom: 2rem;
  text-align: center;
}


.contact-info h1 {
  font-size: 2.5rem;
  color: rgb(3,22,3);
  margin-bottom: 1rem;
}
.contact-info p {
  margin-bottom: 1.5rem;
  color: #444;
  line-height: 1.6;
}
.contact-info ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.contact-info li {
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.contact-info i {
  color: rgb(3,22,3);
  margin-right: 8px;
}
.social-icons a {
  color: rgb(3,22,3);
  margin-right: 15px;
  font-size: 1.4rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #0a3c0a;
}

/* Right: Form */
.contact-form {
  flex: 1 1 350px;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(2, 36, 12, 0.74);
  transition: transform 0.5s ease;
}

.contact-form:hover {
  transform: scale(1.05);
}
.form-group { margin-bottom: 1.2rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(3,22,3);
}
.btn {
  background: rgb(3,22,3);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.btn:hover {
  background: #0a3c0a;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-info h1 { font-size: 2rem; }
  .contact-form { width: 100%; }
}

/* ===== Nav Search ===== */
.nav-search {
  display: flex;
  align-items: center;
 }

.nav-search input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.nav-search input:focus {
  border-color: rgb(3,22,3);
}

.nav-search button {
  background: rgb(3,22,3);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-search button:hover {
  background: #0a3c0a;
}

/* Adjust spacing for smaller screens */
@media (max-width: 768px) {
  .nav-search {
    width: 100%;
    margin: 0.5rem 0;
    justify-content: center;
  }
  .nav-search input {
    flex: 1;
    max-width: 200px;
  }
}
/* Portfolio */
.portfolio-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.portfolio-grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform .3s;
}
.portfolio-grid img:hover { transform: scale(1.05); }

/* Testimonials */
.testimonials-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.testimonials-grid blockquote {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.testimonials-grid cite {
  display: block;
  margin-top: .5rem;
  color: #555;
  font-style: normal;
}

/* Carousel for testimonials (Mobile only) */
.testimonials-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-nav {
  display: none;
  background: #566956;
  color: #bfbfbf;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* show arrows when any auto-carousel is active (mobile) */
.auto-carousel-container.carousel-active .carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* overlay positioning for all carousel navs */
.auto-carousel-container {
  position: relative;
}
.auto-carousel-container .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.auto-carousel-container .carousel-prev {
  left: -25px;
}
.auto-carousel-container .carousel-next {
  right: -25px;
}


.carousel-nav:hover {
  background: #3d5940;
  transform: scale(1.1);
}

.carousel-items {
  width: 100%;
  position: relative;
}

.testimonials-grid.carousel-items blockquote {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.testimonials-grid.carousel-items blockquote.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Show carousel buttons on mobile */
.testimonials-carousel-container.carousel-active .carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide grid on mobile, show single item */
.testimonials-carousel-container.carousel-active .carousel-items {
  display: block;
}

/* Social Media Carousel */
.social-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-carousel-container .carousel-items {
  width: 100%;
  position: relative;
}

.social-carousel-container.carousel-active .carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-carousel-container.carousel-active .carousel-items {
  display: block;
}

.social-carousel-container .carousel-items blockquote {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.social-carousel-container .carousel-items blockquote.active {
  display: block;
}

/* Auto-Carousel for Services Sections */
.auto-carousel-container {
  margin-top: 2rem;
  position: relative;
}

.auto-carousel-container.carousel-active .carousel-items {
  display: block;
  width: 100%;
}

/* only hide non-active slides when the carousel is active (i.e. on mobile) */
.auto-carousel-container.carousel-active .carousel-items > * {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.auto-carousel-container.carousel-active .carousel-items > *.active {
  display: block;
}

.auto-carousel-container.carousel-active .service-cards,
.auto-carousel-container.carousel-active .services-grid {
  display: flex;
  justify-content: center;
}

/* Newsletter */
.newsletter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 20px;
}
.newsletter-text {
  flex: 1 1 350px;
}
.newsletter-text form {
  margin-top: 1rem;
  display: flex;
  gap: .5rem;
}
.newsletter-text input {
  align-items: center;
  padding: .6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.newsletter-text button {
  background: rgb(3,22,3);
  color: #fff;
  padding: .6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
}
.newsletter-text button:hover { background: #0a3c0a; }
.newsletter-image img { width: 100%; border-radius: 8px; }

/* Blog */
.blog-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.blog-grid article {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.blog-grid h3 {
  margin-bottom: .5rem;
}
.blog-grid a {
  color: rgb(3,22,3);
  text-decoration: none;
  font-weight: 600;
}
.blog-grid a:hover { text-decoration: underline; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .about-text, .newsletter-text { text-align: center; }
}
/* Services */
.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 1.5rem;
}

/* For the Digital & Social Marketing section (carousel2) use a simple flex row layout and keep all cards inline */
#carousel2 {
  margin: 0 1rem;              /* overall horizontal margin on the container */
}
#carousel2 .services-grid {
  display: flex;
  flex-wrap: nowrap;            /* do not wrap to next line by default */
  justify-content: center;
  gap: 1.5rem;
  overflow-x: auto;            /* allow horizontal scrolling if needed */
}

/* ensure each card shrinks to fit three across but doesn't become too small */
#carousel2 .services-grid .service-card {
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 160px;            /* slightly smaller to help on narrow phones */
}

/* gradually wrap on narrower screens and make cards full-width on very small devices */
@media (max-width: 1024px) {
  #carousel2 .services-grid {
    flex-wrap: wrap;
  }
  #carousel2 .services-grid .service-card {
    flex: 1 1 calc(50% - 1rem);
    min-width: 120px;
  }
}
@media (max-width: 640px) {
  #carousel2 .services-grid {
    flex-wrap: wrap;
  }
  #carousel2 .services-grid .service-card {
    flex: 1 1 100%;
    min-width: auto;
  }
}

/* further adjustments for extremely small screens */
@media (max-width: 350px) {
  #carousel2 {
    margin: 0 0.5rem;
  }
  #carousel2 .services-grid .service-card {
    padding: 1rem;        /* reduce padding to fit content better */
    font-size: 0.9rem;
  }
}
.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); }