body {
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: rgb(var(--bs-tertiary-color-rgb));
    background-color: #ffffff;
  }

#menu-primary{
	
    margin-left: 150px !important
}

  /* CUSTOMIZE THE CAROUSEL
  -------------------------------------------------- */

  /* Carousel base class */
  .carousel {
    margin-bottom: 4rem;
  }
  /* Since positioning the image, we need to help out the caption */
  .carousel-caption {
    bottom: 3rem;
    z-index: 10;
  }

  /* Declare heights because of positioning of img element */
  .carousel-item {
    height: 45rem;
  }

.btfc-counter{
    font-size:100px !important;
}

  #mainMenu{
    z-index:50;
    background: #ff2c38 !important;
    margin-top: 50px !important;
 }

 .menu-item{
    padding:8px;
 }

.sponsor-listing-header{
    color:#ff2c38;
}

h1{
    color:#ff2c38 !important;
}

 #menu-item-30:first-child{
    margin-left:12em;
 }

 #btfc_logo{
    position: fixed;
    z-index: 900;
    margin-top: -25px;
    margin-left: 16px;
 }

  #carousel-menu .logo{
      width: 100px;
      z-index:100;
      position:relative;
      @media screen and (max-width: 768px) {
          width:20px;
          height:20px;
      }
  }

#metaslider-id-59{
	margin-top:75px !important;
}

  #mainMenu .nav-link{
      color:#FFFFFF !important;
      font-size: 16px;
      font-weight: bold;
  }

  .nav-link{
    text-transform: uppercase !important;
  }

  .fp-news-item .news-thumbnail img{
    width:300px !important;
    height:200px;
    border:2px solid #ff2c38;
  }

  .fp-news-link{
    text-decoration: none;
    color: #ff2c38;
  }

  .fp-news-date{
    font-size:14px;
    font-weight:bold;
  }

  #fp-strapline{
    background-color: #ff2c38;
    color:#ffffff;
    padding:32px;
    text-align:center;
    font-size:38px;
    max-width:100% !important;
  }
  
  #fp-strapline-2{
    background-color: #303030;
    color:#ffffff;
    padding:32px;
    text-align:center;
    font-size:38px;
    max-width:100% !important;
  }

  #btfc-footer{
    background-color: #ff2c38;
    color:#ffffff;
  }

  .footer-widget-area a{
    color:white !important;
  }

#btfc_logo{
    width:120px;
    
    @media screen and (max-width: 768px) {
        width:80px; 
    }
}

.alignfull{
    position:inherit !important;
}

.alignfull .has-large-font-size{
    font-size: 4em !important;
    
    @media screen and (max-width: 768px) {
        font-size:2em !important;   
        margin-top:-200px;
    }
}

main.container{
    margin-top: 16px;
}


.team-image{
    width:500px !important;
}

.burger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out; /* For animation */
}

.container h2:nth-child(2){
    // margin-top:24px !important
}

.alignfull + * {
    margin-top:200px !important;
}

header{
    z-index:10000;
    position: fixed;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
}

