﻿:root {
      --primary-color: #003366; /* Albastru Marin UCV */
      --secondary-color: #0056b3; /* Albastru Regal UCV */
      --accent-color: #f39c12; /* Accent Portocaliu UCV */
      --background-light: #f8f9fa;
      --text-color: #212529;
      --light-gray: #dee2e6;
      --white: #ffffff;
      --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-family);
      background-color: var(--background-light);
      color: var(--text-color);
      line-height: 1.6;
    }

    /* HEADER */
    .site-header {
      background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
      color: var(--white);
      padding: 40px 20px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      gap: 30px;
    }

    .header-titles {
      flex: 1;
      text-align: center;
    }

	.header-logo {
	  height: 150px; /* Înălțime fixă pentru consistență */
	  width: auto;
	  object-fit: contain;
	  transition: transform 0.3s ease;
    }
	
	.header-logo:hover {
	  transform: scale(1.05);
	}
    .site-header h1 {
      font-size: 2.2rem;
      margin-bottom: 10px;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .site-header .subtitle {
      font-size: 1.2rem;
      opacity: 0.95;
      margin-bottom: 15px;
      text-align: center; /* Centrare text subtitle */
    }

    .site-header .dates {
      margin-top: 15px;
      font-size: 1.1rem;
      font-weight: bold;
      color: var(--accent-color);
      background-color: rgba(255, 255, 255, 0.1);
      padding: 8px 20px;
      border-radius: 20px;
      display: inline-block;
    }

    /* NAVIGATION */
    .main-nav {
      background-color: var(--white);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
    }

    .nav-item {
      padding: 15px 20px;
      color: var(--secondary-color);
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s ease;
      border-bottom: 3px solid transparent;
      font-size: 1rem;
    }

    .nav-item:hover {
      color: var(--primary-color);
      border-bottom: 3px solid var(--primary-color);
    }

    /* MAIN CONTAINER */
    .container {
      max-width: 1100px;
      margin: 30px auto;
      padding: 25px;
      background-color: var(--white);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    /* SECTIONS */
    section {
      margin-bottom: 50px;
      padding-bottom: 30px;
      border-bottom: 1px solid var(--light-gray);
    }

    section:last-child {
      border-bottom: none;
    }

    h2 {
      color: var(--primary-color);
      font-size: 1.6rem;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--primary-color);
    }

    h3 {
      color: var(--secondary-color);
      font-size: 1.2rem;
      margin-top: 20px;
      margin-bottom: 12px;
    }

    p {
      margin-bottom: 12px;
      font-size: 1rem;
      text-align: justify;
    }

    /* INFO BOXES */
    .info-box {
      background-color: #fff8f0;
      border-left: 4px solid var(--primary-color);
      padding: 20px;
      margin: 20px 0;
      border-radius: 0 8px 8px 0;
    }

    /* KEYNOTE SPEAKERS */
    .keynotes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .keynote-speaker {
      background: #f5f5f5;
      padding: 15px;
      border-left: 4px solid var(--primary-color);
      border-radius: 4px;
      height: 100%;
    }

    .keynote-speaker h4 {
      color: var(--primary-color);
      margin-bottom: 10px;
      font-size: 1.1rem;
    }

    .speaker-details {
      display: flex;
      gap: 15px;
      align-items: flex-start;
    }

    .speaker-img {
      flex-shrink: 0;
      object-fit: cover;
      width: 150px; /* Standard width for keynote speaker images */
      border-radius: 8px; /* Standard border-radius for keynote speaker images */
    }

    .speaker-info {
      flex: 1;
    }

    /* TOPICS GRID */
    .topics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin: 20px 0;
    }

    .topic-box {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .topic-box {
      display: flex;
      flex-direction: column; /* Icon on top, text below */
      align-items: center; /* Center horizontally */
      text-align: center; /* Center text */
      padding: 20px; /* Keep padding */
    }

    .topic-box > i {
      font-size: 2.5rem; /* Larger icon size */
      margin-bottom: 10px; /* Space between icon and text */
      color: var(--accent-color); /* Use accent color for icons */
    }

    /* Stil pentru subcategorii (SmartArt style) */
    .topic-list {
      list-style: disc; /* Revenim la puncte simple */
      padding: 0;
      width: 100%;
      margin-top: 15px;
      text-align: left;
      padding-left: 20px; /* Aliniere pentru puncte */
    }

    .topic-list li {
      background: none;
      margin: 5px 0;
      padding: 0;
      font-size: 0.95rem;
      border-left: none;
    }

    .topic-list li i {
      font-size: 1rem;
      color: var(--accent-color);
    }

    .topic-box h4 {
      margin-bottom: 10px;
      font-size: 1.1rem;
    }

    .topic-areas-columns {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 15px;
    }

    .topic-areas-columns ul {
      list-style: none;
      padding-left: 0;
    }

    /* FEE & BANK INFO */
    .fee-box {
      background: #e8f4f8;
      border-left: 4px solid var(--secondary-color);
      padding: 20px;
      margin: 15px 0;
      border-radius: 4px;
    }

    .fee-list {
      list-style: none;
      margin: 10px 0;
      padding-left: 0;
    }

    .fee-list li {
      padding: 10px 0;
      border-bottom: 1px solid #ddd;
    }

    .bank-info {
      background: #fff3cd;
      border: 1px solid #ffc107;
      padding: 15px;
      margin: 15px 0;
      border-radius: 4px;
      font-size: 0.95rem;
      font-family: 'Courier New', monospace;
      word-break: break-all;
    }

    .publication-list {
      list-style: none;
      margin: 15px 0;
      padding-left: 0;
    }

    .publication-list li {
      padding: 10px 15px;
      margin: 8px 0;
      background: #f9f9f9;
      border-left: 3px solid var(--primary-color);
      border-radius: 3px;
    }

    .support-orgs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      margin: 20px 0;
    }

    .org-item {
      background: #f5f5f5;
      padding: 15px;
      border-radius: 4px;
      text-align: center;
      border: 1px solid #ddd;
      font-size: 0.9rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-height: 160px;
    }

    .org-logo {
      max-height: 70px;
      max-width: 100%;
      object-fit: contain;
      transition: transform 0.3s ease;
    }

    .org-item:hover .org-logo {
      transform: scale(1.05);
    }

    .info-box.highlight {
      background-color: #f0faff;
      border-left-color: var(--secondary-color);
    }

    /* LISTS */
    ul, ol {
      padding-left: 25px;
      margin: 15px 0;
    }

    li {
      margin-bottom: 8px;
      line-height: 1.6;
    }

    /* TABLES */
    .conf-table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      font-size: 0.95rem;
    }

    .conf-table th {
      background-color: var(--primary-color);
      color: var(--white);
      padding: 12px 15px;
      text-align: left;
      font-weight: bold;
    }

    .conf-table td {
      padding: 12px 15px;
      border-bottom: 1px solid var(--light-gray);
      vertical-align: top;
    }

    .conf-table tr:hover {
      background-color: #f8faff;
    }

    /* BUTTONS */
    .btn {
      display: inline-block;
      padding: 12px 25px;
      background-color: var(--primary-color);
      color: var(--white) !important;
      text-decoration: none;
      font-weight: bold;
      border-radius: 6px;
      transition: all 0.3s ease;
      margin: 8px 8px 8px 0;
      border: none;
      cursor: pointer;
    }

    .btn:hover {
      background-color: #002244; /* Navy mai închis la hover */
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .btn-alt {
      background-color: var(--secondary-color);
    }

    /* COMMITTEE GRID */
    .committee-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 20px;
      overflow: hidden;
      transition: max-height 0.5s ease-in-out;
    }

    /* Stil pentru starea restrânsă */
    .committee-grid.collapsible.collapsed {
      max-height: 200px; /* Aproximativ 2 rânduri */
      position: relative;
    }

    /* Efect de fade-out la baza listei restrânse */
    .committee-grid.collapsible.collapsed::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background: linear-gradient(transparent, var(--white));
      pointer-events: none;
    }

    .btn-toggle-committee {
      background: none;
      border: 1px solid var(--secondary-color);
      color: var(--secondary-color);
      padding: 6px 20px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 600;
      margin: 15px auto;
      display: block;
      transition: all 0.3s ease;
    }

    .btn-toggle-committee:hover {
      background-color: var(--secondary-color);
      color: var(--white);
    }

    .committee-member {
      background-color: var(--background-light);
      padding: 15px;
      border-radius: 8px;
      border-left: 3px solid var(--primary-color);
    }

    .committee-member strong {
      color: var(--primary-color);
      display: block;
      margin-bottom: 5px;
    }

    .committee-member span {
      color: #666;
      font-size: 0.9rem;
      display: block;
    }

    /* IMPORTANT DATES */
    .timeline {
      counter-reset: timeline-counter;
    }

    .timeline-item {
      position: relative;
      padding-left: 50px;
      margin-bottom: 20px;
    }

    .timeline-item::before {
      counter-increment: timeline-counter;
      content: counter(timeline-counter);
      position: absolute;
      left: 0;
      top: 0;
      width: 35px;
      height: 35px;
      background-color: var(--primary-color);
      color: var(--white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
    }

    /* FOOTER */
    .site-footer {
      background-color: var(--primary-color);
      color: var(--white);
      text-align: center;
      padding: 25px 20px;
      margin-top: 50px;
    }

    .site-footer p {
      margin-bottom: 5px;
      font-size: 0.95rem;
    }

    .site-footer a {
      color: var(--accent-color);
      text-decoration: none;
    }

    .site-footer a:hover {
      text-decoration: underline;
    }

    /* ANCHOR SCROLL SPACING */
    section[id] {
      scroll-margin-top: 80px;
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      .site-header h1 {
        font-size: 1.8rem;
      }

      .site-header .subtitle {
        font-size: 1rem;
      }

      .header-container {
        flex-direction: column;
        gap: 20px;
      }

      .header-logo {
        height: 80px;
      }

      .nav-container {
        flex-direction: column;
        align-items: stretch;
      }

      .nav-item {
        text-align: center;
        padding: 12px;
      }

      .container {
        padding: 20px 15px;
        margin: 20px 10px;
      }

      h2 {
        font-size: 1.4rem;
      }

      .conf-table {
        font-size: 0.85rem;
      }

      .conf-table th,
      .conf-table td {
        padding: 10px;
      }

      .btn {
        padding: 10px 20px;
        margin: 5px 5px 5px 0;
        width: 100%;
      }

      .committee-grid {
        grid-template-columns: 1fr;
      }

      .topic-areas-columns {
        grid-template-columns: 1fr; /* O singură coloană pe ecrane mici */
      }
    }

    @media (max-width: 480px) {
      .site-header {
        padding: 20px 15px;
      }

      .site-header h1 {
        font-size: 1.5rem;
      }

      .section-title {
        font-size: 1.2rem;
      }

      .container {
        padding: 15px 10px;
      }

      p, li {
        font-size: 0.9rem;
      }
      
      .header-logo {
        max-width: 70px;
      }
    }