/*
Theme Name: Ramrajya Dharma
Theme URI:  https://ramlegal.org
Description: Mobile-first WordPress theme for Ramrajya Adhivakta Mahasangh
Author: Ram Legal
Version: 1.8.9-nav-red
*/

/* =========================================================
   BASE VARIABLES
   ========================================================= */
:root {
  --saffron: #EBA937;
  --deepred: #A91D1D;
  --cream: #F5E5C0;
  --charcoal: #2B1B17;
  --max-width: 1080px;
  --base-font: "Merriweather Sans", Arial, sans-serif;
  --dev-font: "Noto Serif Devanagari", serif;
}

/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */
* { box-sizing: border-box; }
html, body, #page {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body {
  font-family: var(--base-font);
  color: var(--charcoal);
  background: linear-gradient(180deg, #fffdf8 0%, #fffefb 100%);
  line-height: 1.5;
}
#page { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; width: 100%; }

/* =========================================================
   HEADER + HERO  (v1.8.9-nav-red)
   ========================================================= */
.site-header {
  background: linear-gradient(
    180deg,
    #e99e1f 0%,
    #f4b739 40%,
    #f9d56b 70%,
    #fff4c9 93%,
    #fffaf0 100%
  );
  border-bottom: 4px solid var(--saffron);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero-banner {
  width: 100%;
  height: 290px;
  background-image: url('https://ramlegal.org/wp-content/uploads/2025/10/RamLegal-Web-Banner.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  background-color: #f4b739;
  position: relative;
  z-index: 3;
  margin: 0;
  border: 0;
  overflow: hidden;
}

/* Responsive heights */
@media (max-width: 1024px) {
  .hero-banner { height: 210px; }
}
@media (max-width: 767px) {
  .hero-banner { height: 160px; }
}
@media (min-width: 1400px) {
  .hero-banner { height: 330px; }
}

/* =========================================================
   HEADER INNER + BRAND
   ========================================================= */
.header-inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 0 .6rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.title-main {
  font-family: var(--dev-font);
  font-weight: 700;
  font-size: 1.9rem;
  color: transparent !important;
  visibility: hidden;
  height: 0;
  margin: 0;
}
.title-sub {
  font-family: "Merriweather", serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0.2rem 0 0.45rem;
  font-weight: 600;
}

/* =========================================================
   NAVIGATION — deep red (footer-style)
   ========================================================= */
.menu-toggle {
  background: none;
  border: 0;
  font-size: 1.35rem;
  color: #fff;
  cursor: pointer;
  z-index: 5;
}
nav.primary-nav {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
  margin-top: 0.9rem;
  padding: 0.3rem 0 0.4rem;
  background: var(--deepred);
  border-top: 2px solid var(--saffron);
  border-bottom: 2px solid var(--saffron);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
nav.primary-nav .menu {
  display: none;
  flex-direction: column;
  align-items: center;
  list-style: none;
  gap: .5rem;
  padding: 0;
  margin: 0;
}
nav.primary-nav.active .menu { display: flex; }
nav.primary-nav .menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: .45rem .9rem;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.3s ease, color 0.3s ease;
}
nav.primary-nav .menu li a:hover,
nav.primary-nav .menu li a:focus {
  background: var(--saffron);
  color: var(--deepred);
}
@media (min-width: 768px) {
  nav.primary-nav .menu {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
  }
  .menu-toggle { display: none; }
  .title-sub { font-size: 1.18rem; }
  nav.primary-nav { margin-top: 1rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: auto;
  padding: 1rem 0;
  background: var(--deepred);
  color: #fff;
  border-top: 3px solid var(--saffron);
  text-align: center;
  width: 100%;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.footer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-text {
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  transition: color .3s ease, text-shadow .3s ease;
}
.footer-text:hover {
  color: var(--saffron);
  text-shadow: 0 0 6px rgba(235,169,55,0.45);
}
body.admin-bar .site-footer { margin-bottom: 32px; }

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
a:focus, button:focus {
  outline: 3px solid rgba(235,169,55,0.18);
  outline-offset: 2px;
}

/* =========================================================
   END OF STYLE (v1.8.9-nav-red)
   ========================================================= */

/* =========================================================
   PROJECT NYAYA-DHARA – Resources Portal Styling
   ========================================================= */
.resources-hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(180deg,#fffdf8 0%,#fff7e0 100%);
}
.resources-hero h1 { color: var(--deepred); font-size: 2rem; margin-bottom:.4rem; }
.resources-hero .lead { font-size:1.1rem; color:#444; }
.resources-portal { padding: 1rem 0 3rem; }
.resource-category { margin-bottom: 2.5rem; }
.category-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--saffron); margin-bottom: .6rem;
}
.category-header h2 { color: var(--deepred); margin:0; font-size:1.3rem; }
.category-header .view-all {
  color: var(--deepred); text-decoration:none; font-weight:600;
}
.category-header .view-all:hover { color: var(--saffron); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1rem;
}
.resource-card {
  background: #fffdf5;
  border: 1px solid rgba(235,169,55,0.4);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 1rem;
  transition: transform .2s ease, box-shadow .3s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.resource-card .resource-title {
  color: var(--deepred);
  margin: 0.4rem 0;
  font-size: 1.05rem;
}
.resource-card .meta { font-size: .8rem; color: #777; }
.resource-card .excerpt { font-size: .9rem; color: #333; margin-top: .4rem; }
.no-posts { font-style: italic; color: #777; margin: 1rem 0; text-align: center; }
@media (max-width:600px){ .resources-hero h1{font-size:1.6rem;} }
/* =========================================================
   RESOURCES PORTAL LAYOUT – v2.1 Enhancement
   ========================================================= */
.resources-list { margin-top: 2rem; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: #fffdf8;
  border: 1px solid rgba(235,169,55,0.3);
  border-radius: 8px;
  padding: 1rem;
  transition: all .25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.resource-title {
  color: var(--deepred);
  margin: 0.4rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.resource-card .meta {
  font-size: 0.85rem;
  color: #777;
}
.resource-card .excerpt {
  font-size: 0.92rem;
  color: #333;
  margin-top: 0.3rem;
}
.no-posts {
  text-align: center;
  font-style: italic;
  color: #777;
  padding: 1rem;
}
.resource-card .meta {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.resource-card .credit {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--deepred);
  margin-top: 0.3rem;
}
/* =========================================================
   RESOURCES: READ MORE LINK STYLE
   ========================================================= */
.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--deepred);
  text-decoration: none;
  transition: color 0.25s ease;
}
.read-more:hover {
  color: var(--saffron);
  text-decoration: underline;
}
/* =========================================================
   RSS / Email readability
   ========================================================= */
.rss-summary p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
.footer-subscribe {
  background: linear-gradient(90deg, #A91D1D, #EBA937);
  color: #fff;
  text-align: center;
  padding: 1.2rem 0.8rem;
  border-top: 3px solid var(--saffron);
}
.subscribe-title {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.subscribe-tagline {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  color: #fff8e6;
}
.ram-subscribe-form input[type="email"] {
  width: 65%;
  padding: 0.4rem;
  margin-bottom: 0.3rem;
}
.ram-subscribe-form button {
  padding: 0.4rem 1rem;
  background: #fff;
  color: #A91D1D;
  font-weight: 700;
  border: none;
  border-radius: 4px;
}
.ram-subscribe-form button:hover {
  background: #F5E5C0;
}
