/*---------------------------------------
  Afghan Reconstruction Organization ARF
-----------------------------------------*/

/*-------------------------------
  VARIABLES
---------------------------------*/
:root {
  /* Colors */
  --white-color: #FFFFFF;
  --footer-bg: #046c75dd;
  --footer-hover: #0bb671;
  --primary-color: #247cff;
  --section-bg-color: #F9F9F9;
  --dark-color: #000000;
  --title-color: #565758;
  --p-color: #717275;
  --border-color: #eaeaea;
  --arf-color: #ee8500;

  /* Fonts */
  --body-font-family: 'Open Sans', sans-serif;
  --footer-font-family: 'Open Sans', sans-serif;
  --footer-font-size: 0.85rem;

  /* Typography sizes */
  --h1-font-size: 48px;
  --h2-font-size: 36px;
  --h3-font-size: 32px;
  --h4-font-size: 28px;
  --h5-font-size: 24px;
  --h6-font-size: 22px;
  --p-font-size: 18px;
  --menu-font-size: 16px;

  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing & radius */
  --footer-padding-vertical: 30px;
  --footer-gap: 15px;
  --newsletter-input-padding: 4px 6px;
  --newsletter-button-padding: 4px 8px;
  --border-radius: 4px;
}

/*---------------------------------------
  BODY
-----------------------------------------*/
body {
  font-family: var(--body-font-family);
  margin: 0;
  padding-top: 70px; /* space for navbar */
  background: var(--white-color);
}

/*---------------------------------------
  TYPOGRAPHY
-----------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
}
p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  line-height: 1.6;
}
/*---------------------------------------
  NAVBAR
-----------------------------------------*/
/* NAVBAR - Improved Precedence & Specificity */
.navbar {
  background-color: #faf3e6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0;
  padding: 10px 0;
}

.navbar-brand img { max-height: 50px; }

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #4B0082;
  background: rgba(72, 43, 92, 0.1);
  border-radius: 4px;
}
.navbar .nav-item.active .nav-link {
  color: #4B0082 !important;
  font-weight: 600;
}

.navbar .dropdown-menu {
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: #f0f0f0;
  color: #4B0082 !important;
}

@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu { width: 100%; }
  .navbar .dropdown-item { padding-left: 2rem; }
}

/*---------------------------------------
  HERO / FEATURED
-----------------------------------------*/
.heroText {
  position: relative;
  margin: 0 auto;
  padding: 2rem;
  bottom: 0;
  left: 0;
}

/*---------------------------------------
  ACTIVITY SECTORS
-----------------------------------------*/
.activity-sectors {
  display: block;
  width: 100%;
  height: 500px;
  padding: 6rem 2rem;
  background: var(--section-bg-color);
  text-align: center;
}
.activity-sectors h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 2.5rem;
}
.activity-sectors .owl-carousel .item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1rem;
  margin: 10px 10px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.activity-sectors .owl-carousel .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.activity-sectors .item img { max-width: 100px; height: auto; margin-bottom: 2rem; }
.activity-sectors .item h5 { font-size: 20px; color: var(--primary-color); margin-bottom: 1rem; }
.activity-sectors .item p { font-size: 16px; color: var(--p-color); line-height: 1.5; }