.news-item {
    flex: 1 0 33.33%; /* Equal width for desktop */
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.news-item img {
    height: 250px;
    display: block;
    margin-bottom: 10px;
}

.item-container {
    display: flex;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.image-container {
    flex: 0 0 33%;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.text-container {
    flex: 1 0 66%;
    padding: 15px;
    box-sizing: border-box;
}

.text-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.text-container p {
    margin-bottom: 15px;
}

.h2-margin-top{
    margin-top:32px !important;
}

.sponsors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the items horizontally */
    gap: 10px; /* Adjust spacing as needed */
}

.sponsor-item {
    flex: 1 0 calc(25% - 10px); /* 6 columns minus gap */
    box-sizing: border-box;
    display: flex; /* For centering the image */
    align-items: center;
    justify-content: center;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 200px; /* Limit the height */
    object-fit: contain; /* Keep aspect ratio, fit within container */
}

.wp-block-cover .wp-block-cover__image-background{
    height:768px;
}

@media (max-width: 480px) {
   .sponsor-item {
       flex: 1 0 calc(100% - 10px); /* 1 column minus gap */
   }
}

@media screen and (max-width: 768px) {
    .wp-block-cover .wp-block-cover__image-background{
        max-height:400px;
        min-height:400px;
    }
    
    .team-image{
        width:300px !important;
    }
    
    .alignfull + * {
        margin-top:-150px !important;
    }
    
    .sponsor-item {
        flex: 1 0 calc(33.33% - 10px); /* 3 columns minus gap */
    }
    
    .h2-margin-top{
        margin-top:0px;
    }
    
    .news-item {
        flex: 1 0 100%; /* Full width on mobile */
    }
    
    .item-container {
        flex-direction: column; /* Stack items vertically on mobile */
    }

    .image-container {
        width: 100%; /* Image takes full width on mobile */
        flex-basis: auto; /* Reset flex-basis */
    }

    .text-container {
        width: 100%; /* Text takes full width on mobile */
        flex-basis: auto; /* Reset flex-basis */
    }

    #mainMenu{
        display:none;
        margin-top:0px !important
    }
    
    .burger-icon {
        color:#000080;  
        
    }
    
    .burger-menu {
        position:fixed;
        right:10px;
        float:right;
        margin-right:16px;
        margin-top:-8px;
        background: #ff2c38;
        display: block; /* Show the burger icon */
    }
    
    .burger-menu.active .burger-icon:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .burger-menu.active .burger-icon:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .burger-icon:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    #mainMenu {
        display: none; /* Hide the nav links by default */
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust based on your navbar height */
        left: 0;
        background-color: #333;
        padding: 1rem 0;
        text-align: center;
      }
    
      #mainMenu.active { /* This class will be toggled by JavaScript */
        display: flex;
      }

      #mainMenu li {
        padding: 1rem 0;
      }
    
      #mainMenu li.menu-item{
        text-align: left;
        display: block;
         margin-left:24px;
      }
    
    #menu-item-30:first-child{
        margin-left:24px;
    }
    
    
    
    
    #metaslider-id-420{
        margin-top:64px !important;
    }
    
    body{
        overflow-x: hidden;
        width: 100%; /* Or max-width: 100vw; */
         overscroll-behavior-x: contain;
    }
    
    #menu-primary{
        width:100% !important;
    }
    
    .sub-menu{
        width:95% !important;
    }
    
    header{
        z-index:10000;
        position: sticky;
    }
}



.wp-block-cover{
    // height:100%;
}

.has-background-dim{
    display:none;
}

article h2:first-child{
    display:none;
}

.has-fixed-layout td{
    border: 0px !important;
}

.wp-block-table td{
    border: 0px !important;
}

.mapp-layout{
    height:700px !important;
}


