/* ====================================================
   CAP RAJASTHAN — SITE-WIDE DESIGN UPGRADE
   Apply new blue + gold palette across all pages
==================================================== */

/* ===== 1. Override WordPress theme.json color variables ===== */
:root,
body {
  --wp--preset--color--primary: #0047d6 !important;
  --wp--preset--color--accent: #c9932b !important;
  --wp--preset--color--accent-1: #0047d6 !important;
  --wp--preset--color--accent-2: #c9932b !important;
  --wp--preset--color--accent-3: #0f1724 !important;
  --wp--preset--color--contrast: #1f2937 !important;
  --wp--preset--color--contrast-2: #334155 !important;
  --wp--preset--color--base: #ffffff !important;
  --wp--preset--color--base-2: #f6f7fb !important;

  /* CAP custom tokens (for our custom pages) */
  --cap-blue: #0047d6;
  --cap-blue-dark: #0036a8;
  --cap-gold: #c9932b;
  --cap-navy: #0f1724;
  --cap-cream: #fbf8f1;
}

/* ===== 2. All default WordPress block buttons → gradient blue ===== */
.wp-block-button__link,
.wp-block-button .wp-block-button__link,
.wp-element-button {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 4px 14px -4px rgba(0, 71, 214, 0.5) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  text-decoration: none !important;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px -6px rgba(0, 71, 214, 0.6) !important;
  color: #ffffff !important;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #0047d6 !important;
  border: 1.5px solid #0047d6 !important;
  box-shadow: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(0, 71, 214, 0.06) !important;
  color: #0036a8 !important;
}

/* ===== 3. Elementor buttons → matching style ===== */
.elementor-button,
.elementor-button-link {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px -4px rgba(0, 71, 214, 0.5) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.elementor-button:hover,
.elementor-button-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px -6px rgba(0, 71, 214, 0.6) !important;
  color: #ffffff !important;
}

/* ===== 4. Links site-wide ===== */
body a:not(.cap-hd *):not(.cap-header *):not(.cap-footer *):not(.wp-block-button__link):not(.elementor-button):not(.cap-btn):not(.cap-help-desk-btn) {
  color: #0047d6;
  transition: color 0.18s ease;
}
body a:hover:not(.cap-hd *):not(.cap-header *):not(.cap-footer *):not(.wp-block-button__link):not(.elementor-button):not(.cap-btn):not(.cap-help-desk-btn) {
  color: #0036a8;
}

/* ===== 5. Category labels on homepage and archives ===== */
.wp-block-post-terms,
.taxonomy-category,
.post-categories,
.entry-category,
a[rel~="category tag"]:not(body.single *):not(body.archive *):not(body.author *) {
  display: inline-block;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: #0047d6 !important;
  background: rgba(0, 71, 214, 0.08) !important;
  border-radius: 4px !important;
  -webkit-text-fill-color: #0047d6 !important;
  text-decoration: none !important;
}
.wp-block-post-terms a,
.post-categories a,
.entry-category a {
  color: #0047d6 !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #0047d6 !important;
}

/* ===== 6. Post title hover effect (homepage article cards) ===== */
.wp-block-post-title a:hover,
.entry-title a:hover,
h2.wp-block-post-title a:hover,
h3.wp-block-post-title a:hover {
  color: #0047d6 !important;
}

