/*
Theme Name: College Info Pro
Theme URI: https://collegeinfoindia.com
Author: Antigravity
Description: A premium Full Site Editing block theme designed for educational portals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: college-info-pro
Tags: block-theme, full-site-editing, custom-colors, custom-typography
*/

/* Premium Utilities */
.glass-card {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.secondary-text {
  color: var(--wp--preset--color--secondary-text) !important;
}

.display-heading {
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
}

.meta-text {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--wp--preset--color--secondary-text);
}

/* Vertical Rhythm */
h1 + p,
h2 + p,
h3 + p {
  margin-top: 1rem !important;
}

section + section {
  margin-top: 5rem !important;
}

/* Timeline Stepper */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid #e2e8f0;
  margin-bottom: 2.5rem;
  transition: border-color 0.3s ease;
}

.timeline-item:hover {
  border-left-color: var(--wp--preset--color--accent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

/* Premium Form Styling (Contact Form 7) */
.wpcf7-form p {
  margin-bottom: 0.85rem !important;
}

.wpcf7-form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.wpcf7-form-control:not(.wpcf7-submit) {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box !important;
  padding: 0.85rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #fff;
  font-size: 1rem;
  color: var(--wp--preset--color--contrast);
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

textarea.wpcf7-form-control {
  height: 80px;
  min-height: 80px;
  resize: vertical;
}

/* border-color: var(--wp--preset--color--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(146, 122, 63, 0.1);
} */

/* Premium Table Styling */
.wp-block-table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wp-block-table table {
  width: 100%;
  border: none !important;
}

.wp-block-table thead {
  background-color: var(--wp--preset--color--contrast);
  color: #ffffff;
}

.wp-block-table th {
  padding: 1.25rem 1.5rem !important;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border: none !important;
}

.wp-block-table td {
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: var(--wp--preset--color--primary);
  font-size: 0.95rem;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: #f8fafc;
}

.wp-block-table.is-style-stripes tbody tr:last-child td {
  border-bottom: none !important;
}

/* Section Header Styling */
.section-header {
  margin-bottom: 2.5rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--wp--preset--color--accent);
  border-radius: 2px;
}

.section-header h2,
.section-header h3 {
  margin: 0 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* Facility Chips */
.wp-block-post-terms[data-taxonomy="facility"] .wp-block-post-terms__separator {
  display: none;
}

.wp-block-post-terms[data-taxonomy="facility"] a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f1f5f9;
  color: var(--wp--preset--color--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.wp-block-post-terms[data-taxonomy="facility"] a:hover {
  background: var(--wp--preset--color--accent);
  color: #fff;
  border-color: var(--wp--preset--color--accent);
  transform: translateY(-1px);
}

.wpcf7-submit {
  width: 100%;
  box-sizing: border-box !important;
  padding: 1.25rem !important;
  background-color: var(--wp--preset--color--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 4px 12px rgba(146, 122, 63, 0.2);
}

/* Premium Blog Card Styling */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: var(--wp--preset--color--accent);
}

.blog-card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  color: var(--wp--preset--color--contrast);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--wp--preset--color--primary);
  margin-bottom: 2rem;
}

/* Post Meta Styling */
.post-meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--primary);
  opacity: 0.7;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-meta span::after {
  content: "•";
  margin-left: 1rem;
}

.post-meta span:last-child::after {
  content: none;
}

/* Category Chips (General) */
.category-chip a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f1f5f9;
  color: var(--wp--preset--color--primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-chip a:hover {
  background: var(--wp--preset--color--accent);
  color: #fff;
}

/* Single Post Content Styling */
.single-post-hero {
  padding: 6rem 0 4rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.reading-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--wp--preset--color--contrast);
}

.reading-content p {
  margin-bottom: 2rem;
}

.reading-content h2,
.reading-content h3 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

/* Footer Specific Styling */
.is-style-no-bullets {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.wp-block-group.has-contrast-background-color a {
  color: var(--wp--preset--color--offset);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-block-group.has-contrast-background-color a:hover {
  color: var(--wp--preset--color--accent);
}

.secondary-text {
  opacity: 0.8;
}

.wp-block-group.has-contrast-background-color .wp-block-site-title a {
  color: var(--wp--preset--color--accent) !important;
}

.wpcf7-spinner {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

.wpcf7-response-output {
  margin: 2rem 0 0 !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  border-width: 1px !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .mobile-apply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
  }
}

.timeline-item:hover::before {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  transform: scale(1.2);
}

/* Sticky Header Styling */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  transition: all 0.3s ease;
}

header.wp-block-template-part.is-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sticky-header {
  background: transparent !important;
}

/* Logo Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  background: linear-gradient(
    to right,
    var(--wp--preset--color--offset) 0%,
    transparent 100%
  );
  content: "";
  height: 100%;
  position: absolute;
  width: 10%;
  z-index: 2;
  top: 0;
}

.marquee-container::before {
  left: 0;
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--wp--preset--color--offset) 0%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-marquee 25s linear infinite;
  width: max-content;
  align-items: center;
}

.marquee-track .wp-block-image {
  margin: 0 3rem !important;
  flex-shrink: 0;
}

.marquee-track .wp-block-image img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.marquee-track .wp-block-image img:hover {
  filter: grayscale(0%) !important;
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Header Search - Unified Premium Design */
.header-search {
  margin-right: 1.5rem;
  border: none !important;
}

.header-search .wp-block-search__inside-wrapper {
  padding: 4px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
}

.header-search .wp-block-search__input {
  border: none !important;
  background: transparent !important;
  padding-left: 1rem !important;
  padding-right: 0.5rem !important;
  font-size: 0.95rem !important;
  height: 42px !important;
  box-shadow: none !important;
  color: var(--wp--preset--color--contrast) !important;
  min-width: 0 !important;
  flex-grow: 1 !important;
}

.header-search .wp-block-search__input::placeholder {
  color: #94a3b8;
}

.header-search .wp-block-search__input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.header-search:focus-within .wp-block-search__inside-wrapper {
  background: #ffffff !important;
  border-color: var(--wp--preset--color--accent) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.header-search .wp-block-search__button {
  height: 36px !important;
  width: 44px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--wp--preset--color--accent) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.2s ease !important;
  margin-right: 2px !important;
}

.header-search .wp-block-search__button:hover {
  background-color: var(--wp--preset--color--contrast) !important;
  transform: scale(1.05);
}

.header-search .wp-block-search__button svg {
  width: 16px;
  height: 16px;
}

/* Responsive Navigation & Header */
.sticky-header {
  padding: 0.5rem 2rem !important;
  min-height: 90px;
  display: flex !important;
  align-items: center !important;
}

.custom-site-logo img {
  max-height: 70px !important;
  width: auto !important;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(
    --wp--preset--color--contrast
  ); /* Using contrast (Navy Blue) so it's visible on white bg */
}

.mobile-menu-toggle .line {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .line-top {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .line-middle {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .line-bottom {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .sticky-header {
    padding: 0.5rem 1rem !important;
    min-height: 80px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }
  .custom-site-logo img {
    max-height: 60px !important;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-actions {
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding-top: 1rem !important;
  }

  .header-actions.is-open {
    display: flex !important;
  }

  .header-search {
    margin-right: 0 !important;
    width: 100% !important;
  }

  .header-search .wp-block-search__inside-wrapper {
    width: 100% !important;
  }

  .wp-block-buttons {
    width: 100% !important;
    justify-content: center !important;
  }
  .counseling-modal-trigger {
    width: 100% !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    padding: 0.8rem 1rem !important;
  }
}

/* Get Counseling Header Button */
.counseling-modal-trigger {
  background-color: var(--wp--preset--color--accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem !important;
  transition: all 0.3s ease !important;
}

.counseling-modal-trigger:hover {
  background-color: var(--wp--preset--color--contrast) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section Responsiveness */
@media (max-width: 960px) {
  .wp-block-columns.are-vertically-aligned-center {
    flex-direction: column !important;
  }

  .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    margin-bottom: 2rem;
  }

  .display-heading {
    text-align: center !important;
    font-size: 2.5rem !important;
  }

  .has-secondary-text-color {
    text-align: center !important;
  }

  .wp-block-buttons {
    justify-content: center !important;
  }

  .glass-card {
    padding: 2rem !important;
  }

  .hero-left .wp-block-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-left .wp-block-button {
    width: 100% !important;
  }

  .hero-left .wp-block-button a {
    width: 100% !important;
    text-align: center;
  }

  .hero-left .wp-block-group {
    gap: 0.5rem !important;
  }
}

/* Footer Responsiveness */
@media (max-width: 768px) {
  footer .wp-block-columns {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  footer .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    text-align: center !important;
  }

  footer .wp-block-group.secondary-text {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }
}

/* Global Responsive Adjustments */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  section + section {
    margin-top: 3rem !important; /* Tighten gaps on mobile */
  }

  .wp-block-group.alignfull[style*="padding-top:5rem"],
  .wp-block-group.alignfull[style*="padding-top: 5rem"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* ═══════════════════════════════════════════════
   COLLEGE HERO BANNER
   ═══════════════════════════════════════════════ */
.college-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.verified-badge {
  display: inline-flex !important;
  align-items: center;
  line-height: 1 !important;
  white-space: nowrap;
}

.naac-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8 !important;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  border: 1px solid #bfdbfe;
}

.college-rating {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
}

/* ═══════════════════════════════════════════════
   STATS BAR (below hero)
   ═══════════════════════════════════════════════ */
.college-stats-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 3px solid var(--wp--preset--color--accent);
}

.college-stats-bar .stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.college-stats-bar .stat-value {
  margin: 0 !important;
  line-height: 1.1;
}

.college-stats-bar .stat-label {
  margin: 0.25rem 0 0 0 !important;
}

.college-stats-bar .stat-divider {
  width: 1px !important;
  height: 40px !important;
  border: none !important;
  margin: 0 !important;
  align-self: center;
}

/* ═══════════════════════════════════════════════
   COLLEGE SUB-NAV (sticky tab bar)
   ═══════════════════════════════════════════════ */
.college-sub-nav {
  position: sticky;
  top: 60px;
  z-index: 900;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sub-nav-link {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.sub-nav-link a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--primary) !important;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sub-nav-link a:hover,
.sub-nav-link a.active {
  color: var(--wp--preset--color--accent) !important;
  border-bottom-color: var(--wp--preset--color--accent);
}

/* ═══════════════════════════════════════════════
   COLLEGE CONTENT SECTIONS
   ═══════════════════════════════════════════════ */
.college-section {
  padding-top: 3rem !important;
  padding-bottom: 1rem !important;
  scroll-margin-top: 130px; /* account for sticky header + sub-nav */
}

.college-section + .college-section {
  border-top: 1px solid #f1f5f9;
  margin-top: 0 !important;
}

.section-header-line {
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--wp--preset--color--accent);
}

.section-header-line h2 {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.sidebar-sticky {
  position: sticky;
  top: 130px; /* below header + sub-nav */
}

.sidebar-card {
  transition: box-shadow 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.cip-inquiry-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%) !important;
}

.quick-facts-list .quick-fact-item {
  margin: 0 0 0.6rem 0 !important;
  padding-left: 1.25rem;
  position: relative;
}

.quick-facts-list .quick-fact-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════
   ARCHIVE: BLOG CARDS
   ═══════════════════════════════════════════════ */
.blog-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  background: #ffffff !important;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE QUERY GRID
   ═══════════════════════════════════════════════ */
/* Override Gutenberg's inline styles and flex settings */
.wp-block-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 300px), 1fr)
  ) !important;
  gap: 2.5rem !important;
  justify-content: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.wp-block-query .wp-block-post-template {
  justify-content: center !important;
}

/* Strictly prevent cards from shrinking too much */
.wp-block-query .wp-block-post-template > li {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: auto !important;
  display: flex !important;
  min-width: 0 !important; /* Allow grid item to shrink */
  justify-content: center !important;
}

/* Stream Cards Custom Grid */
.stream-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

.stream-cards-grid > .wp-block-column {
  margin-left: 0 !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

.stream-cards-grid > .wp-block-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 960px) {
  .stream-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .stream-cards-grid {
    gap: 1rem !important;
  }
  .stream-cards-grid .wp-block-column {
    padding: 1.5rem 1rem !important;
  }
  .stream-cards-grid .wp-block-column p[style*="font-size:3rem"] {
    font-size: 2rem !important;
  }
}

/* Card proportions and capping to prevent 'huge' artifacts */
/* Card proportions and capping to prevent 'huge' artifacts */
.blog-card {
  width: 100% !important;
  max-width: 440px !important;
  min-width: 280px !important; /* Physical limit to prevent vertical text */
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 1024px) {
  .wp-block-query .wp-block-post-template {
    gap: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Specific Tablet Refinements to prevent overflow */
@media (max-width: 900px) {
  .college-card .card-stats-row {
    padding: 0.75rem 0.25rem !important;
  }

  .college-card .card-stats-row p {
    font-size: 0.8rem !important;
  }

  .college-card .card-stat-sep {
    display: none !important;
  }

  .college-card .card-stats-row > div {
    flex: 1 1 45%; /* Allow wrapping to 2+1 or 2x2 if needed */
  }
}

.blog-card {
  height: 100%;
}

.blog-card-content {
  padding: 1.5rem !important;
}

.blog-card .wp-block-post-featured-image {
  background: #f1f5f9; /* Light gray fallback if image is missing */
  min-height: 120px;
}

.blog-card .wp-block-post-featured-image img {
  display: block;
}

/* Ensure consistent card height in the grid */
.wp-block-post-template > li {
  display: flex !important;
}

.wp-block-post-template > li > *,
.wp-block-post-template > li > div {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.blog-card-title,
.college-card .wp-block-post-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 2.8em !important; /* Forces 2 lines of space even for short titles */
}

.blog-card-content,
.college-card {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.blog-card-content .wp-block-post-date,
.college-card .card-cta-group {
  margin-top: auto !important;
}

@media (max-width: 480px) {
  .card-footer-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: center !important;
    text-align: center;
  }
}


.category-chip a:hover {
  background: #dbeafe !important;
}

.single-post-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 6rem 1.5rem 4rem !important;
  border-bottom: 1px solid #f1f5f9;
}

.single-post-hero .wp-block-post-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.reading-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.reading-content h2,
.reading-content h3 {
  margin-top: 2.5rem !important;
  margin-bottom: 1.25rem !important;
}

.reading-content p {
  margin-bottom: 1.5rem !important;
}

/* ═══════════════════════════════════════════════
   PLACEMENT PATTERNS
   ═══════════════════════════════════════════════ */
.placement-stat-card {
  text-align: center;
}

/* ═══════════════════════════════════════════════
   ADMISSION STEPS
   ═══════════════════════════════════════════════ */
.admission-step:last-child {
  border-bottom: none !important;
}

.step-number {
  flex-shrink: 0;
  display: inline-block !important;
  line-height: 1 !important;
}

/* ═══════════════════════════════════════════════
   FAQ (Card-style, universally compatible)
   ═══════════════════════════════════════════════ */
.faq-item {
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover {
  background: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-question {
  color: var(--wp--preset--color--contrast) !important;
  cursor: default;
}

/* ═══════════════════════════════════════════════
   REVIEW CARDS
   ═══════════════════════════════════════════════ */
.review-card {
  height: 100%;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: Single College
   ═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   HOME PAGE HERO
   ═══════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, #fffbf0 0%, #f8fafc 60%, #f0f4ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.home-hero .hero-left {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-overline {
  margin: 0 !important;
}

.hero-h1 {
  margin: 0 !important;
}

@media (max-width: 600px) {
  .hero-h1 {
    font-size: 2rem !important; /* Smaller header for mobile */
  }
}

.hero-form-card {
  min-width: 320px;
  max-width: 420px;
  background: #ffffff !important;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.hero-form-card h3 {
  letter-spacing: -0.02em;
}

.hero-form-card .wpcf7-form label {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.trust-pill {
  display: inline-block !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.85rem !important;
  border-radius: 100px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--primary) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .hero-left .wp-block-group:has(.trust-pill) {
    gap: 0.5rem !important;
    justify-content: center;
  }
  .trust-pill {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.65rem !important;
  }
}

/* ═══════════════════════════════════════════════
   HOME STATS BAR
   ═══════════════════════════════════════════════ */
.home-stats-bar {
  background: var(--wp--preset--color--primary);
  text-align: center;
  padding: 1.5rem 0 !important;
}

.home-stats-bar .alignwide {
  margin: 0 auto !important;
  max-width: var(--wp--style--global--content-size) !important;
  display: flex !important;
  justify-content: center !important;
  gap: 4rem !important;
  flex-wrap: wrap !important;
}

.hs-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.2rem !important;
}

.hs-value {
  margin: 0 !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: var(--wp--preset--color--accent) !important;
  line-height: 1.1 !important;
}

.hs-label {
  margin: 0 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ═══════════════════════════════════════════════
   WHY CHOOSE US CARDS
   ═══════════════════════════════════════════════ */
.why-card {
  height: 100%;
  transition: background 0.2s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ═══════════════════════════════════════════════
   BOTTOM CTA BANNER
   ═══════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--primary) 0%,
    #1a2d5a 100%
  );
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: HOME PAGE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .home-hero .alignwide {
    flex-direction: column !important;
    gap: 3rem !important;
  }

  .hero-form-card {
    min-width: unset !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-left {
    max-width: 100% !important;
  }

  .home-stats-bar .alignwide {
    gap: 1.5rem !important;
  }

  .hs-value {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding: 3rem 1.5rem !important;
  }

  .home-stats-bar .alignwide {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem 1.5rem !important;
  }
}

/* ═══════════════════════════════════════════════
   COLLEGE PROFILE PATTERN STYLES
   ═══════════════════════════════════════════════ */
.college-profile-container {
  margin-top: 2rem;
}

.college-stats-bar-premium {
  box-shadow: 0 10px 30px rgba(29, 46, 67, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.college-stats-bar-premium p {
  margin: 0 !important;
}

/* Table of Contents Box */
.college-profile-container h2 {
  margin-top: 4rem !important;
  margin-bottom: 2rem !important;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.college-profile-container .wp-block-table th {
  background-color: #1d2e43 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.college-profile-container .wp-block-table td {
  padding: 1rem !important;
}

/* ═══════════════════════════════════════════════
   RECRUITERS MARQUEE
   ═══════════════════════════════════════════════ */
.recruiters-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: recruiter-scroll 20s linear infinite;
  align-items: center;
}

.marquee-track span {
  font-size: 1.2rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes recruiter-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 1.5rem));
  }
}

/* ═══════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════ */
.faq-accordion details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.faq-accordion details[open] {
  border-color: #927a3f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-accordion summary {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d2e43;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #927a3f;
}

.faq-accordion details[open] summary::after {
  content: "-";
}

.faq-accordion p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #64748b;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   STICKY SIDEBAR FORM
   ═══════════════════════════════════════════════ */
@media (min-width: 960px) {
  .sidebar-sticky {
    position: sticky;
    top: 2rem;
    z-index: 10;
  }
}
@media (max-width: 768px) {
  .sidebar-sticky {
    margin-top: 3rem;
  }
}

/* ═══════════════════════════════════════════════
   GLOBAL COUNSELING MODAL
   ═══════════════════════════════════════════════ */
.counseling-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.counseling-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.counseling-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.counseling-modal-content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.counseling-modal.is-active .counseling-modal-content {
  transform: translateY(0);
}

.counseling-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.counseling-modal-close:hover {
  color: #1d2e43;
}

@media (max-width: 782px) {
    .announcement-bar .wp-block-column:nth-child(1) {
        display: none !important;
    }
	.announcement-bar .wp-block-column:nth-child(3) {
        display: none !important;
    }
}

