/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #2eaac4;
  --blue-dark: #1a8aaa;
  --blue-grad: linear-gradient(135deg, #1e9bbf 0%, #2eaac4 60%, #1a8aaa 100%);
  --gray-text: #555;
  --gray-light:#f0f2f5;
  --white:     #fff;
  --border:    #e0e0e0;
  --shadow:    0 2px 8px rgba(0,0,0,0.08);
  --radius:    6px;
  --font:      'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
  background: var(--gray-light);
  color: var(--gray-text);
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ═══════════════════════════════════════
   TOP BAR (bara de sus cu logo + contact)
═══════════════════════════════════════ */
.top-bar {
  background: #1a3550;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar .top-right { display: flex; gap: 16px; align-items: center; }

/* ═══════════════════════════════════════
   HEADER (logo + titlu universitate)
═══════════════════════════════════════ */
header {
  background: #fff;
  color: #05215e;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 600;
}

.logo-link {
  text-decoration: none;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 125px;
  width: 300px;
}

.logo p {
  font-weight: 600;
  color: #ab7e56;
}

header nav ul {
  display: flex;
  list-style: none;
}

header nav ul li {
  margin-left: 2rem;
}

header .container nav ul li a {
  color: #05215e;
  text-decoration: none;
}

header .menu-toggle {
  display: none;
  background: #05215e;
  color: #fff;
  
}

header .menu-toggle nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* ═══════════════════════════════════════
   MAIN NAV (bara principală meniu)
═══════════════════════════════════════ */
.main-nav {
  background: #1a3550;
  width: 100%;
}
.main-nav ul {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}
.main-nav ul li a {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #fff;
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* ═══════════════════════════════════════
   SECTION HEADER (banda albastră + breadcrumb)
═══════════════════════════════════════ */
.section-header {
  background: var(--blue-grad);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header__title {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a, .breadcrumb span {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { color: rgba(255,255,255,0.5); }
.breadcrumb .current { color: #fff; font-weight: 700; }
.breadcrumb .home-icon svg {
  width: 14px; height: 14px;
  fill: none; stroke: rgba(255,255,255,0.82);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}

/* ═══════════════════════════════════════
   ICON NAV (meniu cu iconițe)
═══════════════════════════════════════ */
.icon-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: var(--shadow);
}
.icon-nav::-webkit-scrollbar { display: none; }
.icon-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: stretch;
  min-width: max-content;
  margin: 0 auto;
  padding: 0 1rem;
}
.icon-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: #999;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.icon-nav li a:hover { color: var(--blue); text-decoration: none; }
.icon-nav li a.active { color: var(--blue); border-bottom-color: var(--blue); }
.icon-nav li a svg {
  width: 34px; height: 34px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ═══════════════════════════════════════
   LAYOUT PRINCIPAL
═══════════════════════════════════════ */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  flex: 1;
}

/* ═══════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════ */
.content { min-width: 0; }

.content h2 {
  font-size: 1.3rem;
  color: #1a3550;
  border-left: 4px solid var(--blue);
  padding-left: 12px;
  margin-bottom: 16px;
  margin-top: 28px;
}
.content h2:first-child { margin-top: 0; }

.content p { line-height: 1.75; margin-bottom: 12px; font-size: 14.5px; }

.content ul { padding-left: 20px; margin-bottom: 12px; }
.content ul li { line-height: 1.8; font-size: 14.5px; }

/* Card persoană (cadre didactice) */
.person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.person-card:hover { box-shadow: 0 4px 16px rgba(46,170,196,0.15); }
.person-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.person-avatar svg {
  width: 28px; height: 28px;
  fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.person-info h3 { font-size: 14.5px; color: #1a3550; font-weight: 700; }
.person-info p { font-size: 13px; color: #888; margin: 2px 0 0; }
.person-info a { font-size: 13px; color: var(--blue); }

/* Card generic (news, ofertă) */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(46,170,196,0.15); }
.card .card-date { font-size: 12px; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.card h3 { font-size: 15px; color: #1a3550; margin-bottom: 8px; }
.card p { font-size: 13.5px; line-height: 1.65; }
.card .read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

/* Tabel orar/examene */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead tr { background: #1a3550; color: #fff; }
thead th { padding: 12px 14px; text-align: left; font-size: 12.5px; letter-spacing: 0.04em; }
tbody tr:nth-child(even) { background: #f7f9fb; }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
tbody tr:hover td { background: #e8f6fa; }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sidebar-widget .widget-title {
  background: #1a3550;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 16px;
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--gray-text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sidebar-widget ul li a:hover { background: #e8f6fa; color: var(--blue); }
.sidebar-widget ul li:last-child a { border-bottom: none; }
.sidebar-widget .widget-body { padding: 14px 16px; font-size: 13.5px; line-height: 1.7; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer .container {
  background: #05215e;
  color: #fff;
  padding: 1rem 2rem;
}
footer .container .footer {
  
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  
}

.copyright {
  background: #05215e;
  color: #fff;
  padding: 1rem 2rem;
  margin-top: 1px;


}

footer .container ul {
  display: flex;
  list-style: none;
  margin-bottom: 1rem;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

footer .container ul li {
  margin: 0 1rem;
}

footer .container ul li a {
  color: #fff;
  text-decoration: none;
}

footer address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   IMAGE GRID (spații didactice)
═══════════════════════════════════════ */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.image-grid-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.image-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.image-grid-item:hover img { transform: scale(1.04); }
.image-grid-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,53,80,0);
  transition: background 0.2s;
  display: flex;
  align-items: flex-end;
}
.image-grid-item:hover .overlay { background: rgba(26,53,80,0.45); }
.image-grid-item .caption {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-grid-item:hover .caption { opacity: 1; }

/* ── LIGHTBOX ── */
.lb-wrap {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lb-wrap.open { display: flex; }
.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 60px 80px;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 1001;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: fixed;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 1001;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-caption {
  position: fixed;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lb-counter {
  position: fixed;
  top: 18px; left: 20px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
.lb-dots {
  position: fixed;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.lb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .2s;
}
.lb-dot.active { background: #2eaac4; }

 /* ── PDF Embed Viewer ── */
 .pdf-viewer-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1a3550;
  padding: 10px 16px;
}
.pdf-viewer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-viewer-header svg.file-icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: rgba(255,255,255,0.8);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.pdf-viewer-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-viewer-download {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.pdf-viewer-download:hover { background: rgba(255,255,255,0.22); text-decoration: none; color: #fff; }
.pdf-viewer-download svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pdf-embed-wrap { width: 100%; background: #e8e8e8; }
.pdf-embed-wrap iframe { display: block; width: 100%; height: 600px; border: none; }
.pdf-mobile-fallback { display: none; padding: 24px 20px; text-align: center; }
.pdf-mobile-fallback p { font-size: 13.5px; color: #666; margin-bottom: 14px; }
.pdf-mobile-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 10px 20px; border-radius: var(--radius); text-decoration: none; transition: background 0.15s;
}
.pdf-mobile-btn:hover { background: var(--blue-dark); text-decoration: none; color: #fff; }
.pdf-mobile-btn svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 960px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
  .pdf-embed-wrap iframe { display: none; }
  .pdf-mobile-fallback { display: block; }
}

@media (max-width: 768px) {
  .top-bar, .site-header, .section-header, .page-wrapper { padding-left: 20px; padding-right: 20px; }
  .main-nav ul { flex-wrap: nowrap; overflow-x: auto; min-width: max-content; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .icon-nav ul { justify-content: flex-start; }
  .icon-nav li a { padding: 12px 10px; font-size: 9px; }
  .icon-nav li a svg { width: 26px; height: 26px; }
  .image-grid { grid-template-columns: 1fr; }

    header {
    padding-bottom: 0;
    }
    header .container {
        flex-direction: column;
    }

    header .logo {
        flex-direction: column;
    }

    header .logo p{
        padding: 10px 0;
    }

    header nav ul {
        flex-direction: column;
        display: none;
    }

    header .menu-toggle {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        align-content: center;
        flex-wrap: wrap;
        
    }

    nav ul.active {
        display: flex;
        padding-bottom: 10px;
        gap: 10px;
    }

    .faculties {
        padding: 1rem 0rem;
        
    }

    .faculties .container {
        flex-direction: column;
    }

    .faculty-card {
        width: 80%;
        margin: 1rem auto;
    }

    .card-content {

        text-decoration: none;
        
    }

    footer {
      padding-bottom: 0;
      text-align: center;
    }
    footer .container .footer {
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    footer .logo {
      flex-direction: column;
    }

    footer .logo p{
      padding: 10px 0;
    }
}
