@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");

@font-face {
  font-family: "Circular";
  src: url('../circular-std-medium-500.ttf');
}

@font-face {
  font-family: "Times New Roman";
  src: url('../times.ttf');
}

@font-face {
  font-family: "Garamond";
  src: url('..\AGaramond-Regular.otf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Merriweather", sans-serif;
}

body {
  min-height: 100vh;
  background-color: #f0f0f0;
  overflow-x: hidden;
}

body:hover > #trailer {
  opacity: 1;
}

hr {
  border: none;
  height: 1px;
  background-color: #333;
  width: 0;
  margin: 40px auto;
  transition: width 0.8s ease-in-out;
}

hr.expand {
  width: 100%;
}

#trailer {
  height: 20px;
  width: 20px;
  background-color: white;
  border-radius: 20px;

  position: fixed;
  left: 0px;
  top: 0px;
  z-index: 10000;

  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;

  display: grid;
  place-items: center;
}

#trailer:not([data-type=""]) > #trailer-icon {
  opacity: 1;
}

#trailer-icon {
  font-size: 6px;
  line-height: 4px;

  opacity: 0;
  transition: opacity 400ms ease;
}

@media (max-width: 1110px) {
  #trailer {
    display: none;
  }
}

.interactable {
  background-size: 100%;
  opacity: 0.4;

  transition: background-size 400ms ease, opacity 400ms ease;
}

.interactable:hover {
  background-size: 105%;
  opacity: 0.8;
}

