body {
    margin: 0;
    padding: 0;
    letter-spacing: 1.2px;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
   
}
#slider .item {
    width: 100%;
    max-width: 1920px;
    height: auto;
    aspect-ratio: 1920 / 1300;
}

#slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


p {
    line-height: 2.2 !important;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Modal dialog alignment to the left */

@media (max-width: 480px) {
  .modal-dialog {
    width: 95%;
    top: -30%;
  }
  .fa .fa-search{
    margin-right: 30px;
    margin-bottom: 30px;
  }
}

/* Optional: Adjust modal content if necessary */
.modal-content {
  
  /* border-radius: 10px; */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  background-color: #fff;
}

/* Input group layout */
.input-group {
  display: flex;
  flex-direction: row-reverse; /* For RTL layout */
  gap: 0;
}

/* Search input field */
.input-group .form-control {
  border-radius: 0 5px 5px 0;
  border-left: none;
  direction: rtl; /* Ensure Urdu text aligns properly */
  text-align: right;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #dc3545;
}

/* Search button */
.input-group .btn {
  border-radius: 5px 0 0 5px;
  background-color: #dc3545;
  color: white;
  border: 1px solid #dc3545;
  transition: background-color 0.3s;
}

.input-group .btn:hover {
  background-color: #b02a37;
}

/* FontAwesome icon alignment */
.input-group .btn i {
  font-size: 16px;
}

/* Modal open button styling (outside the modal) */
button[data-bs-target="#searchModal"] {
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 16px;
  background-color: #dc3545;
  color: white;
  transition: background-color 0.3s;
}

button[data-bs-target="#searchModal"]:hover {
  background-color: #b02a37;
}

.navbar {
    background-color: #da0000;
    
}
.navbar-nav .nav-link {
color: white !important; /* Force white color for links */
/* font-weight: bold; Make links bold for better visibility */
font-size: 15px !important;
word-spacing: 2px;
letter-spacing: 1px; 
text-decoration: none; 
padding: 10px 15px; /* Adjust padding to increase space inside the link */
margin: 0 10px; /* Adjust margin to control space between links */

}
.navbar a{
    text-align: center;
    border-left: 1px solid #FFF; /* Blue border */      
    display: inline-block;  
}

.navbar .nav-link.active {
color: #ffffff; /* Lighter shade of white on hover */
cursor: pointer;
}
.navbar-expand-lg .navbar-nav .nav-link{
    padding-left: 1.0rem;
    padding-right: 0;
    font-size: 14px !important;
}
.center-navbar .container {
display: flex;
justify-content: center;
width: 100%;

}
/* Responsive Navbar */
@media (max-width: 550px) {
    .navbar {
        background-color: #da0000;
        padding: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 16px; /* Reduce font size for better fit */
        padding: 8px 10px; /* Adjust padding for smaller space */
        margin: 0 5px; /* Reduce margin between links */
        word-spacing: 1px;
        letter-spacing: 0.5px;
    }

    .navbar a {
        text-align: center;
        border-left: none; /* Remove borders for a cleaner look */
        display: block; /* Stack links vertically */
        width: 100%; /* Make links take full width */
    }

    .navbar .nav-link.active {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.2); /* Highlight active link */
    }

    .center-navbar .container {
        display: block; /* Stack content vertically */
        text-align: center; /* Center content */
        width: 100%; /* Ensure full width */
    }
    .modal-dialog {
    width: 95%;
    
  }
}
@media (max-width: 980px) {
    .navbar {
        background-color: #da0000;
        padding: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 16px; /* Reduce font size for better fit */
        padding: 8px 10px; /* Adjust padding for smaller space */
        margin: 0 5px; /* Reduce margin between links */
        word-spacing: 1px;
        letter-spacing: 0.5px;
    }

    .navbar a {
        text-align: center;
        border-left: none; /* Remove borders for a cleaner look */
        display: block; /* Stack links vertically */
        width: 100%; /* Make links take full width */
    }

    .navbar .nav-link.active {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.2); /* Highlight active link */
    }

    .center-navbar .container {
        display: block; /* Stack content vertically */
        text-align: center; /* Center content */
        width: 100%; /* Ensure full width */
    }
}
@media (max-width: 960px){
    #mobile {
        display: none;
    }
}
@media (min-width: 890px){
    #mobile {
        display: none;
    }
}
@media (max-width: 550px){
    .col-1{
        display: none !important;
    }
    
    #toplogo {
        display: none !important;
    }
    #mobile{
        padding-top: 20px;
        display: flex;
    }
    #header-navv{
        display: none !important;
    }
    .mb-right{
        width: 80%;
        display: flex;
    }
    .mb-logo{
        width: 70%;
        text-align: center;
    }
    .mb-search{
        width: 30%;
        padding-right: 50px;
        padding-top: 15px;
    }
    #navi-mobile nav{
        margin-top: 10px; 
        margin-right: 0px;
        width: 20%;
       
    }
    .modal-dialog {
    width: 95%;
  }
    /* .owl-item.cloned{
        width: 85px !important;
    } */
    #slider .item img {
        width: 450px; /* Set the width of the images */
        height: 130px; /* Set the height of the images */
        object-fit: cover; /* Ensure the images fit nicely without distortion */
    }
    
    #slider .owl-carousel {
        max-width: 780px; /* Limit the carousel's overall width */
        margin: 0 auto; /* Center the carousel */
    }
}


