/* Breaking News Section Styles */
.breaking-news-table {
  width:95%;
  border-collapse: collapse;
  margin:10px auto;
}
.breaking-news-table th,
.breaking-news-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
.breaking-news-table th {
  background-color: white;
  color: #024f2b;
  font-weight: bold;
}
.breaking-news-slider {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.breaking-news-item {
  background: #fff;
  border: 2px solid #f4ae0b;
  border-top-right-radius: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0;
  overflow: hidden;
}
.breaking-news-item:hover {
  background: #f5f5f5;
  transform: translateY(-5px);
}
.breaking-news-slider .breaking-news-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}
.breaking-news-slider .breaking-news-item:nth-child(1) {
  animation-delay: 0.1s;
}
.breaking-news-slider .breaking-news-item:nth-child(2) {
  animation-delay: 0.3s;
}
.breaking-news-slider .breaking-news-item:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.breaking-news-item .newsimage {
  width: 50% !important;
  flex: none !important;
}
.breaking-news-item .newsimage img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #ddd;
}
.breaking-news-item h2 {
  color: #f4ae0b;
  font-size: 1.5em;
  margin: 20px 10px 10px;
}
.breaking-news-content {
  color: #024f2b;
  font-size: 1em;
  line-height: 1.6;
  padding: 0 10px 10px;
  text-align:justify;
}
.breaking-news-date {
  color: #666;
  font-size: 0.9em;
  padding: 0 10px 10px;
}
.breaking-news-prefix {
  color: #f4ae0b;
}
.breaking-news-item > div[style*="position: absolute"] a {
  color: black;
  text-decoration: none;
}
.breaking-news-item a:focus {
  outline: 2px solid #f4ae0b;
  outline-offset: 2px;
}

