:root {
  --caf-navy: #133a68;
  --caf-blue: #1e5aa8;
  --caf-gold: #d39b2a;
  --caf-ink: #16233a;
  --caf-muted: #5d6b80;
  --caf-bg: #f5f8fc;
  --caf-card: #ffffff;
  --caf-line: rgba(19, 58, 104, 0.12);
  --caf-shadow: 0 24px 60px rgba(15, 35, 68, 0.12);
}

#loginScreen.caf-public-enhanced {
  min-height: 100vh;
  position: relative;
  width: 100%;
}

#loginScreen.caf-public-enhanced .ccsea-header h1,
#loginScreen.caf-public-enhanced .ccsea-header h2,
#loginScreen.caf-public-enhanced .ccsea-header h3,
#loginScreen.caf-public-enhanced .ccsea-header .reg-badge-line {
  color: #003366 !important;
  text-shadow: none;
  font-weight: 700;
  letter-spacing: 0.5px;
}

#loginScreen.caf-public-enhanced .ccsea-header .reg-badge-line {
  text-transform: none !important;
  font-size: 12px !important;
  color: #ff9933 !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}

#headerLeftLogoImage[src=""],
#headerRightLogoImage[src=""] {
  display: none;
}

#loginScreen.caf-public-enhanced .nav-ribbon {
  position: sticky;
  top: 0;
  z-index: 25;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border-bottom: 3px solid #ff9933;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
}

#loginScreen.caf-public-enhanced .nav-links-ccsea {
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

#loginScreen.caf-public-enhanced .nav-ribbon a[data-page] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#loginScreen.caf-public-enhanced .nav-ribbon a[data-page] {
  background: rgba(255, 255, 255, 0.05);
}

#loginScreen.caf-public-enhanced .nav-ribbon a[data-page].active,
#loginScreen.caf-public-enhanced .nav-ribbon a[data-page]:hover {
  background: #ff9933;
  color: #003366;
  border-color: #ff9933;
  box-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
  transform: translateY(-1px);
}

#loginScreen.caf-public-enhanced .caf-login-nav {
  margin-left: auto;
  background: #ff9933;
  color: #ffffff !important;
  border: 1px solid #ff9933;
  border-radius: 4px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
}

#loginScreen.caf-public-enhanced .caf-login-nav:hover {
  background: #ff8c1a;
  color: #ffffff !important;
  border-color: #ff8c1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4);
}

#loginScreen.caf-public-enhanced .login-container-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: transparent !important;
}

#loginScreen.caf-public-enhanced .public-page-section {
  display: none;
  animation: cafFadeIn 0.35s ease;
}

#loginScreen.caf-public-enhanced .public-page-section.active {
  display: block;
}

@keyframes cafFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.caf-page-card,
.caf-login-shell,
.caf-info-card {
  background: var(--caf-card);
  border: 1px solid var(--caf-line);
  border-radius: 28px;
  box-shadow: var(--caf-shadow);
  overflow: hidden;
}

.caf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caf-kicker-plain {
  background: rgba(30, 90, 168, 0.08);
  border: 1px solid rgba(30, 90, 168, 0.12);
  color: var(--caf-navy);
}

.caf-page-head h3,
.caf-login-page h3 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--caf-ink);
}

.caf-hero-full-strip {
  width: 100%;
  background: #ffffff;
  padding: 26px 40px 28px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow: var(--caf-shadow);
  text-align: left;
  border: 1px solid var(--caf-line);
  animation: cafFadeIn 0.5s ease;
  position: relative;
  overflow: hidden;
}

.caf-hero-full-strip-visual {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.46) 100%),
    var(--caf-hero-bg) center center / cover no-repeat;
}

.caf-hero-full-strip-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 58, 104, 0.06) 0%, rgba(211, 155, 42, 0.14) 100%);
  pointer-events: none;
}

/* Premium Hero Enhancements */
.caf-hero-title-premium {
  margin: 0 0 10px;
  width: 100%;
  max-width: none;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: clip;
  background: linear-gradient(135deg, #0d1b3e 0%, #1e5aa8 40%, #d39b2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  position: relative;
  z-index: 1;
}

.caf-hero-body-premium {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 700;
  line-height: 1.58;
  white-space: normal;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, #5d6b80 0%, #133a68 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  opacity: 0.9;
  letter-spacing: -0.01em;
  text-align: left;
  position: relative;
  z-index: 1;
}

.caf-page-head p {
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.caf-card-copy p,
.caf-committee-intro {
  font-size: 16px;
  line-height: 1.75;
}

.caf-hero-actions,
.caf-card-grid,
.caf-login-shell {
  display: grid;
}

.caf-hero-actions {
  grid-template-columns: repeat(3, max-content);
  gap: 12px;
  margin-top: 24px;
}

.caf-hero-actions-inline {
  margin-bottom: 8px;
}

.caf-primary-btn,
.caf-secondary-btn,
.caf-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.caf-primary-btn { background: linear-gradient(135deg, #d39b2a, #f4c35c); color: #10223c; }
.caf-secondary-btn { background: linear-gradient(135deg, #1e5aa8, #2a6db8); color: #ffffff; border: 2px solid rgba(30, 90, 168, 0.3); box-shadow: 0 4px 12px rgba(30, 90, 168, 0.25); }
.caf-secondary-btn:hover { background: linear-gradient(135deg, #d39b2a, #e8b342); color: #10223c; border-color: rgba(212, 155, 42, 0.5); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212, 155, 42, 0.3); }
.caf-outline-btn { background: transparent; color: var(--caf-navy); border: 1px solid rgba(19, 58, 104, 0.2); }

.caf-mini-head,
.caf-home-announcement h4 {
  margin: 0;
  font-size: 17px;
  color: var(--caf-ink);
}

.caf-card-meta,
.caf-card-copy small {
  color: var(--caf-muted);
  font-size: 13px;
}

.caf-page-card {
  padding: 26px;
  margin-bottom: 24px;
}

.caf-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.caf-page-head-single {
  grid-template-columns: 1fr;
}

.caf-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.caf-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.caf-people-group {
  margin-bottom: 18px;
  padding-bottom: 8px;
}

.caf-people-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 2px 0;
  margin-bottom: 6px;
}

.caf-people-group-head h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--caf-ink);
  letter-spacing: -0.02em;
}

.caf-people-group-head span {
  font-size: 12px;
  font-weight: 800;
  color: var(--caf-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caf-facility-care-staff {
  grid-column: 1 / -1;
  padding: 24px 0;
  border-bottom: 1px solid var(--caf-line);
  margin-bottom: 24px;
}

.caf-facility-care-heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--caf-dark);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--caf-blue);
}

.caf-facility-care-names {
  font-size: 16px;
  line-height: 1.8;
  color: var(--caf-text);
  word-wrap: break-word;
}

.caf-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--caf-line);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 35, 68, 0.08);
}

.caf-person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 35, 68, 0.15);
  border-color: var(--caf-blue);
}