/* ===== 7. "Read here" / download buttons on homepage ===== */
.wp-block-file__button,
a.wp-block-file__button {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px -4px rgba(0, 71, 214, 0.5) !important;
  transition: transform 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.wp-block-file__button:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ===== 8. Homepage "Publications / Lectures / Reports" heading style ===== */
.wp-block-heading strong,
h2.wp-block-heading strong {
  position: relative;
  display: inline-block;
}
h2.wp-block-heading {
  position: relative;
  padding-bottom: 12px;
}

/* ===== 9. Newsletter subscribe form (footer/bottom of homepage) ===== */
.wp-block-jetpack-subscriptions input[type="email"],
input.wp-block-jetpack-subscriptions__textfield {
  border: 1px solid rgba(15, 23, 36, 0.15) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
}
.wp-block-jetpack-subscriptions input[type="email"]:focus {
  outline: none !important;
  border-color: #0047d6 !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 214, 0.12) !important;
}
.wp-block-jetpack-subscriptions button,
.jetpack-subscribe-overlay-close,
button.wp-block-jetpack-subscriptions__button {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px -4px rgba(0, 71, 214, 0.5) !important;
}

/* ===== 10. Search & other input fields ===== */
.wp-block-search input[type="search"],
.search-field,
input[type="search"],
input[type="text"]:not(.cap-hd *):not(.cap-header *) {
  border: 1px solid rgba(15, 23, 36, 0.15) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}
.wp-block-search input[type="search"]:focus {
  outline: none !important;
  border-color: #0047d6 !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 214, 0.12) !important;
}
.wp-block-search button {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

/* ===== 11. Sidebar widget headings (gold accent line) ===== */
.wp-block-group > h2.wp-block-heading,
.sidebar h2,
.widget-title,
aside h2 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.wp-block-group > h2.wp-block-heading::after,
.widget-title::after,
aside h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #0047d6, #c9932b);
  border-radius: 3px;
}

/* ===== 12. Pagination (older/newer posts) ===== */
.wp-block-query-pagination a,
.nav-links a,
.page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 16px !important;
  border: 1px solid rgba(15, 23, 36, 0.15) !important;
  border-radius: 8px !important;
  color: #0f1724 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.18s ease !important;
  margin: 0 4px !important;
}
.wp-block-query-pagination a:hover,
.nav-links a:hover,
.page-numbers:hover {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-1px);
}
.page-numbers.current {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* ===== 13. Blockquote style (for articles with default quotes) ===== */
.wp-block-quote:not(.cap-hd *):not(.cap-tagline-card *) {
  position: relative;
  border-left: 4px solid #c9932b !important;
  background: linear-gradient(135deg, #fbf8f1 0%, #ffffff 100%) !important;
  padding: 20px 24px !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 24px 0 !important;
}

/* ===== 14. Featured post images (homepage article grid) ===== */
.wp-block-post-featured-image img {
  border-radius: 12px !important;
  transition: transform 0.3s ease;
}
.wp-block-post-featured-image:hover img {
  transform: scale(1.02);
}

/* ===== 15. Author avatar circles ===== */
.wp-block-avatar img,
.avatar {
  border-radius: 50% !important;
  border: 2px solid rgba(201, 147, 43, 0.2);
  transition: border-color 0.2s ease;
}
.wp-block-avatar:hover img,
a:hover .avatar {
  border-color: #c9932b;
}

/* ===== 16. "Subscribe" / "Submissions" strong button style in feature boxes ===== */
.wp-block-group strong a,
.wp-block-column strong a,
h2 strong a {
  color: #0047d6 !important;
  text-decoration: none !important;
}
.wp-block-group strong a:hover {
  color: #0036a8 !important;
}

/* ===== 17. Team member cards (homepage "Meet our team") ===== */
.wp-block-columns .wp-block-column img[src*="uploads"] {
  border-radius: 12px !important;
  transition: transform 0.3s ease;
}

/* ===== 18. "Shaping Rajasthan's Future" section cards ===== */
.wp-block-columns .wp-block-column h3 a {
  color: #0f1724 !important;
  transition: color 0.18s ease;
  text-decoration: none !important;
}
.wp-block-columns .wp-block-column h3 a:hover {
  color: #0047d6 !important;
}

/* ===== 19. Tab navigation (Article / Opinion / Survey tabs on homepage) ===== */
.ub-tabs-nav a,
.ub-tabs-nav li {
  font-weight: 600 !important;
  color: #334155 !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  transition: all 0.18s ease !important;
}
.ub-tabs-nav li.active,
.ub-tabs-nav li.ub-active-tab,
.ub-tabs-nav a.active {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
}

/* ===========================
   CATEGORY STYLE
   Only on single post, archive, author archive
   =========================== */
body.single .taxonomy-category a,
body.single .wp-block-post-terms.taxonomy-category a,
body.archive .taxonomy-category a,
body.archive .wp-block-post-terms.taxonomy-category a,
body.author .taxonomy-category a,
body.author .wp-block-post-terms.taxonomy-category a,
body.single a[rel~="category"],
body.archive a[rel~="category"],
body.author a[rel~="category"],
body.single a[rel~="category tag"],
body.archive a[rel~="category tag"],
body.author a[rel~="category tag"] {
  color: #cc0000 !important;       /* strong red */
  font-weight: normal !important;  /* not bold */
  text-decoration: none !important;
  -webkit-text-fill-color: #cc0000 !important;
}

/* Hover/visited states stay red */
body.single .taxonomy-category a:link,
body.single .taxonomy-category a:visited,
body.single .taxonomy-category a:hover,
body.single .taxonomy-category a:active,
body.archive .taxonomy-category a:link,
body.archive .taxonomy-category a:visited,
body.archive .taxonomy-category a:hover,
body.archive .taxonomy-category a:active,
body.author .taxonomy-category a:link,
body.author .taxonomy-category a:visited,
body.author .taxonomy-category a:hover,
body.author .taxonomy-category a:active {
  color: #cc0000 !important;
  text-decoration: none !important;
}

/* =========================
   Final: Full-width Readability for single post content
   - excludes PublishPress author box
   - fluid typography
   - works on all devices
   ========================= */

/* 1) Main post container: full width */
.single-post .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  padding-left: 0 !important;
  padding-right: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: none !important;
  color: #222;
}

/* 2) Body text & inline elements (exclude author box) */
.single-post .entry-content :is(p, li, span, strong, a):not(.pp-multiple-authors-boxes-wrapper *) {
  font-size: clamp(16px, 1.2vw + 0.5rem, 20px) !important;
  line-height: 1.65 !important;
  margin-bottom: 1.1rem !important;
  color: #222 !important;
}

/* 3) Headings */
/* Strong override: set only H2 color on single post content (and force child elements/links) */
html body.single .entry-content h2:not(.pp-multiple-authors-boxes-wrapper h2),
html body.single .entry-content h2:not(.pp-multiple-authors-boxes-wrapper h2) * {
  color: #0056D2 !important;   /* your blue */
}

/* also ensure link states inside H2 stay the same */
html body.single .entry-content h2:not(.pp-multiple-authors-boxes-wrapper h2) a:link,
html body.single .entry-content h2:not(.pp-multiple-authors-boxes-wrapper h2) a:visited,
html body.single .entry-content h2:not(.pp-multiple-authors-boxes-wrapper h2) a:hover,
html body.single .entry-content h2:not(.pp-multiple-authors-boxes-wrapper h2) a:active {
  color: #0056D2 !important;
}

.single-post .entry-content h1 { font-size: clamp(32px, 2.5vw + 1rem, 42px) !important; }
.single-post .entry-content h2 { font-size: clamp(26px, 2vw + 0.5rem, 32px) !important; }
.single-post .entry-content h3 { font-size: clamp(20px, 1.5vw + 0.5rem, 26px) !important; }
.single-post .entry-content h4 { font-size: clamp(18px, 1vw + 0.5rem, 22px) !important; }


/* 4) Links (no underline) */
.single-post .entry-content a:not(.pp-multiple-authors-boxes-wrapper a) {
  color: #2b66b3 !important;
  text-decoration: none !important;   /* no underline */
}

.single-post .entry-content a:hover:not(.pp-multiple-authors-boxes-wrapper a) {
  text-decoration: underline !important;  /* optional: show underline on hover */
}

/* 5) Lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 1.2rem 1.5rem !important;
  padding: 0 !important;
}
.single-post .entry-content li { margin-bottom: 0.6rem !important; }

/* 6) Blockquotes - Modern colorful style */
.single-post .entry-content blockquote {
  position: relative;
  margin: 2rem auto !important;
  padding: 1.2rem 1.5rem 1.2rem 2rem !important;
  border-left: 6px solid #3C78C2 !important; /* accent color */
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%) !important;
  color: #2a2a2a !important;
  font-style: normal !important;
  font-size: clamp(17px, 1vw + 0.5rem, 20px) !important;
  line-height: 1.7 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(60,120,194,0.12) !important;
}

