/*
Theme Name: CampusChuno
Theme URI: https://campuschuno.com
Author: CampusChuno Team
Author URI: https://campuschuno.com
Description: Official modern, accessible, high-performance WordPress theme for the CampusChuno Indian higher-education discovery platform. Designed according to the CampusChuno Design System.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: campuschuno
Domain Path: /languages
*/

:root {
  /* CampusChuno Design System Tokens */
  --cc-navy-950: #10233F;
  --cc-navy-900: #142E50;
  --cc-navy-800: #183B63;
  --cc-blue-700: #245EA8;
  --cc-blue-600: #2F6FBE;
  --cc-blue-500: #3B82F6;
  --cc-blue-100: #EAF2FC;
  --cc-blue-50:  #F4F8FD;
  --cc-teal-700: #087E79;
  --cc-teal-600: #0E9F99;
  --cc-teal-100: #E5F5F3;
  --cc-teal-50:  #F0FAF9;
  --cc-amber-500:#F59E0B;
  --cc-amber-100:#FEF3C7;

  --cc-ink: #17212F;
  --cc-ink-muted: #5D6878;
  --cc-grey-500: #718096;
  --cc-grey-200: #E2E8F0;
  --cc-grey-100: #F1F5F9;
  --cc-grey-50:  #F8FAFC;
  --cc-line: #E2E8F0;
  
  --cc-surface: #FFFFFF;
  --cc-surface-alt: #F6F8FB;
  --cc-surface-blue: #F1F6FD;
  
  --cc-success: #16794B;
  --cc-warning: #9A5B00;
  --cc-danger: #B42318;
  --cc-overlay: rgba(16, 35, 63, 0.6);

  /* Semantic Aliases */
  --cc-page: var(--cc-surface);
  --cc-panel: var(--cc-surface-alt);
  --cc-card: var(--cc-surface);
  --cc-heading: var(--cc-navy-950);
  --cc-text: var(--cc-ink);
  --cc-muted: var(--cc-ink-muted);
  --cc-link: var(--cc-blue-700);
  --cc-action: var(--cc-blue-600);
  --cc-action-hover: var(--cc-blue-700);
  --cc-on-action: #FFFFFF;
  --cc-accent: var(--cc-teal-700);

  /* Typography */
  --cc-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --cc-font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --cc-space-2xs: 4px;
  --cc-space-xs: 8px;
  --cc-space-sm: 12px;
  --cc-space-md: 16px;
  --cc-space-lg: 24px;
  --cc-space-xl: 32px;
  --cc-space-2xl: 48px;
  --cc-space-3xl: 64px;
  --cc-space-4xl: 80px;

  /* Layout */
  --cc-container-max: 1240px;
  --cc-radius-xs: 4px;
  --cc-radius-sm: 8px;
  --cc-radius-md: 12px;
  --cc-radius-lg: 16px;
  --cc-radius-xl: 24px;
  --cc-radius-full: 9999px;

  /* Shadows */
  --cc-shadow-sm: 0 1px 3px rgba(16, 35, 63, 0.05);
  --cc-shadow-md: 0 4px 12px rgba(16, 35, 63, 0.08);
  --cc-shadow-lg: 0 10px 25px rgba(16, 35, 63, 0.1);
  --cc-shadow-xl: 0 20px 40px rgba(16, 35, 63, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cc-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cc-text);
  background-color: var(--cc-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font-heading);
  color: var(--cc-heading);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--cc-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cc-action-hover);
}

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

.cc-container {
  width: 100%;
  max-width: var(--cc-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cc-space-md);
  padding-right: var(--cc-space-md);
}

/* Announcement Bar */
.cc-topbar {
  background-color: var(--cc-navy-950);
  color: #CBD5E1;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cc-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-topbar-badge {
  background: rgba(47, 111, 190, 0.3);
  color: #93C5FD;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--cc-radius-full);
}

/* Header & Navigation */
.cc-site-header {
  background: var(--cc-surface);
  border-bottom: 1px solid var(--cc-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--cc-shadow-sm);
  transition: all 0.2s ease;
}

.cc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.cc-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-logo-text {
  font-family: var(--cc-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--cc-navy-950);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-logo-text span {
  color: var(--cc-blue-600);
}

.cc-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--cc-blue-600) 0%, var(--cc-navy-950) 100%);
  color: #fff;
  border-radius: var(--cc-radius-sm);
  font-size: 18px;
  font-weight: 800;
}