.caf-person-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 3px solid var(--caf-blue);
  box-shadow: 0 4px 12px rgba(30, 90, 168, 0.2);
  position: relative;
}

.caf-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.caf-person-placeholder {
  font-size: 48px;
  color: var(--caf-blue);
}

.caf-person-info {
  text-align: center;
  width: 100%;
}

.caf-person-name {
  margin: 0 0 8px 0;
  color: var(--caf-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.caf-person-role {
  color: var(--caf-blue);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.caf-person-details {
  color: var(--caf-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.caf-person-contact {
  color: var(--caf-blue);
  font-size: 13px;
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px solid var(--caf-line);
}

.caf-animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.caf-animal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--caf-line);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 35, 68, 0.08);
}

.caf-animal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 35, 68, 0.15);
  border-color: var(--caf-blue);
}

.caf-animal-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 3px solid #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.caf-animal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caf-animal-placeholder {
  font-size: 48px;
  color: #4caf50;
}

.caf-animal-info {
  text-align: center;
  width: 100%;
}

.caf-animal-name {
  margin: 0 0 8px 0;
  color: var(--caf-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.caf-animal-species-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 90, 168, 0.10);
  color: #1e5aa8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caf-animal-strain-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.caf-animal-strain-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(30, 90, 168, 0.18);
  background: rgba(30, 90, 168, 0.08);
  color: #1e5aa8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.caf-animal-details {
  color: var(--caf-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.caf-animal-notes {
  color: #666;
  font-size: 12px;
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid var(--caf-line);
}

.caf-card {
  border: 1px solid var(--caf-line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.caf-card-copy {
  padding: 18px 18px 22px;
}

.caf-card-text-only .caf-card-copy {
  padding-top: 22px;
}

.caf-card-copy h4 {
  margin: 0;
  color: var(--caf-ink);
  font-size: 22px;
}

.caf-card-copy p {
  color: var(--caf-muted);
  margin: 10px 0 0;
}

.caf-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.caf-card-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(30, 90, 168, 0.1);
  color: var(--caf-blue);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caf-animal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
}

.caf-animal-page-shell {
  display: grid;
  gap: 22px;
}

.caf-animal-hero-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(30, 90, 168, 0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  box-shadow: 0 10px 28px rgba(15, 35, 68, 0.08);
}

.caf-animal-hero-copy {
  display: grid;
  gap: 10px;
}

.caf-animal-hero-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--caf-ink);
}

.caf-animal-hero-copy p {
  margin: 0;
  color: var(--caf-muted);
  font-size: 16px;
  line-height: 1.8;
}

.caf-animal-section {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(19, 58, 104, 0.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 35, 68, 0.06);
}

.caf-animal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(19, 58, 104, 0.10);
}

.caf-animal-section-head h4 {
  margin: 0;
  color: var(--caf-ink);
  font-size: 22px;
  font-weight: 800;
}

.caf-animal-section-head span {
  color: var(--caf-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caf-animal-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(19, 58, 104, 0.18);
  background: #fff;
  margin-top: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.caf-animal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  border: 1px solid rgba(19, 58, 104, 0.18);
}

.caf-animal-table th,
.caf-animal-table td {
  padding: 14px 16px;
  border: 1px solid rgba(19, 58, 104, 0.12);
  vertical-align: top;
}

.caf-animal-table th {
  background: linear-gradient(135deg, #1e5aa8, #163a66);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-color: rgba(255,255,255,0.16);
}

.caf-animal-table td {
  color: var(--caf-ink);
  font-size: 14px;
  line-height: 1.6;
}

.caf-animal-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.caf-animal-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 195, 92, 0.18);
  color: #a05f00;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.caf-animal-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.caf-animal-section-wide {
  grid-column: 1 / -1;
}

.caf-animal-note {
  color: var(--caf-muted);
  font-size: 13px;
  line-height: 1.7;
}

.caf-species-group {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(19, 58, 104, 0.12);
}

.caf-species-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.caf-species-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.caf-species-group-head h5 {
  margin: 0;
  color: var(--caf-ink);
  font-size: 18px;
  font-weight: 800;
}

.caf-species-group-head span {
  color: var(--caf-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Group-wise Species Gallery ── */
.caf-species-group-block {
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(19, 58, 104, 0.1);
  box-shadow: 0 4px 16px rgba(15, 35, 68, 0.06);
}

.caf-species-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 0;
}

.caf-species-group-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.caf-species-group-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.caf-species-group-meta strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.caf-species-group-latin {
  font-size: 12px;
  color: #7a869a;
  font-style: italic;
}

.caf-species-group-count {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.caf-species-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
}

.caf-species-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(19, 58, 104, 0.10);
  background: #fff;
}

.caf-species-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.caf-species-table th,
.caf-species-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(19, 58, 104, 0.08);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.caf-species-table th {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
  color: #183b63;
  font-weight: 800;
  white-space: nowrap;
}

.caf-species-table tbody tr:hover {
  background: rgba(30, 90, 168, 0.03);
}

.caf-species-photo-cell {
  width: 120px;
}

.caf-species-photo-cell img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(19, 58, 104, 0.18);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.caf-species-title-cell strong {
  word-break: break-word;
}