// New
 /* Universal Box Sizing */
    * {
        box-sizing: border-box;
    }

    /* Basic Reset & Body Styling */
    body {
        margin: 0;
        font-family: "Roboto", sans-serif;
        background-color: #ffffff; /* Light background for contrast */
    }

    /* Container for the entire section */
    .counters-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Grid for the counter boxes */
    .counters-grid {
        display: grid;
        grid-template-columns: 1fr; /* Single column on small screens */
        gap: 32px; /* Equivalent to Tailwind gap-8 */
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    /* Media query for medium screens and up (md: breakpoint) */
    @media (min-width: 768px) {
        .counters-grid {
            grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens and up */
        }
    }

    /* Individual Counter Box Styling (the circle and its wrapper) */
    .counter-box-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .counter-circle {
        /* Mobile-first sizing: Ensures a minimum size, scales with viewport, and is capped */
        min-width: 150px; /* Minimum size for very small screens */
        min-height: 150px;
        width: 40vw; /* Scales with viewport width */
        height: 40vw; /* Scales with viewport height to maintain square */
        aspect-ratio: 1 / 1; /* Explicitly enforce a square aspect ratio */
        max-width: 192px; /* Maximum size for larger mobile screens before next breakpoint */
        max-height: 192px;

        background-color: #ff2c38 ; /* Blue background */
        color: white;
        border-radius: 50%; /* Makes it a circle */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Shadow effect */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px; /* Inner padding */
        box-sizing: border-box; /* Ensures padding doesn't affect overall dimensions */
        transition: transform 0.3s ease; /* Smooth hover effect */
    }

    .counter-circle:hover {
        transform: translateY(-5px); /* Slight lift on hover */
    }

    /* Responsive sizing for circles at larger breakpoints */
    @media (min-width: 640px) { /* sm breakpoint */
        .counter-circle {
            width: 224px;
            height: 224px;
            min-width: unset; /* Remove min constraints */
            min-height: unset;
            max-width: none; /* Remove max constraints */
            max-height: none;
            aspect-ratio: auto; /* Let it adapt, though still square due to equal width/height */
        }
    }
    @media (min-width: 768px) { /* md breakpoint */
        .counter-circle {
            width: 256px;
            height: 256px;
        }
    }
    @media (min-width: 1024px) { /* lg breakpoint */
        .counter-circle {
            width: 288px;
            height: 288px;
        }
    }

    /* Text within the circle */
    .counter-number {
        font-size: 48px;
        font-weight: bold;
        margin-bottom: 16px;
    }
    @media (min-width: 768px) {
        .counter-number {
            font-size: 48px;
        }
    }

    .counter-title {
        font-size: 18px;
        font-weight: 600;
        margin-top: 8px;
    }
    @media (min-width: 768px) {
        .counter-title {
            font-size: 20px;
        }
    }

    /* Description text below the circle */
    .counter-description {
        font-size: 36px;
        color: #ff2c38; /* Grey text */
        margin-top: 16px;
    }
    @media (min-width: 768px) {
        .counter-description {
            font-size: 36px;
        }
    }



  /* Universal Box Sizing */
    * {
        box-sizing: border-box;
    }

   /* --- Hero Card Specific Styles --- */
    .hero-section-container {
        max-width: 1200px;
        margin: 40px auto; /* Added margin for spacing */
        padding: 20px;
        box-sizing: border-box;
    }

    .hero-item-container {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column; /* Stack on mobile */
    }

    @media (min-width: 768px) {
        .hero-item-container {
            flex-direction: row; /* Side-by-side on desktop */
        }
    }

    .hero-image-container {
        width: 100%;
        height: 250px; /* Fixed height for consistency on mobile */
        overflow: hidden;
        display: flex; /* Use flex to center image vertically */
        align-items: center; /* Center image vertically */
        justify-content: center; /* Center image horizontally */
    }

    @media (min-width: 768px) {
        .hero-image-container {
            width: 50%; /* Takes half width on desktop */
            height: auto;
            min-height: 350px; /* Ensure sufficient height for the image side */
        }
    }

    .hero-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures image covers the area without distortion */
        display: block;
    }

    .hero-text-container {
        padding: 25px;
        text-align: left;
        flex-grow: 1; /* Allows content to take remaining space */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Vertically center text if space allows */
    }

    @media (min-width: 768px) {
        .hero-text-container {
            width: 50%; /* Takes half width on desktop */
        }
    }

    .hero-text-container h2 {
        font-size: 2.5em; /* Larger headline for hero */
        margin-top: 0; /* Override default h2 margin-top */
        margin-bottom: 15px;
        line-height: 1.2;
        color: #ff2c38; /* Deep blue from your original box */
    }

    .hero-text-container p {
        font-size: 1.1em;
        line-height: 1.6;
        color: #333;
        margin-bottom: 1em; /* Space between paragraphs */
        text-align: justify; /* Justify text as requested */
    }

   /* --- News Section Specific Styles --- */
    .news-section-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .news-header {
        text-align: center;
        margin-bottom: 40px;
        font-size: 2.5em; /* Large heading for the section */
        color: #333;
    }

    /* Featured Article (spanning 3 columns) */
    .featured-news-article {
        background-color: white;
        border-radius: 12px; /* Rounded corners */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 32px;
        overflow: hidden; /* Ensures content respects border-radius */
        display: flex;
        flex-direction: column; /* Stack on mobile */
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Added transition for hover effect */
    }

    .featured-news-article:hover { /* Added hover effect */
        transform: translateY(-5px); /* Lift effect on hover */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    @media (min-width: 768px) {
        .featured-news-article {
            flex-direction: row; /* Side-by-side on desktop */
        }
    }

    .featured-news-thumbnail {
        width: 100%;
        height: 250px; /* Fixed height for consistency */
        overflow: hidden;
    }
    @media (min-width: 768px) {
        .featured-news-thumbnail {
            width: 50%; /* Takes half width on desktop */
            height: auto; /* Auto height on desktop */
            max-height: 400px; /* Max height to prevent overly tall images */
        }
    }

    .featured-news-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures image covers the area without distortion */
        display: block; /* Remove extra space below image */
    }

    .featured-news-content {
        padding: 25px;
        text-align: left;
        flex-grow: 1; /* Allows content to take remaining space */
        display: flex; /* Make it a flex container to center button */
        flex-direction: column; /* Stack items vertically */
    }
    @media (min-width: 768px) {
        .featured-news-content {
            width: 50%; /* Takes half width on desktop */
        }
    }

    .featured-news-content h2 {
        font-size: 2.2em; /* Large headline */
        margin-top: 0;
        margin-bottom: 10px;
        line-height: 1.2;
        text-transform: uppercase; /* Headline all uppercase */
        color: #ff2c38; /* Headline color */
    }

    .featured-news-content .news-date {
        font-size: 0.9em;
        color: #666;
        margin-bottom: 15px;
    }

    .featured-news-content p {
        font-size: 1.1em;
        line-height: 1.6;
        color: #444;
        margin-bottom: 20px;
    }

    /* Grid for the 3 subsequent news cards */
    .other-news-grid {
        display: grid;
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 25px; /* Spacing between cards */
    }

    @media (min-width: 640px) { /* Small screens and up */
        .other-news-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        }
    }
    @media (min-width: 992px) { /* Larger desktops */
        .other-news-grid {
            grid-template-columns: repeat(3, 1fr); /* 3 columns on larger desktops */
        }
    }

    /* Individual News Card Styling */
    .news-card {
        background-color: white;
        border-radius: 12px; /* Rounded corners */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden; /* Ensures content respects border-radius */
        display: flex;
        flex-direction: column;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .news-card:hover {
        transform: translateY(-5px); /* Lift effect on hover */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .news-card-thumbnail {
        width: 100%;
        height: 200px; /* Fixed height for card images */
        overflow: hidden;
    }

    .news-card-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures image covers the area */
        display: block;
    }

    .news-card-content {
        padding: 20px;
        text-align: left;
        flex-grow: 1; /* Allows content to take remaining space */
        display: flex; /* Make it a flex container to center button */
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally within flex container */
    }

    .news-card-content h3 {
        font-size: 1.3em;
        margin-top: 0;
        margin-bottom: 8px;
        line-height: 1.3;
        text-transform: uppercase; /* Headline all uppercase */
        text-align: center; /* Center headline within card */
        color: #ff2c38; /* Headline color */
    }

    .news-card-content .news-date {
        font-size: 0.85em;
        color: #777;
        margin-bottom: 10px;
        text-align: center; /* Center date within card */
    }

    .news-card-content p {
        font-size: 0.95em;
        line-height: 1.5;
        color: #555;
        margin-bottom: 15px;
        /* Removed white-space: nowrap; overflow: hidden; text-overflow: ellipsis; to allow wrapping */
        text-align: center; /* Center paragraph within card */
    }

    .read-more-button {
        display: inline-block;
        background-color: #ff2c38; /* Main blue color */
        color: white;
        padding: 8px 16px;
        border-radius: 20px; /* Lozenge shape */
        text-decoration: none;
        font-size: 0.9em;
        font-weight: bold;
        transition: background-color 0.2s ease;
        align-self: center; /* Centered "Read More" button */
        margin-top: auto; /* Pushes button to the bottom if content is shorter */
    }

    .read-more-button:hover {
        background-color: #00004d; /* Slightly darker shade on hover */
    }

.intro_header{
    text-align:center;
    font-weight:800;
    color:#ff2c38
}

.intro_para{
    text-align:justify;
    font-weight:800;
    color:#ff2c38;
    font-size:24px;
}

@media screen and (max-width: 768px)  {
     .intro_para{
    text-align:justify;
    font-weight:800;
    color:#ff2c38;
    font-size:18px;
}
}

.news-header{
    color:#ff2c38;
}