/* Header Styles */
header {
  background-color: rgba(245, 245, 247, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 100px;
  z-index: 999;
  transition: 0.6s ease-in-out;
  backdrop-filter: saturate(1.8) blur(5px);
  transform: translateY(0); /* Default position */
  opacity: 1; /* Default opacity */
}

header.fade-out {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

header.fade-in {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

header.sticky {
  background-color: rgba(245, 245, 247, 0.5);
  backdrop-filter: saturate(4) blur(5px);
  padding: 10px 100px;
}

@media (max-width: 600px) {
  header {
    padding: 10px 50px;
  }

  header.sticky {
    padding: 10px 50px;
  }
}

header .brand {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
}

header .menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .menu a {
  font-family: "Spectral";
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  margin: 0 30px;
  padding: 5px 5px;
  border-radius: 15px;
  transition: 0.3s;
  transition-property: color, background;
}

header .menu a:hover {
  color: #bdbdbd;
}

header .logo {
  width: 60px;
  height: auto;
}

header .btn {
  font-size: 25px;
  cursor: pointer;
  color: #fff;
  display: none;
}

/* .interactable class */
.interactable {
  transition: background-size 400ms ease, opacity 400ms ease;
}

.interactable:hover {
  background-size: 105%;
  opacity: 0.8;
}

.dropdown-content .interactable {
  opacity: 1;
}

.dropdown-content .interactable:hover {
  opacity: 0.8;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(1.8) blur(5px);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 10px 0;
}

.dropdown-content a {
  color: #111;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-family: "Spectral";
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s;
}

.dropdown-content a:hover {
  color: #bdbdbd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Dropdown Styles */
@media (max-width: 1120px) {
  .dropdown-content {
    display: none; /* Hide dropdown by default */
    position: static; /* Reset position for mobile */
    background-color: transparent; /* Remove background */
    box-shadow: none; /* Remove shadow */
    padding: 0; /* Remove padding */
  }

  .dropdown.active .dropdown-content {
    display: block; /* Show dropdown when active */
  }

  .dropdown-content a {
    padding: 10px 20px; /* Adjust padding for mobile */
    font-size: 18px; /* Increase font size for better touch targets */
  }
}

/* Responsive Styles */
@media (max-width: 1120px) {
  header .btn {
    display: block;
    color: #111;
  }

  header .menu.active {
    right: 0;
  }

  header .menu {
    z-index: 1000000;
    position: fixed;
    background: rgba(240, 240, 240, 0.9);
    flex-direction: column;
    min-width: 400px;
    height: 100vh;
    top: 0;
    right: -100%;
    padding: 80px 50px;
    transition-property: right;
    transition: 0.5s;
  }

  header .menu .close-btn {
    position: absolute;
    top: 0;
    left: 0;
    margin: 25px;
  }

  header .menu a {
    display: block;
    font-size: 25px;
    margin: 20px;
    padding: 0 15px;
  }
}

@media (max-width: 580px) {
  .section-main h1 {
    font-size: 50px;
    line-height: 60px;
  }
}

.content p {
  font-size: 12px;
  margin-bottom: 1.5em;
  line-height: 1.8;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Remove the grid layout for .sub */
.sub {
  display: block;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 2rem;
  position: relative;
  overflow: visible; /* Change from hidden to visible */
}

/* Adjust the content container */
.content {
  padding: 0;
  font-family: 'Garamond';
  width: 100%;
  position: relative;
  overflow: visible; /* Change from hidden to visible */
}

/* Improve image styling for better text wrapping */
.content img {
  max-width: 25%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px;
  transition: transform 0.3s ease;
  display: inline; /* Add this to ensure proper flow */
}

/* Enhance float classes for better text wrapping */
.img-left {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
  margin-top: 5px;
  clear: left; /* Add this to prevent stacking issues */
  min-width: 200px;
}

.img-right {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  margin-top: 5px;
  clear: right; /* Add this to prevent stacking issues */
  min-width: 200px;
}

.img-center {
  display: block;
  margin: 20px auto;
  float: none;
  max-width: 70%;
  clear: both; /* Add this to ensure proper flow */
  min-width: 200px;
}

/* Improve paragraph styling for better text flow */
.content p {
  font-size: 15px;
  margin-bottom: 1.5em;
  line-height: 1.8;
  text-align: justify;
  max-width: 100%; /* Change from fixed width to percentage */
  margin-left: 0; /* Reset auto margins */
  margin-right: 0; /* Reset auto margins */
  display: inline-block; /* This helps with wrapping */
  width: 100%;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.content img:hover {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .sub {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .illustrations {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .illustrations img {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 640px) {
  .illustrations img {
    width: 100%;
  }
}
.illustrations img:hover {
  transform: scale(1.02);
}

.heading {
  font-size: 3.4rem;
  color: rgb(59, 61, 138);
  text-align: center;
  margin: 4rem 0 2rem;
  padding: 0;
}

@media (max-width: 768px) {
  .content p {
    font-size: 18px;
    
  }

  .illustrations {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .heading {
    font-size: 2.5rem;
    padding: 0 1rem;
  }
}

.content p:last-child {
    margin-bottom: 0;
}

.content {

  font-family: 'Garamond';
  width: 90%;
}

.content p {
  font-size: 15px;
  margin-bottom: 1.5em;
  line-height: 1.8;
  text-align: justify;

  margin-right: auto;
}

body {
  margin-top:100px;
}
h3 {
  color: rgb(59, 61, 138);
  font-size: 3.4rem;
  margin-bottom: 1rem;
  padding-left: 40px;
}
.issue {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}
.heading {
    text-align: center;
    margin-bottom: 30px;
}
.cover {
  width: 75%;
  height: auto;
  
}
.cover img {
  width: 80%;
  height: auto;
}


.title {
  margin-top: 100px;
  width:100%;
  height: auto;
  text-align: center;
}

h1 {
  font-size: 3.4rem;
  color: rgb(59, 61, 138);
  text-align: center;
  margin: 4rem 0 2rem;
  margin-top: 30px;
}

.credits {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
  color: #666;
  margin-top: 20px;
  text-align: left;
}

.credits {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 20px;
}

#cred {
  color:rgb(59, 61, 138);
  text-align: center;
}


.custom-scrollbar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 700px;
  background: rgb(59, 61, 138);
  border-radius: 4px;
  z-index: 1000;
}

.custom-scrollbar-thumb {
  position: absolute;
  width: 100%;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.7);
}

.custom-scrollbar-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.5);
}

.custom-scrollbar-marker:hover,
.custom-scrollbar-marker.active {
  border-color: rgba(0, 0, 0, 0.7);
  color: rgba(0, 0, 0, 0.8);
}

h5 {
  font-size: .9rem;
  color: #111;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}