/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Author: Chandan
Description: Child theme for BhojpuriFilms built on Twenty Twenty-Five.
Version: 1.0
Text Domain: bhojpuri-child
*/

/* ===== RESET ===== */
html, body {
  overflow-x: hidden;
}

/* Box sizing fix */
* {
  box-sizing: border-box;
}

/* REMOVE SIDE GAP */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.homepage-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* HEADINGS */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* BETTER TEXT LOOK */
h2 {
  font-size: 20px;
  letter-spacing: 0.3px;
}

h3 {
  font-size: 16px;
}

p {
  font-size: 14px;
  color: #555;
}


/* ===== Header ===== */
.site-header,
.site-footer {
  width: 100%;
}
.header-container {
  max-width: 100%;
  margin: auto;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  display: flex;
}
.site-header {
  background: #111;
  position: sticky;
  top: 0;
  z-index: 999;
  margin-bottom: 0;
}

/* LOGO */
.logo a {
  color: #ffcc00;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

/* NAV */
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
}

/* RIGHT SIDE */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* SEARCH */
.search-box {
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
}

/* SUBSCRIBE BUTTON 
.subscribe-btn {
  background: #ffcc00;
  border: none;
  padding: 6px 12px;
  font-weight: bold;
  border-radius: 20px;
}*/

/* MOBILE */
.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 15px;
  }

  .nav-menu.active {
    display: flex;
  }
  

  .menu-toggle {
    display: block;
  }

  .search-box {
    display: none; /* clean mobile */
  }
}

/* ===== SECTION ===== */
section {
  padding: 20px;
}

section h2 {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* ===== GRID =====*/
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.grid li {
  list-style: none;
}

.grid img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

/* Mobile View (Single Column - Full Width) */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr; /* One item per row */
    gap: 10px;                 /* Space between stacked items */
    padding: 0 10px;           /* Tiny side breathing room (optional) */
    margin: 0;                 /* Removes any default list offset */
  }

  .grid img {
    height: 200px;             /* Taller height looks better in a single column */
    width: 100%;               /* Ensures it touches the edges of the column */
    border-radius: 8px;        /* Softens the look for mobile */
    display: block;            /* Removes tiny gap under images */
  }
  
  .grid li {
    width: 100%;               /* Forces the list item to fill the screen width */
  }
}


 /* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #ddd;
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 20px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffcc00;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffcc00;
}

/* SUBSCRIBE */
.subscribe-form {
  display: flex;
  margin-top: 10px;
}

.subscribe-form input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.subscribe-form button {
  background: #ffcc00;
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
}

@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column; /* Stacks the elements vertically */
    gap: 10px;              /* Adds space between input and button */
  }

  .subscribe-form input,
  .subscribe-form button {
    border-radius: 4px;     /* Rounds all corners for a cleaner look */
    width: 100%;            /* Makes them full width */
    padding: 12px;          /* Larger touch target for mobile fingers */
  }
}


/* BOTTOM */

.footer-container,
.footer-bottom {
  border-top: 1px solid #333;
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin-left: 15px;
  color: #ccc;
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffcc00;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* WordPress default spacing fix */
.wp-site-blocks,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== HERO STATIC SECTION===== */
/* HERO */
.hero-main {
  width: 100%;
  margin: 0;
  margin-top: 0; 
  background: #000; 
}

.hero-banner {
  position: relative;
  max-width: 1400px;   /* control stretch */
  margin: auto;
}

.hero-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}




/* DARK OVERLAY for contrast */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

 
/* CONTENT ABOVE */
.hero-content {.hero-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.05); /* slight zoom */
}
  position: absolute;
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 5%;
  z-index: 2;
  color: #fff;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* BUTTON */
.hero-btn {
  background: #e50914;
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.hero-btn:hover {
  background: #c40812;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-banner img {
    height: 220px;
  }

  .hero-content {
    bottom: 15%;
    left: 4%;
  }

  .hero-content h1 {
    font-size: 18px;
  }

  .hero-content p {
    font-size: 13px;
  }
}

 
/* CATEGORY BAR */
.category-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #111; /* same as header */
  padding: 14px;
}

/* ITEMS */
.category-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s;
}

.category-bar a:hover {
  background: #ffcc00;
  color: #000;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .category-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
  }

  .category-bar a {
    background: #222;
    font-size: 13px;
  }
}
/*
.category-bar {
  display: flex;
  justify-content: center;
  gap: 25px;
  background: #222;
  padding: 12px;
  flex-wrap: wrap;
}

.category-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
}

.category-bar a:hover {
  color: #ffcc00;
}*/