@media (min-width: 480) and (max-width: 760px){
    .col-1{
        display: none !important;
    }
    #toplogo {
        display: none !important;
    }
    #mobile{
        padding-top: 20px;
        display: flex;
    }
    #header-navv{
        display: none !important;
    }
    .mb-right{
        width: 80%;
        display: flex;
    }
    .mb-logo{
        width: 70%;
        text-align: center;
    }
    .mb-search{
        width: 30%;
        padding-right: 50px;
        padding-top: 15px;
    }
    #navi-mobile{
        margin-top: 10px; 
        margin-right: 0px;
        width: 20%;
    }
    .modal-dialog {
    width: 95%;
    
  }
    
}
/* Responsive styles for widths between 480px and 960px */
@media (min-width: 480px) and (max-width: 960px) {
    #toplogo {
        flex-direction: row; /* Stack items vertically */
        text-align: center; /* Center-align content */
    }

    #toplogo h1 {
        margin-bottom: 1rem; /* Add spacing below logo */
    }

    #toplogo h1 img {
        max-height: 30px; /* Reduce logo height */
    }

    #toplogo a img {
        max-width: 90%; /* Adjust ad width */
        height: auto; /* Maintain aspect ratio */
    }
    #ads{
        margin-left: -72px;
    }
    #ads img {
        max-width: 80%; /* Scale the image down slightly */
    }
    .mb-search{
        width: 30%;
        padding-right: 50px;
        padding-top: 15px;
    }
    .modal-dialog {
    width: 95%;
   
  }
    
}

@media (min-width: 360px) and (max-width: 480px) {
    .navbar-expand-lg>.container, .navbar-expand-lg>.container-fluid, .navbar-expand-lg>.container-lg, .navbar-expand-lg>.container-md, .navbar-expand-lg>.container-sm, .navbar-expand-lg>.container-xl {
        padding-right: 0;
        padding-left: 0;
        display: none;
    }
}
/* Ensure the carousel is visible and styled */
#postCarousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.5s ease-in-out, opacity 0.6s ease-in-out;
}

/* Ensure images are responsive */
.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure the container doesn't collapse */
.carousel-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

/* Overlay container for title, category, and subcategory */
.carousel-caption {
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px 30px !important;
    border-radius: 5px;
    max-width: 100%;
    width: 100%;
    text-align: right;
}

/* Style for navigation buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.navbar-nav {
display: flex;
justify-content: flex-start !important;
width: 100%;
}

.header--search-icon {
    color: white; /* Set the icon color to white */
    font-size: 18px; /* Optional: Adjust the icon size if needed */
}

.header--search-btn {
    background: none; /* Remove background from the button */
    border: none; /* Remove border from the button */
    cursor: pointer; /* Show pointer cursor on hover */
}

.header--search-btn:hover .header--search-icon {
    color: #ccc; /* Optional: Change the icon color on hover */
}


.posts--filter-bar {
display: flex;
align-items: center; /* Vertically centers content */
justify-content: center; /* Horizontally centers content */
background-color: #f8f8f8; /* Optional: Add a background color */
padding: 10px; /* Optional: Adjust padding as needed */
}

.posts--filter-bar .container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap; /* Ensures responsiveness */
width: 100%;
}

.posts--filter-bar .nav {
list-style: none;
display: flex;
justify-content: center;
gap: 20px; /* Space between items */
padding: 0;
margin: 0;
}

.posts--filter-bar .nav li {
display: inline-block;
}

.posts--filter-bar .nav a {
text-decoration: none;
color: #333; /* Text color */
font-size: 16px; /* Adjust font size */
display: flex;
align-items: center; /* Center icon and text vertically */
gap: 8px; /* Space between icon and text */
transition: color 0.3s;
}

.posts--filter-bar .nav a:hover {
color: #da0000; /* Hover color */
}

.posts--filter-bar .nav a i {
font-size: 18px; /* Icon size */
}

.social-links {
    display: flex;
    gap: 25px;
    
  }

  
  .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    padding-top: 5px;
    
  }
  
  .social-links a:hover {
    background-color: #da0000 !important;
    /* transform: scale(1.1); */
  }
  
  .social-links i {
    font-size: 20px;
    
  } 
  

/* Ensure the list is responsive*/
ul.float-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

ul.float-left li {
    margin-bottom: 0.5rem; /* Consistent spacing */
}

/* Style for the links */
.custom-link {
    text-decoration: none;
    /* transition: color 0.3s ease,  */
}

/* Hover effect with red color */
.custom-link:hover {
    color: #da0000; /* Red color for hover */
    /* text-decoration: underline; */
    padding: 2px 4px; /* Slight padding for hover effect */
    border-radius: 4px; /* Rounded corners for hover */
}
.custom-link a:hover{
    color: #da0000 !important;
}

/* Hover effect for the list items */
/* .card-body ul li a {
    transition: all 0.3s ease;
} */


/* Add margin-bottom to each section to create a gap between them */


/* Footer Styles */

.footer {
    
  
    color: #fff; /* Text color */
    margin-top: 40px; /* Adjust top margin of the footer */
    padding: 20px 0;
    position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: red;
   color: white;
   text-align: center;
   
}

.footer .container {
    position: fixed;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 

/* Make sure the list adjusts on smaller screens */
@media (max-width: 768px) {
    ul.float-left {
        flex-direction: column; /* Stack items */
    }

    .custom-link {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }
    .modal-dialog {
    width: 95%;
   
  }
}

.owl-carousel,
.bx-wrapper { direction: ltr; }
.owl-carousel .owl-item { direction: rtl; }

.carousel-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s ease-in;
    transition-timing-function: linear;
}

.carousel-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s ease-in;
    transition-timing-function: linear;
}

/* Ensure the carousel container is visible and functional */
.carousel {
position: relative;
overflow: hidden;
width: 100%;
}
.owl-carousel {
    display: none;
    width: 100%;
    z-index: 1;
    transition-delay: 2s;
    transition-duration: 5s;
}