/* Add a decorative quotation mark */
.single-post .entry-content blockquote::before {
  content: "❝";
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 32px;
  color: #3C78C2;
  opacity: 0.3;
}

/* Optional: cite / footer inside blockquote */
.single-post .entry-content blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 15px;
  color: #3C78C2;
  font-weight: 600;
  text-align: right;
}

/* 7) Images */
.single-post .entry-content img,
.single-post .entry-content figure img {
  width: 100% !important;       /* stretch full width */
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1.5rem 0 !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 18px rgba(30,30,30,0.04) !important;
}

/* 8) Captions & code */
.single-post .entry-content figcaption {
  font-size: 14px !important;
  color: #666 !important;
  margin-top: 6px !important;
  text-align: center;
}

.single-post .entry-content pre,
.single-post .entry-content code {
  background:#f6f8fa !important;
  padding:8px 12px !important;
  border-radius:6px !important;
  font-size:14px !important;
  overflow-x:auto !important;
}

/* 9) Mobile adjustments */
@media (max-width: 860px) {
  .single-post .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .single-post .entry-content :is(p, li) {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}


/* Justify text only inside single post content */
body.single .entry-content,
body.single .post-content {
  text-align: justify;
  text-justify: inter-word;   /* Better spacing between words */
  hyphens: none;              /* Prevent word-breaking */
  word-break: normal;         /* Keep words whole */
  overflow-wrap: normal;      /* Avoid forced wrapping */
}

/* Sharper, bolder headings only in single posts */
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
  font-weight: 700 !important;       /* strong bold */
  color: #111 !important;            /* darker text for sharpness */
  letter-spacing: -0.3px !important; /* slightly tighter for crisp look */
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ===== CAP Rajasthan — Single Event Page ===== */

/* Center the whole thing and give breathing room */
.single-tribe_events .tribe-events-single {
 max-width: 780px;
 margin: 30px auto;
 padding: 0 20px;
}

/* Breadcrumb */
.single-tribe_events .tribe-events-back,
.single-tribe_events .tribe-events-event-schedule {
 font-size: 13px;
 color: #666;
}

/* Main event title — big and bold */
.single-tribe_events .tribe-events-single-event-title {
 font-size: 28px;
 line-height: 1.25;
 font-weight: 700;
 color: #1a1a1a;
 margin: 20px 0 12px;
}

/* Event meta box (date, time, venue) — card style */
.single-tribe_events .tribe-events-schedule {
 background: #fff7f3;
 border: 1px solid #ffccb8;
 border-radius: 10px;
 padding: 16px 20px;
 margin-bottom: 24px;
}

.single-tribe_events .tribe-events-schedule h2 {
 color: #ff5722;
 font-size: 15px;
 font-weight: 600;
 margin: 0;
}

/* Featured image / poster — controlled size */
.single-tribe_events .tribe-events-event-image img {
 max-width: 100%;
 max-height: 480px;
 object-fit: contain;
 border-radius: 10px;
 margin: 20px 0;
 background: #f8f8f8;
}

/* Description / content */
.single-tribe_events .tribe-events-single-event-description {
 font-size: 15px;
 line-height: 1.75;
 color: #333;
}

.single-tribe_events .tribe-events-single-event-description h2,
.single-tribe_events .tribe-events-single-event-description h3,
.single-tribe_events .tribe-events-single-event-description h4 {
 color: #1a1a1a;
 margin-top: 28px;
 margin-bottom: 10px;
 font-weight: 700;
}

.single-tribe_events .tribe-events-single-event-description h4 {
 font-size: 14px;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: #ff5722;
}

.single-tribe_events .tribe-events-single-event-description p {
 margin-bottom: 14px;
}

/* Event details sidebar (date, time, venue, organizer) */
.single-tribe_events .tribe-events-meta-group {
 background: #fff;
 border: 1px solid #e5e5e5;
 border-radius: 10px;
 padding: 20px;
 margin-bottom: 16px;
}

.single-tribe_events .tribe-events-meta-group-header,
.single-tribe_events .tribe-events-single-section-title {
 font-size: 11px;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: #888;
 font-weight: 600;
 margin-bottom: 12px;
 border-bottom: 1px solid #f0f0f0;
 padding-bottom: 8px;
}

.single-tribe_events .tribe-events-meta-group dt {
 font-size: 12px;
 color: #666;
 font-weight: 500;
 margin-top: 10px;
}

.single-tribe_events .tribe-events-meta-group dd {
 font-size: 14px;
 color: #1a1a1a;
 font-weight: 600;
 margin-left: 0;
}

/* Calendar buttons (Add to Google Calendar, iCal) */
.single-tribe_events .tribe-events-cal-links a {
 display: inline-block;
 background: #fff;
 color: #1a1a1a;
 border: 1px solid #ddd;
 padding: 8px 14px;
 border-radius: 6px;
 font-size: 13px;
 text-decoration: none;
 margin-right: 8px;
 margin-bottom: 8px;
 transition: all 0.2s;
}

.single-tribe_events .tribe-events-cal-links a:hover {
 background: #ff5722;
 color: #fff;
 border-color: #ff5722;
}

/* Previous / Next event navigation */
.single-tribe_events .tribe-events-nav-pagination {
 border-top: 1px solid #e5e5e5;
 padding-top: 20px;
 margin-top: 30px;
}

.single-tribe_events .tribe-events-nav-pagination a {
 color: #ff5722;
 text-decoration: none;
 font-weight: 600;
}

.single-tribe_events .tribe-events-nav-pagination a:hover {
 text-decoration: underline;
}

/* Hide the exposed Google Meet URL in description (ugly and security risk) */
.single-tribe_events .tribe-events-single-event-description a[href*="meet.google.com"] {
 display: inline-block;
 background: #ff5722;
 color: #fff !important;
 padding: 8px 14px;
 border-radius: 6px;
 font-weight: 600;
 text-decoration: none;
 font-size: 13px;
}

.single-tribe_events .tribe-events-single-event-description a[href*="meet.google.com"]::before {
 content: "▶ Join Google Meet";
 display: block;
}

.single-tribe_events .tribe-events-single-event-description a[href*="meet.google.com"] {
 font-size: 0;
}

.single-tribe_events .tribe-events-single-event-description a[href*="meet.google.com"]::before {
 font-size: 13px;
}

/* Mobile friendly */
@media (max-width: 768px) {
 .single-tribe_events .tribe-events-single-event-title {
 font-size: 22px;
 }
 
 .single-tribe_events .tribe-events-single {
 padding: 0 15px;
 }
}

/* ====================================================
   CAP Rajasthan - Scholar Help Desk (Hindi, Form-First)
==================================================== */

.cap-hd {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
  color: #1f2937;
  line-height: 1.75;
  box-sizing: border-box;
}

.cap-hd,
.cap-hd h1, .cap-hd h2, .cap-hd h3, .cap-hd h4, .cap-hd h5,
.cap-hd p, .cap-hd a, .cap-hd span, .cap-hd strong, .cap-hd em,
.cap-hd li, .cap-hd button, .cap-hd summary {
  font-family: inherit;
}

.cap-hd *,
.cap-hd *::before,
.cap-hd *::after {
  box-sizing: border-box;
}

.cap-hd p { margin: 0 0 18px; font-size: 16px; color: #334155; line-height: 1.8; }
.cap-hd strong { color: #0f1724; font-weight: 700; }
.cap-hd a { color: #0047d6; text-decoration: none; }
.cap-hd a:hover { text-decoration: underline; }

.cap-hd .cap-h2 {
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
  color: #0f1724;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.cap-hd .cap-lead {
  font-size: 16px;
  color: #475569;
  margin-bottom: 28px;
  max-width: 800px;
  line-height: 1.75;
}

/* ===== COMPACT HERO (form-first layout) ===== */
.cap-hd-hero-compact {
  text-align: center;
  padding: 36px 0 30px;
  margin-bottom: 28px;
}
.cap-hd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #334155;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 999px;
  margin-bottom: 18px;
}
.cap-hd .cap-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c9932b;
  box-shadow: 0 0 0 4px rgba(201, 147, 43, 0.18);
  display: inline-block;
}
.cap-hd-title {
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f1724;
  margin: 0 auto 16px;
}
.cap-hd-title em {
  font-style: italic;
  color: #0047d6;
  font-weight: 700;
}
.cap-hd-lede {
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
  max-width: 720px;
  margin: 0 auto 22px;
}
.cap-hd-lede-strong {
  color: #0f1724;
  font-weight: 700;
}
.cap-hd-trust-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cap-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f1724;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 36, 0.1);
  border-radius: 999px;
}
.cap-trust-chip svg { color: #10a05a; flex-shrink: 0; }
.cap-trust-chip:nth-child(2) svg { color: #0047d6; }
.cap-trust-chip:nth-child(3) svg { color: #c9932b; }

/* ===== Section spacing ===== */
.cap-hd .cap-section { margin-bottom: 56px; }

/* ===== FORM SECTION (now at top) ===== */
.cap-hd-form-section {
  background: linear-gradient(135deg, #fbf8f1 0%, #f6f7fb 100%);
  border-radius: 20px;
  padding: 44px 40px;
  border: 1px solid rgba(15, 23, 36, 0.06);
  margin-bottom: 56px;
}
.cap-hd-form-header {
  text-align: center;
  margin-bottom: 28px;
}
.cap-hd-form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #0047d6;
  padding: 7px 14px;
  background: rgba(0, 71, 214, 0.08);
  border-radius: 999px;
  margin-bottom: 16px;
}
.cap-hd-form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 34px;
  box-shadow: 0 10px 40px -20px rgba(15, 23, 36, 0.15);
  border: 1px solid rgba(15, 23, 36, 0.06);
  max-width: 820px;
  margin: 0 auto;
}

/* Style the form fields (Jetpack contact form structure) */
.cap-hd-form-wrapper input[type="text"],
.cap-hd-form-wrapper input[type="email"],
.cap-hd-form-wrapper input[type="tel"],
.cap-hd-form-wrapper input[type="url"],
.cap-hd-form-wrapper select,
.cap-hd-form-wrapper textarea {
  width: 100%;
  padding: 12px 14px !important;
  border: 1px solid rgba(15, 23, 36, 0.15) !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: #0f1724 !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 4px;
}
.cap-hd-form-wrapper input:focus,
.cap-hd-form-wrapper select:focus,
.cap-hd-form-wrapper textarea:focus {
  outline: none !important;
  border-color: #0047d6 !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 214, 0.12) !important;
}
.cap-hd-form-wrapper label {
  font-weight: 600;
  font-size: 14px;
  color: #0f1724;
  margin-bottom: 6px;
  display: block;
  margin-top: 14px;
}
.cap-hd-form-wrapper button[type="submit"],
.cap-hd-form-wrapper input[type="submit"] {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 36px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px -4px rgba(0, 71, 214, 0.5) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  margin-top: 16px;
}
.cap-hd-form-wrapper button[type="submit"]:hover,
.cap-hd-form-wrapper input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(0, 71, 214, 0.6) !important;
}

/* ===== INTRO + PROMISE SIDEBAR ===== */
.cap-hd-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.cap-hd-intro-text h2 { margin-bottom: 18px; }
.cap-hd-promise {
  background: linear-gradient(135deg, #fbf8f1 0%, #ffffff 100%);
  border: 1px solid rgba(201, 147, 43, 0.3);
  border-radius: 14px;
  padding: 28px 26px;
  position: sticky;
  top: 20px;
}
.cap-hd-promise h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c9932b;
  margin: 0 0 16px;
}
.cap-hd-promise ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-hd-promise ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.6;
  list-style: none;
}
.cap-hd-promise ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: #c9932b;
  border-radius: 50%;
}
.cap-hd-promise ul li strong { color: #0f1724; display: block; margin-bottom: 2px; }

/* ===== CATEGORIES ===== */
.cap-hd-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.cap-hd-category {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 14px;
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cap-hd-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(15, 23, 36, 0.15);
}
.cap-hd-category-sensitive {
  border-left: 3px solid #dc2626;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 40%);
}
.cap-sensitive-badge {
  position: absolute;
  top: 28px;
  right: 26px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #dc2626;
  padding: 4px 10px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 4px;
}
.cap-hd-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cap-hd-cat-icon-gold { background: rgba(201, 147, 43, 0.12); color: #c9932b; }
.cap-hd-cat-icon-blue { background: rgba(0, 71, 214, 0.08); color: #0047d6; }
.cap-hd-cat-icon-red { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.cap-hd-category h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f1724;
  margin: 0 0 10px;
  line-height: 1.35;
}
.cap-hd-category > p {
  font-size: 14.5px;
  color: #475569;
  margin: 0 0 14px;
  line-height: 1.65;
}
.cap-hd-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(15, 23, 36, 0.12);
}
.cap-hd-cat-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 7px;
  list-style: none;
  line-height: 1.55;
}
.cap-hd-cat-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #c9932b;
  font-weight: 700;
}

