/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url(../assets/bg.jpg);
  line-height: 1.6;
  font-family: "Instrument Serif", serif;
}

p {
  font-size: 15px;
  margin-bottom: 1.5rem; /* This creates the visible line break! */
}

/* ===== BORDER FRAME ===== */
.frame {
  max-width: 1300px;
  margin: 0 auto;
  background-color: #593029;
  border: 15px solid transparent;
  border-image: url("../assets/lace.png") 17 round;
  min-height: 80vh;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  background-color: #593029;
  width: 100%;
  padding: 0.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ---- Title ---- */
.page-title {
  font-family: "Jacquard 24", sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: #de6677;
  letter-spacing: 0.5px;
  padding-left: 1rem;
}

/* ---- Navbar ---- */
.navbar {
  width: 100%;
  margin: 0;
  background-color: #c2727e;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin: 0;
  padding-left: 1rem;
}

.nav-item {
  position: relative;
}

.nav-item:hover .dropdown {
  display: block;
}

.nav-button {
  background: none;
  border: none;
  color: #613d37;
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  font-style: italic;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.nav-button:hover {
  color: #f2bfc7;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #c2727e;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 160px;
  z-index: 9999;
}

.dropdown.show {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.4rem 0.9rem;
  color: #613d37;
  text-decoration: none;
}

.dropdown a:hover {
  color: #f2bfc7;
}

/* ===== MAIN CONTENT ===== */
.header-inner {
  border: 7px solid transparent;
}

.content {
  padding-top: 1px;
}

/* ===== 3-COLUMN FLEX LAYOUT ===== */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  
  display: flex;
  gap: 1rem;
  align-items: stretch; /* Forces all columns to stretch to the exact same bottom boundary */
  height: calc(100vh - 180px); 
}

/* Side Columns */
.side-column {
  flex: .5; 
  min-width: 200px;
  background-color: #c2727e; /* Column background stretches to the bottom */
  padding: 0.5rem;
}

/* Middle Column */
.middle-column {
  flex: 2; /* Spans twice as wide as a side column */
  background-color: #c2727e; /* Column background stretches to the bottom */
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.stacked-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Removed height/flex rules here so content doesn't vertically stretch */
}

/* ---- Content Cards ---- */
.card {
  padding: 1.3rem;
  /* Background color is now handled beautifully by the parent columns, 
     but cards keep their text formatting and natural heights */
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.card p {
  color: #666;
}

/* Custom Scroll Rule */
.scroll {
  max-height: 100%; /* Keeps it contained inside the stretched middle column height */
  overflow-y: auto; /* Allows scrolling inside if text exceeds the container height */
}

/* ---- Marquee ---- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: wrap;
  box-sizing: border-box;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%; /* start off-screen */
  animation: marquee 7s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/*---- card styles ---- */
.concave {
  background:
    radial-gradient(circle 30px at top left, #0000 98%, #c2727e) top left,
    radial-gradient(circle 30px at top right, #0000 98%, #c2727e) top right,
    radial-gradient(circle 30px at bottom left, #0000 98%, #c2727e) bottom left,
    radial-gradient(circle 30px at bottom right, #0000 98%, #c2727e) bottom right;
  background-size: 51% 51%;
  background-repeat: no-repeat;
}

/* ---- Fonts ---- */
.jacquard-24-regular {
  font-family: "Jacquard 24", system-ui;
  font-weight: 400;
  font-style: normal;
}

.instrument-serif-regular {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.instrument-serif-regular-italic {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container {
    flex-wrap: wrap;
    height: auto; /* Allow height to break on small screens */
  }

  .stacked-cards,
  .middle-card,
  .right-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .content {
    padding-top: 140px;
  }

  .container {
    padding: 1.25rem;
  }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
