/*
Theme Name: Universal Gujarat Masterclass Fast Theme
Theme URI: https://universalgujarat.in/
Author: Jagdish Limbadiya - Universal Gujarat Team
Author URI: https://universalgujarat.in/
Description: Super Fast, Simple, Beautiful and Dynamic WordPress News Theme for universalgujarat.in featuring high-speed inline CSS, clean card grids, WhatsApp/Telegram conversion banners, 3-col related posts, and 100% mobile responsiveness.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: universal-gujarat
*/

:root {
  --primary-red: #d90429;
  --primary-navy: #0f172a;
  --whatsapp-green: #25d366;
  --telegram-blue: #0088cc;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --font-family: 'Baloo Bhai 2', 'Inter', sans-serif;
  --transition: all 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* 1. TOP BAR */
.top-bar {
  background-color: var(--primary-navy);
  color: #f1f5f9;
  font-size: 13.5px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.top-left i {
  color: var(--primary-red);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.social-icon:hover {
  background-color: var(--primary-red);
}

/* 2. MAIN HEADER */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img,
.custom-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-red), #b91c1c);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.25);
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-navy);
}

.brand-text p {
  font-size: 12px;
  color: var(--primary-red);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(217, 4, 41, 0.08);
  color: var(--primary-red);
}

.btn-whatsapp-header {
  background-color: var(--whatsapp-green);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.btn-whatsapp-header:hover {
  background-color: #1eb954;
}

/* 3. WHATSAPP & TELEGRAM JOIN BANNER */
.join-banner {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--box-shadow);
}

.join-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.join-banner-left i {
  font-size: 32px;
  color: var(--whatsapp-green);
}

.join-banner-left h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
}

.join-banner-left p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.join-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-wa {
  background-color: var(--whatsapp-green);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-tg {
  background-color: var(--telegram-blue);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 4. MAIN LAYOUT GRID */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 40px;
}

/* Section Header Bar */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.section-title-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 5px 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* HERO BOX (1 BIG + 4 SIDE) */
.hero-box {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--box-shadow);
}

.hero-inner-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.hero-big-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 320px;
}

.hero-big-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-big-card:hover img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.88) 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay h2 {
  color: #ffffff;
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.35;
}

.side-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-row-card {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.news-row-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-row-img {
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
}

.news-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-row-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-navy);
}

.news-row-info span {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

/* CATEGORY BLOCK CARD GRID */
.cat-block-box {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--box-shadow);
}

.cat-cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.card-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-red);
  box-shadow: var(--box-shadow);
}

.card-img {
  height: 145px;
  overflow: hidden;
}

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

.card-body {
  padding: 12px;
}

.card-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-navy);
}

.card-body span {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* 5. SIDEBAR WIDGETS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-box {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: var(--box-shadow);
}

.widget-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--primary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-red);
  min-width: 24px;
}

.trending-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

/* 6. SINGLE POST PAGE STYLING */
.single-post-article {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.post-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red);
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-main-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.post-featured-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.post-featured-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.notice-highlight-box {
  background-color: #e7f9ff;
  border: 1.5px solid #bde7ff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: #0369a1;
}

.table-box-container {
  background-color: #fffdf8;
  border: 1px dashed #2e2e2e;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.table-box-container h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.custom-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.custom-info-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  font-size: 14.5px;
}

.custom-info-table tr:nth-child(even) {
  background-color: #ffffff;
}

.post-body-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
}

.post-body-content p {
  margin-bottom: 16px;
}

.post-body-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 24px 0 12px;
}

.btn-post-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #215bc2;
  color: #ffffff !important;
  padding: 11px 26px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  margin: 16px 0;
}

.btn-post-action:hover {
  background-color: #1d4ed8;
}

.related-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* 7. FOOTER */
.site-footer {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  padding-top: 40px;
  border-top: 4px solid var(--primary-red);
  font-size: 14px;
}

.footer-grid-4col {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: #94a3b8;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-copyright-bar {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* 8. MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner-grid {
    grid-template-columns: 1fr;
  }

  .cat-cards-2col {
    grid-template-columns: 1fr;
  }

  .footer-grid-4col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .top-bar {
    display: none;
  }

  .header-inner {
    padding: 10px 0;
  }

  .nav-links {
    display: none;
  }

  .join-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-grid-3col {
    grid-template-columns: 1fr;
  }

  .footer-grid-4col {
    grid-template-columns: 1fr;
  }
}