/* ===== STEPS ===== */
.cap-hd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.cap-hd-step {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 12px;
  padding: 24px 22px;
}
.cap-hd-step-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 15px;
}
.cap-hd-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f1724;
  margin: 0 0 6px;
}
.cap-hd-step p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.65;
}

/* ===== PRIVACY (dark block) ===== */
.cap-hd-privacy {
  background: linear-gradient(135deg, #0f1724 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 52px 40px;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cap-hd-privacy::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201, 147, 43, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cap-hd-privacy-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.cap-hd-privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: rgba(201, 147, 43, 0.15);
  border: 1px solid rgba(201, 147, 43, 0.3);
  color: #c9932b;
  border-radius: 14px;
  margin-bottom: 20px;
}
.cap-hd .cap-h2-light {
  color: #ffffff !important;
  margin-bottom: 14px !important;
}
.cap-hd-privacy p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 28px;
}
.cap-hd-privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  max-width: 740px;
  margin: 0 auto;
}
.cap-hd-privacy-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}
.cap-hd-privacy-point strong { color: #ffffff; }
.cap-hd-privacy-point a { color: #c9932b !important; }
.cap-hd-privacy-point a:hover { text-decoration: underline; }
.cap-hd-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 160, 90, 0.2);
  color: #10a05a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

/* ===== FAQ ===== */
.cap-hd-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.cap-hd-faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 12px;
  padding: 0 24px;
  transition: border-color 0.2s ease;
}
.cap-hd-faq-item[open] {
  border-color: rgba(0, 71, 214, 0.25);
}
.cap-hd-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f1724;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}
.cap-hd-faq-item summary::-webkit-details-marker { display: none; }
.cap-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 71, 214, 0.08);
  color: #0047d6;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.cap-hd-faq-item[open] .cap-faq-icon {
  transform: rotate(45deg);
}
.cap-hd-faq-item p {
  padding: 0 0 20px;
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.75;
}
.cap-hd-faq-item p a { font-weight: 600; }

