/* =====================================================
   NEWS WRAPPER – MAIN LEFT + VERTICAL RIGHT
===================================================== */
.news-wrapper {
  max-width: 1600px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

/* BIG MAIN NEWS */
.news-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-main img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.news-main-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.news-main-text h2 {
  font-size: 28px;
  font-weight: 800;
}
.news-main-text p {
  margin: 10px 0 12px;
}
.news-btn {
  display: inline-block;
  background: #f3c22c;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

/* =====================================================
   VERTICAL NEWS (RIGHT SIDE)
===================================================== */

.news-vertical h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 800;
  color: #0b2a45;
}

.vertical-list {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 10px;
}

.v-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
  margin-bottom: 18px;
  cursor: pointer;
}

.v-item img {
  width: 95px;
  height: 75px;
  border-radius: 10px;
  object-fit: cover;
}

.v-item h4 {
  font-size: 16px;
  font-weight: 700;
}
.v-item span {
  font-size: 13px;
  color: #777;
}

/* =====================================================
        ELONLAR — HORIZONTAL SCROLL
===================================================== */

.announce-wrapper {
  margin-top: 80px;
  background: #f6f9ff;
  padding: 70px 20px;
}

.announce-header {
  text-align: center;
  margin-bottom: 30px;
}

.announce-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0b2a45;
}

.announce-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.announce-scroll::-webkit-scrollbar {
  height: 8px;
}
.announce-scroll::-webkit-scrollbar-thumb {
  background: #c0c7d1;
  border-radius: 10px;
}

.a-card {
  min-width: 340px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  scroll-snap-align: start;
}

.a-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.a-body {
  padding: 16px;
}

.a-body h3 {
  font-size: 18px;
  font-weight: 700;
}
.date {
  display: block;
  font-size: 13px;
  color: #777;
  margin: 6px 0;
}
.a-more {
  color: #2b71ff;
  font-weight: 700;
  text-decoration: none;
}
.a-more:hover {
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
  .news-wrapper {
    grid-template-columns: 1fr;
  }

  .vertical-list {
    max-height: 300px;
  }

  .a-card {
    min-width: 260px;
  }
}




/* ===========================
   CALENDAR BADGE (BIG NEWS)
=========================== */
.calendar-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255,0,0,0.85);
  padding: 6px 12px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  z-index: 5;
}

.calendar-badge svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ===========================
   VERTICAL NEWS DATE
=========================== */
.v-date,
.a-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.v-date svg,
.a-date svg {
  width: 16px;
  height: 16px;
  fill: #0b2a45;
}

.v-date span,
.a-date span {
  font-size: 13px;
  color: #555;
}

/* ===========================
   MAIN NEWS IMAGE FIX
=========================== */
.news-main img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

/* ===========================
   ANNOUNCEMENT CARD IMAGE FIX
=========================== */
.a-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* ===========================
   VERTICAL LIST (NEWS)
=========================== */
.v-item img {
  width: 95px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===========================
   MOBILE FIXES
=========================== */
@media (max-width: 900px) {
  .news-main img {
    height: 300px;
  }
  .a-card img {
    height: 140px;
  }
  .v-item img {
    width: 80px;
    height: 65px;
  }
}




.calendar-dynamic {
    width: 70px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    border: 2px solid #ddd;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    position: absolute;
    top: 10px;
    left: 10px;
}

.calendar-dynamic .month {
    background: #e40000;
    color: #fff;
    padding: 4px 0;
    font-size: 12px;
    font-weight: bold;
}

.calendar-dynamic .day {
    font-size: 26px;
    color: #000;
    padding: 6px 0;
    font-weight: 800;
}



.calendar-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 80px;
    height: auto;
    z-index: 10;
}

.calendar-badge img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain !important;
}





/* ===============================
   KBMSM STYLE CALENDAR (FINAL)
================================*/
.calendar-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 72px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 10;
}

/* QIZIL QISMI */
.calendar-badge .cb-top {
    background: #e40000;
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', sans-serif;
}

/* OQ QISMI */
.calendar-badge .cb-bottom {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 8px 0;
    font-size: 28px;
    font-weight: 800;
    border: 1px solid #ddd;
    border-top: none;
    font-family: 'Segoe UI', sans-serif;
}



@media (max-width: 600px) {
  .calendar-badge {
      width: 60px;
  }
  .calendar-badge .cb-bottom {
      font-size: 22px;
  }
  .calendar-badge .cb-top {
      font-size: 12px;
  }
}



/* ===========================================
   PERFECT CALENDAR BADGE 72×78 (FINAL)
=========================================== */
.calendar-badge {
    position: absolute;
    top: 18px;
    left: 18px;

    width: 78px;              /* kengro qilindi — matn sig‘ishi uchun */
    border-radius: 14px;
    overflow: hidden;

    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    z-index: 10;
}

/* QIZIL QISMI — OY */
.calendar-badge .cb-top {
    background: #e40000;
    color: #fff;

    text-align: center;
    padding: 7px 0;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;

    font-family: "Segoe UI", sans-serif;
}

/* PASTKI QISM — KUN */
.calendar-badge .cb-bottom {
    background: #fff;
    text-align: center;

    padding: 10px 0;

    font-size: 30px;      /* sig‘ishi uchun mos */
    font-weight: 900;
    color: #000;

    border: 1px solid #ddd;
    border-top: none;
}


/* MOBILE OPTIMIZATION */
@media(max-width: 600px){
    .calendar-badge {
        width: 64px;
    }
    .calendar-badge .cb-top {
        font-size: 12px;
        padding: 5px 0;
    }
    .calendar-badge .cb-bottom {
        font-size: 24px;
        padding: 8px 0;
    }
}




/* ===========================================
   PERFECT CALENDAR BADGE — SMALL FONT VERSION
=========================================== */
.calendar-badge {
    position: absolute;
    top: 18px;
    left: 18px;

    width: 80px;              /* biroz kichraytirildi */
    border-radius: 12px;
    overflow: hidden;

    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    z-index: 10;
}

/* OY — APR */
.calendar-badge .cb-top {
    background: #e40000;
    color: #fff;

    text-align: center;
    padding: 5px 0;

    font-size: 12px;     /* OLDINGI 15 → 12 QILINDI */
    font-weight: 700;
    letter-spacing: .5px;

    font-family: "Segoe UI", sans-serif;
}

/* KUN — 25 */
.calendar-badge .cb-bottom {
    background: #fff;
    text-align: center;

    padding: 6px 0;

    font-size: 22px;     /* OLDINGI 30 → 22 */
    font-weight: 800;
    color: #000;

    border: 1px solid #ddd;
    border-top: none;

    font-family: "Segoe UI", sans-serif;
}

/* MOBILE */
@media(max-width: 600px){
    .calendar-badge {
        width: 68px;
    }
    .calendar-badge .cb-top {
        font-size: 10px;
        padding: 4px 0;
    }
    .calendar-badge .cb-bottom {
        font-size: 18px;
    }
}


