
    /* ============================
       CSS VARIABLES & RESET
    ============================ */
    :root {
      --color-navy:        #1A3A6B;
      --color-navy-light:  #2352A0;
      --color-navy-dark:   #0D2146;
      --color-accent:      #1768bf;
      --color-accent-light:#cee5ff;
      --color-accent-dark: #A08030;
      --color-green:       #2E7D52;
      --color-green-light: #D4EDE0;
      --color-red:         #C0392B;
      --color-red-light:   #FDECEA;
      --color-bg:          #F4F6FA;
      --color-surface:     #FFFFFF;
      --color-border:      #DDE3EE;
      --color-text:        #1C2333;
      --color-text-muted:  #5A6380;
      --color-text-light:  #8A93AD;
      --color-white:       #ffffff;
	  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --transition: 0.2s ease;
      --radius-sm:  6px;
      --radius-md:  12px;
      --radius-lg:  18px;
      --font-display: 'DM Serif Display', Georgia, serif;
      --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --transition:   0.2s ease;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    body {
      font-family: var(--font-body);
      background: #ededed;
      color: var(--color-text);
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* ============================
       SKIP LINK
    ============================ */
    .skip-link {
      position: absolute;
      top: -999px;
      left: 8px;
      background: var(--color-navy);
      color: #fff;
      padding: 8px 16px;
      border-radius: var(--radius-sm);
      z-index: 9999;
      font-weight: 600;
      text-decoration: none;
    }
    .skip-link:focus { top: 8px; }

    /* ============================
       HEADER
    ============================ */
    .site-header {
		position: sticky;
		top: 0;
		z-index: 1000;
		background: var(--color-navy);
		color: var(--color-white);
		box-shadow: var(--shadow-lg);
    border-bottom: 1px solid #345891;
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      height: 64px;
    }
	.header-logo {
		width: 52px;
		height: 52px;
		object-fit: contain;
		flex-shrink: 0;
		border-radius: 50%;
		border: 2px solid #345891;
	}
    .header-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      flex-shrink: 0;
    }
    .header-logo-badge {
      width: 42px;
      height: 42px;
      background: var(--color-accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-navy-dark);
      letter-spacing: -0.5px;
      flex-shrink: 0;
    }
    .header-brand-text { 
		display: flex;
		flex-direction: column;
		line-height: 1.28;
		color: #fff; 
		}
    .header-brand-name {
      font-family: var(--font-body);
	  font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: 0.01em;
    }
    .header-brand-sub {
		font-weight: 400;
      font-size: 0.7rem;
      opacity: 0.7;
      letter-spacing: 0.5px;
    }
	.search-bar {
		display: flex;
		justify-content: center;
		padding-top: 10px;
		padding-bottom: 50px;
	}
    .header-search {
      flex: 1;
      max-width: 59%;
      position: relative;
    }
    .header-search input {
		width: 100%;
		padding: 12px 44px 12px 44px;
		font-family: var(--font-family);
		font-size: 0.9rem;
		border: 2px solid #E5E7EB;
		border-radius: 50px;
		background: #fff;
		color: #1F2937;
		transition: border-color var(--transition), box-shadow var(--transition);
    }
    .header-search input::placeholder { color: #9CA3AF; }
    .header-search input:focus {
      background: rgba(255,255,255,0.18);
      border-color: var(--color-accent);
    }
    .header-search .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #9CA3AF;
      pointer-events: none;
    }
    .header-nav {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
    }
	.header-nav-link {
		color: var(--color-white);
		font-size: 0.8rem;
		font-weight: 600;
		text-decoration: none;
		padding: 8px 16px;
		border: 1px solid rgba(255, 255, 255, 0.5);
		border-radius: 6px;
		transition: background var(--transition), color var(--transition);
		white-space: nowrap;
		display: flex;
		align-items: center;
		gap: 6px;
		color: #fff;
	}
	.header-nav-link:hover, .header-nav-link:focus-visible {
		background: rgba(255, 255, 255, 0.15);
		color: #fff;
	}
	.header-phone {
		display: flex;
		align-items: center;
		gap: 6px;
		color: rgba(255, 255, 255, 0.9);
		font-size: 0.82rem;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}
    .btn-contact-schools {
      background: var(--color-accent);
      color: var(--color-navy-dark);
      border: none;
      border-radius: 30px;
      padding: 8px 16px;
      font-family: var(--font-body);
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      transition: var(--transition);
      white-space: nowrap;
    }
    .btn-contact-schools:hover { background: var(--color-accent-dark); color: #fff; }

    /* ============================
       HERO
    ============================ */
    .hero {
      background-image: url(./images/banner.jpg);
      background-position: center;
      background-size: cover;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      /*background: radial-gradient(ellipse at 70% 50%, rgba(200,169,74,0.12) 0%, transparent 70%);*/
      pointer-events: none;
    }
    .hero-inner { 
      max-width: 720px; 
      margin: 0 auto; 
      position: relative; 
      padding: 58px 20px 78px;
    }
    .hero-label {
      display: inline-block;
      background: rgba(200,169,74,0.2);
      border: 1px solid rgba(200,169,74,0.4);
      color: var(--color-accent);
      border-radius: 30px;
      padding: 4px 14px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    .hero h1 {
      font-family: var(--font-body);
      font-size: clamp(1.5rem, 4vw, 2.3rem);
      color: #fff;
      line-height: 1.2;
      margin-bottom: 14px;
	  font-weight: 900;
    }
    .hero h1 em {
      color: #1768bf;
      font-style: normal;
    }
    .hero p {
      color: rgba(255,255,255,0.75);
      font-size: 1rem;
      max-width: 520px;
      margin: 0 auto 24px;
    }
    .hero-quick-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }
    .hero-quick-link {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.9);
      border-radius: 8px;
      padding: 7px 60px;
      font-size: 0.82rem;
      font-weight: 500;
      text-align: center;
      text-decoration: none;
      justify-content: center;
      align-items: center;
      transition: var(--transition);
      display: flex;
      gap: 6px;
    }
    .hero-quick-link:hover {
      background: #1768bf;
      border-color: #1768bf;
      color: #fff;
    }

    .hero-quick-link:hover.no-hover {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* ============================
       CATEGORY NAV
    ============================ */
    .category-nav-bar {
      background: var(--color-surface);
      border-bottom: 1px solid var(--color-border);
      position: sticky;
      top: 64px;
      z-index: 90;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .category-nav-bar::-webkit-scrollbar { display: none; }
    .category-nav-inner {
      display: flex;
	  justify-content: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    .cat-nav-btn {
      padding: 14px 18px;
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--color-text-muted);
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      white-space: nowrap;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .cat-nav-btn:hover { color: var(--color-navy); }
    .cat-nav-btn.active {
      color: var(--color-navy);
      border-bottom-color: var(--color-navy);
    }

    /* ============================
       MAIN CONTENT
    ============================ */
    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 36px 20px 80px;
    }

    /* ============================
       SEARCH STATE
    ============================ */
    .search-results-header {
      display: none;
      margin-bottom: 20px;
      padding: 14px 20px;
      background: var(--color-accent-light);
      border: 1px solid var(--color-accent);
      border-radius: var(--radius-md);
      font-size: 0.9rem;
      color: var(--color-navy-dark);
      font-weight: 500;
    }
    .search-results-header.visible { display: flex; align-items: center; gap: 10px; }
    .search-clear-btn {
      margin-left: auto;
      background: none;
      border: 1px solid var(--color-navy);
      border-radius: 20px;
      padding: 3px 12px;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--color-navy);
      cursor: pointer;
    }
    .no-results {
      display: none;
      text-align: center;
      padding: 60px 20px;
      color: var(--color-text-muted);
    }
    .no-results.visible { display: block; }
    .no-results i { font-size: 2rem; margin-bottom: 12px; opacity: 0.4; }

    /* ============================
       CATEGORY SECTIONS
    ============================ */
    .category-section {
      margin-bottom: 68px;
    }
    .category-header {
      display: flex;
      align-items: center;
      gap: 14px;
	  margin-bottom: 20px;
	  padding: 0 0 10px;
	  border-bottom: 2px solid var(--color-border);
    }
    .category-icon-wrap {
      width: 46px;
      height: 46px;
      border-radius: var(--radius-md);
	  border: 1px solid var(--color-border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }
    .cat-1 .category-icon-wrap { background: #edead4; color: #1A7A7A; }
    .cat-2 .category-icon-wrap { background: #D4EDE0; color: #2E7D52; }
    .cat-3 .category-icon-wrap { background: #FEF0E6; color: #C0621B; }
    .cat-4 .category-icon-wrap { background: #EDE8F8; color: #6B3EB6; }
    .cat-5 .category-icon-wrap { background: #E8F4FD; color: #1A7AB5; }
    .cat-6 .category-icon-wrap { background: var(--color-red-light); color: var(--color-red); }
    .category-title-group { flex: 1; }
    .category-title {
      font-family: var(--font-body);
      font-size: 1.4rem;
      color: var(--color-navy-dark);
      line-height: 1.2;
    }
    .category-count {
      font-size: 0.78rem;
      color: var(--color-text-muted);
      margin-top: 2px;
    }
    .category-toggle { display: none; }
    .card-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      transition: var(--transition);
    }
    .card-grid.collapsed { display: none; }

    /* ============================
       RESOURCE CARDS
    ============================ */
    .resource-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: 20px;
      display: flex;
      flex-direction: column;
      transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
      position: relative;
    }
    .resource-card:hover {
	  cursor: pointer;
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
      border-color: rgba(26,58,107,0.2);
    }
    .card-most-used::before {
      content: '★ Most Used';
      position: absolute;
      top: -1px;
      right: 0;
      background: #1768bf;
      color: #fff;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 5px 10px;
      border-top-right-radius: var(--radius-sm);
	  border-bottom-left-radius: var(--radius-sm);
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .card-top {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
    }
    .card-icon {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
      border: 1px solid var(--color-border);
    }
    .card-icon-blue   { background: #E8EEF8; color: var(--color-navy); }
    .card-icon-green  { background: var(--color-green-light); color: var(--color-green); }
    .card-icon-orange { background: #FEF0E6; color: #C0621B; }
    .card-icon-purple { background: #EDE8F8; color: #6B3EB6; }
    .card-icon-teal   { background: #E6F4F4; color: #1A7A7A; }
	.card-icon-blue   { background: #E8F4FD; color: #1A7AB5; }
    .card-icon-red    { background: var(--color-red-light); color: var(--color-red); }
    .card-icon-gold   { background: var(--color-accent-light); color: var(--color-accent-dark); }
    .card-title-wrap { flex: 1; min-width: 0; }
    .card-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--color-navy-dark);
      line-height: 1.3;
    }
    .card-subtitle {
      font-size: 0.78rem;
      color: var(--color-text-muted);
      margin-top: 2px;
    }
    .card-desc {
      font-size: 0.82rem;
      color: var(--color-text-muted);
      line-height: 1.5;
      margin-bottom: 12px;
      flex: 1;
    }
    .card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-bottom: 14px;
    }
    .tag {
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      color: var(--color-text-muted);
      font-size: 0.68rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 20px;
      letter-spacing: 0.2px;
    }
    .card-actions {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .btn-primary {
      background: var(--color-navy);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 9px 16px;
      font-family: var(--font-body);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: var(--transition);
      flex: 1;
      justify-content: center;
    }
    .btn-primary:hover { background: var(--color-navy-light); }
    .btn-secondary {
      background: var(--color-bg);
      color: var(--color-navy);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 9px 14px;
      font-family: var(--font-body);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: var(--transition);
    }
    .btn-secondary:hover { background: var(--color-border); }
    .card-expand-btn {
      background: none;
      border: none;
      padding: 6px 0;
      color: var(--color-navy-light);
      font-family: var(--font-body);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: var(--transition);
      width: 100%;
    }
    .card-expand-btn:hover { color: var(--color-navy); }
    .card-expand-btn .chevron { transition: transform var(--transition); }
    .card-expand-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
    .card-expand-content {
      display: none;
      margin-top: 10px;
      padding-top: 12px;
      border-top: 1px solid var(--color-border);
    }
    .card-expand-content.open { display: block; }
    .card-expand-content ol {
      padding-left: 18px;
      margin: 0;
    }
    .card-expand-content li {
      font-size: 0.8rem;
      color: var(--color-text-muted);
      margin-bottom: 6px;
      line-height: 1.5;
    }
    .card-expand-content a {
      color: var(--color-navy-light);
      text-decoration: none;
    }
    .card-expand-content a:hover { text-decoration: underline; }
    .card-expand-content .help-note {
      margin-top: 10px;
      background: var(--color-bg);
      border-left: 3px solid var(--color-navy-light);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 8px 12px;
      font-size: 0.78rem;
      color: var(--color-text-muted);
    }

    /* ============================
       SCHOOL CONTACT MODAL
    ============================ */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .modal-overlay.open { display: flex; }
    .modal {
      background: var(--color-surface);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      max-width: 520px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      outline: none;
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--color-border);
      position: sticky;
      top: 0;
      background: var(--color-surface);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .modal-header h2 {
      font-family: var(--font-body);
      font-size: 1.3rem;
      color: var(--color-navy-dark);
    }
    .modal-close {
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: 50%;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--color-text-muted);
      font-size: 1rem;
      transition: var(--transition);
    }
    .modal-close:hover { background: var(--color-red-light); color: var(--color-red); }
    .modal-body { padding: 20px 24px 24px; }
    .modal-note {
      background: #1768bf;
      border: 1px solid rgba(200,169,74,0.3);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      font-size: 0.82rem;
      color: #fff;
      margin-bottom: 16px;
    }
    .school-contact-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 0;
      border-bottom: 1px solid var(--color-border);
    }
    .school-contact-item:last-child { border-bottom: none; }
    .school-initials {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-md);
      background: var(--color-navy);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.8rem;
      flex-shrink: 0;
      letter-spacing: 0.5px;
    }
    .school-initials.jad, .school-initials.was {
      background: #1768bf;
    }
    .school-initials.hrs, .school-initials.wrs {
      background: #337816;
    }
    .school-info { flex: 1; min-width: 0; }
    .school-name { font-weight: 700; font-size: 0.9rem; color: var(--color-navy-dark); }
    .school-addr { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 1px; }
    .school-actions { display: flex; gap: 8px; flex-shrink: 0; }
    .school-phone-btn, .school-web-btn {
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-sm);
      padding: 6px 10px;
      font-size: 0.75rem;
      font-weight: 600;
      text-decoration: none;
      color: var(--color-navy);
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .school-phone-btn:hover { background: #98cbff; border-color: #98cbff; color: #121212; }
    .school-web-btn:hover { background: #E8EEF8; border-color: var(--color-navy-light); }

    /* ============================
       FLOATING BUTTON
    ============================ */
    .fab {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 200;
      background: var(--color-navy);
      color: #fff;
      border: none;
      border-radius: 30px;
      padding: 14px 20px;
      font-family: var(--font-body);
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(26,58,107,0.4);
      display: flex;
      align-items: center;
      gap: 8px;
      transition: var(--transition);
    }
    .fab:hover { background: var(--color-navy-light); box-shadow: 0 6px 24px rgba(26,58,107,0.5); transform: translateY(-2px); }

    /* ============================
       BACK TO TOP
    ============================ */
    .back-to-top {
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 200;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      color: var(--color-navy);
      border-radius: 50%;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      opacity: 0;
      pointer-events: none;
      transition: var(--transition);
      font-size: 1rem;
    }
    .back-to-top.visible { opacity: 1; pointer-events: auto; }
    .back-to-top:hover { background: var(--color-bg); box-shadow: var(--shadow-md); }

    /* ============================
       FOOTER
    ============================ */
    .site-footer {
      background: var(--color-navy-dark);
      color: rgba(255,255,255,0.7);
      padding: 40px 20px 30px;
      font-size: 0.82rem;
    }
    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 32px;
      align-items: start;
    }
    .footer-brand-name {
      font-family: var(--font-body);
      font-size: 1.1rem;
      color: #fff;
      margin-bottom: 8px;
    }
    .footer-address { line-height: 1.7; }
    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: right;
    }
    .footer-links a {
      color: rgba(255,255,255,0.6);
      text-decoration: none;
      transition: var(--transition);
    }
    .footer-links a:hover { color: var(--color-accent); }
    .footer-bottom {
      max-width: 1200px;
      margin: 24px auto 0;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.1);
      text-align: center;
      font-size: 0.75rem;
      color: rgba(255,255,255,0.4);
    }
	

    /* ============================
       RESPONSIVE
    ============================ */
    @media (max-width: 900px) {
      .card-grid { grid-template-columns: repeat(2, 1fr); }
      .header-search { max-width: 240px; }
      .quick-nav-inner {
        grid-template-columns: repeat(3, 1fr) !important;
      }
    }
    @media (max-width: 600px) {
      .header-brand-sub { display: none; }
      .header-search { display: none; }
      .card-grid { grid-template-columns: 1fr; }
      .hero { padding: 36px 16px 32px; }
      .hero-quick-links { gap: 8px; }
      .footer-inner { grid-template-columns: 1fr; }
      .footer-links { text-align: left; }
      .main-content { padding: 24px 16px 100px; }
      .fab { bottom: 16px; right: 16px; font-size: 0.78rem; padding: 12px 16px; }
      .back-to-top { display: none; }
      /* Mobile search bar below header */
      .mobile-search-bar {
        display: flex !important;
      }
      .quick-nav-inner {
        grid-template-columns: repeat(3, 1fr) !important;
      }
    }
    .mobile-search-bar {
      display: none;
      background: var(--color-navy);
      padding: 10px 16px;
      position: sticky;
      top: 64px;
      z-index: 95;
    }
    .mobile-search-bar input {
      width: 100%;
      padding: 10px 14px 10px 38px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 30px;
      color: #fff;
      font-family: var(--font-body);
      font-size: 16px;
      outline: none;
    }
    .mobile-search-bar input::placeholder { color: rgba(255,255,255,0.5); }
    .mobile-search-bar .m-search-icon {
      position: absolute;
      left: 28px;
      top: 50%;
      transform: translateY(-50%);
      color: rgba(255,255,255,0.5);
      pointer-events: none;
    }
    .mobile-search-wrap { position: relative; width: 100%; }

    /* hidden cards */
    .resource-card.hidden { display: none; }
	
	    /* ============================================
       NEW TO DISTRICT CALLOUT
       ============================================ */
    .new-callout {
      background: rgba(255, 255, 255, 0.1);
      border-bottom:  1px solid rgba(255, 255, 255, 0.1);
      padding: 12px 24px;
    }
    .new-inner {
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }
    .new-emoji {
      font-size: 1.4rem;
      margin-right: 5px;
      flex-shrink: 0;
      line-height: 1;
    }
    .new-text {
      flex: 1;
      font-size: 0.88rem;
      color: #fff;
      line-height: 1.4;
      min-width: 160px;
    }
    .new-text strong {
      color: #fff;
    }
    .new-btn {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--color-white);
      padding: 8px 18px;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: background var(--transition);
      flex-shrink: 0;
    }
    .new-btn:hover {
      background: var(--color-accent);
      text-decoration-color: transparent;
    }
    .new-close {
      background: none;
      border: none;
      color: #fff;
      font-size: 1.3rem;
      cursor: pointer;
      padding: 4px 8px;
      line-height: 1;
      flex-shrink: 0;
      transition: color var(--transition);
    }
    .new-close:hover {
      color: var(--color-navy);
    }
    @media (max-width: 640px) {
      .new-callout {
        padding: 10px 14px;
      }
      .new-text {
        font-size: 0.82rem;
      }
    }
    

    /* ========================================
   QUICK NAV CATEGORIES
   ======================================== */
  .quick-nav {
    position: relative; z-index: 10; margin-top: -2rem;
    padding: 0 1.5rem;
  }
  .quick-nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem;
  }
  .quick-link {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    flex-wrap: wrap;
    padding: 1.25rem .75rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 700;
    color: #4A453E;
  }
  .quick-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
  }
  .quick-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
  }
  .quick-link-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 1.25rem;
  }
  .quick-link-icon.cat1 { background: #edead4; color: #1A7A7A;   }
  .quick-link-icon.cat2 { background: #D4EDE0; color: #2E7D52;  }
  .quick-link-icon.cat3 { background: #FEF0E6; color: #C0621B;  }
  .quick-link-icon.cat4 { background: #EDE8F8; color: #6B3EB6;  }
  .quick-link-icon.cat5 { background: #E8F4FD; color: #1A7AB5;  }
  .quick-link-icon.cat6 { background: var(--color-red-light); color: var(--color-red); }
  .quick-link span {
    font-size: .78rem; font-weight: 600; color: var(--color-gray-700);
    line-height: 1.3;
  }
/* ============================
   GRID / LIST VIEW TOGGLE
============================ */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 50px;
  position: relative;
}

.view-toggle {
  position: absolute;
  right: 0;
}

.view-toggle {
  display: flex;
  align-items: center;
  background: var(--color-bg, #F4F6FA);
  border: 1px solid var(--color-border, #DDE3EE);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted, #5A6380);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.view-toggle-btn:hover:not(.active) {
  background: var(--color-surface, #fff);
  color: var(--color-navy, #1A3A6B);
}

.view-toggle-btn.active {
  background: var(--color-surface, #fff);
  color: var(--color-navy, #1A3A6B);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Hide toggle on mobile (list view not useful at 1-col) */
@media (max-width: 600px) {
  .view-toggle { display: none; }
  .search-bar { flex-direction: column; align-items: stretch; }
}

/* ============================
   LIST VIEW CARD LAYOUT
============================ */

/* When list-view is active, override grid to single column */
.card-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 6px;
}

/* Compact row layout: icon+title left, primary button right */
.card-grid.list-view .resource-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md, 12px);
}

/* Keep the card-top (icon + title/subtitle) and let it grow */
.card-grid.list-view .card-top {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* Hide everything except card-top and the primary action button */
.card-grid.list-view .card-desc,
.card-grid.list-view .card-tags,
.card-grid.list-view .card-expand-btn,
.card-grid.list-view .card-expand-content,
.card-grid.list-view .card-most-used::before {
  display: none;
}

/* Show only the primary button, pinned to the right */
.card-grid.list-view .card-actions {
  margin-bottom: 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 0;
}

.card-grid.list-view .card-actions .btn-primary {
  white-space: nowrap;
}

/* Hide the secondary button in list view */
.card-grid.list-view .card-actions .btn-secondary {
  display: none;
}

/* ============================
   LANGUAGE SELECTOR
============================ */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 7px 12px;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.lang-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border, #DDE3EE);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  min-width: 200px;
  max-height: 340px;
  overflow-y: auto;
  z-index: 500;
  list-style: none;
  padding: 6px;
  margin: 0;
  scrollbar-width: thin;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text, #1C2333);
  text-decoration: none;
  transition: background 0.12s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--color-bg, #F4F6FA);
}

.lang-option.selected {
  background: #E8EEF8;
  color: var(--color-navy, #1A3A6B);
  font-weight: 700;
}

/* Suppress the Google Translate toolbar banner it injects at top of page */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }

/* Shrink label text on small screens */
@media (max-width: 768px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 7px 10px; gap: 4px; }
  .lang-dropdown { right: 0; }
}

/* ============================
   UPCOMING EVENTS CALENDAR
============================ */
.calendar-section { margin-bottom: 48px; }

.calendar-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--color-border);
}
.calendar-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--radius-md, 12px);
  background: #FEF3E2; color: #C0621B;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.calendar-title-group { flex: 1; }
.calendar-title {
  font-family: var(--font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.4rem; color: var(--color-navy-dark, #0D2146); line-height: 1.2;
}
.calendar-subtitle { font-size: 0.78rem; color: var(--color-text-muted, #5A6380); margin-top: 3px; }
.calendar-subtitle a { color: var(--color-navy-light, #2352A0); text-decoration: none; }
.calendar-subtitle a:hover { text-decoration: underline; }

.cal-subscribe-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--color-navy, #1A3A6B); color: #fff;
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  transition: background 0.15s; flex-shrink: 0; white-space: nowrap;
}
.cal-subscribe-btn:hover { background: var(--color-navy-light, #2352A0); }

/* Owl container */
.cal-events-grid { /* Owl manages layout */ }
.cal-events-grid .owl-stage { display: flex !important; align-items: stretch; }
.cal-events-grid .owl-stage-outer { height: auto !important; }
.cal-events-grid .owl-item { display: flex; align-items: stretch; }

/* Individual tile */
.cal-event-tile {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #DDE3EE);
  border-radius: var(--radius-lg, 18px);
  padding: 16px 16px 16px 20px;
  display: flex; flex-direction: row; align-items: flex-start; gap: 14px;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
  width: 240px; align-self: stretch; box-sizing: border-box; cursor: grab;
}
.cal-event-tile:active { cursor: grabbing; }
/* Coloured left accent bar driven by --tile-accent CSS var */
.cal-event-tile::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 18px 0 0 18px;
  background: var(--tile-accent, var(--color-navy, #1A3A6B));
}
.cal-event-tile:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px);
}

/* Date column */
.cal-tile-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px; flex-shrink: 0;
}
.cal-day-num {
  font-family: var(--font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.6rem; line-height: 1; color: var(--color-navy-dark, #0D2146);
}
.cal-day-name {
  font-size: 0.68rem; font-weight: 700; color: var(--color-text-muted, #5A6380);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;
}

/* Body */
.cal-tile-body { flex: 1; min-width: 0; }

/* School source tag */
.cal-school-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; letter-spacing: 0.3px; text-transform: uppercase;
  border: 1px solid transparent; margin-bottom: 4px;
}

.cal-tile-title {
  font-size: 0.80rem; font-weight: 700;
  color: var(--color-navy-dark, #0D2146); line-height: 1.3;
}

/* States */
.cal-loading-state,
.cal-no-events-state,
.cal-error-state {
  padding: 36px 20px; text-align: center;
  color: var(--color-text-muted, #5A6380); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.cal-no-events-state { color: var(--color-text-muted); }
.cal-no-events-state i { font-size: 2rem; opacity: 0.35; flex-shrink: 0; }
.cal-no-events-state a { color: var(--color-navy-light, #2352A0); }
.cal-error-state { color: var(--color-red, #C0392B); }
.cal-error-state a { color: var(--color-navy-light, #2352A0); }

/* Footer */
.cal-footer {
  margin-top: 16px; padding: 10px 14px;
  background: var(--color-bg, #F4F6FA);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem; color: var(--color-text-muted, #5A6380);
  display: flex; align-items: flex-start; gap: 8px;
}
.cal-footer a { color: var(--color-navy-light, #2352A0); text-decoration: none; }
.cal-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .cal-event-tile { min-width: 200px; max-width: 200px; width: 200px; }
}
@media (max-width: 600px) {
  .cal-event-tile { min-width: 180px; max-width: 180px; width: 180px; }
  .cal-subscribe-btn span { display: none; }
  .calendar-section-header { flex-wrap: wrap; gap: 10px; }
}


/* ============================
   LANGUAGE SELECTOR
============================ */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 7px 12px;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.lang-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border, #DDE3EE);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  min-width: 200px;
  max-height: 340px;
  overflow-y: auto;
  z-index: 500;
  list-style: none;
  padding: 6px;
  margin: 0;
  scrollbar-width: thin;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text, #1C2333);
  text-decoration: none;
  transition: background 0.12s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--color-bg, #F4F6FA);
}

.lang-option.selected {
  background: #E8EEF8;
  color: var(--color-navy, #1A3A6B);
  font-weight: 700;
}

/* Suppress the Google Translate toolbar banner it injects at top of page */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }

/* Shrink label text on small screens */
@media (max-width: 768px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 7px 10px; gap: 4px; }
  .lang-dropdown { right: 0; }
}

/* ============================
   UPCOMING EVENTS CALENDAR
============================ */
.calendar-section {
  margin-bottom: 48px;
}

.calendar-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--color-border);
}

.calendar-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md, 12px);
  background: #FEF3E2;
  color: #C0621B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.calendar-title-group { flex: 1; }

.calendar-title {
  font-family: var(--font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.4rem;
  color: var(--color-navy-dark, #0D2146);
  line-height: 1.2;
}

.calendar-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted, #5A6380);
  margin-top: 3px;
}

.calendar-subtitle a {
  color: var(--color-navy-light, #2352A0);
  text-decoration: none;
}
.calendar-subtitle a:hover { text-decoration: underline; }

.cal-subscribe-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-navy, #1A3A6B);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.cal-subscribe-btn:hover { background: var(--color-navy-light, #2352A0); }

/* Month tabs */
.cal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--color-bg, #F4F6FA);
  border: 1px solid var(--color-border, #DDE3EE);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.cal-tab {
  background: none;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted, #5A6380);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.cal-tab:hover:not(.active) {
  background: #fff;
  color: var(--color-navy, #1A3A6B);
}
.cal-tab.active {
  background: #fff;
  color: var(--color-navy, #1A3A6B);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Month panels */
.cal-month-panel { }
.cal-month-panel.hidden { display: none; }

/* Owl Carousel container — let Owl control overflow/layout */
.cal-events-grid.owl-carousel {
  /* No overflow or flex overrides — Owl manages this */
}

/* Each draggable item wrapper */
.cal-owl-item {
  padding: 4px 0; /* vertical breathing room so hover shadow isn't clipped */
}

/* Owl's own .owl-item wrapper — match fixed tile height */
.cal-events-grid .owl-item {
  display: flex;
  align-items: stretch;
}

/* Owl stage — flex so all items sit in a row */
.cal-events-grid .owl-stage {
  display: flex !important;
  align-items: stretch;
}

/* Override Owl's JS-set height so it doesn't constrain tiles */
.cal-events-grid .owl-stage-outer {
  height: auto !important;
  overflow: visible;
}

/* Individual tile — fixed dimensions, nothing can expand it */
.cal-event-tile {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #DDE3EE);
  border-radius: var(--radius-lg, 18px);
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
  width: 240px;
  height: 110px;        /* fixed — every tile is exactly this tall */
  box-sizing: border-box;
  cursor: grab;
}
.cal-event-tile:active { cursor: grabbing; }
.cal-event-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
}
.cal-event-tile:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Accent bar colors per type */
.cal-event-tile.closed::before     { background: #C0392B; }
.cal-event-tile.school::before     { background: #2E7D52; }
.cal-event-tile.boe::before        { background: var(--color-navy, #1A3A6B); }
.cal-event-tile.observance::before { background: #7B5EA7; }
.cal-event-tile.last-day::before   { background: var(--color-accent, #C8A94A); }

/* Date column */
.cal-tile-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  flex-shrink: 0;
}
.cal-day-num {
  font-family: var(--font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-navy-dark, #0D2146);
  font-weight: 400;
}
.cal-day-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted, #5A6380);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Body */
.cal-tile-body { flex: 1; min-width: 0; overflow: hidden; }

.cal-tile-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted, #5A6380);
  margin-top: 4px;
  line-height: 1.4;
  /* Clamp to 1 line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.cal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.closed-badge   { background: #FDECEA; color: #C0392B; }
.school-badge   { background: var(--color-green-light, #D4EDE0); color: #2E7D52; }
.boe-badge      { background: #E8EEF8; color: var(--color-navy, #1A3A6B); }
.obs-badge      { background: #EDE8F8; color: #7B5EA7; }

/* Last day special treatment */
.cal-event-tile.last-day {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
  border-color: rgba(200,169,74,0.3);
}
.cal-event-tile.last-day .cal-tile-title {
  color: #8A6500;
}

/* Calendar footer note */
.cal-footer {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--color-bg, #F4F6FA);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem;
  color: var(--color-text-muted, #5A6380);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cal-footer a {
  color: var(--color-navy-light, #2352A0);
  text-decoration: none;
}
.cal-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .cal-event-tile { width: 200px; }
}
@media (max-width: 600px) {
  .cal-event-tile { width: 180px; }
  .cal-subscribe-btn span { display: none; }
  .cal-tabs { width: 100%; }
  .cal-tab { flex: 1; padding: 8px 10px; text-align: center; }
  .calendar-section-header { flex-wrap: wrap; gap: 10px; }
}

/* Calendar loading / error states */
.cal-loading-state,
.cal-error-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted, #5A6380);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cal-error-state { color: var(--color-red, #C0392B); }
.cal-error-state a { color: var(--color-navy-light, #2352A0); }

/* Extra badge types */
.pta-badge      { background: #E6F4F4; color: #1A7A7A; }
.event-badge    { background: var(--color-accent-light, #F5E9C2); color: var(--color-accent-dark, #A08030); }
.district-badge { background: #EDE8F8; color: #6B3EB6; }
.general-badge  { background: var(--color-bg, #F4F6FA); color: var(--color-text-muted, #5A6380); }

/* ============================
   OWL CAROUSEL NAV ARROWS
============================ */
.cal-events-grid .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  box-sizing: border-box;
}
/* Wrap the grid so arrows can be absolutely positioned relative to it */
.cal-events-grid.owl-carousel {
  position: relative;
}
.cal-events-grid .owl-nav button {
  pointer-events: all;
  width: 34px;
  height: 34px;
  background: var(--color-surface, #fff) !important;
  border: 1px solid var(--color-border, #DDE3EE) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy, #1A3A6B);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  line-height: 1;
}
.cal-events-grid .owl-nav button:hover {
  background: var(--color-navy, #1A3A6B) !important;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,58,107,0.25);
  transform: scale(1.08);
}
.cal-events-grid .owl-nav button.disabled {
  opacity: 0.3;
  pointer-events: none;
}
/* Push stage content inward so arrows don't overlap the first/last tile */
.cal-events-grid.owl-carousel .owl-stage-outer {
  padding: 0 44px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .cal-events-grid.owl-carousel .owl-stage-outer {
    padding: 0 36px;
  }
  .cal-events-grid .owl-nav button {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }
}