/* ===== FINAL CTA ===== */
.cap-hd-final {
  background: linear-gradient(135deg, #0f1724 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 52px 40px;
  margin: 60px 0 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cap-hd-final::before {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0, 71, 214, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cap-hd-final-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.cap-hd-final p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 26px;
  line-height: 1.75;
}
.cap-hd-final-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.cap-hd .cap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.cap-hd .cap-btn-primary {
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px -4px rgba(0, 71, 214, 0.5);
}
.cap-hd .cap-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(0, 71, 214, 0.6);
}
.cap-hd .cap-btn-ghost-light {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.cap-hd .cap-btn-ghost-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cap-hd-intro { grid-template-columns: 1fr; }
  .cap-hd-promise { position: static; }
  .cap-hd-categories { grid-template-columns: 1fr; }
  .cap-hd-steps { grid-template-columns: repeat(2, 1fr); }
  .cap-hd-privacy-points { grid-template-columns: 1fr; }
  .cap-hd-privacy { padding: 40px 26px; }
  .cap-hd-form-section { padding: 36px 22px; }
  .cap-hd-form-wrapper { padding: 26px 20px; }
}
@media (max-width: 540px) {
  .cap-hd { padding: 0 16px; }
  .cap-hd-steps { grid-template-columns: 1fr; }
  .cap-hd-category { padding: 24px 22px; }
  .cap-sensitive-badge { position: static; display: inline-block; margin-bottom: 12px; }
  .cap-hd .cap-btn { width: 100%; justify-content: center; }
}

/* ====================================================
   CAP Rajasthan - Homepage Tagline Section
==================================================== */

.cap-tagline-section {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  font-family: inherit;
  box-sizing: border-box;
}

.cap-tagline-section *,
.cap-tagline-section *::before,
.cap-tagline-section *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* ===== Tagline card ===== */
.cap-tagline-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 56px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 1px 2px rgba(15, 23, 36, 0.04),
    0 20px 50px -25px rgba(15, 23, 36, 0.18);
  border: 1px solid rgba(15, 23, 36, 0.06);
  overflow: hidden;
}