/* Smooth and responsive transition for each slide */
.carousel-item {
transition: transform 0.4s ease-in, opacity 0.4s ease-in;
transition-timing-function: linear;
}

/* Ensure images fit within the carousel container */
.carousel-item img {
width: 80%;
height: auto;
display: block;
}

/* Adjust carousel controls for better visibility */
.carousel-control-prev-icon,
.carousel-control-next-icon {
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
border-radius: 50%;
width: 40px;
height: 40px;
}
/* respopnsive */
/* Media Query for Small Screens (360px wide) */
@media (max-width: 550px) {
    /* Adjust carousel items for small screens */
    .carousel-item img {
        width: 100%;
        height: auto;
    }

    /* Make carousel controls smaller */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }

    /* Adjust the icon size */
    .icon-square {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Adjust padding and margins for better readability */
    .news-updates--list ul.nav li {
        padding-right: 5px;
    }

    .news-updates--list ul.nav li a {
        font-size: 12px;
    }

    /* Ensure that the container is responsive */
    .container[dir="rtl"] {
        text-align: right;
    }

    .left-border {
        padding-left: 5px;
    }
}
.container[dir="rtl"] {
    text-align: right; /* Align all text and elements to the right */
    direction: rtl; /* Set the flow of content from right to left */
    
}

.news--ticker[dir="rtl"] {
    text-align: right; /* Align text to the right */
}

.news--ticker .title h2 {
    text-align: right; /* Align the heading to the right */
}

.news-updates--list ul.nav {
    display: flex;
    flex-direction: row-reverse; /* Items will be displayed in reverse order for RTL */
}

.news-updates--list ul.nav li {
    padding-right: 10px; /* Padding for RTL alignment */
}

.news-updates--list ul.nav li a {
    text-align: right; /* Align the links to the right */
}

.icon-square {
    display: inline-table !important;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1; /* Light gray background */
    color: #333; /* Icon color */
    text-align: center; /* Center the icon horizontally */
    line-height: 30px; /* Center the icon vertically */
    font-size: 18px; /* Icon size */
    border-radius: 5px; /* Slightly rounded corners, or use 0 for perfect squares */
    margin-right: 10px; /* Space between icons */
    text-decoration: none; /* Remove underline */
    transition: all 0.3s ease; /* Smooth hover effect */
    align-items: center;
    margin: 0;
    padding: 0;
    align-content: center;
}

.icon-square:hover {
    background-color: #da0000 !important; /* Change background on hover */
    color: #fff !important; /* Change icon color on hover */
}

/* Responsive .icon-square for small screens (max-width: 550px) */
@media (max-width: 550px) {
    
    .icon-square {
        width: 22px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 2px;
    }
}

.left-border {
    /*border-left: 2px solid #FFF; */
    padding-left: 10px;           /* Add spacing between border and text */
    display: inline-block;        /* Ensure the border appears for inline spans */
    
}
  
  /* General News Container Style */
  .container-fluid{
    background-color: #003262;
  }
