@media screen and (max-width: 576px) {
  .masters-achievers {
    padding: 0.5rem 0 2rem;
  }
  .achieversSwiper .swiper-slide {
    width: 220px;
    height: 300px;
  }
}

/* desktop */
@media screen and (max-width: 1200px) and (min-width: 992px) {
  .nav-link {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--blue);
  }
}

/* large screens */
@media screen and (max-width: 1440px) and (min-width: 1200px) {
}

/* Tabs */

@media (min-width: 768px) {
  .owl-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .offcanvas-header img {
    width: 100px;
  }

  .nav-top {
    display: none;
  }

  .about-mafi {
    padding: 40px 0;
  }

  .about-mafi img {
    max-width: 200px;
  }

  .about-mafi .context-mafi p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .about-mafi h5 {
    font-size: 18px;
  }

  .event-marquee {
    padding: 40px 0;
  }

  .event-marquee__track {
    gap: 40px;
  }

  .event-marquee__item img {
    height: 160px;
    max-width: 600px;
  }

  .circle-text-logo {
    padding: 40px 0;
  }

  .circle-text-logo ul li {
    font-size: 0.9rem;
  }

  .logo-rotate-wrap {
    width: 230px;
    height: 230px;
  }

  .logo-center {
    width: 95px;
    height: 95px;
  }

  .circle-text text {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .kind-attention .text-container {
    font-size: 20px;
  }

  .loading-dots .dot {
    font-size: 26px;
  }

  .results-table thead {
    display: none;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table tr {
    background: #ffffff;
    margin-bottom: 16px;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #15177c;
  }

  .results-table td {
    border: none;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    position: relative;
  }

  .results-table td:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .results-table td:first-child {
    font-weight: 600;
    color: #15177c;
    font-size: 15px;
  }

  .results-table td:nth-child(2) {
    font-weight: 500;
    color: #333;
    line-height: 1.5;
  }

  .results-table td:last-child {
    padding-top: 12px;
  }

  .pdf-btn {
    padding: 7px 16px;
    font-size: 13px;
  }

  .mafi-basic-news .basic-news-content {
    padding-left: 0;
    margin-top: 10px;
  }

  .events-outline .event-card {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .events-outline .event-card h3 {
    font-size: 18px;
  }

  .events-outline .event-btn {
    font-size: 12px;
    min-width: 130px;
  }

  /* --------------------------- */

  .slide-caption {
    left: 20px;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    max-width: 100%;
  }

  .slide-caption h3 {
    font-size: 25px;
    line-height: 1.2;
  }

  .slide-caption p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .banner-buttons {
    gap: 10px;
  }

  .btn-primary-banner,
  .btn-outline-banner {
    padding: 5px 16px;
    font-size: 13px;
  }

  .owl-carousel .owl-item img {
    height: 520px;
  }

  .logo-section .navbar-brand img {
    width: 80px;
  }

  /* ----------------------------- */

  .owl-theme .owl-nav {
    margin-top: 0px !important;
  }

  .owl-carousel {
    position: relative;
  }

  .owl-nav button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);

    color: #fff !important;
    font-size: 24px !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
  }

  .owl-nav .owl-prev {
    left: 0px;
  }

  .owl-nav .owl-next {
    right: 0px;
  }

  .header-top-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .news-label {
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 20px;
  }

  .marquee {
    width: 100%;
    height: 40px;
  }

  .marquee-track {
    flex-direction: column;
    animation: verticalScroll 10s linear infinite;
  }

  .marquee-group {
    flex-direction: column;
    gap: 10px;
    padding-right: 0;
  }

  .marquee-group span {
    display: block;
  }

  @keyframes verticalScroll {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }
  .section-heading p {
    font-size: 1.1rem;
  }
  .achieversSwiper .swiper-slide {
    width: 260px;
    height: 340px;
  }

  .headline-point {
    font-size: 1.6rem;
  }

  .about-mafi-vm {
    padding: 30px 0;
  }

  .colourfull-banner {
    height: 160px;
    margin-top: -10px;
    background-size: cover;
  }

  .about-mafi-vm .context-mafi p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: -40px;
  }

  .about-mafi p {
    font-weight: normal;
  }

  .mob-only-d {
    margin-top: 20px;
  }

  .latest-section .latest-title {
    margin-bottom: 30px;
    font-size: 22px;
  }

  .latest-section .news-item {
    margin-bottom: 35px;
  }

  .latest-section .news-title {
    font-size: 16px;
  }

  .latest-section .news-item.view-more {
    justify-content: flex-start;
    min-height: auto;
  }

  .latest-section .news-item.view-more a {
    font-size: 18px;
  }

  .gallery-infra {
    padding: 40px 0;
  }

  .gallery-infra h1 {
    font-size: 22px;
  }

  .inner-section-banner {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .page-title {
    font-size: 2.3rem;
  }

  .logo-rotate-wrap {
    width: 220px;
    height: 220px;
  }

  .logo-center {
    width: 220px;
    height: 100px;
  }

  .circle-text text {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .circle-text-logo {
    padding: 40px 0;
  }

  .about-mafi-vm {
    padding: 40px 0;
  }

  .about-mafi-vm .context-mafi p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
  }

  .vm-content {
    padding: 14px;
    max-width: 100%;
  }

  .vm-content h3 {
    font-size: 18px;
  }

  .vm-content p {
    font-size: 11px;
  }

  .vm-box {
    margin-top: 20px;
  }

  .about-mafi-india-content h3 {
    font-size: 2rem;
  }

  .masters-visio-mission {
    padding: 0px 0;
  }

  .masters-visio-mission .row {
    text-align: start;
  }

  .masters-visio-mission h5::before {
    margin-left: auto;
    margin-right: auto;
  }

  .masters-federation-india {
    padding: 50px 0px 0px 0px;
  }

  .integrity-mafi {
    padding: 0px 0px 0px 0px;
  }

  .inner-section-banner-committe {
    padding-top: 150px;
    padding-bottom: 60px;
    background-size: cover;
    background-position: center center;
  }

  .events-of-mafi {
    padding: 50px 0;
  }

  .event-card {
    padding: 20px;
  }

  .event-media img {
    height: 190px;
  }

  .event-details {
    margin-top: 18px;
  }

  .event-details h4 {
    font-size: 18px;
  }

  .event-location {
    font-size: 14px;
  }

  .event-details p {
    font-size: 14px;
  }

  .event-btn {
    display: inline-block;
    font-size: 13px;
    padding: 7px 18px;
    margin-bottom: 8px;
  }

  .medal-responsive-table thead {
    display: none;
  }

  .medal-responsive-table,
  .medal-responsive-table tbody,
  .medal-responsive-table tr,
  .medal-responsive-table td {
    display: block;
    width: 100%;
  }

  .medal-responsive-table tr {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 15px;
  }

  .medal-responsive-table td {
    text-align: right;
    padding: 10px 10px;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .medal-responsive-table td:last-child {
    border-bottom: none;
  }

  .medal-responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: 600;
    text-align: left;
    color: #333;
  }

  .medal-highlight-row {
    background: rgba(159, 51, 11, 0.08);
  }

  .hero-section .hero-inner {
    padding: 20px;
  }
}

@media(max-width:991px){
.SchoolGallerySection .GalleryGrid{grid-template-columns:repeat(3,1fr);}
}

@media(max-width:767px){
.SchoolGallerySection .GalleryGrid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:575px){
.SchoolGallerySection .GalleryGrid{grid-template-columns:1fr;}
}
@media(max-width:991px){
.SchoolGallerySection .SchoolGallerySection-card{margin-bottom:30px;}
}

@media(max-width:767px){
.SchoolGallerySection .SchoolGallerySection-card img{height:220px;}
.SchoolGallerySection .SchoolGallerySection-card h3{font-size:20px;padding:20px 20px 12px;}
.SchoolGallerySection .SchoolGallerySection-card p{padding:0 20px;}
.SchoolGallerySection .SchoolGallerySection-card a{margin:0 20px 20px;}
}


@media(max-width:991px){
.wmaci-event-section .wmaci-hero{padding:50px 30px;}
.wmaci-event-section .wmaci-hero h2{font-size:2.8rem;}
.wmaci-event-section .wmaci-about-section,.wmaci-event-section .wmaci-venue-section{padding:0 25px 25px;}
.wmaci-event-section .wmaci-download-banner{margin:0 25px 25px;}
}

@media(max-width:767px){
.wmaci-event-section{padding:60px 0;}
.wmaci-event-section .wmaci-hero h2{font-size:2rem;}
.wmaci-event-section .wmaci-logo-box{padding:35px 15px;}
.wmaci-event-section .wmaci-about-section,.wmaci-event-section .wmaci-venue-section{padding:0 15px 15px;}
.wmaci-event-section .wmaci-download-banner{margin:0 15px 15px;padding:25px;}
.wmaci-event-section .wmaci-map-box iframe{height:320px;}
.wmaci-event-section .wmaci-download-btn{width:100%;margin-top:20px;}
}