.caf-species-card {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 22px 18px;
  border-right: 1px solid rgba(19, 58, 104, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.caf-species-card:last-child {
  border-right: none;
}

.caf-species-card:hover {
  background: rgba(30, 90, 168, 0.03);
  transform: translateY(-2px);
}


.caf-species-card-photo {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  border: 2px solid;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.caf-species-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.caf-species-card-body {
  text-align: center;
  width: 100%;
}

.caf-species-card-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.caf-species-card-summary {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: #7a869a;
  line-height: 1.5;
}

.caf-animal-sale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}

.caf-info-panel {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(19, 58, 104, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 20px rgba(15, 35, 68, 0.04);
}

.caf-info-panel h4 {
  margin: 0 0 12px;
  color: var(--caf-ink);
  font-size: 18px;
  font-weight: 800;
}

.caf-animal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--caf-muted);
  line-height: 1.7;
}

.caf-animal-list li + li {
  margin-top: 8px;
}

.caf-animal-subhead {
  margin-top: 6px;
}

.caf-animal-process {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin: 16px 0 18px;
}

.caf-animal-process-step {
  padding: 14px 12px 12px;
  border: 3px solid #1f6791;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 35, 68, 0.05);
  min-height: 178px;
  position: relative;
}

.caf-animal-process-title {
  display: inline-block;
  margin: -28px 0 12px;
  padding: 12px 12px 10px;
  border-radius: 4px;
  background: #1f6791;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 8px 16px rgba(31, 103, 145, 0.18);
}

.caf-animal-process-body {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 6px 0;
}

.caf-animal-process-arrow {
  align-self: center;
  justify-self: center;
  color: #b3b8c2;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-top: 0;
  transform: translateY(-8px);
}

@media (max-width: 900px) {
  .caf-animal-sale-grid {
    grid-template-columns: 1fr;
  }

  .caf-animal-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .caf-animal-process {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .caf-animal-process-arrow {
    display: none;
  }
}

.caf-list-block,
.caf-download-table,
.caf-committee-table,
.caf-notice-list {
  border: 1px solid var(--caf-line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.caf-text-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--caf-ink);
  line-height: 1.8;
}

.caf-download-table table,
.caf-committee-table table {
  width: 100%;
  border-collapse: collapse;
}

.caf-download-table th,
.caf-download-table td,
.caf-committee-table th,
.caf-committee-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(19, 58, 104, 0.08);
  text-align: left;
  vertical-align: top;
}

.caf-download-table th,
.caf-committee-table th {
  background: #f3f8fd;
  color: var(--caf-navy);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.caf-notice-list {
  display: grid;
  gap: 1px;
  background: rgba(19, 58, 104, 0.08);
}

.caf-notice-item {
  padding: 20px;
  background: #fff;
}

.caf-notice-item h4 {
  margin: 0 0 8px;
  color: var(--caf-ink);
}

.caf-notice-item p {
  margin: 0;
  color: var(--caf-muted);
}

.caf-contact-box {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--caf-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--caf-ink);
  line-height: 1.9;
}

.caf-footer-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(19, 58, 104, 0.06);
  color: var(--caf-muted);
  font-size: 14px;
}

.caf-home-announcement {
  margin-top: 24px;
}

/* Home Page Two-Column Layout */
.caf-home-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 32px;
  align-items: start;
  padding: 28px;
}

.caf-home-hero-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: auto;
}

.caf-home-notices-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: auto;
}

/* Hero Section Box */
.caf-hero-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(30, 90, 168, 0.08);
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  overflow: visible;
}

.caf-hero-box h3 {
  margin: 0;
  line-height: 1.4;
  font-size: 22px;
}

.caf-hero-box p {
  margin: 0;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  flex: 1;
}

.caf-hero-copy {
  color: #5d6b80;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 17px;
}

.caf-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.caf-hero-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
  border-radius: 20px 20px 0 0;
}

/* Live Scrolling Ticker */
.caf-live-ticker {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  border: 2px solid rgba(212, 155, 42, 0.4);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  height: auto;
  min-height: 350px;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}

.caf-ticker-label {
  color: #d39b2a;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
}

.caf-ticker-label::before {
  content: "●";
  animation: blink 1s infinite;
  color: #10b981;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.caf-ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.caf-ticker-scroll {
  animation: scrollUp 20s linear infinite;
}

.caf-ticker-scroll:hover {
  animation-play-state: paused;
}

.caf-ticker-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  color: #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.caf-ticker-item:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(5px);
}

.caf-ticker-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #d39b2a;
}

.caf-ticker-item p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Media query removed */

/* Desktop-site mode on phones reports a wider CSS viewport (often ~980px).
   Keep the public header/login layout compact up to tablet widths too. */