.news-container {
    position: relative;
    top: 0;
    right: 0px;
    left: 0;
    font-size: 10px;
    text-align: center;
    display: flex;
    
    background: #003262;
    color: #73c2fb;
    padding: 8px 32px;
    display: flex;
    overflow: hidden;
    direction: rtl; /* Set RTL direction */
   
    justify-content: space-between;
    
  }
  .h3, h3 {
    font-size: 13.8px !important;
        
}
  /* Adding Gradient */
  .news-container::after {
    position: relative;
    content: "";
    bottom: 0;
    left: 0px;
    right: 0px;
    height: 0px;
    
    background: linear-gradient(transparent, #003262);
  }
  
  /* Heading Style */
  .news-container .news-heading {
    /* font-weight: bold; */
    letter-spacing: 0px;
    word-spacing: 0px;
    padding-left: 10px; /* Align the heading to the right */
    padding-bottom: 20px;
    /* padding-top: 20px; */
    font-size: 20px;
    text-align: center;
    margin-left: 20px;
    border-left: 1px solid #fff; /* Left border for RTL */
    white-space: nowrap; /* Prevents the text from wrapping */
   
    text-overflow: ellipsis; /* Adds ellipsis if the text overflows */
    padding-top: 10px;
    
  }
  
  /* News Slider Style */
  .news-container .news {
    position: relative;
    width: 100%;
  }
  
  /* Style for each news item */
  .news-container .news-single {
    color: #fff;
    text-decoration: none;
    font-weight: normal;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0; /* Move the items to the right for RTL */
    transform: translateX(8px); /* Shift items from right to left */
    transition: all 400ms ease;
    pointer-events: none;
    padding-top: 15px;
  }
  
  /* Style for active news item */
  .news-container .news-single.active {
    opacity: 1;
    transform: translateX(0); /* Remove the horizontal offset for active item */
    pointer-events: auto;
  }
  
  @media (max-width: 480px){
    .container-fluid{
        background-color: #003262;
      }
    .news-container {
        position: relative;
        top: 0;
        right: 0px;
        left: 0;
        font-size: 10px;
        text-align: center;
        display: flex;
        
        background: #003262;
        color: #73c2fb;
        padding: 8px 32px;
        display: flex;
        overflow: hidden;
        direction: rtl; /* Set RTL direction */
       
        justify-content: space-between;
        
      }
      .h3, h3 {
        font-size: 7.8px !important;
        line-height: 1rem;
    }
      /* Adding Gradient */
      .news-container::after {
        position: relative;
        content: "";
        bottom: 0;
        left: 0px;
        right: 0px;
        height: 0px;
        
        background: linear-gradient(transparent, #003262);
      }
      
      /* Heading Style */
      .news-container .news-heading {
        /* font-weight: bold; */
        letter-spacing: 0px;
        word-spacing: 0px;
        padding-left: 10px; /* Align the heading to the right */
        padding-bottom: 20px;
        /* padding-top: 20px; */
        font-size: 20px;
        text-align: center;
        margin-left: 20px;
        border-left: 1px solid #fff; /* Left border for RTL */
        white-space: nowrap; /* Prevents the text from wrapping */
       
        text-overflow: ellipsis; /* Adds ellipsis if the text overflows */
        padding-top: 10px;
        
      }
      
      /* News Slider Style */
      .news-container .news {
        position: relative;
        width: 100%;
      }
      
      /* Style for each news item */
      .news-container .news-single {
        color: #fff;
        text-decoration: none;
        font-weight: normal;
        opacity: 0;
        position: absolute;
        top: 0;
        right: 0; /* Move the items to the right for RTL */
        transform: translateX(8px); /* Shift items from right to left */
        transition: all 400ms ease;
        pointer-events: none;
        padding-top: 15px;
      }
      
      /* Style for active news item */
      .news-container .news-single.active {
        opacity: 1;
        transform: translateX(0); /* Remove the horizontal offset for active item */
        pointer-events: auto;
      }
      .modal-dialog {
    width: 95%;
  
  }
  }
  /* Card Styling */
.card {
    margin: 2rem 0;
    
}

.card-header {
    border: none;
    background-color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 4px;
    padding-right: 0px;
    border-bottom: 1px solid #da0000;
    margin-top: -46px;
}

.card-body {
   
    flex: 1 1 auto;
    min-height: 1px;
    /* padding: 1.25rem; */
}
.card-body {
    padding-top: 15px;
    /* padding: 0.2rem; */
    padding-right: 0px;
}


/* List Styling */
.card-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-body ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
transitions style{
    color: white !important;
}
/* Image Styling */
.card-body ul li img {
    margin-right: 2px;
    border-radius: 0;
    width: 33% !important;
    height: 116px !important;
    object-fit: cover;
}
.card-body ul li a img {
    margin-right: 2px;
    border-radius: 0;
    width: 33% !important;
    height: 116px !important;
    object-fit: cover;
}

/* Link Styling */
.card-body ul li a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0px;
    padding-right: 10px;
    line-height: 35px;
    padding-top: 0px;
}

 ul li a:hover {
    color: #da0000 !important;
}
/* Responsive styles for widths between 490px and 960px */
@media (min-width: 490px) and (max-width: 960px) {
    .h5 h5{
        font-size: 0.9rem !important;
    }
    .card {
        flex-direction: column;
        margin: 1rem 0; /* Adjust margin */
    }
    .card-body {
        padding-top: 15px;
        /* padding: 0.2rem; */
    }

    .card-header {
        font-size: 1rem; /* Smaller font size for headers */
    }

    .card-body ul li {
        flex-direction: row !important; /* Stack items vertically */
        
    }

    .card-body ul li img {
        width: 88px !important; /* Smaller image width */
        height: 58px !important; /* Smaller image height */
        
    }

    .card-body ul li a {
        font-size: 0.8rem; /* Smaller font size for links */
        padding-right: 22px;
    }
    .modal-dialog {
    width: 95%;
   
  }
}

.footer {
    background-color: #000;
    color: white;
    padding: 20px 0;
    bottom: -300px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 0 5px;
    border-left: 1px solid white;
    text-align: center;
}

.footer-nav .nav-link {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 16px;
    transition: color 0.3s ease;
}
.footer-nav .nav-link:hover {
    color: #da0000 !important;
}


footer p a {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 14px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

footer .mt-3 {
    margin-top: 20px;
    text-align: center;
}

footer .mt-3 a {
    margin: 0 10px;
}

footer .mt-3 a:hover {
    text-decoration: underline;
}

footer div {
    text-align: center;
}

footer .container p {
    margin-top: 15px;
    font-size: 14px;
    color: #ffffff !important;
}

footer .container p a {
    color: #ffffff !important;
    font-weight: bold;
}

footer .container p a:hover {
    color: #da0000 !important;
}



/* Remove default styling */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    
  }
  
  .mt-3 {
    margin-top: 5rem;
    margin-left: 15px;
    padding: 30px;
   
}

.mt-3 a {
    margin-right: 15px; /* Adds spacing between the links */
    text-decoration: none; /* Removes underline */
    color: white !important; /* Inherit text color from parent */
    border-left: 1px solid white;
    text-align: center;
    padding-left: 20px;
    
}

.mt-3 a:hover {
    color: #da0000 !important; /* Change color on hover */
}

.badge {
    padding: 0.5rem 1rem; /* Adjust padding as needed */
}
.bg-success {
    padding-left: 1rem;
    padding-right: 1rem;
}
.bg-warning {
    padding-left: 1rem;
    padding-right: 1rem;
}

.horizontal-layout {
    margin: 10px 0;
    max-width: 100%;
}

.horizontal-layout .horizontal-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 1px 0;
   
}

.horizontal-layout .horizontal-col {
    flex: 0 0 auto;
    width: 245px;
    height: 300px; /* Fixed width for each card */
}

.horizontal-layout .horizontal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* border: 1px solid #ddd; */
    /* border-radius: 5px; */
    overflow: hidden;
    width: 250px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.horizontal-layout .horizontal-card-img {
    width: 100%;
    height: 150px; /* Adjust as needed */
    object-fit: cover;
}

