/*
Theme Name: MaharashtraDesha Custom
Template: generatepress
Version: 1.0
Description: Optimized and complete child theme for MaharashtraDesha.com with all sections included.
Author: Maharashtra Desha Team
*/

:root {
  --primary-red: #b3000c;
}
/*--------------------------------------------------------------
# General Layout Components
--------------------------------------------------------------*/
.custom-scroll-menu {
  color: white;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  -webkit-overflow-scrolling: touch;
  padding: 3px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  display: none;
}
.custom-scroll-menu::-webkit-scrollbar {
  display: none;
}
.custom-scroll-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}
.custom-scroll-menu li {
  flex-shrink: 0;
}
.custom-scroll-menu li:first-child { margin-left: 15px; }
.custom-scroll-menu li:last-child { margin-right: 15px; }
.custom-scroll-menu a {
  font-size: 17px;
  color: white;
  text-decoration: none;
  padding: 5px 15px;
  border-right: 1px solid rgba(255,255,255,0.3);
  transition: background-color 0.3s, opacity 0.3s;
  display: block;
  white-space: nowrap;
}
.custom-scroll-menu li:last-child a { border-right: none; }
.custom-scroll-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Sticky Custom Menu and content padding */
@media (max-width: 767px) {
  /* Mobile Sticky Custom Menu */
  .custom-scroll-menu {
    display: block !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important; /* z-index वाढवला */
    background-color: var(--primary-red) !important;
  }
 
  /* Fix mobile sticky header shifting */
  .main-navigation.is_stuck,
  .main-navigation {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999 !important;
    transition: none !important;
  }
	
  /* Push content down to avoid overlap */
  .site-content {
    padding-top: 130px !important; /* padding वाढवला */
  }
}

  /* sticky sidebar and logo size */
	.navigation-branding img,
.site-logo.mobile-header-logo img {
  height: 70px !important;
  width: auto !important;
}

@media (min-width: 769px) {
  .sidebar.is-right-sidebar > .inside-right-sidebar {
    position: sticky;
    top: 54px;
  }
}
/*--------------------------------------------------------------
# Shared Card Styles
--------------------------------------------------------------*/
.inb-post-card {
  background: #fff;
  padding: 7.5px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 310px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.inb-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.inb-post-card a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 15px;
  height: 100%;
  box-sizing: border-box;
}

.inb-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  margin-bottom: 9px;
  flex-shrink: 0;
}

.inb-post-card h3 {
  font-size: 17px;      /* Optimized for Marathi readability */
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 0 0 8px 0;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.inb-post-card p,
.inb-post-card .content-text {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

/*--------------------------------------------------------------
# Sections: Related, Popular, Recent
--------------------------------------------------------------*/
.inb-related-posts-container,
.inb-popular-posts,
.inb-recent-posts {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 30px 0;
  padding: 15px;
  background: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.inb-section-title,
.inb-rp-title {
  background-color: var(--primary-red);
  color: #fff;
  font-size: 19px;
  margin: -15px -15px 15px -15px;
  padding: 10px 15px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.inb-related-posts-container ul,
.custom-latest-posts {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}

.inb-related-posts-container li {
  margin-bottom: 10px;
}

.inb-related-posts-container li a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s;
}

.inb-related-posts-container li a:hover {
  color: black;
}

/*--------------------------------------------------------------
# Grid Layout: Cards
--------------------------------------------------------------*/
.inb-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .inb-post-grid {
    grid-template-columns: 1fr;
  }
  .inb-post-card {
    height: auto;
  }
  .inb-post-card img {
    height: 180px;
  }
}


/*--------------------------------------------------------------
# Social Share Buttons
--------------------------------------------------------------*/
.inb-social-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  background: #f9f9f9;
  padding: 15px 20px;
  border-left: 4px solid #005a8d;
  border-radius: 6px;
  font-family: inherit;
  flex-direction: row;
}
.inb-social-share span {
  font-weight: bold;
  color: #222;
  width: 100%;
}
.inb-social-share a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-size: 0.95rem;
}
.inb-social-share a.fb { background: #0e3a75; }
.inb-social-share a.fb:hover { background: #0b2f5c; }
.inb-social-share a.x { background: #000; }
.inb-social-share a.x:hover { background: #1a1a1a; }
.inb-social-share a.wa { background: #117a3d; }
.inb-social-share a.wa:hover { background: #0d5f30; }

@media (max-width: 768px) {
  .inb-social-share {
    flex-direction: column;
    align-items: flex-start;
  }
  .inb-social-share span {
    margin-bottom: 10px;
  }
  .inb-social-share a {
    width: 100%;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# YouTube Subscribe Box
--------------------------------------------------------------*/
.inb-youtube-subscribe-box {
  background: #fff;
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (min-width: 1024px) {
  .inb-youtube-subscribe-box {
    max-width: 800px;
    width: 100%;
    padding: 30px 40px;
  }
}
@media (max-width: 768px) {
  .inb-youtube-subscribe-box {
    flex-direction: column;
    padding: 20px 15px;
    text-align: center;
  }
}
.inb-subscribe-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  word-wrap: break-word;
  max-width: 100%;
}
.inb-subscribe-text {
  width: 100%;
}
.inb-subscribe-text h3,
.inb-subscribe-text p {
  font-size: 1.6rem;
  margin: 0 0 10px;
  color: #333;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}
.inb-subscribe-button {
  background-color: #b3000c;
  color: #fff;
  padding: 12px 35px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  white-space: nowrap;
}
.inb-subscribe-button:hover {
  background: linear-gradient(135deg, #007bff, #00aaff);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.inb-subscribe-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/*--------------------------------------------------------------
# Utility and Mobile Adjustments
--------------------------------------------------------------*/
.reading-time {
  font-size: 14px !important;
  color: #b3000c !important;
  margin-bottom: 15px !important;
  font-style: italic !important;
}

.gb-button-6527303b {
  position: fixed;
  z-index: 23235;
  top: 500px;
}

.rank-math-breadcrumb p {
  background: #e5e8ec;
  color: #000;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

/*--------------------------------------------------------------
# Sticky Footer Menu (Mobile)
--------------------------------------------------------------*/
.sticky-footer-menu {
  position: fixed;
  height: 65px;
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  border-top: 1px solid #ddd;
}
.sticky-footer-menu a {
  text-decoration: none;
  color: #b3000c;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sticky-footer-menu a svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  fill: #b3000c;
}
@media (min-width: 960px) {
  .sticky-footer-menu {
    display: none !important;
  }
}