@media (max-width: 0px) {
  html,
  body,
  #loginScreen.caf-public-enhanced {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header {
    width: 100% !important;
    max-width: 100vw !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) 54px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    min-height: 92px !important;
    overflow: hidden !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box {
    display: flex !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box img,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    object-fit: contain !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .branding-titles {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h1 {
    font-size: clamp(16px, 2.8vw, 22px) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h2 {
    font-size: clamp(11px, 1.8vw, 14px) !important;
    line-height: 1.18 !important;
    margin: 3px 0 0 !important;
    overflow-wrap: anywhere !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h3 {
    font-size: clamp(10px, 1.6vw, 12px) !important;
    line-height: 1.18 !important;
    margin: 2px 0 0 !important;
    overflow-wrap: anywhere !important;
  }

  #loginScreen.caf-public-enhanced .reg-badge-line {
    font-size: 9px !important;
    margin: 4px auto 0 !important;
    padding-top: 3px !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon {
    width: 100% !important;
    max-width: 100vw !important;
    height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon::-webkit-scrollbar {
    display: none !important;
  }

  #loginScreen.caf-public-enhanced .nav-links-ccsea {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex: 1 0 auto !important;
    width: max-content !important;
    gap: 0 !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon a[data-page],
  #loginScreen.caf-public-enhanced .caf-login-nav {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 74px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #loginScreen.caf-public-enhanced .login-container-main,
  #loginScreen.caf-public-enhanced .public-page-section,
  #loginScreen.caf-public-enhanced .caf-login-premium-bg {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #loginScreen.caf-public-enhanced .login-container-main {
    padding: 0 !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-premium-bg {
    min-height: calc(100dvh - 136px) !important;
    background-position: center top !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-hero-layout {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: calc(100dvh - 136px) !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 16px 12px 28px !important;
    overflow-x: hidden !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-container {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
  }
}

/* Phone browsers with "Desktop site" can still report a wide viewport.
   The JS-applied compact class is the source of truth for these devices. */
html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header {
  inline-size: 100vw !important;
  max-inline-size: 100vw !important;
  margin-inline: 0 !important;
  transform: none !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .branding-titles,
html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .branding-titles * {
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
}

html.caf-compact-viewport,
body.caf-compact-viewport,
html.caf-compact-viewport #loginScreen.caf-public-enhanced {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header {
  width: 100% !important;
  max-width: 100vw !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 8px 7px !important;
  min-height: 88px !important;
  overflow: hidden !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box,
html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .emblem-box {
  display: flex !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box img,
html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .emblem-box img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  object-fit: contain !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .ccsea-header .branding-titles {
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .branding-titles h1 {
  font-size: clamp(15px, 4.2vw, 20px) !important;
  line-height: 1.08 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .branding-titles h2 {
  font-size: clamp(10px, 2.8vw, 13px) !important;
  line-height: 1.18 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .branding-titles h3 {
  font-size: clamp(9px, 2.6vw, 11px) !important;
  line-height: 1.2 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .reg-badge-line {
  font-size: 9px !important;
  margin: 4px auto 0 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .nav-ribbon {
  width: 100% !important;
  max-width: 100vw !important;
  height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .nav-links-ccsea {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: 0 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .nav-ribbon a[data-page],
html.caf-compact-viewport #loginScreen.caf-public-enhanced .caf-login-nav {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 72px !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .login-container-main,
html.caf-compact-viewport #loginScreen.caf-public-enhanced .public-page-section,
html.caf-compact-viewport #loginScreen.caf-public-enhanced .caf-login-premium-bg,
html.caf-compact-viewport #loginScreen.caf-public-enhanced .caf-login-hero-layout {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .login-container-main {
  padding: 0 !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .caf-login-hero-layout {
  justify-content: center !important;
  padding: 16px 12px 28px !important;
}

html.caf-compact-viewport #loginScreen.caf-public-enhanced .caf-login-container {
  width: min(100%, 390px) !important;
  max-width: 390px !important;
}

/* ============================================================
   HARD MOBILE HEADER / LOGIN WIDTH FIX
   Keeps the public login page inside the phone viewport.
   ============================================================ */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#loginScreen.caf-public-enhanced,
#loginScreen.caf-public-enhanced * {
  box-sizing: border-box;
}

#loginScreen.caf-public-enhanced {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

#loginScreen.caf-public-enhanced .ccsea-header,
#loginScreen.caf-public-enhanced .nav-ribbon,
#loginScreen.caf-public-enhanced .login-container-main,
#loginScreen.caf-public-enhanced .public-page-section,
#loginScreen.caf-public-enhanced .caf-login-premium-bg {
  width: 100%;
  max-width: 100vw;
}

#loginScreen.caf-public-enhanced .ccsea-header {
  overflow: hidden;
}

#loginScreen.caf-public-enhanced .branding-titles {
  min-width: 0;
}

#loginScreen.caf-public-enhanced .branding-titles h1,
#loginScreen.caf-public-enhanced .branding-titles h2,
#loginScreen.caf-public-enhanced .branding-titles h3,
#loginScreen.caf-public-enhanced .reg-badge-line {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#loginScreen.caf-public-enhanced .nav-ribbon {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#loginScreen.caf-public-enhanced .nav-links-ccsea {
  flex-wrap: nowrap;
}

#loginScreen.caf-public-enhanced .nav-ribbon a[data-page],
#loginScreen.caf-public-enhanced .caf-login-nav {
  flex: 0 0 auto;
  white-space: nowrap;
}

#loginScreen.caf-public-enhanced .caf-login-premium-bg,
#loginScreen.caf-public-enhanced .caf-login-hero-layout {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 0px) {
  #loginScreen.caf-public-enhanced {
    max-width: 100svw;
  }

  #loginScreen.caf-public-enhanced .ccsea-header,
  #loginScreen.caf-public-enhanced .nav-ribbon,
  #loginScreen.caf-public-enhanced .login-container-main,
  #loginScreen.caf-public-enhanced .public-page-section,
  #loginScreen.caf-public-enhanced .caf-login-premium-bg {
    max-width: 100svw !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) 56px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 10px !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box img,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles {
    padding: 0 !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h1 {
    font-size: clamp(16px, 3.4svw, 24px) !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h2 {
    font-size: clamp(11px, 2.2svw, 15px) !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h3 {
    font-size: clamp(10px, 2svw, 13px) !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon {
    padding: 0 !important;
    gap: 0 !important;
    height: 46px !important;
  }

  #loginScreen.caf-public-enhanced .nav-links-ccsea {
    display: flex !important;
    width: max-content !important;
    gap: 0 !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon a[data-page],
  #loginScreen.caf-public-enhanced .caf-login-nav {
    width: auto !important;
    min-width: 78px !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    justify-content: center !important;
  }

  #loginScreen.caf-public-enhanced .login-container-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-hero-layout {
    justify-content: center !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-container {
    width: min(100%, 390px) !important;
  }
}

@media (max-width: 0px) {
  #loginScreen.caf-public-enhanced .ccsea-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 10px 8px !important;
    min-height: 92px !important;
    overflow: hidden !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box {
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    justify-content: center !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box img,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    object-fit: contain !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .branding-titles {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h1 {
    font-size: clamp(15px, 4vw, 20px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h2 {
    font-size: clamp(10px, 2.9vw, 13px) !important;
    line-height: 1.18 !important;
  }

  #loginScreen.caf-public-enhanced .branding-titles h3 {
    font-size: clamp(9px, 2.7vw, 11px) !important;
    line-height: 1.2 !important;
  }

  #loginScreen.caf-public-enhanced .reg-badge-line {
    font-size: 9px !important;
    margin: 4px auto 0 !important;
    padding-top: 3px !important;
    max-width: 100% !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: 44px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon::-webkit-scrollbar {
    display: none;
  }

  #loginScreen.caf-public-enhanced .nav-links-ccsea {
    display: flex !important;
    flex: 1 0 auto !important;
    width: max-content !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon a[data-page],
  #loginScreen.caf-public-enhanced .caf-login-nav {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 76px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #loginScreen.caf-public-enhanced .login-container-main {
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  #loginScreen.caf-public-enhanced .public-page-section[data-page="login"] {
    width: 100% !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-premium-bg {
    min-height: calc(100dvh - 140px) !important;
    overflow: hidden !important;
    background-position: center top !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-hero-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100dvh - 140px) !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 18px 12px 28px !important;
  }

  #loginScreen.caf-public-enhanced .caf-login-container {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
  }
}

@media (max-width: 0px) {
  #loginScreen.caf-public-enhanced .ccsea-header {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 6px !important;
    min-height: 84px !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box {
    width: 38px !important;
    min-width: 38px !important;
  }

  #loginScreen.caf-public-enhanced .ccsea-header .aiims-logo-box img,
  #loginScreen.caf-public-enhanced .ccsea-header .emblem-box img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
  }

  #loginScreen.caf-public-enhanced .nav-ribbon a[data-page],
  #loginScreen.caf-public-enhanced .caf-login-nav {
    min-width: 70px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }
}

/* People List Styling */
.caf-people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.caf-person-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.caf-person-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
  opacity: 1;
}

.caf-person-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d39b2a 0%, #1e5aa8 50%, #d39b2a 100%);
  opacity: 0.5;
}

.caf-person-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(30, 90, 168, 0.25);
  border-color: rgba(212, 155, 42, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 248, 255, 1) 100%);
}

.caf-person-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid rgba(30, 90, 168, 0.3);
  box-shadow: 0 6px 20px rgba(30, 90, 168, 0.2);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.caf-person-item:hover .caf-person-photo {
  border-color: rgba(212, 155, 42, 0.8);
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 8px 24px rgba(212, 155, 42, 0.3);
}

.caf-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.caf-person-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caf-person-item h4 {
  margin: 0;
  color: #0f2744;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.caf-person-role {
  margin: 0;
  color: #1e5aa8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(30, 90, 168, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

.caf-person-email {
  margin: 8px 0 0;
  font-size: 12px;
}

.caf-person-email a {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1e5aa8 0%, #2a6db8 100%);
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 90, 168, 0.3);
}

.caf-person-email a:hover {
  background: linear-gradient(135deg, #d39b2a 0%, #e8b342 100%);
  box-shadow: 0 6px 16px rgba(212, 155, 42, 0.4);
  transform: scale(1.05);
}

.caf-people-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(212, 155, 42, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(212, 155, 42, 0.15);
}

.caf-people-section h4 {
  margin: 0 0 16px;
  color: #0f2744;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 12px;
  border-bottom: 3px solid rgba(212, 155, 42, 0.4);
}

.caf-people-section p {
  margin: 0;
  color: #1e5aa8;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

/* Animal Strains List Styling */
.caf-animal-strains-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.caf-strain-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.caf-strain-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
  opacity: 1;
}

.caf-strain-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(30, 90, 168, 0.25);
  border-color: rgba(212, 155, 42, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 248, 255, 1) 100%);
}

.caf-strain-photo {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(30, 90, 168, 0.3);
  box-shadow: 0 6px 20px rgba(30, 90, 168, 0.2);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.caf-strain-item:hover .caf-strain-photo {
  border-color: rgba(212, 155, 42, 0.8);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(212, 155, 42, 0.3);
}

.caf-strain-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caf-strain-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caf-strain-item h4 {
  margin: 0;
  color: #0f2744;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.caf-strain-description {
  margin: 0;
  color: #5d6b80;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

/* Download Page Styling */
.caf-download-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 0;
}

.caf-download-category {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.1);
  position: relative;
  overflow: hidden;
}

.caf-download-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
}

.caf-category-header {
  margin-bottom: 24px;
}

.caf-category-header h4 {
  margin: 0 0 12px;
  color: #0f2744;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-category-header p {
  margin: 0;
  color: #5d6b80;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.caf-download-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.caf-download-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 90, 168, 0.08);
}

.caf-download-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 90, 168, 0.2);
  border-color: rgba(212, 155, 42, 0.5);
}