/* MOBILE 
@media (max-width: 768px) {
  .category-bar {
    justify-content: space-around;
    gap: 10px;
  }

  .category-bar a {
    font-size: 14px;
  }
} */

/*===== DEFAULT LINKS ====*/
a {
  color: #222;
  text-decoration: none;
}

/* POST TITLES */
.grid h3 {
  color: #111;
  font-weight: 600;
}

.grid a:hover h3 {
  color: #ff6600; /* highlight on hover */
}

/* GENERAL HOVER */
a:hover {
  color: #ff6600;
}

/* VIEW ALL LINK */
.view-all {
  color: #ff6600;
  font-weight: 500;
}

/* DARK BG LINKS */
.hero-slider a h2 {
  color: #fff;
}

/* Reduce excessive whitespace around header and main menu */
.site-header, header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.main-navigation {
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}

/* Fix mobile spacing between image and text in archive cards */
@media (max-width: 768px) {
    .compact-post-card {
        margin-bottom: 20px !important;
    }
    .compact-post-data {
        padding: 12px 15px !important;
    }
    .compact-post-title {
        margin-top: 5px !important; /* Prevents text from sticking to the image */
    }
    .site-branding {
        padding: 10px 0 !important;
    }
}

/* Footer layout anchoring */
footer {
    margin-top: 50px !important;
    padding: 20px 0 !important;
    background: #111111 !important; /* Professional dark mode footer background */
    color: #ffffff !important;
}

footer a {
    color: #FFC107 !important; /* Brand gold links in footer */
}

/* Archive Pages, Tags, categories Start*/
 /* =======================================================
   PREMIUM COMPACT LIST LAYOUT (IMAGE LEFT, TEXT RIGHT)
   ======================================================= */

/* मुख्य रैपर और पेज अलाइनमेंट */
.archive-main-wrapper {
    max-width: 960px !important; /* बहुत ज़्यादा फैला हुआ न दिखे इसलिए परफेक्ट विड्थ */
    margin: 30px auto !important;
    padding: 0 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif !important;
}

/* हेडर टाइटल स्टाइल */
.custom-archive-header {
    border-bottom: 2px solid #FFC107 !important; /* भोजपुरी ब्रांड गोल्ड लाइन */
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
}

.custom-archive-title {
    font-size: 26px !important;
    color: #b30000 !important; /* गहरा सिंदूरी लाल */
    font-weight: 800 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
}

/* पूरी लिस्ट का कंटेनर */
.compact-movie-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important; /* हर कार्ड के बीच में परफेक्ट साफ गैप */
}