.horizontal-layout .horizontal-card-body {
    padding: 1px;
}
.horizontal-card-title {
    font-size: 1.2rem !important;
    color: #212529;
    line-height: 2.0rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px !important;
    font-weight: bold !important;
}

.horizontal-layout .horizontal-card-title a {
    font-size: 1.1rem;
    /* font-weight: bold; */
    color: black;
    text-decoration: none;
    padding-right: 1px;
    /* transition: color 0.3s; */
}
.horizontal-layout h1{
    color: #000;
}
hr{
    color: #da0000 !important;
    
}
.horizontal-layout .horizontal-card-title a:hover {
    color: #da0000;
}

.horizontal-layout .horizontal-text-muted {
    font-size: 0.9rem;
    color: #6c757d;
}
.col-md-6 .card {
    margin: 0.2rem 0 !important;
    border: none;
}
.row{
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 760px) and (max-width: 1050px) {
    .horizontal-layout {
        margin: 10px 0;
        max-width: 100%;
    }
    
    .horizontal-layout .horizontal-row {
        display: ruby;
        flex-wrap: nowrap;
        gap: 15px;
        padding: 1px 0;
       
    }
    
    .horizontal-layout .horizontal-col {
        flex: 0 0 auto;
        width: 300px;
        height: 300px; /* Fixed width for each card */
    }
    
    .horizontal-layout .horizontal-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* border: 1px solid #ddd; */
        /* border-radius: 5px; */
        overflow: hidden;
        width: 200px;
        /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    }
    
    .horizontal-layout .horizontal-card-img {
        width: 100%;
        height: 150px; /* Adjust as needed */
        object-fit: cover;
    }
    
    .horizontal-layout .horizontal-card-body {
        padding: 1px;
    }
    
    .horizontal-layout .horizontal-card-title a {
        font-size: 1rem;
        font-weight: bold;
        color: black;
        text-decoration: none;
        padding-right: 1px;
        /* transition: color 0.3s; */
    }
    .horizontal-layout h1{
        color: #000;
    }
    hr{
        color: #da0000 !important;
        
    }
    .horizontal-layout .horizontal-card-title a:hover {
        color: #da0000;
    }
    
    .horizontal-layout .horizontal-text-muted {
        font-size: 0.9rem;
        color: #6c757d;
    }
    .col-md-6 .card {
        margin: 0.2rem 0 !important;
        border: none;
    }
    .row{
        margin-left: 0;
        margin-right: 0;
    }
    .card-body ul li a {
        color: #000;
        text-decoration: none;
        font-size: 7px;
        letter-spacing: 0px;
        padding-right: 10px;
        line-height: 15px;
        padding-top: 0px;
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-6 {
        max-width: 100% !important;
    }
    .col-md-9{
        flex: 0 0 100%;
    }
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
    margin: 0 auto;
}
/* Style for the category list */
.category-list {
    list-style-type: none; /* Remove default bullets */
    margin: 0;
    padding: 10px;
    display: flex; /* Align items horizontally */
    gap: 20px; /* Add spacing between items */
    text-align: center;
    justify-content: center;
}

.category-list li {
   
    position: relative;
    padding: 0 10px; /* Add some inner spacing */
    text-align: center;
    border-left: 1px solid white ;
}

.category-list li:not(:last-child)::after {

    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #FFF !important; /* Separator color */
}

.category-list a {
    text-decoration: none; /* Remove underline */
    color: #FFF !important; /* Text color */
    font-weight: bold; /* Make it slightly more prominent */
}

.category-list a:hover {
    color: #da0000 !important; /* Change text color on hover */
}
.card-title {
    font-size: 22px !important;
    /* margin-top: 2rem; */
    margin-bottom: .25rem;
    font-weight: 600;
    line-height: 2.2 !important;
}
  /* Responsive CSS */

/* Responsive Design */
/* @media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    nav ul li {
        display: block;
        margin: 5px 0;
    }

    .col-md-9 {
        width: 100%;
    }

    .carousel-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }

    .sidebar {
        margin-bottom: 20px;
    }

    footer {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        font-size: 0.8rem;
        padding: 5px;
    }

    .card-title {
        font-size: 0.9rem;
    }
}
@media (max-width: 1200px) {
    .news li {
      flex: 1 1 calc(33.33% - 15px);
    }
  }
  
  @media (max-width: 992px) {
    .news li {
      flex: 1 1 calc(50% - 15px);
    }
  
    header h1 img {
      max-height: 40px;
    }
  
    .navbar-nav .nav-link {
      padding: 0.5rem 0.75rem;
    }
  
    .container {
      padding: 0 15px;
    }
  }
  
  @media (max-width: 768px) {
    .news li {
      flex: 1 1 calc(100% - 15px);
    }
  
    .news-heading {
      text-align: center;
      padding: 20px;
    }
  }
  
  @media (max-width: 576px) {
    header .container {
      flex-direction: column;
      text-align: center;
    }
  
    header h1 img {
      max-height: 35px;
    }
  
    .navbar-nav {
      text-align: center;
    }
  
    .navbar-toggler {
      margin: 0 auto;
    }
  
    .news li {
      margin-right: 0;
      margin-bottom: 10px;
    }
  } */

  /* Responsive CSS */
  @media (max-width: 550px) {
    .social-links {
        display: flex;
        flex-wrap: wrap; /* Wrap items to a new line if needed */
        gap: 15px; /* Reduce the gap between icons */
        justify-content: center; /* Center align the links */
        padding: 10px; /* Add some padding for spacing */
    }

    .social-links a {
        width: 30px; /* Reduce width for smaller screens */
        height: 30px; /* Reduce height for smaller screens */
        font-size: 10px; /* Adjust font size inside icons */
        background-color: #444; /* Slightly lighter background */
        padding-top: 2px; /* Adjust padding for smaller icons */
    }

    .social-links i {
        font-size: 16px; /* Adjust icon size for smaller screens */
    }

    .social-links a:hover {
        background-color: #da0000 !important; /* Keep hover color consistent */
        /* transform: scale(1.05); Optional: Add a subtle hover effect */
    }
}

 

  /* Header responsive */

  @media (max-width: 550px) {
    .header--search-icon {
        color: white; /* Maintain white color for visibility */
        font-size: 16px; /* Reduce icon size for smaller screens */
    }

    .header--search-btn {
        padding: 5px; /* Add some padding for better touch target */
        background: none; /* Keep no background */
        border: none; /* Keep no border */
        cursor: pointer;
    }

    .header--search-btn:hover .header--search-icon {
        color: #FFF; /* Subtle color change on hover for smaller screens */
    }

    /* Optional: Add alignment adjustments for the header search icon */
    .header--search-btn {
        display: flex; /* Align icon centrally if needed */
        justify-content: center;
        align-items: center;
    }
}