.caf-download-info {
  flex: 1;
}

.caf-download-info h5 {
  margin: 0 0 8px;
  color: #0f2744;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.caf-download-format {
  margin: 0;
  color: #1e5aa8;
  font-size: 13px;
  font-weight: 600;
  background: rgba(30, 90, 168, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

.caf-download-btn {
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  background: linear-gradient(135deg, #1e5aa8 0%, #2a6db8 100%);
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 90, 168, 0.3);
  white-space: nowrap;
}

.caf-download-btn:hover {
  background: linear-gradient(135deg, #d39b2a 0%, #e8b342 100%);
  box-shadow: 0 6px 16px rgba(212, 155, 42, 0.4);
  transform: scale(1.05);
}

/* Facilities Page Styling */
.caf-facilities-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 0;
}

.caf-facility-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.caf-facility-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
}

.caf-facility-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 90, 168, 0.2);
  border-color: rgba(212, 155, 42, 0.5);
}

.caf-facility-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(30, 90, 168, 0.1);
}

.caf-facility-header h4 {
  margin: 0 0 8px;
  color: #0f2744;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-facility-header p {
  margin: 0;
  color: #1e5aa8;
  font-size: 14px;
  font-weight: 600;
}

.caf-facility-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.caf-facility-content p {
  margin: 0;
  color: #5d6b80;
  font-size: 14px;
  line-height: 1.7;
}

.caf-facility-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(30, 90, 168, 0.04);
  padding: 16px;
  border-radius: 12px;
}

.caf-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.caf-detail-label {
  color: #1e5aa8;
  font-size: 14px;
  font-weight: 600;
}

.caf-detail-value {
  color: #5d6b80;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.caf-facility-equipment {
  margin-top: 8px;
}

.caf-facility-equipment h5 {
  margin: 0 0 12px;
  color: #0f2744;
  font-size: 16px;
  font-weight: 700;
}

.caf-equipment-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(30, 90, 168, 0.08);
  color: #1e5aa8;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.caf-equipment-item:hover {
  background: rgba(212, 155, 42, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(212, 155, 42, 0.2);
}

.caf-equipment-photo {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(30, 90, 168, 0.2);
  box-shadow: 0 4px 12px rgba(30, 90, 168, 0.15);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.caf-equipment-item:hover .caf-equipment-photo {
  border-color: rgba(212, 155, 42, 0.6);
  transform: scale(1.05);
}

.caf-equipment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caf-facility-services {
  margin-top: 8px;
}

.caf-facility-services h5 {
  margin: 0 0 16px;
  color: #0f2744;
  font-size: 16px;
  font-weight: 700;
}

.caf-service-category {
  margin-bottom: 16px;
}

.caf-service-category h6 {
  margin: 0 0 10px;
  color: #1e5aa8;
  font-size: 15px;
  font-weight: 700;
}

.caf-service-category ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.caf-service-category li {
  color: #5d6b80;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.caf-facility-contact {
  margin-top: 16px;
  background: rgba(212, 155, 42, 0.06);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid rgba(212, 155, 42, 0.5);
}

.caf-facility-contact h5 {
  margin: 0 0 12px;
  color: #0f2744;
  font-size: 16px;
  font-weight: 700;
}

.caf-contact-details p {
  margin: 0 0 12px;
  color: #5d6b80;
  font-size: 14px;
  line-height: 1.6;
}

.caf-contact-details p:last-child {
  margin-bottom: 0;
}

.caf-contact-details strong {
  color: #1e5aa8;
  font-weight: 700;
}

.caf-contact-details a {
  color: #1e5aa8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.caf-contact-details a:hover {
  color: #d39b2a;
  text-decoration: underline;
}

/* Committee Cards Styling */
.caf-committee-intro-panel {
  width: 100%;
  padding: 22px 24px;
  margin: 10px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(30, 90, 168, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(15, 35, 68, 0.06);
}

.caf-committee-intro-panel h4 {
  margin: 0 0 10px;
  color: var(--caf-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.caf-committee-intro-copy {
  color: var(--caf-muted);
  font-size: 16px;
  line-height: 1.85;
  max-width: none;
}

.caf-committee-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.caf-committee-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.1);
  position: relative;
  overflow: hidden;
}

.caf-committee-card .caf-committee-info {
  width: 100%;
}

.caf-committee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
}

.caf-committee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(30, 90, 168, 0.25);
  border-color: rgba(212, 155, 42, 0.6);
}