/* मुख्य कॉम्पैक्ट कार्ड - डेस्कटॉप पर इमेज लेफ्ट, टेक्स्ट राइट */
.compact-post-card {
    display: flex !important;
    flex-direction: row !important; 
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.compact-post-card:hover {
    transform: translateY(-2px) !important;
    border-color: #b30000 !important; /* होवर पर बॉर्डर लाल */
}

/* 🛠️ इमेज का साइज 100% फिक्स और लॉक करने के लिए (The Ultimate Fix) */
.compact-post-image {
    flex: 0 0 240px !important; /* डेस्कटॉप पर इमेज की चौड़ाई 240px पूरी तरह लॉक */
    width: 240px !important;
    max-width: 240px !important;
    height: 150px !important; /* हाइट 150px पर लॉक (सिनेमा थंबनेल रेशियो) */
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.compact-post-image a, 
.compact-post-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.compact-post-image img {
    object-fit: cover !important; /* इमेज कभी खिंचेगी (stretch) नहीं, परफेक्ट क्रॉप होगी */
}

/* दाईं तरफ का डेटा बॉक्स - जो इमेज के समानांतर चलेगा */
.compact-post-data {
    flex: 1 !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* टॉप पर टाइटल, बॉटम पर बटन */
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* हेडलाइन स्टाइल */
.compact-post-title {
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.compact-post-title a {
    color: #1a202c !important;
    text-decoration: none !important;
}

.compact-post-title a:hover {
    color: #b30000 !important;
}

/* 30-50 शब्दों का एक्सर्प्ट (डिस्क्रिप्शन) */
.compact-post-excerpt {
    color: #4a5568 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2; /* टेक्स्ट ज़्यादा से ज़्यादा 2 लाइन का दिखेगा, ताकि बिखराव न हो */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* छोटा क्लीन रीड-मोड लिंक */
.compact-readmore {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #b30000 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    align-self: flex-start !important;
}

.compact-readmore:hover {
    color: #FFC107 !important;
}

/* =======================================================
   100% RESPONSIVE OVERRIDE (MOBILE-FIRST)
   ======================================================= */
@media (max-width: 768px) {
    .compact-post-card {
        flex-direction: column !important; /* मोबाइल पर इमेज ऊपर, टेक्स्ट नीचे आ जाएगा */
    }
    
    .compact-post-image {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        height: 180px !important; /* मोबाइल पर थोड़ी बड़ी हाइट ताकि फोटो साफ़ दिखे */
    }
    
    .compact-post-data {
        padding: 15px !important;
    }
    
    .compact-post-title {
        font-size: 16px !important;
    }
}

/* पेजिनेशन स्टाइल */
.compact-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 6px;
    justify-content: center;
    margin-top: 30px;
}
.compact-pagination ul li a, .compact-pagination ul li span {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    color: #4a5568;
    border-radius: 4px;
}
.compact-pagination ul li span.current {
    background: #b30000;
    color: #fff;
    border-color: #b30000;
}


/* Archive Pages, Tags, categories End*/


/* =======================================================
   TRENDING STARS CIRCULAR GRID ENGINE
   ======================================================= */

.trending-stars-section {
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stars-section-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #b30000; /* Cinema Red Left Accent */
    padding-left: 10px !important;
    line-height: 1 !important;
}

/* Horizontal Responsive Flex Grid */
.stars-circle-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important; /* Forces wrapping on smaller updates */
}

/* Component Individual Card */
.star-profile-card {
    text-align: center !important;
    flex: 0 0 150px !important; /* Strict lock size on desktop */
}

.star-profile-card a {
    text-decoration: none !important;
    display: block !important;
}

/* 🛠️ The Absolute Circle Lock Fix */
.star-image-container {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 10px auto !important;
    border-radius: 50% !important; /* Perfect Circle */
    overflow: hidden !important;
    border: 3px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease-in-out !important;
    background: #f7fafc;
}

.star-profile-card:hover .star-image-container {
    border-color: #b30000 !important; /* Changes to brand red on hover */
    transform: scale(1.05) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.star-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ensures the headshot crops nicely without distortion */
    display: block !important;
}

/* Typography Name Layout */
.star-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 !important;
    transition: color 0.2s ease;
}

.star-profile-card:hover .star-name {
    color: #b30000 !important;
}

/* =======================================================
   100% MOBILE RESPONSIVE SCROLL OVERRIDE
   ======================================================= */
@media (max-width: 600px) {
    .stars-circle-grid {
        justify-content: flex-start !important;
        overflow-x: auto !important; /* Horizontal swipe on phones like Instagram stories */
        white-space: nowrap !important;
        padding-bottom: 10px !important;
        flex-wrap: nowrap !important;
    }
    
    .star-profile-card {
        flex: 0 0 100px !important; /* Compact design for mobile screens */
    }
    
    .star-image-container {
        width: 80px !important;
        height: 80px !important;
    }
    
    .star-name {
        font-size: 13px !important;
    }
}

/* =======================================================
   INDEPENDENT PAGES CLEAN LAYOUT (ABOUT, CONTACT, ETC.)
   ======================================================= */

.custom-page-main-container {
    max-width: 900px !important; 
    margin: 40px auto !important;
    padding: 0 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif !important;
    box-sizing: border-box !important;
}

.custom-page-content-area {
    background: #ffffff !important;
    padding: 35px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

/* Page Heading Style */
.custom-page-header {
    border-bottom: 2px solid #FFC107 !important; /* भोजपुरी ब्रांड गोल्ड लाइन */
    padding-bottom: 12px !important;
    margin-bottom: 30px !important;
}

.custom-page-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #b30000 !important; /* गहरा सिंदूरी लाल */
    margin: 0 !important;
}

/* Page Body Typography */
.custom-page-body-text {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #2d3748 !important;
}

.custom-page-body-text p {
    margin-bottom: 20px !important;
}

.custom-page-body-text h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

/* 100% Mobile Optimization for Independent Pages */
@media (max-width: 768px) {
    .custom-page-main-container {
        margin: 20px auto !important;
        padding: 0 10px !important;
    }
    .custom-page-content-area {
        padding: 20px 15px !important;
    }
    .custom-page-title {
        font-size: 22px !important;
    }
}

