/* =========================================================
   Homepage — News Portal Style
   ========================================================= */

:root{
  --hp-red: #e21e26;
  --hp-blue: #1560bd;
  --hp-blue-dark: #0e4c99;
  --hp-purple: #6a3fa0;
  --hp-purple-dark: #3d2166;
  --hp-yellow: #f4c430;
  --hp-green: #2fb350;
  --hp-lavender: #f1ecf8;
  --hp-gray-border: #e2e6ec;
  --hp-text: #1e2a35;
  --hp-text-light: #5b6b7a;
}

*{ box-sizing: border-box; }

.homepage{
  font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
  color: var(--hp-text);
  background: #fff;
}

.hp-inner{
  max-width: 1300px;
  margin: 0 auto;
}

a{ color: inherit; }

/* =========================================================
   Layout grid: main column + fixed sidebar
   ========================================================= */
.hp-layout{
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}

/* Top row inside main: hero carousel + latest news */
.hp-top-row{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* =========================================================
   Widget shell (shared)
   ========================================================= */
.widget{
  border: 1px solid var(--hp-gray-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  height: 445px;
  display: flex;
  flex-direction: column;
}

.widget-header{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--hp-red);
  flex-shrink: 0; /* header never shrinks or scrolls */
}

.widget-body{
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0; /* critical for flex children to scroll properly */
}

.widget-body::-webkit-scrollbar{
  width: 6px;
}
.widget-body::-webkit-scrollbar-thumb{
  background: var(--hp-gray-border);
  border-radius: 3px;
}

/* =========================================================
   Hero Carousel
   ========================================================= */
/* ---------- Hero Carousel ---------- */
.hero-carousel{
  max-width: 1300px;
  margin: 0px auto 0;

  position: relative;
}

.carousel-viewport{
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.carousel-track{
  display: flex;
  transition: transform .4s ease;
}

.carousel-slide{
  flex: 0 0 100%;
  min-width: 100%;
}

.slide-image{
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  overflow: hidden;
}

.slide-title-bar{
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 30%, transparent 100%);
  color: #ff1744;
  font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 30px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

.slide-caption{
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Counter badge (top-right circle) */
.carousel-counter{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* Arrows */
.carousel-arrow{
  position: absolute;
  top: 190px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.carousel-arrow:hover{ background: var(--white); }
.carousel-arrow.prev{ left: 26px; }
.carousel-arrow.next{ right: 26px; }

/* Dots */
.carousel-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.carousel-dots .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background .15s, width .15s;
}
.carousel-dots .dot.active{
  background: #e53e3e;
  width: 20px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  .slide-image{ height: 220px; }
  .slide-title-bar{ font-size: 20px; padding: 10px 14px; }
  .slide-caption{ font-size: 12px; }
  .carousel-arrow{ top: 110px; width: 28px; height: 28px; }
  .carousel-arrow.prev{ left: 14px; }
  .carousel-arrow.next{ right: 14px; }
  .carousel-counter{ width: 34px; height: 34px; font-size: 11px; }
}

@media (max-width: 480px){
  .slide-image{ height: 170px; }
  .slide-title-bar{ font-size: 16px; }
}

/* =========================================================
   Latest News list widget
   ========================================================= */
.news-list{
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}
.news-list li{
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
}
.news-list li::before{
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 5px;
  background: var(--hp-red);
}
.news-list a{ text-decoration: none; font-weight: 500; }
.news-list a:hover{ color: var(--hp-red); }

.more-btn{
  display: block;
  margin: 8px 12px 12px auto;
  background: #fff;
  border: 1px solid var(--hp-gray-border);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}
.more-btn:hover{ background: var(--hp-lavender); }

/* =========================================================
   Quick link buttons row
   ========================================================= */
.quick-links{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.quick-link{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}
.quick-link.ql-red{ background: var(--hp-red); color: #fff; }
.quick-link.ql-blue{ background: var(--hp-blue); color: #fff; }
.quick-link.ql-select{
  background: #fff;
  border: 1px solid var(--hp-gray-border);
  color: var(--hp-purple-dark);
}
.ql-select-icon{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: conic-gradient(#4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   Story card grid
   ========================================================= */
.story-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 22px;
}
.story-card{
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hp-gray-border);
}
.story-thumb{
  width: 96px; height: 72px;
  flex-shrink: 0;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.story-body{ min-width: 0; }
.story-title{
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--hp-blue-dark);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}
.story-title:hover{ color: var(--hp-red); }
.story-excerpt{
  margin: 0;
  font-size: 12.5px;
  color: var(--hp-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   State tabs section
   ========================================================= */
.state-tabs-section{ margin-bottom: 22px; }
.state-tabs{
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--hp-blue);
}
.state-tab{
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--hp-blue);
  border-bottom: none;
  color: var(--hp-blue);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  margin-right: -1px;
}
.state-tab.active{ background: var(--hp-blue); color: #fff; }

.tab-pane{ display: none; padding-top: 16px; }
.tab-pane.active{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tab-feature-thumb{
  width: 100%;
  height: 220px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
  margin-bottom: 10px;
}
.tab-feature-title{
  display: block;
  font-weight: 700;
  color: var(--hp-blue-dark);
  text-decoration: none;
  margin-bottom: 4px;
}
.tab-feature-excerpt{ margin: 0; font-size: 13px; color: var(--hp-text-light); }

.tab-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tab-list li{ display: flex; gap: 10px; }
.tab-list .tab-thumb{
  width: 64px; height: 48px;
  flex-shrink: 0;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.tab-list a{ font-weight: 700; color: var(--hp-blue-dark); text-decoration: none; font-size: 13.5px; }
.tab-list a:hover{ color: var(--hp-red); }
.tab-list p{ margin: 2px 0 0; font-size: 12px; color: var(--hp-text-light); }

/* =========================================================
   Justdial-style promo ad cards
   ========================================================= */
.promo-ads-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 10px;
}
.promo-card{
  background: linear-gradient(135deg, #3350c9, #4f6bea);
  border-radius: 6px;
  padding: 18px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}
.promo-card h4{ margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.promo-card ul{ margin: 0 0 12px; padding-left: 16px; font-size: 12.5px; }
.promo-card ul li{ margin-bottom: 2px; }
.promo-btn{
  background: var(--hp-green);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.promo-avatar{
  position: absolute;
  right: 12px; bottom: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

/* =========================================================
   Category rows (Movie / Business / Sports, National / International / Vasundhara)
   ========================================================= */
.category-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.category-widget{
  border: 1px solid var(--hp-gray-border);
  border-radius: 4px;
  overflow: hidden;
}
.category-feature-thumb{
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.category-body{ padding: 10px 12px 14px; }
.category-title{
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--hp-blue-dark);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 8px;
}
.category-title:hover{ color: var(--hp-red); }
.category-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.category-list li{
  display: flex;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.4;
}
.category-list li::before{
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--hp-blue);
}
.category-list a{ text-decoration: none; color: var(--hp-text); }
.category-list a:hover{ color: var(--hp-red); }

/* =========================================================
   Video Gallery
   ========================================================= */
.video-gallery-section{ margin-bottom: 22px; }
.video-gallery-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.video-card{ text-decoration: none; color: inherit; display: block; }
.video-thumb{
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
  margin-bottom: 8px;
  overflow: hidden;
}
.video-thumb .play-icon{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(230,30,60,.9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.video-thumb .brand-badge{
  position: absolute;
  top: 6px; left: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--hp-blue);
}
.video-caption{
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   Sidebar widgets
   ========================================================= */
.side-col{ display: flex; flex-direction: column; gap: 16px; }

.horoscope-banner{
  background: linear-gradient(135deg, var(--hp-purple-dark), var(--hp-purple));
  border-radius: 6px;
  padding: 16px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.horoscope-banner .hb-title{
  font-family: 'Noto Sans Telugu', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--hp-yellow);
  margin: 0 0 4px;
}
.horoscope-banner .hb-sub{
  font-family: 'Noto Sans Telugu', serif;
  font-size: 13px;
  margin: 0;
}

.ad-box{
  background: var(--hp-lavender);
  border: 1px solid var(--hp-gray-border);
  border-radius: 4px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-text-light);
  font-size: 13px;
}

/* "Have you seen these" mini carousel */
.mini-carousel-widget .widget-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-carousel-nav{ display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hp-text-light); }
.mini-carousel-nav button{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hp-gray-border);
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.mini-carousel-viewport{ overflow: hidden; }
.mini-carousel-track{ display: flex; transition: transform .4s ease; }
.mini-slide{ min-width: 100%; flex-shrink: 0; }
.mini-slide .slide-image{
  height: 170px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.mini-slide .slide-title-bar{
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 80%);
  color: #fff;
  font-family: 'Noto Sans Telugu', serif;
  font-weight: 700;
  font-size: 15px;
}

/* Lifestyle & Sunday Magazine list */
/* .mini-list{
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-list li{ display: flex; gap: 10px; }
.mini-list .mini-thumb{
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.mini-list a{ font-weight: 700; font-size: 13px; color: var(--hp-blue-dark); text-decoration: none; }
.mini-list a:hover{ color: var(--hp-red); }
.mini-list p{ margin: 2px 0 0; font-size: 11.5px; color: var(--hp-text-light); }

.sunday-mag-img{
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.widget-header.solid a.ext-link{ color: #fff; text-decoration: none; font-size: 12px; } */


/* ---------- Sunday Magazine widget ---------- */
.sunday-magazine-widget{
  max-width: 340px;
}

.sunday-magazine-widget .widget-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.sunday-magazine-widget .widget-title i{
  font-size: 12px;
  opacity: .9;
}

.magazine-body{
  padding: 12px;
}

/* Feature block */
.magazine-feature{
  margin-bottom: 14px;
}
.magazine-feature-thumb{
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 8px;
}
.magazine-feature-title{
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-blue);
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.3;
}
.magazine-feature-title:hover{ text-decoration: underline; }
.magazine-feature-excerpt{
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

/* List items */
.magazine-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.magazine-list li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--gray-border);
}
.magazine-list li:first-child{
  border-top: none;
}
.magazine-thumb{
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-light);
}
.magazine-text{
  min-width: 0;
}
.magazine-text a{
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brand-blue);
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 3px;
}
.magazine-text a:hover{ text-decoration: underline; }
.magazine-text p{
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  .sunday-magazine-widget{ max-width: 100%; }
  .magazine-feature-thumb{ height: 140px; }
  .magazine-feature-title{ font-size: 14px; }
  .magazine-feature-excerpt{ font-size: 12.5px; }
  .magazine-thumb{ width: 54px; height: 54px; }
  .magazine-text a{ font-size: 13px; }
  .magazine-text p{ font-size: 11.5px; }
}

@media (max-width: 480px){
  .magazine-body{ padding: 10px; }
  .magazine-feature-thumb{ height: 120px; }
  .magazine-thumb{ width: 48px; height: 48px; }
}





/* Most Read */
.most-read-list{
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.most-read-list li{ display: flex; align-items: center; gap: 10px; }
.num-badge{
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--hp-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.most-read-thumb{
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.most-read-list a{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hp-text);
  text-decoration: none;
  line-height: 1.35;
}
.most-read-list a:hover{ color: var(--hp-red); }

/* Photo Gallery widget */
.photo-gallery-img{
  position: relative;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--hp-lavender);
}
.photo-gallery-img .gallery-badge-icon{
  position: absolute;
  right: 8px; bottom: 8px;
  width: 26px; height: 26px;
  border-radius: 4px;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.photo-gallery-caption{
  padding: 8px 12px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hp-text);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px){
  .hp-layout{ grid-template-columns: 1fr; }
  .side-col{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px){
  .hp-top-row{ grid-template-columns: 1fr; }
  .story-grid{ grid-template-columns: 1fr; }
  .tab-pane.active{ grid-template-columns: 1fr; }
  .promo-ads-row{ grid-template-columns: 1fr; }
  .category-row{ grid-template-columns: 1fr 1fr; }
  .video-gallery-row{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px){
  .quick-links{ grid-template-columns: 1fr; }
  .side-col{ grid-template-columns: 1fr; }
  .carousel-slide .slide-image{ height: 220px; }
  .carousel-slide .slide-title-bar{ font-size: 18px; }
  .state-tabs{ overflow-x: auto; flex-wrap: nowrap; }
  .state-tab{ flex-shrink: 0; }
  .story-card{ flex-direction: row; }
  .story-thumb{ width: 84px; height: 64px; }
  .category-row{ grid-template-columns: 1fr; }
  .video-gallery-row{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px){
  .video-gallery-row{ grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-thumb{ height: 90px; }
}

.tab-pane{
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 12px;
}