/* Responsive Navbar */
@media (max-width: 550px) {
    .navbar {
        background-color: #da0000;
        padding: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 16px; /* Reduce font size for better fit */
        padding: 8px 10px; /* Adjust padding for smaller space */
        margin: 0 5px; /* Reduce margin between links */
        word-spacing: 1px;
        letter-spacing: 0.5px;
    }

    .navbar a {
        text-align: center;
        border-left: none; /* Remove borders for a cleaner look */
        display: block; /* Stack links vertically */
        width: 100%; /* Make links take full width */
    }

    .navbar .nav-link.active {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.2); /* Highlight active link */
    }

    .center-navbar .container {
        display: block; /* Stack content vertically */
        text-align: center; /* Center content */
        width: 100%; /* Ensure full width */
    }
}



@media (max-width: 550px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .container > div {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    h1 img {
        max-height: 50px; /* Adjust logo size for smaller screens */
    }

    .container .d-flex {
        display: block;
    }

    .container .d-flex img {
        max-width: 70%; /* Ensure the ad image fits the screen */
        height: auto;
    }
}



/* news ticker */
@media (max-width: 550px){
    .container-fluid{
        background-color: #003262;
      }
    .news-container {
        position: relative;
        top: 0;
        right: 0px;
        left: 0;
        font-size: 10px;
        text-align: center;
        display: flex;
        
        background: #003262;
        color: #73c2fb;
        padding: 8px 32px;
        display: flex;
        overflow: hidden;
        direction: rtl; /* Set RTL direction */
       
        justify-content: space-between;
        
      }
      .h3, h3 {
        font-size: 7.8px !important;
        line-height: 1rem;
    }
      /* Adding Gradient */
      .news-container::after {
        position: relative;
        content: "";
        bottom: 0;
        left: 0px;
        right: 0px;
        height: 0px;
        
        background: linear-gradient(transparent, #003262);
      }
      
      /* Heading Style */
      
element.style {
}
@media (max-width: 550px) {
    .news-container .news-heading {
        /* font-weight: bold; */
        letter-spacing: 0px;
        word-spacing: 0px;
        padding-left: 7px;
        padding-bottom: 20px;
        /* padding-top: 20px; */
        font-size: 10px;
        text-align: center;
        margin-left: 10px;
        border-left: 1px solid #fff;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding-top: 10px;
        padding-right: 0px;
    }
      
      
      /* News Slider Style */
      .news-container .news {
        position: relative;
        width: 100%;
      }
      
      /* Style for each news item */
      .news-container .news-single {
        color: #fff;
        text-decoration: none;
        font-weight: normal;
        opacity: 0;
        position: absolute;
        top: 0;
        right: 0; /* Move the items to the right for RTL */
        transform: translateX(8px); /* Shift items from right to left */
        transition: all 400ms ease;
        pointer-events: none;
        padding-top: 15px;
      }
      
      /* Style for active news item */
      .news-container .news-single.active {
        opacity: 1;
        transform: translateX(0); /* Remove the horizontal offset for active item */
        pointer-events: auto;
      }
}

/* Responsive styles for small screens (360px width) */
@media (max-width: 480px){
    #postCarousel {
        max-width: 100%; /* Ensure carousel takes full width on smaller screens */
    }

    .carousel-caption {
        font-size: 10px; /* Adjust font size */
        padding: 0px 10px; /* Adjust padding */
        bottom: 0px;
    }
    
    .carousel-inner {
        flex-direction: column; /* Stack items vertically on small screens */
        margin-bottom: -170px;
        width: 100%;
    }
    
    .carousel-item img {
        max-width: 100%; /* Make sure images fit within the screen */
       
    }
   
    
}
@media (max-width: 970px){
    #postCarousel {
        max-width: 100%; /* Ensure carousel takes full width on smaller screens */
    }

    .carousel-caption {
        font-size: 10px; /* Adjust font size */
        padding: 0px 10px; /* Adjust padding */
        bottom: 0px;
        width: 100%;
        max-width: 100%;

    }
    .carousel-item{
        min-height: 0px;
    }
    
    .carousel-inner {
        flex-direction: column; /* Stack items vertically on small screens */
        margin-bottom: -170px;
        width: 100%;
    }
    
    .carousel-item img {
        max-width: 100%; /* Make sure images fit within the screen */
       
    }
    .col-md-9{
        max-width: 100% !important;
    }
    .col-md-6{
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* div.owl-item.active{
        width: 635px !important;
    } */
}



/* Responsive (Small screen, width 360px) layout */
@media (max-width: 550px) {
    .horizontal-layout .horizontal-row {
        flex-direction: column; /* Stack vertically on small screens */
        gap: 5px; /* Reduce gap between cards */
        padding: 0; /* Remove padding */
    }

    .horizontal-layout .horizontal-col {
        width: 100%; /* Full width for cards */
        height: auto; /* Adjust height to content */
    }

    .horizontal-layout .horizontal-card {
        width: 100%; /* Ensure card takes full width */
        margin: 5px 0; /* Margin between cards */
    }

    .horizontal-layout .horizontal-card-img {
        height: auto; /* Adjust image height for smaller screen */
    }

    .horizontal-layout .horizontal-card-title a {
        font-size: 0.8rem; /* Larger font for small screens */
        text-align: center;
        padding: 10px;
    }

    .horizontal-layout .horizontal-text-muted {
        font-size: 0.6rem; /* Slightly smaller font size for better fit */
    }
}
@media (max-width: 480px) {
    .horizontal-layout .horizontal-row {
        display: flex;
        flex-direction: column; /* Stack the cards vertically */
        gap: 5px; /* Add spacing between cards */
        padding: 0; /* Remove any extra padding */
    }

    .horizontal-layout .horizontal-col {
        width: 100%; /* Cards take full width */
        height: auto; /* Adjust height to fit content */
    }

    .horizontal-layout .horizontal-card {
        width: 100%; /* Ensure the card spans full width */
        margin: 5px 0; /* Add vertical spacing between cards */
        box-sizing: border-box; /* Ensure padding and border are included in width */
    }

    .horizontal-layout .horizontal-card-img {
        width: 100%; /* Make image take full width */
        height: auto; /* Maintain aspect ratio */
        object-fit: cover; /* Ensure image scales properly */
    }

    .horizontal-layout .horizontal-card-title a {
        font-size: 0.8rem; /* Adjust font size for smaller screens */
        text-align: center; /* Center align the text */
        padding: 10px; /* Add padding for better spacing */
    }

    .horizontal-layout .horizontal-text-muted {
        font-size: 0.6rem; /* Smaller font for text-muted elements */
        text-align: center; /* Center align muted text */
    }
}
@media (max-width: 960px) {
    .horizontal-layout .horizontal-row {
        flex-direction: column; /* Stack vertically on small screens */
        gap: 5px; /* Reduce gap between cards */
        padding: 0; /* Remove padding */
    }

    .horizontal-layout .horizontal-col {
        width: 100%; /* Full width for cards */
        height: auto; /* Adjust height to content */
    }

    .horizontal-layout .horizontal-card {
        width: 100%; /* Ensure card takes full width */
        margin: 5px 0; /* Margin between cards */
    }

    .horizontal-layout .horizontal-card-img {
        height: auto; /* Adjust image height for smaller screen */
    }

    .horizontal-layout .horizontal-card-title a {
        font-size: 0.8rem; /* Larger font for small screens */
        text-align: center;
        padding: 10px;
    }

    .horizontal-layout .horizontal-text-muted {
        font-size: 0.6rem; /* Slightly smaller font size for better fit */
    }
}

@media (max-width: 550px) {
    footer .container {
        padding: 0 10px;
    }
    .category-list {
        list-style-type: none;
        margin: 0;
        padding: 10px;
        display: contents;
        gap: 20px;
        text-align: center;
        justify-content: center;
        border: none;
    }
    .category-list li {
   
        position: relative;  
        padding: 0 10px; /* Add some inner spacing */  
        text-align: center;       
        border-left: 1px solid black;
        }
    footer p {
        font-size: 12px; /* Reduce font size for better readability */
    }

    footer p a {
        font-size: 12px; /* Adjust link font size */
        margin-right: 10px; /* Decrease margin */
    }

    footer .mt-3 {
       
        text-align: center;
        display: contents;
        margin: 0 auto;
    }
    }

    footer .mt-3 a {
        margin: 0 5px; /* Reduce spacing between links */
    }

    footer div {
        text-align: center; /* Ensure proper alignment */
    }

    footer .container p a:hover {
        color: #ff0000 !important; /* Adjust hover effect for clarity */
    }
    @media (min-width: 360px) and (max-width: 480px){
        footer .container {
            padding: 0 10px;
        }
        .category-list {
            list-style-type: none;
            margin: 0;
            padding: 10px;
            display: contents;
            gap: 20px;
            text-align: center;
            justify-content: center;
            border: none;
        }
        .category-list li {
       
            position: relative;  
            padding: 0 10px; /* Add some inner spacing */  
            text-align: center;       
            border-left: none;
            }
        footer p {
            font-size: 12px; /* Reduce font size for better readability */
        }
    
        footer p a {
            font-size: 12px; /* Adjust link font size */
            margin-right: 10px; /* Decrease margin */
        }
    
        footer .mt-3 {
           
            text-align: center;
            display: contents;
            margin: 0 auto;
        }
        #copywrite{
            display: flex;
            justify-content: space-between;
            flex-direction: column;
        }
        }
    
        footer .mt-3 a {
            margin: 0 5px; /* Reduce spacing between links */
        }
    
        footer div {
            text-align: center; /* Ensure proper alignment */
        }
    
        footer .container p a:hover {
            color: #ff0000 !important; /* Adjust hover effect for clarity */
        }

        @media (max-width: 960px) {
            footer .container {
                padding: 0 10px;
            }
            .category-list {
                list-style-type: none;
                margin: 0;
                padding: 10px;
                font-size: 10px;
                gap: 0px;
                text-align: center;
                justify-content: center;
                border: none;
            }
            .category-list li {
           
                position: relative;  
                padding: 0 8px; /* Add some inner spacing */  
                text-align: center;       
                border-left: 1px solid black;
                }
            footer p {
                font-size: 12px; /* Reduce font size for better readability */
                text-align: center;
            }
        
            footer p a {
                font-size: 12px; /* Adjust link font size */
                margin-right: 5px; /* Decrease margin */
                text-align: center;
            }
        
            footer .mt-3 {
               
                text-align: center;
                display: contents;
                margin: 0 auto;
                flex-direction: column; /* Align links vertically */
                justify-content: center; /* Center vertically */
                align-items: center; /* Center horizontally */
                height: 100vh; /* Full screen height */
                text-align: center; /* Center align text */
                background-color: #f8f9fa; /* Optional: Add a background color */
                margin: 0; /* Remove any default margin */
                
                
            }
            }
        
            footer .mt-3 a {
                margin: 0 25px; /* Reduce spacing between links */
                text-align: center;
            }
           
            footer div {
                text-align: center; /* Ensure proper alignment */
            }
             
            footer .container p a{
                padding-left: 20px;
            }
            footer .container p a:hover {
                color: #ff0000 !important; /* Adjust hover effect for clarity */
            }
        /* search pop up */
        .popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            background: white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 20px;
            width: 400px;
            max-width: 90%;
        }

        .popup-header {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .popup-body {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .popup-close {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 20px;
            background: #007bff;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 4px;
            font-size: 14px;
        }

        .popup-close:hover {
            background: #0056b3;
        }

        /* Overlay styles */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            .popup {
                width: 90%;
                padding: 15px;
            }

            .popup-header {
                font-size: 16px;
            }

            .popup-body {
                font-size: 14px;
            }

            .popup-close {
                font-size: 12px;
                padding: 8px 16px;
            }
        }

        .header--search-form.active .form-control {
            width: 160px;
            opacity: 1;
            visibility: visible;
            right: 2px;
        }
/* new navbar */

#menuToggle
{
  display: block;
  position: fixed;
  z-index: 99; 
  -webkit-user-select: none;
  user-select: none;
}
#menuCheckbox input{
    display: none;
}

