html,
body {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  background-color: #c9e1e8;
  text-align: center;
  font-size: medium;
}

a {
  color: inherit;
  text-decoration: none;
  text-align: center; 
}

* {
  box-sizing: border-box;
}

strong {
  font-weight: bold !important;
}

h1 {
  font-weight: bold;
}

h2 {
  font-weight: normal;
}

h3 {
  font-weight: normal;
  font-size: 40px;
}

h4 {
  font-weight: normal;
  font-size: 20px;
}

header {
  background-color: #ffffff;
  width: 1060px;
  margin: auto;
  color: #000000;
  
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px; 
}

header > img:first-child {
  margin-right: auto;
}

body {
  background-color: #196FB7;
  width: 1060px;
  margin: auto;
  color: #ffffff;
  
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  padding: 0 20px;
  text-align: center; /* Ensures content like the DNA heading is centered */
}

.hero-container {
  position: relative;
  width: 100%;
}

/* Stable centering for hero text */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 30px;
}

/* Corrected alignment for side-by-side section */
#flex {
  display: flex;
  align-items: center;
  gap: 30px; 
  margin: 20px 0;
  padding: 0 20px;
  font-size: 1.2em;
  width: 100%;
  text-align: left; /* Ensures the whole block is aligned left */
}

#flex > div {
  text-align: left; /* Specifically aligns the text part */
}


#flexabout {
  display: flex;
  align-items: flex-start;
  gap: 20px; 
  margin: 20px 0;
  padding-left: 10%;
  padding-right: 10%;
  font-size: small;
}

#flexabout > div {
  text-align: left;
}

hr {
  width: 100%;
  height: 1px;
  background-color: rgb(255, 255, 255);
  margin-top: 20px;
  margin-bottom: 20px;
  border: none;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 30px; 
  margin: 50px 0; 
  flex-wrap: wrap; 
  padding: 0 20px; 
  color: #000000; 
}

.card {
  width: 300px;
  flex-shrink: 0;
}

.card-button {
  display: block;
  padding: 15px;
  margin-bottom: 10px; 
  border: 2px solid #196FB7; 
  background-color: #ffffff;
  color: #196FB7;
  text-decoration: none;
  font-weight: bold;
  border-radius: 20px; 
  transition: background-color 0.3s, color 0.3s;
}

.card-button:hover {
  background-color: #196FB7;
  color: #ffffff;
}

.card img {
  width: 100%;
  height: 200px;         
  object-fit: cover;      
  display: block;
}

header a {
  color: #000000;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
}

header a:hover {
  background-color: #f1f1f1;
}

footer {
  width: 100%;
  margin-top: 40px;
  padding-bottom: 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px; 
  margin-bottom: 20px;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  font-size: 2.2em;
  font-weight: bold;
  margin: 0;
}

.contact-info h4 {
  font-size: 1.4em;
  font-weight: normal;
  margin: 5px 0 20px 0;
}

.contact-info p {
  font-size: 1em;
  line-height: 1.7;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px 0;
  width: 100%;
  padding-left: 2.5%;
  padding-right: 2.5%;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover; 
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10% left;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.loading-text, .gallery-grid p {
  font-size: 1.2em;
  color: #ffffff;
  grid-column: 1 / -1; 
  text-align: center;
}

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.9); 
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 85vh;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- HOME PAGE SPECIFIC STYLES --- */
.hero-container + .container {
  margin-top: 20px;
}

.intro-section {
  width: 100%;          
  padding: 0 80px;      
  margin: 0;
  text-align: left;     
  color: #ffffff;
}

.intro-section h2 {
  text-align: left;
  font-size: 1.3em;
  line-height: 2.2; 
}

.about-section {
  max-width: 900px;
  margin: 50px left 50px right;
  margin-top: 40px;
  text-align: left; 
  color: #ffffff; 
}

.about-section h1 {
  font-size: 2.8em;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
}

.about-section h2 {
    font-size: 1.5em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-weight: normal;
    text-align: left;
}
