:root {
  --primary-color: #C1A15E;
  --background-color: #000;
  --dark-gray:#2F3138;
  --text-color: #EAE6DF;
  --accent-color-1: #7A5458;
  --accent-color-2: #3F4A5C;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-color-1);
}
.display-estonia {
  font-family: 'Estonia', serif;
}
/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background-color: var(--background-color);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  width: 200px;
}
/* ===== NAV ===== */

ul {
  background: var(--background-color);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.insta {
  width: 30px;
  margin-left: 20px;
}

.nav-item {
  color: #fff;
  background: var(--background-color);
  display: block;
  float: left;
  padding: 0.3rem 0.8rem;
  position: relative;
  text-decoration: none;
  transition-duration: 0.5s;
}

.nav-item::after {
  content:"";
  position: absolute;
  width: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.35s ease 0s;
}

.nav-item:hover::after,
.nav-item:focus-within::after,
.nav-item.active::after {
  width: 100%;
}

.inside-nav:hover,
.inside-nav.active-inside {
  background: var(--primary-color);
}


.nav-btn:hover::after {
  width: 0;
}
 
  
.nav-item a {
  color: var(--text-color);
  text-decoration: none;
}

/* .nav-item:hover,
.nav-item:focus-within {
  background: red;
  cursor: pointer;
} */

.nav-item:focus-within a {
  outline: none;
}


.dropdown {
  visibility: hidden;
  opacity: 0;
  min-width: 16.1rem;
  position: absolute;
  transition: all 0.5s ease;
  margin-top: 0.3rem;
  left: 0;
  display: none;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

ul .nav-item:hover > ul,
ul .nav-item:focus-within > ul,
.drodown:hover {
  visibility: visible;
  opacity: 1;
  display: block;
}

.dropdown li {
  clear: both;
  width: 100%;
  padding: 0.3rem 1rem 0.2rem 1rem;
}

 /* caret icon */
  .caret{
    display:inline-block;
    width: .55rem; height: .55rem;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    transition: transform .18s ease;
    margin-bottom: 2px;
    margin-left: 2px;
  }


 .nav {
  display: flex;
}
/*
.nav a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #e63946;
}  */

/* ===== Mobile Menu ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 6rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: url('images/hero.png');
  background-position: bottom;
  background-repeat: no-repeat;  
}

.hero-content{
  background-color: none;
}

.highlight-head {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight:200;
  color:var(--text-color)
}

.gold-head {
  color: var(--primary-color);
  font-family:'Estonia', serif;
  font-size:8rem;
  text-transform:none;
  margin-left: 40px;
  line-height: 0.65;
}

.hero-content {
  text-align: left;
}

.btn {
  display: inline-block;
  background: var(--accent-color-1);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: #9f6d73;
  transform: translateY(-2px);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section Styles ===== */
.section {
  padding: 2rem 6rem;
}

.section h1,
.section h2 {
  font-size: 2rem;
  font-weight: 200;
}

.section-head {
  display: flex;
  flex-direction: column;
}
.divider {
  height: 4px;
  background-color: var(--primary-color);
  width: 0;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  transition: width 1s ease;
}

.divider.expand {
  width: 300px;
}

/* ===== About ===== */
.about {
  background-color: var(--accent-color-2);
  display: flex;
}

.main-about {
  display: flex;
  flex-direction: column;
  flex-grow: 2;
  flex-basis: 0;
}

p.intro {
  font-size: 1.2rem;
}

.section-bottom {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
}
.about-img {
  flex-grow: 1;
  display: flex;
  align-items: center;
  flex-basis: 0;
  justify-content: flex-end;
}

.about-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 20px;
}


/* ===== Books ===== */
.books {
  display: flex;
  flex-direction: column;
  background-color: var(--dark-gray);
}
.book-container {
  display: flex;
  gap:2em;
}
.book {
  width: 330px;
  margin: 2rem auto;
  border: 1px solid #333;
  background-color: var(--text-color);
  display: flex;
  flex-direction: column;
  color: var(--background-color);
}

.book-img {
  height: 218px;
}

.book-img img {
  width: 100%;
}

.book h3 {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  text-align:center;
  font-weight: 600;
}

.book .award {
  background-color:var(--accent-color-2);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.trophy-img {
  width: 50px;
  margin-right: 15px;
}

.trophy-img img {
  width: 100%;
  height: auto;
}

.book .tagline {
  margin-bottom: 1.5rem;
  line-height: 1.3;
  height: 75px;
}

.award-txt p {
  line-height:1.3;
  text-transform: uppercase;
}

.book-bottom {
  margin-top: auto;
  padding: 1rem 2rem 2rem 2rem;
  text-align: center;
  color: var(--background-color);
}

/* ===== News ===== */
.news {
  background-color: var(--accent-color-1);
}
.news-item {
  display: flex;
  max-width: 700px;
  margin: 1rem auto;
  background-color: var(--text-color);
  color: var(--background-color);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #333;
}

.news-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  padding-right: 10px;
  border-right: 2px solid #888;
  width: 160px;
}

.news-img img {
  width: 45px;
}

.news-item .date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-item h4 {
  color: var(--primary-color);
}

/* ===== Inside pages ===== */
.banner {
  height: 160px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-banner {
  background-image: url('images/grunge-divider-med.svg');
  background-size: cover;
  background-repeat: no-repeat;  
}

.inside-highlight-head {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight:200;
  color:var(--text-color)
}

.section-top {
  display: flex;
  justify-content: space-between;
}

.section-content p {
  font-size: 16px;
  margin-bottom: 10px;
}

.inside-content-img {
  width: 35%;
}

.inside-content-img img {
 width: 100%;
}

.inside-content {
  display: flex;
  flex-direction: column;
  width: 60%;
}

.inside-content-txt {
  display: flex;
  flex-direction: column;
  margin-left: 2rem;
}

.content-card {
  width: 300px;
  margin: 1rem;
}
.content-card-top {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.content-card-top img {
  max-width: 50px;
  margin-right: 25px;
}
.content-card-top h3 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1rem;
}

.iframe-container {
        position: relative; /* Essential for positioning the iframe */
        width: 100%; /* Occupy full width of its parent */
        padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
        height: 800px; /* Collapse height initially */
        overflow: hidden; /* Hide any overflow */
    }

    .iframe-container iframe {
        position: absolute; /* Position relative to the container */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #888;
  font-size: 0.9rem;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--background-color);
    flex-direction: column;
    width: 300px;
    display: none;
    padding: 1rem;
  }

  .nav.show {
    display: flex;
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 2rem;
    min-height: 30vh;
    background-image:none;
    background-color: var(--background-color);
    justify-content: center;
    align-items: center
  }

  .section {
    padding: 2rem 2rem;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about-img {
    justify-content: center;
  }
  .book-container {
    flex-direction: column;
  }
  .news-item {
    flex-direction: column;
  }
  .news-img {
    border-right: none;
    width: 100%;

  }
  .nav-item  {
    float: none;
  }

  .caret {
    display: none;
  }
  .dropdown {
  visibility: visible;
  opacity: 1;
  position: relative;
  transition: all 0.5s ease;
  margin-top: 0.3rem;
  left: 0;
  display: block;
  padding-bottom: 0.5rem;
}

.section-top {
  flex-direction: column;
}

.iframe-container{
  height: 850px;
}

.inside-highlight-head {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.inside-content {
  width: 100%;
}
.inside-content-img {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.inside-content-img img {
  max-width: 400px;
}
.section-bottom {
  justify-content: center;
}

}