#menuToggle a
{
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: tomato;
}


#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  max-width: 400px;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  box-sizing: border-box;
  overflow-y: auto;
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
}

#menu li label
{
  cursor: pointer;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}
@media (max-width: 960px){
    #sidebar{
        display: none;
    }
}
#copywrite{
    display: flex;
    justify-content: space-between;
}
@media (max-width: 960px){
    #detailnews{
        .card-title {
            margin-top: 2rem;
            margin-bottom: .75rem;
            font-size: 20px;
        }
        .w-100 {
            width: 100% !important;
        }
        .col-md-9 {
            max-width: 100% ;
        }
        .h2, h2 {
            font-size: 20px;
        }
       
    }
    #slider .item img {
        width: 600px; /* Set the width of the images */
        height: 400px; /* Set the height of the images */
        object-fit: cover; /* Ensure the images fit nicely without distortion */
    }
    
    #slider .owl-carousel {
        max-width: 600px; /* Limit the carousel's overall width */
        margin: 0 auto; /* Center the carousel */
    }
  
}
#slider .item img {
    width: 780px; /* Set the width of the images */
    height: 430px; /* Set the height of the images */
    object-fit: cover; /* Ensure the images fit nicely without distortion */
}

#slider .owl-carousel {
    max-width: 780px; /* Limit the carousel's overall width */
    margin: 0 auto; /* Center the carousel */
}

