/* --- Root Variables --- */
:root {
  --bg-color: #ff99aa;
  --text-color: #2e1a47;
  --dropdown-text-light: #ffdce3; /* Much lighter text color for the dropdown */
  --serif-font: "Playfair Display", serif;
}

/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--serif-font);
  padding: 5vw;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Global Link Hover --- */
a:hover {
  text-decoration: underline !important;
}

/* --- Header Section --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5vh;
  position: relative;
  overflow: visible !important;
  z-index: 1000;
}

.logo-text {
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: bold;
}

.top-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-left: 30px;
  text-transform: uppercase;
  font-weight: bold;
}

/* --- Dropdown Menu (No Box, Transparent, Light Text) --- */
.dropdown {
  position: relative;
  display: inline-block;
  margin-left: 30px;
}

.dropdown .nav-link {
  margin-left: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: transparent; /* Lighter than main bg */
  min-width: 220px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  z-index: 9999;
  padding: 15px 0;
  box-shadow: none; /* Subtle shadow for depth */
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #50386c;
  padding: 10px 0;
  text-decoration: none;
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  background-color: transparent;
}

.dropdown-content a:hover {
  text-decoration: underline !important;
  opacity: 0.7;
}

/* --- Page Heading --- */
.page-title-heading {
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-style: italic;

  margin-bottom: 8vh;
  font-weight: 400;
  letter-spacing: 2px;
}

/* --- Main List Layout --- */
.assignments-list {
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

.assignment-entry {
  display: flex;
  align-items: center;
  gap: 4vw;
}

/* --- Image Box (80% size) --- */
.image-box {
  flex: 0 0 45%;
  width: 80%;
  aspect-ratio: 16 / 10;
  overflow: hidden;

  display: block;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  display: block;
}

.assignment-entry:hover .image-box img {
  transform: scale(1.1);
}

/* --- Content Styling --- */
.assignment-content {
  flex: 1;
}

.impressionist-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;

  margin-bottom: 10px;
  font-style: italic;
}

.impressionist-title a {
  text-decoration: none;
  color: inherit;
}

.read-more {
  display: inline-block;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 5px;
}

/* --- Responsive View --- */
@media (max-width: 850px) {
  .assignment-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .image-box {
    width: 100%;
  }
  header {
    flex-direction: column;
    gap: 20px;
  }
  .dropdown {
    margin-left: 0;
  }
}

/* Navigation Alignment Fix */
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.top-nav > * {
  margin: 0 1.8rem;
}

.top-nav .nav-link {
  display: inline-block;
}

.dropdown {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .top-nav {
    justify-content: center;
    gap: 1.5rem;
  }
}