/*---------------------------------------
  FEATURED CIRCLE
-----------------------------------------*/
.featured-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-circle:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.featured-text { font-size: 1rem; font-weight: 600; text-align: center; }
.featured-number { font-size: 1.2rem; font-weight: bold; color: #333; text-align: center; }

/*---------------------------------------
  ARF SECTION
-----------------------------------------*/
#arf-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4rem 2rem;
}
#arf-section .arf-text-col {
  flex: 1 1 500px;
  margin: 0 1rem;
  color: var(--p-color);
  font-size: 0.95rem;
  line-height: 1.5;
}
#arf-section .heading-lg {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}
#arf-section .heading-lg b { color: var(--primary-color); }
#arf-section .arf-circle-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#arf-section .featured-circle {
  width: 200px;
  height: 200px;
  margin: 0 1rem;
}
/*---------------------------------------
  REVIEWS / DONORS
-----------------------------------------*/
#reviews {
  padding: 60px 2rem;
  background-color: #f9f9f9;
  width: 100%;
}
.reviews-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
}
.reviews-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Owl Carousel adjustments */
.owl-carousel .owl-stage-outer {
  overflow: visible !important;
}
.owl-carousel .owl-item {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Custom Prev/Next Buttons */
.custom-owl-prev,
.custom-owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(36,124,255,0.12);
  border: none;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.custom-owl-prev { left: 16px; }
.custom-owl-next { right: 16px; }
.custom-owl-prev:hover,
.custom-owl-next:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(36,124,255,0.18);
}
.custom-owl-prev:focus,
.custom-owl-next:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* end of index.html page */
/* health-andnutrition */


/* policies page */

/* Grid Container */
/* Grid Container */
.read-more-content {
  display: none;
  margin-top: 10px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

/* Profile Card */
.profile-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease, transform 0.3s ease;
  position: relative;
  cursor: pointer;
    color: var(--footer-hover); 
}
.profile-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(238, 133, 0, 0.3);
    color: var(--footer-hover); 
}

/* Number Circle */
.number-circle {
  width: 100px;
  height: 100px;
  background-color: #ee8500;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  box-shadow: 0 6px 12px rgba(238, 133, 0, 0.5);
}

/* Card Title */
.profile-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

/* Card Subtitle / Edition */
.profile-card .subtitle {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Card Text */
.profile-card p {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Read More Button */
.profile-card .btn {
  background-color: #ee8500;
  color: #fff;
  border: none;
  padding: 10px 0;
  width: 200px;
  border-radius: 10px;
  transition: all 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(238, 133, 0, 0.3);
}

.profile-card .btn:hover {
  background-color: #ff9c3b;
  color: #fff;
  transform: scale(1.05);
}

/* Optional Ribbon on Top-Left */
.ribbon {
  width: 80px;
  height: 20px;
  background-color: #ee8500;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  position: absolute;
  top: 15px;
  left: -10px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  .profile-card {
    max-width: 250px;
    padding: 15px;
  }
  .number-circle {
    width: 80px;
    height: 80px;
    font-size: 1.6rem;
  }
  .profile-card .btn {
    width: 150px;
  }
}

/* community-development */
.slide-card {
  color: #000000;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 15px;
}

.slide-card h5 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.slide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

@media (max-width: 767px) {
  .slide-card {
    text-align: center;
    padding: 15px;
  }
}

.community-development-page-slider1 {
  padding: 40px 20px;
  background-color: var(--section-bg-color);
  max-width: 100vw;
  margin: 0 auto;
}

/* nexpart under submenu of resources started  */


/* financial and accountability page */
.financial-accountability-section {
  flex: 1;
  padding: 40px 20px;
  background-color: var(--section-bg-color);
  max-width: 100vw;
  margin: 0 auto;
}
#financial-accountability-body {
  margin-top: 20px;
  color: var(--p-color);
  font-size: 1rem;
  line-height: 1.6;
}
.financial-accountability {

  font-family: "Open Sans", Arial, Helvetica, sans-serif; 
  font-size: 1.2rem;
  font-weight: 600;
  color: #2E7D32;                  /* main finance green */
  background-color: #F9FBF9;       /* light background */
  
  padding: 6px 12px;
  margin: 10px;
  border-left: 5px solid #4CAF50;
  border-radius: 4px;
  display: inline-block;

  line-height: 1.6;
  letter-spacing: 0.5px;
  word-break: break-word;
  transition: all 0.3s ease-in-out;
}
/* Hover effect */
.financial-accountability:hover {
  background-color: var(--arf-color); /* light orange on hover */
  cursor: pointer;
  color: var(--section-bg-color);
}/* end */

/* report page */
/* Carousel Controls (Prev / Next arrows) */
/* Carousel Controls (Prev / Next) at bottom center */

#reports-page-slider .carousel-control-prev,
#reports-page-slider .carousel-control-next {
  width: 50px;              /* smaller circle */
  height: 50px;
  border-radius: 50%;
  background-color: var(--arf-color); /* semi-transparent circular bg */
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 40px;              /* distance from bottom */
  top: auto;                 /* remove vertical centering */
  transform: none;           /* remove Y translation */
  position: absolute;
  z-index: 5;                /* above images */
}

