@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Roman.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Nino';
  src: url('../fonts/bpg_nino_mtavruli_bold.woff2') format('woff2'),
       url('../fonts/bpg_nino_mtavruli_bold.woff') format('woff'),
       url('../fonts/bpg_nino_mtavruli_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nino';
  src: url('../fonts/bpg_nino_mtavruli_normal.woff2') format('woff2'),
       url('../fonts/bpg_nino_mtavruli_normal.woff') format('woff'),
       url('../fonts/bpg_nino_mtavruli_normal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Glakho';
  src: url('../fonts/bpg_glaho.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

:root {
    --background-color: #ffffff;
    --header-bg: #0a1331;
    --default-font: "Helvetica Neue",  sans-serif;
    --nav-font: "Nino",  sans-serif;
    --primary-color: #0a1331;
    --secondary-color: #a48930;
}

* {
    font-family: var(--default-font);
}

body {
    background-color: var(--background-color);
}
header {
    background-color: var(--header-bg); 
    background-image: url('../img/background.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Nino'!important;
  font-weight: 400!important;
}

main {
  min-height: 60vh;
}

.main-background {
  /* min-height: 70vh; */
  background-image: url('../img/building.png'); 
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: center bottom; 
}

.glakho {
  font-family: 'Glakho'!important;;
}

.primary-header {
    color: var(--primary-color)
}
.secondary-header {
    color: var(--secondary-color)
}

.capital {
  font-family: 'Nino', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: uppercase;
}

a.capital {
  font-family: 'Nino', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: uppercase;
}

.top-info {
    color: white;
    font-size: 0.9rem;
    text-align: right;
}
.search-bar {
    /* max-width: 400px; */
    margin: 1rem auto;
}
.input-group .form-control {
    border-radius: 20px 0 0 20px;
    padding: 10px;
}
.input-group .btn, .input-group .btn:focus {
    border:none;
    border-radius: 0 20px 20px 0;
    background-color: var(--secondary-color)
}

.input-group .form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: #ccc; /* keep same as normal state */
}
.navbar {
  background-color: transparent !important;
  margin-bottom: 0px;
}

/* Menu items spacing */
.navbar-nav .nav-link {
    margin: 0 15px;
    font-size: 18px;
    font-family: 'Nino'!important;
    font-weight: 700; 
    text-transform: uppercase;
    /* color: #555454!important; */
    color: var(--secondary-color)!important;
    border-bottom: 2px solid transparent!important;
}

/* Optional hover effect */
.navbar-nav .nav-link:hover {
    /* color: var(--secondary-color)!important; */
    color: #525252!important;
    /* border-bottom: 2px solid var(--secondary-color)!important; */
    border-bottom: 2px solid #525252!important;
}

.navbar-nav .active {
    /* color: var(--secondary-color)!important; */
    color: #525252!important;
    /* border-bottom: 2px solid var(--secondary-color)!important; */
    border-bottom: 2px solid #525252!important;
}



/* ---------- MOBILE STYLES ---------- */
@media (max-width: 767.98px) {
  /* Smaller logo */
  .navbar-brand img {
    height: 40px;
  }

}


.article-item {
    transition: 0.2s;
}


.article-icon { 
  color: #afb0b1;
}

@media (max-width: 576px) {
    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-actions {
        margin-top: 10px;
        text-align: left !important;
        flex-direction: row;
        gap: 5px;
    }
}

.footer {
  background: #0d034c!important;
  color: white!important;
}

.footer-links li a {
    font-weight: normal;
    color: white;
    text-decoration: none;
}

.footer-links li a:hover {
    text-decoration: underline;
}

/* Fullscreen mobile menu */
.mobile-header {
  position: fixed;      
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;        
  background-color: var(--primary-color);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767.98px) {
    body {
    padding-top: 70px; 
    }
}

#mobileMenu {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  background-color: var(--primary-color);
  display: none;        
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;     
}


#mobileMenu.show {
  display: flex !important;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from { transform: translateY(-100%); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; }
}

#mobileMenu ul.nav li a {
  padding: 0.3rem 0;
  font-size: .85em;
  font-family: 'Nino'!important;
  text-transform: uppercase;
}


/* Overlay */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* áƒœáƒáƒ®áƒ”áƒ•áƒ áƒáƒ“ áƒ’áƒáƒ›áƒ­áƒ•áƒ˜áƒ áƒ•áƒáƒšáƒ” áƒ¨áƒáƒ•áƒ˜ */
    z-index: 1040;
    display: none;
}

/* Modal */
.legal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    z-index: 1050;
    width: 90%;
    max-width: 900px;
    display: none;
    -webkit-overflow-scrolling: touch; 
}

/* Close button */
.legal-modal .close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 2.2rem;
    font-weight: 100;
    color: black;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 65px;
    height: 65px;
}


@media (max-width: 768px) {
    .legal-modal {
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem; 
    }
}


.checkbox-inline label {
    display: inline-flex;       
    align-items: center;        
    margin-right: 20px;         
}

.checkbox-inline input {
    margin-right: 5px;          
}

/* current journal */
.current-journal {
    max-width: 400px;
    position: relative;
}

.cover-wrapper {
    position: relative;
    display: inline-block;
}

.cover-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Overlay с номером и кнопкой */
.overlay-info {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform-origin: top right;
}

/* Номер журнала */
.overlay-info .journal-num {
    background: white;
    color: #0d034c;
    padding: 3px 8px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 25px;
}

/* Кнопка PDF */
.overlay-info .pdf-btn {
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
}