/* off-screen-menu */
.off-screen-menu {
        background-color: #da0000;
        height: 100vh;
        width: 100%;
        max-width: 408px;
        position: fixed;
        top: 0;
        right: -450px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
        font-size: 1.3rem;
        transition: .3s ease;
        z-index: 2;
        line-height: 1.3;
        padding-right: 38px;
        text-align: right;
    }
.off-screen-menu.active {
    right: 0;
}
.off-screen-menu .nav-link{
    color: #FFF;
}


/* nav */
nav {
    padding: 20px;
    display: flex;
    background-color: #da0000;
}



/* ham menu */
.ham-menu {
    height: 35px;
    width: 30px;
    margin-left: auto;
    position: relative;
    z-index: 2;
  
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #FFF;
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span {
    background-color: white;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}
@media (max-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 650px;
    }
}
/* videos */
.videos {
    display: grid;               /* Use CSS Grid to layout the videos */
    grid-template-columns: repeat(3, 1fr);  /* 3 equal columns */
    gap: 20px;                   /* Space between videos */
    padding: 20px;
    justify-items: center;       /* Center the items horizontally within each grid cell */
  }
  
  /* Style for each video container */
  .videos div {
    max-width: 600px;  /* Limit the max width of the videos */
    width: 100%;       /* Ensure video container fills the cell */
    border: 1px solid #ccc; /* Add a light border around each video (card) */
    border-radius: 8px;  /* Rounded corners for a card-like effect */
    overflow: hidden;    /* Ensure nothing overflows from the video card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add shadow to cards */
    background-color: white;  /* Card background color */
  }
  
  /* Optional: Make sure the iframe is responsive */
  .latestVideoEmbed {
    width: 100%;
    height: 340px; /* Fixed height to maintain aspect ratio */
  }
  
  /* Responsive layout for smaller screens */
  @media (max-width: 768px) {
    .videos {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns for smaller screens */
    }
  }
  
  @media (max-width: 480px) {
    .videos {
        grid-template-columns: 1fr;  /* 1 column for very small screens */
    }
  }
  .col-md-3 {
    max-width: 100%;
}
.card-img-top{
    width: 100%;
}
.text-dark{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}