.cap-tagline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(201, 147, 43, 0.5) 0%,
    transparent 35%,
    transparent 65%,
    rgba(0, 71, 214, 0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.cap-quote-mark {
  font-size: 90px;
  line-height: 0.5;
  color: #c9932b;
  opacity: 0.35;
  font-style: italic;
  display: block;
  height: 28px;
  margin-bottom: 8px;
  font-weight: 700;
}

.cap-tagline-text {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  color: #1f2937;
  letter-spacing: 0.005em;
  margin: 0;
}

.cap-tagline-text .cap-highlight {
  background-image: linear-gradient(transparent 70%, rgba(201, 147, 43, 0.3) 70%);
  padding: 0 2px;
  font-weight: 700;
  font-style: normal;
  color: #0f1724;
}

.cap-divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.cap-divider-line > span {
  height: 1px;
  width: 40px;
  background: rgba(15, 23, 36, 0.15);
  display: inline-block;
}
.cap-divider-line .cap-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9932b;
  flex-shrink: 0;
}

/* ===== Scholar Help Desk button ===== */
.cap-help-desk-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #0047d6 0%, #0036a8 100%);
  padding: 18px 56px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 4px 14px -4px rgba(0, 71, 214, 0.5),
    0 10px 30px -10px rgba(0, 71, 214, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  width: auto;
  max-width: none;
}

.cap-help-desk-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent);
  transition: left 0.6s ease;
}

.cap-help-desk-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow:
    0 6px 18px -4px rgba(0, 71, 214, 0.6),
    0 16px 36px -10px rgba(0, 71, 214, 0.5);
}
.cap-help-desk-btn:hover::before {
  left: 100%;
}

.cap-help-desk-btn .cap-arrow {
  transition: transform 0.2s ease;
}
.cap-help-desk-btn:hover .cap-arrow {
  transform: translateX(4px);
}

/* ====================================================
   FIX: Make nav wrapper invisible on mobile but keep hamburger
==================================================== */
@media (max-width: 1024px) {
  .cap-header-nav-wrap {
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .cap-header-nav-inner {
    padding: 0 !important;
    min-height: 0 !important;
    justify-content: flex-end !important;
  }
  .cap-header-hamburger {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
  }
}

/* Put hamburger inside the brand block on mobile so it's visible */
@media (max-width: 1024px) {
  .cap-header-brand-block {
    position: relative !important;
  }
}