 @media(max-width: 768px){
      .mag-center { order: 1; }
      .mag-left { order: 2; }
      .mag-right { order: 3; }
     
     
    }

    /* ARROWS FIX INSIDE IMAGE */
    .slider-controls {
  position: absolute;
  top: 81%;
  right: 0px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.pagination-number {
  font-size: 15px;
  font-weight: 400;
  color: #000;
}

.arrow-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-arrow img {
  width: 6px;  /* Adjust icon size */
  height: 13px;
  display: block;
  cursor: pointer;
}
    /* Screen exactly 1440px */
@media screen and (width: 1440px),
       screen and (width: 1280px) {
  .slider-controls {
    top: 77%;
  }
}

@media(max-width:768px){
  .slider-controls {
    top: 80% !important;
    right: 10px !important;
  }
  .pagination-number {
    font-size: 12px;
  }
  .slider-arrow img {
    width: 6px;
    height: 13px;
  }
}

    .slider-arrow {
      cursor: pointer;
      font-size: 20px;
      font-weight: 400;
      /*background: rgba(0,0,0,0.4);*/
      color: #000;
      /*padding: 5px 16px;*/
      border-radius: 50%;
      user-select: none;
    }
    .featured-slider {
      position: relative;
      overflow: hidden;
    }
   
}
/* ===== API CARDS – PROFESSIONAL NEWS STYLE ===== */
.story-card{
    padding:15px;
}
.api-card {
  background: linear-gradient(180deg, #ffffff, #f8f9fb);
  padding: 16px 16px 18px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  position: relative;
  border: 1px solid #eef0f4;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.api-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Header */
.api-card h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Decorative underline */
.api-card h5::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #ddd, transparent);
}

/* Main data text */
.api-card p {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 4px 0;
}

/* Sub text */
.api-card p span,
.api-card small {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

/* Loading state */
.api-loading {
  font-size: 13px;
  color: #888;
  position: relative;
  padding-left: 18px;
}

/* Loading dot animation */
.api-loading::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ===== CARD TYPES (VISUAL IDENTITY) ===== */
#stock-card {
  border-left: 4px solid #0d6efd;
}

#weather-card {
  border-left: 4px solid #DC341A;
}

#score-card {
  border-left: 4px solid #2e7d32;
}

/* Mobile polish */
@media (max-width: 768px) {
  .api-card {
    padding: 14px;
  }
  .featured-title a {
      font-size:16px;
    color: #ffffff !important;
    text-decoration: none;
}
}

/* ===== SKELETON LOADER ===== */
.skeleton {
  height: 14px;
  width: 70%;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 37%,
    #f0f0f0 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== PRO WEATHER CARD ===== */
.weather-pro {
  padding: 18px;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-location {
  font-size: 12px;
  color: #555;
  background: #f3f5f9;
  padding: 4px 8px;
  border-radius: 20px;
}

.weather-body {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}

.weather-icon {
  font-size: 46px;
}

.weather-temp {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.weather-desc {
  font-size: 14px;
  color: #666;
}

.weather-forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  text-align: center;
}

.weather-day {
  font-size: 13px;
  color: #444;
}

.weather-day span {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.weather-footer {
  margin-top: 16px;
  text-align: center;
}

.weather-footer button {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

/* Skeleton */
.skeleton-block {
  height: 90px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 37%,
    #f0f0f0 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

.horoscope-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.horo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.horo-header h5 {
  margin: 0;
}

.horo-select {
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}

.horo-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.horo-icon {
  font-size: 34px;
  line-height: 1;
}

.horo-text {
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.horo-date {
  font-weight: 700;
}

.horo-more {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
}

.featured-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-meta .meta-sep {
  margin: 0 6px;
}
.sidebar-card {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.06);*/
    border:1px solid #eef0f4;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.swiper-slide {
    text-align: start;
    width:100%;
}

.swiper-slide img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* IMAGE WRAPPER */
.featured-image-wrapper {
    position: relative;
}

.featured-image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* OVERLAY */
.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    border-radius: 0 0 12px 12px;

    /*background: rgba(0, 0, 0, 0.4);*/
    /*backdrop-filter: blur(8px);*/
    /*-webkit-backdrop-filter: blur(8px);*/
}

/* TITLE */
.featured-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 600;
}

.featured-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.featured-title a:hover {
    opacity: 0.85;
}

/* META */
.featured-meta {
    color: #f1f1f1;
    font-size: 14px;
}

/* SHOPPING CARD */
.shopping-card {
    background: #fff;
    padding: 20px;
    margin-top: 30px;
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.06);*/
    border:1px solid #eef0f4;
}

.shopping-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Prevent grid breaking */
.magazine-grid > * {
    min-width: 0;
}

/* Shopping / Deals container */
.shopping-slider,
.deals-slider {
    width: 100%;
    overflow: hidden;
}

/* Force slides to behave properly */
.swiper {
    width: 100%;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto !important;
    display: flex;
}

/* Fix images */
.swiper-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
