/* ============================================
   Global Theme & Overrides
   ============================================ */

:root {
  --accent-color: #007acc;
}

/* Temporarily disabled custom font due to rendering issues.
@font-face {
  font-family: 'MyFont';
  src: url('fonts/unicredit-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
*/




/* Body Typography */

body {
  /* Use a standard system font stack for now */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, Noto Sans, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #222;
}

/* Headings */
h1,
h2,
h3 {
  font-weight: 600;
}

/* Academic-style section headings */
#about h2 {

  margin-bottom: 1.5rem;
  text-align: left;
}

/* ============================================
   Academic Layout: Narrow Column
   ============================================ */

.narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

#contact .form-control {
  font-size: 0.95rem;
  padding: 6px 10px;
}


/* Paragraph Style */
#about p {

  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
  color: #333;
  margin-bottom: 1.3rem;
}

#about {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* ============================================
   Links
   ============================================ */

a,
.nav-link {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover,
.nav-link:hover {
  color: #005f99;
}

/* ============================================
   Buttons
   ============================================ */

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

.btn-primary:hover {
  background-color: #005f99;
  border-color: #005f99;
}

/* ============================================
   Cards
   ============================================ */

.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ============================================
   News Section
   ============================================ */

.news-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.news-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid #b18c8c;
}

.news-list .date {
  font-weight: bold;
  width: 100px;
  flex-shrink: 0;
  color: var(--accent-color);
}

.news-list .content {
  flex: 1;
}

/* ============================================
   Social Icons
   ============================================ */

.social-icons img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================
   Footer
   ============================================ */

footer {
  font-size: 0.95rem;
}

.project-figure {
  margin: 0;
}

.project-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f3f3f3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.gallery-thumb {
  border-radius: 12px;
  background: #f3f3f3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: block;
}

.gallery-full {
  max-height: 80vh;
  /* keeps it in a “window”, not full page */
  object-fit: contain;
  background: #111;
  border-radius: 10px;
}

/* ============================================
   Horizontal Scrolling Gallery
   ============================================ */

.horizontal-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.horizontal-gallery::-webkit-scrollbar {
  height: 8px;
}

.horizontal-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.horizontal-gallery::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.gallery-item {
  flex: 0 0 auto;
  width: 300px;
}

.gallery-item .gallery-btn {
  width: 100% !important;
  height: 100%;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}