.caf-committee-photo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(30, 90, 168, 0.2);
  box-shadow: 0 4px 12px rgba(30, 90, 168, 0.15);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.caf-committee-card:hover .caf-committee-photo {
  border-color: rgba(212, 155, 42, 0.6);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(212, 155, 42, 0.3);
}

.caf-committee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.caf-committee-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caf-committee-card h4 {
  margin: 0;
  color: #0f2744;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.caf-committee-role {
  margin: 0;
  color: #1e5aa8;
  font-size: 14px;
  font-weight: 600;
  background: rgba(30, 90, 168, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  align-self: center;
}

.caf-committee-address {
  margin: 0;
  color: #5d6b80;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

/* Contact Page Styling */
.caf-contact-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.caf-contact-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 24px 0;
  padding: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.caf-contact-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.caf-contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  position: relative;
  z-index: 1;
}

.caf-contact-rich {
  color: rgba(255, 255, 255, 0.98);
  font-size: 16px;
  line-height: 1.9;
}

.caf-contact-rich h1,
.caf-contact-rich h2,
.caf-contact-rich h3,
.caf-contact-rich h4,
.caf-contact-rich h5,
.caf-contact-rich h6 {
  color: white;
  margin-top: 24px;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.caf-contact-rich p {
  margin-bottom: 20px;
}

.caf-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.caf-contact-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
  border: 3px solid transparent;
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.caf-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.caf-contact-card:nth-child(2)::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
}

.caf-contact-card:nth-child(3)::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
}

.caf-contact-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.caf-contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transition: all 0.4s ease;
}

.caf-contact-card:nth-child(2) .caf-contact-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8px 24px rgba(240, 147, 251, 0.4);
}

.caf-contact-card:nth-child(3) .caf-contact-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.caf-contact-card:hover .caf-contact-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.caf-contact-card h4 {
  margin: 0 0 16px;
  color: #1a1a2e;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-contact-card:nth-child(2) h4 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-contact-card:nth-child(3) h4 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-contact-card p {
  margin: 0 0 10px;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.caf-contact-card p:last-of-type {
  margin-bottom: 0;
}

.caf-contact-card a {
  color: #3559b7;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  margin-top: 4px;
}

.caf-contact-card a:hover {
  text-decoration: underline;
}

.caf-contact-footer {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 50%, rgba(240, 147, 251, 0.08) 100%);
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-radius: 24px;
  padding: 32px 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.caf-contact-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.caf-contact-footer h4 {
  margin: 0 0 20px;
  color: #1a1a2e;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-contact-footer p {
  margin: 0;
  color: #4a5568;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
}

.caf-contact-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 244, 255, 0.99) 100%);
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.caf-contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.caf-contact-item:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
  border-color: rgba(240, 147, 251, 0.5);
}

.caf-contact-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.4s ease;
}

.caf-contact-item:hover .caf-contact-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: scale(1.2) rotate(-15deg);
  box-shadow: 0 10px 30px rgba(240, 147, 251, 0.5);
}

.caf-contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.caf-contact-item h4 {
  margin: 0;
  color: #1a1a2e;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caf-contact-info p {
  margin: 0;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.caf-contact-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.caf-contact-info a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.caf-contact-info a:hover {
  color: #764ba2;
}

.caf-contact-info a:hover::after {
  width: 100%;
}

/* Notice Page Styling */
.caf-notice-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .caf-hero-full-strip,
  .caf-hero-full-strip-visual {
    padding: 24px 22px;
    min-height: auto;
  }

  .caf-contact-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
  }

  /* Allow page-head subtitle to wrap on smaller screens */
  .caf-page-head p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.caf-notice-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 2px solid rgba(30, 90, 168, 0.15);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.1);
  position: relative;
  overflow: hidden;
}

.caf-notice-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5aa8 0%, #d39b2a 50%, #1e5aa8 100%);
}

.caf-notice-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(30, 90, 168, 0.25);
  border-color: rgba(212, 155, 42, 0.6);
}

.caf-notice-item h4 {
  margin: 0 0 12px;
  color: #0f2744;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.caf-notice-item p {
  margin: 0 0 16px;
  color: #5d6b80;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}

.caf-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.caf-primary-btn,
.caf-secondary-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.caf-primary-btn {
  background: linear-gradient(135deg, #1e5aa8 0%, #2a6db8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 90, 168, 0.3);
}

.caf-primary-btn:hover {
  background: linear-gradient(135deg, #d39b2a 0%, #e8b342 100%);
  box-shadow: 0 6px 16px rgba(212, 155, 42, 0.4);
  transform: scale(1.05);
}

.caf-secondary-btn {
  background: rgba(30, 90, 168, 0.08);
  color: #1e5aa8;
  border: 2px solid rgba(30, 90, 168, 0.2);
}

.caf-secondary-btn:hover {
  background: rgba(212, 155, 42, 0.15);
  border-color: rgba(212, 155, 42, 0.5);
  color: #d39b2a;
  transform: scale(1.05);
}

/* Login Page Styling */
.caf-login-background {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.caf-login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.85) 0%, rgba(30, 58, 95, 0.75) 100%);
}

.caf-login-container-centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.caf-login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.caf-login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3);
  padding: 40px;
  position: relative;
}


.caf-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.caf-login-logo-ring {
  display: inline-block;
  margin-bottom: 20px;
  position: relative;
}

.caf-login-logo-ring img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid rgba(255,255,255,0.8);
}

.caf-login-header i {
  font-size: 48px;
  color: #1e5aa8;
  margin-bottom: 16px;
}

.caf-login-header h3 {
  margin: 0 0 8px;
  color: #002147;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.caf-login-header p {
  margin: 0;
  color: #5d6b80;
  font-size: 14px;
  font-weight: 500;
}

.caf-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.caf-login-error {
  display: none;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #b91c1c;
  border-left: 4px solid #b91c1c;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}

.caf-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caf-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #0f2744;
}

.caf-form-group input,
.caf-form-group select {
  padding: 14px 16px;
  border: 2px solid rgba(30, 90, 168, 0.2);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #16233a;
  background: rgba(248, 251, 255, 0.8);
  transition: all 0.3s ease;
}