.cc-primary-nav {
  display: flex;
}

.cc-primary-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.cc-primary-nav a {
  font-family: var(--cc-font-body);
  font-weight: 600;
  color: var(--cc-ink);
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

.cc-primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cc-blue-600);
  transition: width 0.2s ease;
}

.cc-primary-nav a:hover::after,
.cc-primary-nav .current-menu-item > a::after {
  width: 100%;
}

.cc-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--cc-line);
  padding: 8px;
  border-radius: var(--cc-radius-sm);
  cursor: pointer;
  color: var(--cc-heading);
}

/* Buttons */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--cc-radius-md);
  font-family: var(--cc-font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.cc-btn-primary {
  background-color: var(--cc-action);
  color: var(--cc-on-action);
  box-shadow: 0 2px 4px rgba(47, 111, 190, 0.2);
}

.cc-btn-primary:hover {
  background-color: var(--cc-action-hover);
  color: #fff;
  box-shadow: 0 4px 8px rgba(47, 111, 190, 0.3);
  transform: translateY(-1px);
}

.cc-btn-secondary {
  background-color: var(--cc-teal-700);
  color: #fff;
}

.cc-btn-secondary:hover {
  background-color: #066662;
  color: #fff;
}

.cc-btn-outline {
  border-color: var(--cc-line);
  background: #fff;
  color: var(--cc-heading);
}

.cc-btn-outline:hover {
  border-color: var(--cc-blue-600);
  color: var(--cc-blue-600);
  background: var(--cc-blue-50);
}

.cc-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--cc-radius-sm);
}

.cc-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--cc-radius-md);
}

/* Hero Section */
.cc-hero {
  background: radial-gradient(circle at 80% 20%, rgba(47, 111, 190, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, var(--cc-navy-950) 0%, var(--cc-navy-900) 60%, var(--cc-navy-800) 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.cc-hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: var(--cc-radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 20px;
}

.cc-hero h1 {
  color: #fff;
  font-size: 46px;
  line-height: 1.18;
  max-width: 820px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.cc-hero-desc {
  color: #C3D1E4;
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Interactive Search Box */
.cc-search-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.cc-search-box {
  background: #fff;
  border-radius: var(--cc-radius-lg);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--cc-shadow-xl);
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-search-box:focus-within {
  border-color: var(--cc-blue-600);
  box-shadow: 0 0 0 4px rgba(47, 111, 190, 0.25);
}

.cc-search-icon {
  padding-left: 12px;
  color: var(--cc-ink-muted);
  font-size: 20px;
}

.cc-search-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--cc-font-body);
  color: var(--cc-ink);
  outline: none;
}

.cc-search-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: #A0AEC0;
}

.cc-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 4px 12px;
  border-radius: var(--cc-radius-full);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.cc-pill:hover {
  background: #fff;
  color: var(--cc-navy-950);
  border-color: #fff;
}

/* Sections */
.cc-section {
  padding: 70px 0;
}

.cc-section-alt {
  background-color: var(--cc-panel);
}

.cc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.cc-section-title {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.cc-section-subtitle {
  color: var(--cc-muted);
  font-size: 15px;
}

/* Grid Layouts */
.cc-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.cc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.cc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 24px;
}

/* Stream Category Cards */
.cc-stream-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  box-shadow: var(--cc-shadow-sm);
}

.cc-stream-card:hover {
  border-color: var(--cc-blue-600);
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-md);
}

.cc-stream-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--cc-radius-md);
  background: var(--cc-blue-50);
  color: var(--cc-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cc-stream-info h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.cc-stream-info p {
  font-size: 13px;
  color: var(--cc-muted);
}

/* College Card */
.cc-college-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  box-shadow: var(--cc-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.cc-college-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-lg);
}

.cc-college-header {
  padding: 20px 20px 14px;
  position: relative;
  border-bottom: 1px solid var(--cc-grey-100);
}

.cc-college-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--cc-radius-xs);
  letter-spacing: 0.04em;
}

.cc-badge-type {
  background: var(--cc-blue-100);
  color: var(--cc-blue-700);
}

.cc-badge-nirf {
  background: var(--cc-amber-100);
  color: #B45309;
}

.cc-college-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cc-college-title a {
  color: var(--cc-heading);
}

.cc-college-title a:hover {
  color: var(--cc-blue-600);
}

