/* Mohid Announcements - Premium Styles v1.1.4 */
:root {
  --mohid-primary: #0a4d3c;
  --mohid-secondary: #cba446;
  --mohid-font: 'Outfit', sans-serif;
}

.mohid-announcements-wrapper {
  font-family: var(--mohid-font, sans-serif);
  width: 100%;
  position: relative;
}

/* --- STRICT RESPONSIVE VISIBILITY --- */
/* Desktop View: Visible > 768px */
div.mohid-desktop-view {
  display: flex !important;
}

/* Mobile View: Visible <= 768px */
div.mohid-mobile-view {
  display: none !important;
}

@media only screen and (max-width: 768px) {

  /* HIDE DESKTOP GRID ON MOBILE (Specific override) */
  div.mohid-desktop-view,
  .mohid-grid-container.mohid-desktop-view {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
  }

  /* SHOW MOBILE SLIDER */
  div.mohid-mobile-view,
  .mohid-swiper-container.mohid-mobile-view {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    width: 100% !important;
  }
}

/* --- SWIPER BASE STYLES --- */
.swiper-slide {
  width: 100% !important;
  /* Mobile Default */
  height: auto !important;
  flex-shrink: 0 !important;
}

/* --- DESKTOP GRID SYSTEM (Pure CSS, No Swiper) --- */
.mohid-grid-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  /* Gap between grid items */
  width: 100% !important;
  justify-content: flex-start !important;
}

.mohid-grid-item {
  /* 5 items per row on desktop */
  width: calc(20% - 16px) !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
}

/* Tablet Adjustments for Grid */
@media (max-width: 1024px) {
  .mohid-grid-item {
    width: calc(33.33% - 14px) !important;
    /* 3 per row */
  }
}

/* Global Slider (for > 5 items) specific desktop styles */
@media (min-width: 769px) {
  .mohid-global-slider .swiper-slide {
    width: auto !important;
    /* Let Swiper decide width based on slidesPerView */
  }
}

.mohid-card-wrapper {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.mohid-card {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mohid-card-image-container {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  aspect-ratio: 4 / 5 !important;
  background-color: #f0f0f0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.mohid-card-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s ease !important;
  z-index: 1;
}

@supports not (aspect-ratio: 4 / 5) {
  .mohid-card-image-container {
    height: 350px !important;
  }
}

.mohid-exact-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* --- HOVER EFFECTS --- */
.mohid-card-wrapper:hover .mohid-card-image-container {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.mohid-card-wrapper:hover .mohid-exact-image {
  transform: scale(1.1) !important;
}

.mohid-card-wrapper:hover .mohid-card-image-container::after {
  opacity: 1;
}

/* --- BUTTONS --- */
.mohid-action-container {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.mohid-learn-more-btn {
  display: inline-block !important;
  background-color: var(--e-global-color-primary, #0a4d3c) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.mohid-learn-more-btn:hover {
  background-color: var(--e-global-color-secondary, #cba446) !important;
  color: #0a4d3c !important;
  transform: translateY(-2px);
}

/* --- SWIPER FIXES --- */
.mohid-swiper-container {
  width: 100% !important;
  padding-bottom: 20px !important;
  /* Reduced padding since no dots */
  overflow: hidden !important;
  position: relative !important;
}

.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* FORCE horizontal layout even if JS fails */
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  z-index: 1 !important;
  transition-property: transform !important;
  box-sizing: content-box !important;
}

.swiper-slide {
  flex-shrink: 0 !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  transition-property: transform !important;
}

@media (max-width: 768px) {
  .mohid-mobile-view.swiper {
    overflow: hidden !important;
    display: block !important;
  }
}

.swiper-slide .mohid-card-wrapper {
  width: 100% !important;
}

/* NAVIGATION ARROWS */
/* Make them super visible and ensure clickability */
.swiper-button-next,
.swiper-button-prev {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--e-global-color-primary, #0a4d3c) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 50 !important;
  /* Ensure on top */
  top: 40% !important;
  /* Align with image center roughly */
  transform: translateY(-50%) !important;
  transition: all 0.3s ease !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: 900 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--e-global-color-primary, #0a4d3c) !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Position them slightly inside to avoid being cut off */
.swiper-button-prev {
  left: 10px !important;
}

.swiper-button-next {
  right: 10px !important;
}

/* SINGLE PAGE Styles ... (Keep existing) */
.mohid-single-wrapper {
  background-color: #f9f9f9;
  min-height: 80vh;
  padding: 60px 20px;
  font-family: var(--mohid-font, sans-serif);
}

.mohid-single-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.mohid-back-nav {
  margin-bottom: 30px;
}

.mohid-back-btn {
  text-decoration: none;
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mohid-back-btn:hover {
  color: var(--e-global-color-primary, #0a4d3c);
}

.mohid-single-header {
  margin-bottom: 40px;
  text-align: center;
}

.mohid-single-title {
  font-size: 2.8rem;
  color: var(--e-global-color-primary, #0a4d3c);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.mohid-single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #888;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
}

.mohid-single-image {
  width: 100%;
  margin-bottom: 50px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mohid-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

.mohid-single-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.mohid-single-content p {
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .mohid-single-container {
    padding: 30px 20px;
  }

  .mohid-single-title {
    font-size: 2rem;
  }
}