/* THE NASU INSTITUTE OF ENCYCLOPEDIC RESEARCH © STYLE UPDATE 2025 */


:root {
      --accent: #226c95;
      --accent-gradient: linear-gradient(135deg, #226c95, #00c6ff);
      --light-bg: #f9fafb;
      --text-dark: #1f2937;
      --text-light: #6b7280;
      --radius: 14px;
      --shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      scroll-behavior: smooth;
    }

body {
      font-family: 'Inter', sans-serif;
      background: var(--light-bg);
      color: var(--text-dark);
      line-height: 1.6;
    }
header {
    font-family: 'Exo 2', serif;    
      background: white;
      padding: 0.5rem 1rem;
      box-shadow: 0 2px 5px rgba(0,0,0,.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(6px);
}
#menu-toggle {
font-family: 'Exo 2', serif;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: none;
}
#menu {
  display: none;
}
header h1 {
      font-size: 1.75rem;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
nav ul {
      list-style: none;
      display: flex;
      gap: 1.25rem;
    }
nav a {
      text-decoration: none;
      color: #8c8c8c;
      font-weight: 400;
      position: relative;
    }
nav a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -3px;
      width: 0%;
      height: 2px;
      background: var(--accent);
      transition: width 0.3s ease;
    }
nav a:hover {
      color: var(--accent);
    }
nav a:hover::after {
      width: 100%;
    }
.visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
nav a.active {
  color: var(--accent); 
  font-weight: 400; 
}
nav a.active:hover::after {
  width: 100% !important;
}
.header-right{
        text-align: end;
    }
.language-switcher .lang.active {
      font-family: 'Inter', sans-serif;
      font-weight: bold;
      color: #236c95; 
    }
.hero {
      text-align: center;
      padding: 5rem 2rem 3rem;
      background: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
        url('../images/old-book.jpg') no-repeat center center / cover;
      color: white;
      animation: fadeIn 1s ease-in-out both;
    }
.hero h2 {
      font-size: 2.75rem;
      font-weight: 800;
      margin-bottom: 0.5rem;
    }
.hero p {
      font-size: 1.2rem;
      color: var(--text-light);
      max-width: 750px;
      margin: 0 auto 2rem;
    }
.search-box {
      display: flex;
      justify-content: center;
      margin-bottom: 3rem;
      padding: 0 1rem;
    }
.search-box input {
      width: 100%;
      max-width: 500px;
      padding: 0.75rem 1.25rem;
      font-size: 1rem;
      border: 1px solid #d1d5db;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
.section {
      padding: 3rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }
.section h3, h4, h5 {
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      text-align: center;
    }
.section h5 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      text-align: left;
    }
.section h5 a{
            color: #1f6d99;
            text-decoration:none;
        }
.section h5 a:hover{
            color: #f8b667;
        }    
.section a::after {
    content: '';
    position: absolute;
    left: 17px;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #f8b667;
    transition: width 0.3s ease;
    }
.section a:hover::after {
      width: 90%;
      text-align:center;
    }
.cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.75rem;
    }
.card {
      background-color: white;
      padding: 1.75rem;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
.card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }
.card h4 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
.card p {
      font-size: 1rem;
      color: var(--text-light);
    }
.card img {
        width: 80px; 
        height: 120px; 
        object-fit: cover; 
        margin-right: 15px;
        float: left;
        display: block;
        }
.card-content {
        overflow: hidden; 
    }
    .stats-section {
      background: #ffffff;
      text-align: center;
      padding: 3rem 2rem;
      box-shadow: var(--shadow);
    }
    .stats-section h3 {
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      color: var(--text-dark);
    }
    .stats-number {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .circle-number {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      color: #236c95;
      font-size: 3rem;
      font-weight: 800;
      box-shadow: 1px 1px 12px rgb(198, 198, 198);
    }
.typing_text {
  overflow: hidden; 
  white-space: nowrap; 
  border-right: 2px solid white; 
  width: 100%;max-width: 800px;
  animation: typing 6s steps(69, end) forwards, blink 0.7s step-end infinite;
}
.counter {
  transition: all 0.3s ease;
}

.cover {
    float:right;
    margin-top: 2.5em;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  0%, 100% { border-color: transparent }
  50% { border-color: white }
}
#myChart {
    width: 60% !important;
    height: auto !important;
}


/* BIB REC ----------------------------------------------------------------------*/

.section_article {
  padding: 3rem 2rem;
  max-width: 1200px; 
  margin: 0 auto;
  background: #ffffff; 
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.section_article h2 {
 font-size: 2.75rem;
 line-height: 1.3;
    margin-bottom: 1em;
}
.section_article h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 2.2rem;
  text-align: left;
  color: #f5b460;
}
.section_article  {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.section_article  h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.section_article  p {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom:1em;
}
.section_article  ul, ol {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
  padding: 10px;
}
.section_article  li {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 8px 28px;
}
.section_article  a {
  text-decoration: none; 
  color: #226c95; 
  position: relative; 
  transition: color 0.3s ease; 
}
.section_article  a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; 
  width: 0; 
  height: 2px; 
  background: #febc61; 
  transition: width 0.3s ease; 
}
.section_article  a:hover::after {
  width: 100%; 
}
.section_article  a:hover {
  color: gray
}