.cc-college-meta {
  font-size: 13px;
  color: var(--cc-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-college-body {
  padding: 16px 20px;
  flex: 1;
}

.cc-college-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--cc-surface-alt);
  border-radius: var(--cc-radius-md);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.cc-fact-label {
  color: var(--cc-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.cc-fact-val {
  font-weight: 700;
  color: var(--cc-heading);
}

.cc-college-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--cc-line);
  background: #fff;
}

.cc-college-actions .cc-btn {
  flex: 1;
}

/* Location Hub Cards */
.cc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cc-hub-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-md);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  color: var(--cc-heading);
  text-decoration: none;
}

.cc-hub-card:hover {
  border-color: var(--cc-blue-600);
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-sm);
}

.cc-hub-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--cc-heading);
}

.cc-hub-meta {
  font-size: 12px;
  color: var(--cc-muted);
  font-weight: 400;
  margin-top: 2px;
}

.cc-hub-arrow {
  color: var(--cc-muted);
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cc-hub-card:hover .cc-hub-arrow {
  transform: translateX(4px);
  color: var(--cc-blue-600);
}

/* Exam Card */
.cc-exam-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-md);
  padding: 22px;
  transition: all 0.2s ease;
}

.cc-exam-card:hover {
  border-color: var(--cc-blue-600);
  box-shadow: var(--cc-shadow-md);
}

.cc-exam-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--cc-teal-100);
  color: var(--cc-teal-700);
  padding: 2px 8px;
  border-radius: var(--cc-radius-xs);
  display: inline-block;
  margin-bottom: 10px;
}

/* Compare Banner Box */
.cc-compare-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, var(--cc-navy-950) 100%);
  border-radius: var(--cc-radius-xl);
  color: #fff;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--cc-shadow-xl);
}

.cc-compare-banner h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 14px;
}

.cc-compare-banner p {
  color: #BFDBFE;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Enquiry CTA Section */
.cc-cta-panel {
  background: var(--cc-surface-blue);
  border: 1px solid #BFDBFE;
  border-radius: var(--cc-radius-xl);
  padding: 48px;
  text-align: center;
}

.cc-cta-panel h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.cc-cta-panel p {
  color: var(--cc-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* Enquiry Modal Overlay */
.cc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--cc-overlay);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.cc-modal-overlay.active {
  display: flex;
}

.cc-modal-card {
  background: #fff;
  border-radius: var(--cc-radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: var(--cc-shadow-xl);
  position: relative;
}

.cc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--cc-muted);
}

.cc-form-group {
  margin-bottom: 16px;
}

.cc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-heading);
  margin-bottom: 6px;
}

.cc-form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-md);
  font-size: 14px;
  font-family: var(--cc-font-body);
  color: var(--cc-ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.cc-form-control:focus {
  border-color: var(--cc-blue-600);
}

/* Mobile Nav Drawer */
.cc-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #fff;
  z-index: 1100;
  padding: 24px;
  box-shadow: var(--cc-shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cc-mobile-drawer.active {
  transform: translateX(0);
}

.cc-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cc-overlay);
  z-index: 1050;
}

.cc-drawer-overlay.active {
  display: block;
}

/* Footer */
.cc-site-footer {
  background: var(--cc-navy-950);
  color: #94A3B8;
  padding: 70px 0 30px;
  margin-top: 80px;
}

.cc-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.cc-site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cc-site-footer ul {
  list-style: none;
}

.cc-site-footer li {
  margin-bottom: 12px;
}

.cc-site-footer a {
  color: #94A3B8;
  font-size: 14px;
}

.cc-site-footer a:hover {
  color: #fff;
}

.cc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .cc-hero h1 { font-size: 38px; }
  .cc-compare-banner { grid-template-columns: 1fr; padding: 40px; }
  .cc-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .cc-topbar { display: none; }
  .cc-header-inner { height: 64px; }
  .cc-primary-nav { display: none; }
  .cc-mobile-toggle { display: block; }
  .cc-mobile-drawer { display: block; }
  .cc-hero { padding: 50px 0 60px; }
  .cc-hero h1 { font-size: 28px; }
  .cc-hero-desc { font-size: 15px; }
  .cc-search-box { flex-direction: column; padding: 12px; }
  .cc-search-box .cc-btn { width: 100%; }
  .cc-grid-3, .cc-grid-2, .cc-grid-4 { grid-template-columns: 1fr; }
  .cc-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cc-footer-grid { grid-template-columns: 1fr; }
  .cc-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cc-cta-panel { padding: 32px 20px; }
}