.caf-form-group input:focus,
.caf-form-group select:focus {
  outline: none;
  border-color: #1e5aa8;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.1);
}

.caf-form-group input::placeholder {
  color: #94a3b8;
}

.caf-login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.caf-login-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, #1e5aa8 0%, #2a6db8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.3);
}

.caf-login-btn:hover {
  background: linear-gradient(135deg, #d39b2a 0%, #e8b342 100%);
  box-shadow: 0 6px 20px rgba(212, 155, 42, 0.4);
  transform: translateY(-2px);
}

.caf-forgot-btn {
  padding: 12px 24px;
  background: transparent;
  color: #1e5aa8;
  border: 2px solid rgba(30, 90, 168, 0.2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.caf-forgot-btn:hover {
  background: rgba(30, 90, 168, 0.08);
  border-color: rgba(30, 90, 168, 0.4);
  color: #0f2744;
}

#loginScreen.caf-public-enhanced .wave-footer {
  z-index: 1;
  width: 100%;
}

#loginScreen.caf-public-enhanced .wave-footer::before {
  display: none;
}

/* Media query removed */

/* Media query removed */

/* ================= PREMIUM LOGIN REDESIGN ================= */
.caf-login-premium-bg {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-height, 70px) - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  margin-top: 10px;
  isolation: isolate;
}