.section_article .rez a::after {
  content: ' 📄';
  display: inline;
  position: static;
  background: none;
  color: red;
  font-size: 1em;
  margin-left: 4px;
}
.section_article .rez a[aria-label*="PDF"]::after,
.section_article .rez .online-pdf a::after {
  content: '';
  display: inline-block;
  background-image: url('/images/pdf.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  position: relative;
  top: 3px; 
}
dl.item {
  margin: 0 0 40px 0;
  padding: 0;
}
dl.item dt {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: left;
  color: darkkhaki; 
}
dl.item dd {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
  margin-left: 0; 
}
dl.item dd {
  margin: 0; 
}
dl.item p {
    margin: 2em;
}
dl.item dd a {
  text-decoration: none;
  color: #226c95; 
  position: relative;
  transition: color 0.3s ease;
}
dl.item dd a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #febc61;
  transition: width 0.3s ease;
}
dl.item dd a:hover::after {
  width: 100%;
}
dl.item dd a:hover {
  color: #6b7280; 
}
dl.item dd.rez {
  font-size: 1.15rem;
  color: var(--text-dark);
}
@media (max-width: 768px) {
  dl.item dt {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  dl.item dt {
    font-size: 1.35rem;
  }
}
.online a{
display: block;
margin-bottom: 1.1rem;
font-size: 1.15rem;
}
.online-pdf a{
display: block;
margin-bottom: 1.1rem;
font-size: 1.15rem;
}

form p {
    margin:20px;
}


/* ENCYCLOPEDIA CATEGORY -----------------------------------------------------*/

.category {
  display: flex;
  align-items: center;
  gap: 0.5rem; 
  padding: 0.5rem 1rem; 
  background: #0268b3;
  border-radius: var(--radius);
  font-size: 1.1rem; 
  color: white; 
  margin: 2rem 0; 
  width: fit-content; 
  box-shadow: var(--shadow);
}
.category strong {
  font-weight: 600; 
  color: white;  
}
.category a {
  text-decoration: none;
  color: white;  
  font-weight: 500; 
  transition: color 0.3s ease; 
}
.category a:hover {
  color: orange;
}
@media (max-width: 768px) {
  .category {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}


/* SEARCH --------------------------------------------------------------------*/

.search-results {
  position: absolute;
  top: 111%;
width: 100%;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-results.active {
  display: block;
}
.search-results .result-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.2s ease;
}
.result-item{
    color:black;
    background: #f6b663;
}
.search-results .result-item:last-child {
  border-bottom: none;
}

.search-results .result-item:hover {
  background: #f1f5f9;
}

.search-results .result-item a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1rem;
}


/* FOOTER --------------------------------------------------------------------*/

footer {
  background-color: #0268b3;
  color: white;
  font-size: 0.95rem;
}
footer a {
  color: white;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #febc61;
  transition: width 0.3s ease;
}
footer a:hover::after {
  width: 100%;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid white;
}
.footer-column {
  flex: 1;
  min-width: 200px;
  padding: 0 1rem;
}

.footer-image {
  width: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.footer-image img {
  max-width: 275px;
  height: auto;
  padding: 14px;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  color: white;
  background-color: #0268b3;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
    }


/* SCREENS -------------------------------------------------------------------*/

@media (min-width: 1800px) {

header{
      position: sticky;
      padding: 0 1rem;
  }
#menu {
    display: block;
    flex-direction: row;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 400;
  }
nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
  }
.language-switcher {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    margin-right: 25px;
    }
.header-right {
    text-align: end;
  }
      .logo {
      width: 545px;
    }
}


@media (max-width: 1799px) {
.logo {
      width: 40%;
    }
#menu-toggle {
    display: block;
    text-align: end;
    width: auto;
    padding-right: 15px;
  }
#menu {
    display: none; 
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
  }

#menu:not(.hidden) {
    display: flex;
  }
#menu ul {
    flex-direction: column;
    gap: 1rem;
  }
.language-switcher {
    margin-top: 1rem;
  }
}


@media (max-width: 999px) {
#myChart {
        width: 85% !important;
        height: auto !important;
    }
.logo {
      width: 70%;
    }
}


@media (max-width: 768px) {
nav ul {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.5rem;
      }
.hero h2 {
        font-size: 2rem;
      }
.hero p {
        font-size: 1rem;
      }
.search-box {
        padding: 0 1rem;
      }
.card {
        padding: 1.25rem;
      }
#myChart {
    width: 99% !important;
    height: auto !important;
    }
.logo {
      width: 85%;
    }
.footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
.footer-image {
    width: 100%;
    margin-top: 1rem;
  }
.cover {
    float:none;
    }
}


@media (max-width: 480px) {
      header h1 {
        font-size: 1.5rem;
      }
.logo {
      max-width: 90%;
    }
      nav a {
        font-size: 0.95rem;
      }

.hero h2 {
        font-size: 1.75rem;
      }

.hero p {
        font-size: 0.95rem;
      }

.section h3 {
        font-size: 1.5rem;
      }
    }