/* laptop or small desktop screen Design */
@media (max-width: 1228px) {
  /* header */
  .header .top-bar {
    padding: 30px 0;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 16px;
  }

  .btn-primary {
    height: 37px;
  }

  .btn-secondary {
    width: 120px;
    height: 37px;
  }

  /* nav */
  .nav-menu {
    gap: 18px;
  }

  .dropdown svg {
    transform: scale(0.9);
  }

  .nav-item a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* donation form */
  .form-field-items,
  .select-trigger {
    width: 200px;
    height: 44px;
  }

  .form-field-items button {
    top: 7px;
  }

  /* hero section */
  .hero-slider {
    height: 400px;
  }

  .about-text p {
    font-size: 16px;
    font-weight: 400;
    color: #545454;
    line-height: 1.18;
    margin-bottom: 20px;
  }

  /* ongoing project */
  .project-card {
    width: 281px;
  }

  /* blog content */
  .blog-card {
    width: 281px;
  }

  .blog-content h3 {
    font-size: 16px;
  }

  /* event content */
  .event-card {
    width: 274px;
  }

  .event-content h3 {
    font-size: 25px;
  }

  .event-content p {
    font-size: 16px;
  }

  /* video content */
  .video-card iframe {
    width: 300px;
    height: 169px;
  }

  /* gallery content */
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 10px;
  }

  /* offices section */
  .office-card {
    width: 320px;
  }
  .office-card h3 {
    font-size: 24px;
  }
  .office-card p {
    font-size: 13px;
  }

  /* footer section */
  .footer-logo .footer-foundation-name {
    font-size: 16px;
  }
  .footer-logo h3 {
    font-size: 15px;
  }
  .footer-column h4 {
    font-size: 17px;
  }
  .footer-logo p {
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 14px;
  }
}

/* Tablet Design */
@media (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
  }
  .menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 5px;
    background-color: black;
    border-radius: 2px;
  }
  body.menu-open {
    overflow: hidden;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.192);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9990;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* navigation section */
  .navigation {
    position: fixed;
    top: 0;
    left: -50%;
    width: 35%;
    height: 130vh;
    background: #fff;
    z-index: 9999;
    padding: 40px 0;
    transition: 0.35s ease;
    overflow-y: auto;
    display: block;
  }

  .navigation .logo-section,
  .navigation span,
  .navigation hr {
    display: block;
  }
  .menu-close {
    position: absolute;
    top: 5px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
  }
  .navigation.active {
    left: 0;
  }
  .navigation .logo-section {
    padding-bottom: 20px;
    gap: 6px;
  }
  hr {
    background-color: #dee2e6;
    border: none;
    margin-bottom: 20px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    height: 3px;
    border-radius: 2px;
  }
  .navigation .logo-section .logo-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .navigation .logo-section .logo-parent .foundation-names p {
    font-size: 17px;
  }
  .logo img {
    transform: scale(1.4);
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 20px;

    height: 500px;
    overflow-y: scroll;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .nav-item a {
    color: #111;
    width: 100%;
    padding: 14px 0;
    justify-content: space-between;
  }
  .dropdown.active .dropdown-menu {
    display: block;
    padding-bottom: 50px;
  }
  .dropdown-menu a {
    padding-left: 15px;
    font-size: 14px;
  }

  /* donation form */
  .donation-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(268px, 1fr));
    gap: 5px;
  }

  .form-field,
  .custom-select,
  .form-field-items,
  .select-trigger,
  .btn-donate {
    width: 100%;
  }
  .form-field input,
  .form-field select {
    width: 100%;
  }
  .form-field-items button {
    top: 6px;
  }

  /* hero slider */
  .hero {
    padding: 10px 20px 40px 20px;
  }
  .hero-slider {
    height: 310px;
  }

  /* About Section */
  .about {
    padding: 40px 40px;
  }
  .about-content {
    align-items: stretch;
    gap: 20px;
  }
  .about-image img {
    height: 100%;
  }
  .about-text h2 {
    width: 210px;
    line-height: 1.1;
    font-weight: 650;
    font-size: 22px;
  }

  /* Ongoing Projects Section  */
  .project-card {
    width: 300px;
  }

  /* blog section */
  .blog-card {
    width: 300px;
  }

  /* video section */
  .video-grid {
    flex-wrap: wrap;
    gap: 30px;
  }

  /* gallery section */
  .gallery {
    padding: 35px 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 20px;
  }

  .gallery-item img {
    height: 190px;
  }

  /* global presence section */
  .global-presence {
    padding: 40px 40px 5px;
  }

  /* office section */
  .office-card {
    padding: 15px;
  }

  .offices-grid {
    padding-bottom: 90px;
  }

  .offices-row {
    flex-direction: row;
    justify-content: center;
  }

  .office-group {
    flex-direction: column;
    align-items: center;
  }

  /* Footer section */
  .footer-logo {
    width: 40%;
    padding: 35px 30px;
  }

  .footer-columns {
    width: 60%;
    flex-direction: column;
    padding: 30px 40px;
  }
  .footer-logo .logo-section {
    margin-bottom: 10px;
  }
  .footer-logo .footer-foundation-name {
    font-size: 18px;
  }
  .footer-logo.footer-foundation-names p {
    line-height: 1.4;
  }

  .footer-space {
    padding-bottom: 45px;
  }
  .footer-columns .footer-column-parent {
    padding-bottom: 25px;
  }
}