.caf-login-glass-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(115deg, rgba(6, 20, 38, 0.82) 0%, rgba(8, 32, 62, 0.68) 42%, rgba(13, 53, 45, 0.48) 100%),
    radial-gradient(circle at center, rgba(255, 196, 87, 0.10) 0%, rgba(255,255,255,0) 42%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.caf-login-hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px);
  gap: 28px;
  align-items: center;
  animation: fadeInForm 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInForm {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.caf-login-showcase {
  color: #fff;
  padding: 18px 10px 18px 6px;
  display: grid;
  gap: 20px;
}

.caf-login-showcase-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caf-login-showcase h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.caf-login-showcase p {
  margin: 0;
  max-width: 650px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.caf-login-showcase-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.caf-login-point {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.caf-login-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
}

.caf-login-point span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.caf-login-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.caf-login-container .caf-login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0.10) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  padding: 34px 30px 30px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.caf-login-header {
  text-align: center;
  color: white;
}

.caf-login-overline {
  margin-bottom: 10px;
  color: rgba(255, 224, 163, 0.95);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.caf-login-logo-ring {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #FF9933 0%, #D4AF37 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 28px;
  color: white;
  box-shadow: 0 10px 20px rgba(255, 153, 51, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.caf-login-header h3 {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.caf-login-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.caf-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.caf-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.caf-form-group label {
  color: #002147;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.caf-form-group input, 
.caf-form-group select {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 33, 71, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.caf-form-group input:focus,
.caf-form-group select:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.3);
  border-color: #FF9933;
}

.caf-login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.caf-login-btn-premium {
  background: linear-gradient(135deg, #FF9933 0%, #F15A24 100%);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.caf-login-btn-premium:hover {
  background: linear-gradient(135deg, #ffd06b 0%, #f97316 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(241, 90, 36, 0.42);
}

.caf-forgot-btn-premium {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 46px;
  border-radius: 14px;
}

.caf-forgot-btn-premium:hover {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.caf-login-error {
  color: #ff4d4d;
  background: rgba(255, 0, 0, 0.1);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: none;
}
.caf-login-error:not(:empty) {
  display: block;
}

.caf-login-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 980px) {
  .caf-login-hero-layout {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .caf-login-showcase {
    padding: 4px 2px;
  }

  .caf-login-showcase-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .caf-login-premium-bg {
    border-radius: 22px;
  }

  .caf-login-hero-layout {
    padding: 16px;
    gap: 20px;
  }

  .caf-login-container .caf-login-card {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .caf-login-showcase h2 {
    font-size: 30px;
  }

  .caf-login-showcase p {
    font-size: 14px;
  }
}

/* Refined CAF + AIIMS login redesign */
#loginScreen.caf-public-enhanced {
  background: linear-gradient(180deg, #eff4fa 0%, #f8fbff 100%);
  min-height: 100vh;
  position: relative;
  width: 100%;
}

#loginScreen.caf-public-enhanced .login-container-main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

#loginScreen.caf-public-enhanced .public-page-section[data-page="login"] {
  min-height: 0;
}

.caf-login-premium-bg {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: clamp(440px, calc(100vh - 200px), 700px);
  border: none;
  background:
    linear-gradient(115deg, rgba(10, 28, 52, 0.14) 0%, rgba(10, 28, 52, 0.08) 34%, rgba(255, 255, 255, 0.01) 100%),
    var(--caf-login-bg, url('caf-public-assets/AAA_1145.JPG')) center/cover no-repeat;
  box-shadow: none;
}

.caf-login-premium-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.caf-login-hero-layout {
  position: relative;
  z-index: 1;
  min-height: clamp(350px, calc(100vh - 250px), 550px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(10px, 1.4vw, 18px) clamp(16px, 2.5vw, 28px);
}

.caf-login-container {
  width: 100%;
  max-width: 385px;
}

.caf-login-card.caf-login-card-refined {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  padding: 12px 12px 14px;
  box-shadow: 0 18px 36px rgba(5, 17, 33, 0.16);
  backdrop-filter: blur(18px);
}

.caf-login-brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.caf-login-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eff5fc;
  border: 1px solid rgba(19, 58, 104, 0.08);
  color: #16365c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caf-login-brand-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.caf-login-brand-chip-alt {
  background: linear-gradient(135deg, #fff4d8, #ffe4ab);
  color: #7a4a06;
}

.caf-login-brand-chip-alt i {
  font-size: 14px;
}

.caf-login-header.caf-login-header-refined {
  margin-bottom: 12px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, #0f2b4d, #1d4b7a);
  color: #fff;
}

.caf-login-header-refined .caf-login-logo-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #edf5ff);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.caf-login-header-refined .caf-login-logo-ring img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.caf-login-header-refined .caf-login-overline {
  margin-bottom: 6px;
  color: #ffd78b;
  font-size: 11px;
}

.caf-login-header-refined h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 21px;
  text-shadow: none;
}

.caf-login-header-refined p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.caf-login-card-refined .caf-login-form {
  gap: 12px;
}

.caf-login-card-refined .caf-form-group {
  gap: 6px;
}

.caf-login-card-refined .caf-form-group label {
  color: #17395f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.caf-login-card-refined .caf-form-group input,
.caf-login-card-refined .caf-form-group select {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(23, 57, 95, 0.14);
  border-radius: 14px;
  background: rgba(246, 249, 253, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.caf-login-card-refined .caf-form-group input:focus,
.caf-login-card-refined .caf-form-group select:focus {
  border-color: rgba(30, 90, 168, 0.56);
  box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.10);
}

.caf-login-card-refined .caf-login-btn-premium {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d79b23, #f47d20);
  box-shadow: 0 16px 28px rgba(244, 125, 32, 0.24);
  font-size: 14px;
}

.caf-login-card-refined .caf-login-btn-premium:hover {
  background: linear-gradient(135deg, #f1b64a, #ef6d17);
}

.caf-forgot-btn-soft {
  min-height: 42px;
  background: #eef4fa;
  color: #17395f;
  border: 1px solid rgba(23, 57, 95, 0.1);
  border-radius: 14px;
  font-size: 12px;
}

.caf-forgot-btn-soft:hover {
  background: #e4eef8;
  color: #0e2743;
}

.caf-login-footer-note-soft {
  padding: 8px 10px;
  background: #eef5fb;
  border: 1px solid rgba(19, 58, 104, 0.1);
  color: #35567b;
  font-size: 10.5px;
  line-height: 1.45;
}

.caf-login-card-refined .caf-login-error {
  border-left: none;
  border-radius: 16px;
}

/* Mobile overrides removed */

/* Mobile overrides removed */

/* Standardized desktop grid defaults enforced */
.caf-page-head,
.caf-animal-grid,
.caf-login-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.caf-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.caf-hero-actions {
  grid-template-columns: repeat(3, max-content);
}


.caf-people-grid,
.caf-animals-grid,
.caf-committee-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.caf-animal-strains-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Remaining media queries removed for unification */
  .caf-live-ticker {
    min-height: 280px;
    max-height: 350px;
    padding: 16px;
  }

  .caf-ticker-content {
    height: 200px;
  }

  /* Contact and download items - Stacked */
  .caf-download-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .caf-download-btn {
    width: 100%;
    text-align: center;
  }

  /* Facility details - Stacked */
  .caf-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .caf-detail-value {
    text-align: left;
  }

  /* Equipment - Responsive grid */
  .caf-equipment-item {
    width: calc(50% - 8px);
    margin: 0 0 12px 0;
  }

  /* Spacing adjustments */
  .caf-page-head {
    margin-bottom: 16px;
  }

  .caf-card-grid {
    gap: 16px;
  }

  .caf-home-hero-section,
  .caf-home-notices-section {
    gap: 16px;
  }

  .caf-hero-box {
    padding: 24px 20px;
  }

  /* Touch targets minimum 44px */
  button,
  a,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  /* Hide hover effects on touch devices */
  .caf-person-item:hover,
  .caf-animal-card:hover,
  .caf-strain-item:hover,
  .caf-download-item:hover,
  .caf-facility-item:hover {
    transform: none;
  }
}

/* SMALL MOBILE - Below 480px */
@media (max-width: 479px) {
  /* Even more compact spacing */
  #loginScreen.caf-public-enhanced .login-container-main {
    padding: 12px 8px;
  }

  .caf-page-card {
    padding: 16px 12px;
  }

  .caf-home-grid {
    padding: 12px 8px;
    gap: 16px;
  }

  /* Navigation - Single column on very small screens */
  #loginScreen.caf-public-enhanced .nav-links-ccsea {
    grid-template-columns: 1fr;
  }

  /* Typography - Smaller font sizes */
  .caf-page-head h3,
  .caf-login-page h3 {
    font-size: 20px;
  }

  .caf-hero-box h3 {
    font-size: 16px;
  }

  .caf-hero-title-premium {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    font-size: 20px;
    text-align: center;
  }

  .caf-hero-body-premium {
    max-width: none;
    margin: 0;
    text-align: left;
    font-size: 14px;
  }

  .caf-hero-copy {
    text-align: left;
    font-size: 15px;
    line-height: 1.75;
  }

  /* Cards - Minimal padding */
  .caf-person-card,
  .caf-animal-card,
  .caf-committee-card {
    padding: 16px 12px;
  }

  /* Equipment - Full width */
  .caf-equipment-item {
    width: 100%;
  }

  /* Buttons - Maintain touch targets */
  .caf-primary-btn,
  .caf-secondary-btn,
  .caf-outline-btn {
    font-size: 13px;
    padding: 0 16px;
  }
}

@media (max-width: 1200px) {
  .caf-hero-title-premium {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    text-wrap: balance;
    font-size: clamp(20px, 2.6vw, 30px);
  }

  .caf-hero-body-premium {
    max-width: 860px;
  }

  .caf-animal-hero-band,
  .caf-animal-section-grid {
    grid-template-columns: 1fr;
  }

  .caf-animal-table {
    min-width: 720px;
  }
}

@media (max-width: 479px) {
  .caf-animal-hero-band,
  .caf-animal-section {
    padding: 18px 16px;
  }

  .caf-animal-hero-copy h3 {
    font-size: 24px;
  }

  .caf-animal-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .caf-animal-table {
    min-width: 680px;
  }
}

/* LANDSCAPE MOBILE - Small height */
@media (max-height: 500px) and (orientation: landscape) {
  .caf-login-hero-layout {
    min-height: auto;
    padding: 12px;
  }

  .caf-live-ticker {
    min-height: 200px;
    max-height: 250px;
  }

  .caf-ticker-content {
    height: 150px;
  }
}

/* ============================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================ */

@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .caf-person-item:hover,
  .caf-animal-card:hover,
  .caf-strain-item:hover,
  .caf-download-item:hover,
  .caf-facility-item:hover,
  .caf-equipment-item:hover,
  .caf-person-item:hover .caf-person-photo,
  .caf-strain-item:hover .caf-strain-photo,
  .caf-equipment-item:hover .caf-equipment-photo {
    transform: none;
  }

  /* Active states for touch feedback */
  .caf-person-item:active,
  .caf-animal-card:active,
  .caf-strain-item:active,
  .caf-download-item:active,
  .caf-facility-item:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  /* Smooth scrolling */
  html {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================ */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .caf-page-card,
  .caf-person-card,
  .caf-animal-card,
  .caf-strain-item,
  .caf-download-item,
  .caf-facility-item {
    border-width: 2px;
  }

  .caf-primary-btn,
  .caf-secondary-btn,
  .caf-outline-btn {
    border-width: 2px;
  }
}

/* Compact public header rules are consolidated near the top of this file. */
