/* ========================================
   ADMITERE COLEGIU TERȚIAR NONUNIVERSITAR
   Violet-blue academic palette, fancy & modern
   Eye-comfortable colors + youth + academic vibe
   All local CSS - no frameworks
   ======================================== */

:root {
  /* Violet-blue academic palette - eye comfortable */
  --primary: #3F3A72;
  --primary-dark: #2E2B57;
  --primary-light: #5F5A9E;
  --accent: #7169B8;
  --accent-light: #A9A3D9;
  --accent-warm: #8A82C7;
  
  /* Backgrounds */
  --bg: #F7F6FC;
  --bg-alt: #EFEDF7;
  --surface: #FFFFFF;
  --surface-warm: #F9F8FD;
  
  /* Text */
  --text: #2C2522;
  --text-light: #5C554E;
  --text-muted: #7D746A;
  
  /* Borders & accents */
  --border: #E6E4F1;
  --border-light: #EFEDF7;
  
  /* Success / highlight */
  --success: #3D5F6E;
  --gold: #7169B8;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Radius & shadows */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(63, 58, 114, 0.08);
  --shadow: 0 8px 25px rgba(63, 58, 114, 0.12);
  --shadow-lg: 0 20px 45px rgba(63, 58, 114, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; letter-spacing: 0.02em; }

p {
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 65ch;
}

/* Buttons - Fancy modern */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gold {
  background-color: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn-gold:hover {
  background-color: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--text);
  transform: translateY(-1px);
}

/* Navbar - Elegant & Sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
}

/* Hero - Violet-blue, fancy, impactful */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  /* Imaginea tematică de admitere, umbrită de stratul violet (gradientul semi-transparent
     stă deasupra imaginii, ca textul și identitatea universității să rămână mereu vizibile). */
  background:
    linear-gradient(120deg, rgba(63, 58, 114, 0.94) 0%, rgba(46, 43, 87, 0.86) 45%, rgba(37, 34, 69, 0.72) 100%),
    url('../img/hero-admitere.svg') center right / cover no-repeat,
    #2E2B57;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(113, 105, 184, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(138, 130, 199, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Pe ecrane mici imaginea trece în spatele unui strat mai opac, pentru lizibilitate. */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(160deg, rgba(63, 58, 114, 0.96) 0%, rgba(37, 34, 69, 0.9) 100%),
      url('../img/hero-admitere.svg') center right / cover no-repeat,
      #2E2B57;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 3rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}

.hero .subtitle {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
}

.hero .university {
  font-size: 1rem;
  opacity: 0.85;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 52ch;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2.25rem;
  margin-top: 3.25rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 1.35rem 1.65rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 1.65rem;
}

.card-footer {
  padding: 1rem 1.65rem;
  background: var(--surface-warm);
  border-top: 1px solid var(--border-light);
}

/* Program Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.program-card {
  position: relative;
}

.program-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.program-card.mecanica .program-icon {
  background: linear-gradient(135deg, #2E2B57, #3F3A72);
  color: #fff;
}

.program-card.sanatate .program-icon {
  background: linear-gradient(135deg, #3D5A7A, #4A6A8C);
  color: #fff;
}

.program-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.program-domain {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-meta {
  display: flex;
  gap: 1.5rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.program-places {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  background: var(--accent-light);
  color: var(--text);
  border-radius: 999px;
}

.program-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #F9F8FD;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.highlight {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.highlight h4 {
  margin-bottom: 0.3rem;
  color: var(--primary);
}

/* Calendar */
.calendar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.calendar-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.75rem;
  font-weight: 600;
}

.timeline {
  padding: 0.5rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.timeline-content {
  color: var(--text-light);
}

.timeline-phase {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--text);
  margin-bottom: 0.3rem;
}

.timeline-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Documents */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.doc-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  background: var(--bg-alt);
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 0.85rem;
  padding: 1rem 1.25rem;
  background: #F4F3FA;
  color: var(--text-muted);
}

/* Criteria & Taxes */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.info-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.exemption {
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  color: var(--text-light);
}

/* Why us - Youth + Academic */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 999px;
  color: var(--primary);
}

.why-card h4 {
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(201, 169, 110, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Conținutul CTA trebuie să stea deasupra stratului decorativ, ca să fie clicabil. */
.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.65rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.cta-banner .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
}

.cta-banner .btn:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  border-color: var(--accent-light);
}

/* Trust / ARACIS */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  font-weight: 500;
}

.trust-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.75);
}

.footer a:hover {
  color: var(--accent-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 3rem;
}

.footer-description {
  color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--accent-light) !important;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);
}

/* Fix dark text on dark footer background */
.footer .logo-main {
  color: #fff !important;
}

.footer .logo-text {
  color: #fff;
}

.footer .footer-description {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Also ensure logo sub text is visible in footer if present */
.footer .logo-sub {
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
  
  .hero-stats {
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  
  .hero {
    min-height: 82vh;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Subtle fancy touches */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

/* Print friendly */
@media print {
  .navbar, .footer, .hero-actions, .btn { display: none !important; }
  .hero { background: #fff; color: #000; min-height: auto; }
}

/* ========================================
   MOBILE NAV ENHANCEMENTS
   ======================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0.85rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .nav-link {
    padding: 0.55rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle.active svg {
    transform: rotate(90deg);
  }