/* fix style */
@media (min-width: 941px) and (max-width: 1023px) {
  /* donation form section */
  .hero-slider {
    height: 350px;
  }
  /* Ongoing Projects Section */
  .project-card {
    width: 340px;
  }

  /* blog section */
  .blog-card {
    width: 340px;
  }

  /* event section */
  .event-card {
    width: 302px;
  }

  /* gallery section */
  .gallery-item img {
    height: 260px;
  }

  /* footer section */
  .footer-logo .footer-foundation-name {
    font-size: 20px;
  }
}

/* lerge mobile */
@media (max-width: 767px) {
  /* header section */
  .container {
    padding: 0;
  }
  .top-bar-content {
    align-items: end;
    gap: 10px;
    height: auto;
    padding-bottom: 20px;
  }

  .logo-section {
    padding: 0;
  }

  .foundation-names .foundation-name {
    display: none;
  }

  /* navigation section */
  .navigation {
    height: 140vh;
    width: 50%;
  }
  .nav-menu {
    flex-wrap: wrap;
    gap: 20px;
    height: auto;
    padding: 0 15px;
  }

  .nav-menu a {
    padding: 5px 0;
  }

  .navigation-names .foundation-name {
    display: block;
  }

  .navigation .logo-section .logo-parent {
    gap: 10px;
    padding: 10px 0;
  }

  hr {
    width: 90%;
  }

  .menu-toggle {
    transform: scale(0.81);
  }

  /* hero section */
  .hero-parent {
    display: flex;
    flex-direction: column;
  }

  .hero-slider {
    height: 210px;
    order: 1;
  }
  .hero-content {
    flex-direction: column;
    order: 2;
    gap: 30px;
  }

  /* donation form section */
  .donation-form-container {
    padding: 25px 10px;
  }
  .donation-form {
    grid-template-columns: repeat(1, minmax(268px, 1fr));
    gap: 15px;
  }
  .donation-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .about-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .about-text h2 {
    margin-bottom: 15px;
  }
  .separator {
    width: 80%;
  }

  /* donation fund */
  .donation-funds h2 {
    font-size: 18px;
  }
  .fund-card {
    margin: 0 80px;
  }

  /* ongoing project section */
  .projects-parent {
    flex-direction: column;
    align-items: center;
  }

  /* blog section */

  .blog-parent {
    flex-direction: column;
    align-items: center;
  }

  /* event section */
  .events h2 {
    padding: 0;
  }
  .events-grid {
    flex-direction: column;
    align-items: center;
  }
  .event-content h3 {
    font-size: 27px;
  }

  /* video section */
  .video-grid {
    align-items: center;
    flex-direction: column;
    gap: 30px;
  }

  /* gallery section */
  .gallery-grid {
    grid-template-columns: repeat(1, minmax(200px, 1fr));
  }
  .gallery-item img {
    height: 230px;
  }

  .offices-row {
    flex-direction: column;
    align-items: center;
  }

  .office-group {
    flex-direction: column;
    align-items: center;
  }

  /* footer logo */
  .footer-logo .logo-section {
    gap: 10px;
  }
  .footer-logo {
    width: 100%;
  }
  .footer-columns {
    width: 100%;
    position: relative;
  }
  .footer-columns .footer-column-parent {
    gap: 35px;
    flex-direction: column;
  }
  .footer-space {
    position: absolute;
    bottom: 94px;
    right: 50px;
  }

  .contact-item {
    margin-bottom: 10px;
  }

  .funds-grid,
  .projects-parent,
  .blog-parent,
  .events-grid,
  .video-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
    gap: 30px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }
  .motion {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 629px) and (max-width: 767px) {
  .hero-slider {
    height: 276px;
  }
}

/* small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0;
  }
  /* header */
  .logo {
    width: 30px;
    height: 40px;
  }
  .top-bar-content {
    padding: 0 10px;
  }
  .btn-primary,
  .btn-secondary {
    padding: 5px;
    font-size: 16px;
  }
  .action-buttons {
    transform: scale(0.9);
  }

  /* navigation section */

  .navigation .logo-section .logo-parent .foundation-names p {
    font-size: 13px;
  }

  /* hero section */

  .hero {
    padding: 10px 20px 20px 20px;
  }

  .hero-slider {
    height: 150px;
  }

  .hero-btn {
    font-size: 17px;
    padding: 2px 10px;
  }

  .prev {
    left: 0;
  }
  .next {
    right: 0;
  }

  /* Pagination */
  .hero-dots {
    bottom: 5px;
  }

  .hero-dots span {
    width: 10px;
    height: 10px;
  }

  /* donation form section */
  .donation-note {
    font-size: 14px;
  }

  /* donation funds */
  .donation-funds h2 {
    font-size: 16px;
  }
  .fund-card {
    margin: 0 40px;
  }

  /* About section */
  .about {
    padding: 20px 20px;
  }

  /* events section */
  .events-grid {
    gap: 50px;
  }

  /* video section */
  .video {
    padding: 20px 10px;
  }

  .video-grid {
    gap: 40px;
  }

  .btn-more {
    width: 290px;
  }

  /* gallery section */
  .gallery {
    padding: 20px 20px;
  }
  .gallery-item img {
    height: 190px;
  }

  /* global presence */
  .global-presence {
    padding: 20px 5px 0;
  }

  /* footer section */
  .footer-space {
    right: 16px;
  }

  .footer-column li a {
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 13px;
  }

  .chat-button {
    padding: 3px 10px;
    font-size: 14px;
    position: fixed;
    bottom: 32px;
    right: 10px;
  }

  .funds-grid,
  .projects-parent,
  .blog-parent {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