/* Event Slider Styles */
.event-slider-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 10px 0;
  text-align:center;
}
.event-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 20px;
  scrollbar-width: none;
}
.event-slider::-webkit-scrollbar {
  display: none;
}
.event-slide {
  flex: 0 0 calc(33.33% - 16px);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.event-card1 {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: auto;
  max-width: 100%;
}
.event-card1:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
.event-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transition: transform 0.3s ease-in-out;
}
.event-card1:hover .event-thumbnail img {
  transform: scale(1.03);
}
.event-card1 h3 {
  font-size: 1.1rem;
  color: #961102;
  font-weight: 700;
  margin: 16px;
  line-height: 1.4;
  text-align:center;
  margin-top:30px;
}
.event-content {
  padding: 0 16px 16px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  flex-grow: 1;
  overflow-wrap: break-word;
}
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 79, 43, 0.75);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.3s ease;
}
.prev-btn:hover,
.next-btn:hover {
  background: rgba(2, 79, 43, 0.9);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.event-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s;
}
.event-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
.dots-container {
  text-align: center;
  margin-top: 15px;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #024f2b;
  border-radius: 50%;
  transition: background 0.3s ease;
  cursor: pointer;
}
.dot.active {
  background-color: #deb666;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Connect News Grid Styles */
.button-wrappernewscountry {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.read-more-btnnewscountry {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .event-slide {
    flex: 0 0 calc(50% - 16px);
  }
  .event-thumbnail img {
    height: 200px;
  }
}
@media (max-width: 1024px) {
    .breaking-news-title,
    .breaking-news-existing-title {
        font-size: 1.8rem;
    }
    .breaking-news-table th,
    .breaking-news-table td {
        font-size: 0.9rem;
        padding: 10px;
    }
    .breaking-news-item {
        padding: 15px;
    }
    .breaking-news-content {
        font-size: 1rem;
    }
    .news-card2 {
        width: 48%;
        height: auto;
    }
    .news-card img,
    .news-card2 img {
        width: 15%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .news-title,
    .news-title2 {
        font-size: 20px;
        height: auto;
    }
    .news-excerpt {
        font-size: 14px;
    }
    .swiper-button-prev,
    .swiper-button-next {
        top: 50%;
    }
}
@media (max-width: 768px) {
    .breaking-news-title,
    .breaking-news-existing-title {
        font-size: 1.6rem;
    }
    .breaking-news-table th,
    .breaking-news-table td {
        font-size: 0.85rem;
        padding: 8px;
    }
    .breaking-news-item {
        flex-direction: column;
        padding: 12px;
		width: 100%;
    }
    .breaking-news-content {
        font-size: 0.95rem;
    }
    .event-slide {
      flex: 0 0 100%;
    }
    .event-thumbnail img {
      height: 180px;
    }
    .prev-btn, .next-btn {
      font-size: 1rem;
      padding: 8px;
    }
    .event-card1 h3 {
      font-size: 1rem;
    }
    .event-content {
      font-size: 0.9rem;
    }
    .event-popup img {
      max-width: 85%;
      max-height: 85%;
    }
    .news-card,
    .news-card2 {
        width: 100% !important;
        height: auto;
        padding: 10px;
        margin-bottom: 15px;
        float: none;
    }
    .news-card img,
    .news-card2 img {
        width: 15%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .news-title,
    .news-title2 {
        font-size: 18px !important;
        height: auto;
        line-height: 1.4;
    }
    .news-excerpt {
        font-size: 13px;
        height: auto;
    }
    .read-more-btn {
        padding: 10px;
        font-size: 14px;
    }
    .news-filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .news-tab {
        font-size: 14px;
        padding: 6px 10px;
        width: 100%;
        border: none;
        background: #f4ae0b;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
        margin-top:5px;
    }
    .swiper-button-prev,
    .swiper-button-next {
        top: 85%;
        font-size: 5px;
    }
    .news-city,
    .news-city2 {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        font-size: 14px;
        font-weight: bold;
    }
}
@media (max-width: 480px) {
    .breaking-news-title,
    .breaking-news-existing-title {
        font-size: 1.4rem;
    }
    .breaking-news-table th,
    .breaking-news-table td {
        font-size: 0.8rem;
        padding: 6px;
    }
    .breaking-news-item {
        padding: 10px;
		width: 100%;
    }
    .breaking-news-content {
        font-size: 0.9rem;
    }
    .event-card1 {
      padding: 10px;
      border-radius: 10px;
    }
    .event-thumbnail img {
      height: 160px;
    }
    .close-btn {
      font-size: 1.6rem;
    }
}

/* Large screens (desktops, etc.) */
@media (min-width: 1025px) {
    
    .news-card {
        background: #fff;
        border: 1px solid #ddd;
        padding: 15px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
         height:400px;
 
    }
    .news-card img {
        width: 15%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
   .news-title{
    font-size: 24px;
    margin: 0 0 5px 0;
    height:150px;
   }
.news-excerpt {
    font-size: 14px;
    margin: 0;
     height:100px;
   }
       .read-more-btn {
        margin-top: 10px;
        background: #024f2b;
        color: #fff;
        padding: 8px 12px;
        text-decoration: none;
        border-radius: 5px;
    }
    .news-date  {
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
    }
    .news-filter-buttons {
        margin-bottom: 20px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .news-tab {
        padding: 6px 12px;
        border: none;
        background: #f4ae0b;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
    }
    .swiper-button-prev, .swiper-button-next {
        color: #f4ae0b;
        padding: 10px;
        border-radius: 10%;
        position:absolute;
        top:45%;
    }
    
.news-card2 {
        background: #fff;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 10px;
        justify-content: space-between;
         height:400px;
        width:30%;
        float:left;
        margin:10px;
 }
     .news-card2 img {
        width: 15%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }
       .news-title2{
    font-size: 18px;
    margin: 0 0 5px 0;
    height:100px;
   }
    
.news-city {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}
                      
 .news-city2 {
    position: relative;
     top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    float:right;
}                      
    
}