#reports-page-slider .carousel-control-prev {
  left: 45%;                 /* position slightly left of center */
}

#reports-page-slider .carousel-control-next {
  right: 45%;                /* position slightly right of center */
}

#reports-page-slider .carousel-control-prev:hover,
#reports-page-slider .carousel-control-next:hover {
  opacity: 1;
}


.report-page {

  font-family: "Open Sans", Arial, Helvetica, sans-serif; 
  font-size: 1.2rem;
  font-weight: 600;
  color: #2E7D32;                  /* main finance green */
  background-color: #F9FBF9;       /* light background */
  
  padding: 6px 12px;
  margin: 10px;
  border-left: 5px solid #4CAF50;
  border-radius: 4px;
  display: inline-block;

  line-height: 1.6;
  letter-spacing: 0.5px;
  word-break: break-word;
  transition: all 0.3s ease-in-out;
}
/* Hover effect */
.report-page:hover {
  background-color: var(--arf-color); /* light orange on hover */
  cursor: pointer;
  color: var(--section-bg-color);
}

/* Style all buttons inside those <p> tags */


/* button under the slide of report page */

/* end of it */
/* 2nd */
 /* Optional: Make iframe responsive */
    .separator {
  width: 60%;       /* Adjust width as needed */
  margin: 30px auto; /* Top & bottom margin + automatic left/right to center */
  border: 1px solid #ccc; /* Optional: customize the line */
}

.form-button-container {
  text-align: center; /* Center the button inside the container */
  margin: 20px auto;
  max-width: 300px; /* Optional: limit width so it’s not too wide */
}
.form-button-container a {
  display: inline-block;
  background-color: #ee8500; /* ARF Orange */
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.form-button-container a:hover {
  background-color: #ff9c3b; /* Lighter orange on hover */
  transform: scale(1.05);
}
.job-page {
  font-family: "Open Sans", Arial, Helvetica, sans-serif; 
  font-size: 1.5rem;
  font-weight: 600;
  color: #2E7D32;                  /* main finance green */
  background-color: #F9FBF9;       /* light background */
  
  padding: 6px 12px;
  margin: 10px;
  border-left: 5px solid #4CAF50;
  border-radius: 4px;
  display: inline-block;

  line-height: 1.6;
  letter-spacing: 0.5px;
  word-break: break-word;
  transition: all 0.3s ease-in-out;
  }
.job-page:hover {
  background-color: var(--arf-color); /* light orange on hover */
  cursor: pointer;
  color: var(--section-bg-color);
}


/* end of it */
/* Fullscreen Overlay Description */

/* Donor Carousel Styling */
.donor-logo {
  max-width: 400px;
  max-height: 200px;
  object-fit: contain;
  margin: 15px auto;       /* margin added for spacing */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  display: block;
}

/* Hover effect */
.donor-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #ee8500;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 80% 80%;
  filter: invert(100%);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}
/*---------------------------------------
  FOOTER
-----------------------------------------*/
/* Core responsive map image */
/* Make map small in footer */
/* Make map small in footer */
.map-container {
  position: relative;
  display: inline-block;
  max-width: 230px;   /* small size */
}

.map-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Zoom panel */
.zoom-panel {
  position: absolute;
  top: 0;
  left: 105%;  /* place it to the right of the map */
  width: 200px;
  height: 200px;
  border: 2px solid #ccc;
  background-repeat: no-repeat;
  background-size: 400%; /* how much to zoom */
  display: none; /* hidden by default */
  z-index: 10;
}



