.navbar {
  background-color: #20b2aa !important; 
  padding: 0.8rem 1rem;
}

.nav-link, .navbar-brand {
  color: #f4f4f4 !important; 
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
}

.nav-link {
  margin-right: 1em !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-link:hover {
  background-color: #f4f4f4 !important; 
  color: #20b2aa !important;            
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar-toggler {
  background-color: #fff !important;
}

.bg-dark{
background-color:#343a40!important
}
.bg-primary{
background-color:#343a40!important
}

.header {
  background-image: url('./mount.jpg');
  background-attachment: fixed; 
  background-size: cover;
  background-position: center;
  
  
  width: 100%;             
  min-height: 900px;      
  height: 60vh;            
  
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;       
}
.btn-custom {
  background-color: #20b2aa !important; /* Бирюзовый */
  color: #f4f4f4 !important;            /* Белый текст */
  border: none;
  padding: 10px 20px;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-custom:hover {
  background-color: #f4f4f4 !important; /* Белый фон при наведении */
  color: #20b2aa !important;            /* Бирюзовый текст при наведении */
  border: 1px solid #20b2aa;            /* Чтобы кнопка не сливалась с фоном */
}

.bg-dna {
    /* Накладываем полупрозрачный черный слой (0.4 — степень затемнения) поверх картинки */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
        url('images/1011_petli_DNK_page.jpg'); 
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.btn-custom {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.intro-text {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Тень для текста, чтобы он не терялся на картинке */
  background: rgba(0, 0, 0, 0.2);              /* Легкая подложка под сам текст */
  padding: 2rem;
  border-radius: 15px;
}

.display-4 {
  font-size: 2.5rem; /* Размер заголовка */
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.img-custom-border {
    border: 3px solid #20b2aa; /* Бирюзовая рамка */
    padding: 5px;               /* Небольшой отступ между картинкой и рамкой */
    background-color: rgba(255, 255, 255, 0.1); /* Легкая подложка */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-custom-border:hover {
    transform: scale(1.02);    /* Легкое увеличение при наведении */
    box-shadow: 0 0 20px rgba(32, 178, 170, 0.6); /* Бирюзовое свечение */
}
body.bg-dna {
            color: #f4f4f4 !important;
        }
        .content-section a {
            color: #20b2aa; /* Бирюзовые ссылки в тексте для акцента */
            text-decoration: underline;
        }
        .content-section a:hover {
            color: #ffffff;
        }
        section h2, section h3 {
            color: #20b2aa; /* Бирюзовые заголовки разделов */
            margin-top: 2rem;
        }
