:root {
  --red: #ca2b21;
  --red-dark: #a02019;
  --red-glow: rgba(202,43,33,0.18);
  --red-soft: rgba(202,43,33,0.08);
  --ink: #111418;
  --ink-2: #2c3038;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f7f8;
  --white: #ffffff;
  --onlisans: #059669;
  --lisans: #0369a1;
  --lisansustu: #7c3aed;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --font-display: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ── */
.site-header {
  background: var(--red);
  position: relative;
  overflow: hidden;
}

  .site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 120% at 80% -10%, rgba(255,255,255,0.12) 0%, transparent 60%), radial-gradient(ellipse 30% 60% at 10% 110%, rgba(0,0,0,0.18) 0%, transparent 60%);
    pointer-events: none;
  }

  .site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  }

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.uni-logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

  .uni-logo-wrap img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

.uni-logo-placeholder {
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
}

.header-text {
}

  .header-text .uni-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.45rem);
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .header-text .sys-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.2rem;
  }

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.grad-icon {
  font-size: 2.6rem;
  color: rgba(255,255,255,0.3);
  line-height: 1;
}

.btn-lang {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}

  .btn-lang:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
  }

/* ── MAIN ── */
.main-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .stat-card.login-card::before {
    background: var(--red);
  }

  .stat-card.onlisans::before {
    background: var(--onlisans);
  }

  .stat-card.lisans::before {
    background: var(--lisans);
  }

  .stat-card.lisansustu::before {
    background: var(--lisansustu);
  }

  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.stat-card.login-card .card-icon-wrap {
  background: var(--red-soft);
  color: var(--red);
}

.stat-card.onlisans .card-icon-wrap {
  background: rgba(5,150,105,0.09);
  color: var(--onlisans);
}

.stat-card.lisans .card-icon-wrap {
  background: rgba(3,105,161,0.09);
  color: var(--lisans);
}

.stat-card.lisansustu .card-icon-wrap {
  background: rgba(124,58,237,0.09);
  color: var(--lisansustu);
}

.card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.counter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stat-card.onlisans .counter {
  color: var(--onlisans);
}

.stat-card.lisans .counter {
  color: var(--lisans);
}

.stat-card.lisansustu .counter {
  color: var(--lisansustu);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.3rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

  .btn-login:hover {
    background: var(--red-dark);
    transform: scale(1.03);
  }

.btn-edevlet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 0.5rem;
}

  .btn-edevlet:hover {
    color: var(--red-dark);
  }

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.section-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

  .section-title i {
    color: var(--red);
    font-size: 0.95rem;
  }

.empty-notice {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.5rem 0;
}

.announcement-link {
  font-size: 0.85rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

  .announcement-link:hover {
    gap: 0.55rem;
  }

/* ── MAP SECTION ── */
.map-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.map-header {
  padding: 1.2rem 1.4rem 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-zoom {
  display: flex;
  gap: 0.4rem;
}

  .map-zoom button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink-2);
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

    .map-zoom button:hover {
      background: var(--red);
      color: #fff;
      border-color: var(--red);
    }

#mapWrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: auto;
  background: #fff;
}

#mapCanvas {
  width: 100%;
  height: 100%;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,20,24,0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

  .modal-overlay.open {
    display: flex;
  }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  background: var(--red);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

  .modal-head h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
  }

.modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

  .modal-close:hover {
    background: rgba(255,255,255,0.3);
  }

.modal-body {
  padding: 1.6rem 1.4rem 1.4rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

  .form-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
    background: var(--white);
  }

.captcha-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.captcha-img {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  overflow: hidden;
}

  .captcha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.captcha-input {
  width: 90px;
  flex-shrink: 0;
}

.caps-warn {
  color: var(--red);
  font-size: 0.75rem;
  display: none;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.btn-primary-full {
  width: 100%;
  padding: 0.7rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

  .btn-primary-full:hover {
    background: var(--red-dark);
  }

.btn-edevlet-full {
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

  .btn-edevlet-full:hover {
    border-color: var(--red);
    color: var(--red);
  }

.modal-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
}

.modal-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

  .modal-link:hover {
    color: var(--red);
  }

.timer-box {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.timer-val {
  font-weight: 700;
  color: var(--ink);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-brand .uni-name-footer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

  .social-link:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
  }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

  .footer-bottom span {
    color: rgba(255,255,255,0.65);
  }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
  }

  .main-wrap {
    padding: 1.2rem 1rem 2rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
  cursor: pointer;
}

  .list-item:last-child {
    border-bottom: none;
  }

  .list-item:hover {
    background: #f7f9fc;
  }

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
}

.item-date {
  font-size: 0.75rem;
  color: #888;
}
.badge-new {
  background: #ff3b30;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 5px;
  vertical-align: middle;
}

.btn-all {
  font-size: 0.75rem;
  text-decoration: none;
  color: #0d6efd;
  font-weight: 600;
}

  .btn-all:hover {
    text-decoration: underline;
  }

.badge-new {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.filter-bar {
  margin-bottom: 15px;
}

  .filter-bar a {
    margin-right: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #555;
  }

    .filter-bar a:hover {
      color: #0d6efd;
    }

.pagination-wrap {
  margin-top: 15px;
  text-align: center;
}

.page-link {
  display: inline-block;
  margin: 3px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}

  .page-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
  }