.footer-body {
    padding-top: 100%;
    color: var(--section-bg-color);
}
/*---------------------------------------
  Footer Quick Links
-----------------------------------------*/
.footer-quick-links {
  width: 100%;
  color: var(--section-bg-color);
  padding: 10px 0;
  text-align: center;
  font-family: sans-serif;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.footer-quick-links summary::-webkit-details-marker { 
  display:contents;
  color: var(--section-bg-color);
}

.footer-quick-links ul li a {
  color: var(--section-bg-color);
  text-decoration: none;
  transition: 0.3s;
}

.footer-quick-links details[open] ul {
  margin-top: 8px;
  display: flex;
  flex-direction: row-reverse; /* Right to left row */
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/*---------------------------------------
  Footer Layout
-----------------------------------------*/
/*---------------------------------------
  Footer Layout
-----------------------------------------*/
.site-footer {
  width: 100%;
  background: rgb(2, 59, 75);
  color: var(--dark-color);
  font-size: var(--footer-font-size);
  padding: 20px 0;
  font-family: var(--footer-font-family);
  z-index: 10;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

/* Responsive: stack on small screens */
@media (max-width: 991px) {
  .footer-left,
  .footer-center,
  .footer-right {
    flex: 100%;
    text-align: center;
    align-items: center;
    margin-bottom: 15px;
  }
  .newsletter input {
    width: 70%;
  }
  .footer-quick-links ul {
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
  }
}

.footer-left svg {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: var(--border-radius);
  color: var(--arf-color);
}

.build-by a {
  color: var(--section-bg-color);
  margin: auto;
}

/* Newsletter */
.newsletter input[type="email"] {
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
  width: 70%;
  max-width: 220px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}
.newsletter input[type="email"]:hover {
  background-color: var(--footer-hover);
  color: #fff;
  transform: scale(1.02);
}
.newsletter button {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  background: var(--section-bg-color);
  border: 2px inset #ee8500;
  color: var(--dark-color);
  margin-left: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.newsletter button:hover {
  background-color: var(--footer-hover);
  color: #fff;
  transform: scale(1.05);
}

/* Footer Menu (right column) */
.footer-right .footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (max-width: 991px) {
  .footer-right .footer-menu {
    justify-content: center;
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .footer-right .footer-menu {
    gap: 10px;
  }
}
.footer-right .footer-menu li {
  list-style: none;
}
.footer-right .footer-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 1px;
  color: var(--section-bg-color, #fff);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.footer-right .footer-menu li a i {
  color: var(--arf-color);
  font-size: 1rem;
  transition: color 0.3s;
}
.footer-right .footer-menu li a:hover {
  background: var(--footer-hover);
  color: #fff;
  transform: translateY(-2px);
}
.footer-right .footer-menu li a:hover i {
  color: #fff;
}

/* Social Icons (center column) */
.footer-center .social-icons {
  justify-content: center;
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.social-icons a {
  color: var(--arf-color);
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icons a i {
  color: var(--arf-color);
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover,
.social-icons a:hover i {
  color: var(--footer-hover);
  transform: scale(1.2);
  animation: bounce 0.3s ease-in-out forwards;
}
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Contact Links */
.contact-link {
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 6px;
}
.contact-link i {
  color: var(--arf-color);
  margin-right: 4px;
  transition: all 0.3s ease;
}
.contact-link:hover {
  color: var(--footer-hover);
  transform: scale(1.05);
}
.contact-link:hover i {
  color: var(--footer-hover);
  transform: scale(1.05);
}

/* Build By */
.build-by1 {
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 6px;
}
.build-by1 a {
  color: var(--arf-color);
  margin-right: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.build-by1:hover a,
.build-by1:hover {
  color: var(--footer-hover);
  transform: scale(1.05);
}

/* Afghanistan Map (footer) */
.project-details {
  background: #f8f9fa;
  transition: all 0.3s ease;
}
.project-details h4 {
  color: #333;
}
