/* ============================================
   Eastside Philosophy — Global Styles
   Inspired by Johnathan Bi's classic aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #F0EBE3;
  --ivory: #F5F0EA;
  --warm-black: #1A1A1A;
  --dark-brown: #2C2418;
  --muted-brown: #5C4F3D;
  --warm-gray: #6B6153;
  --accent-gold: #B8976A;
  --light-border: #E0D8CC;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background-color: var(--cream);
  color: var(--warm-black);
  line-height: 1.7;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--muted-brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 22, 16, 1);
  border-bottom: 2px solid rgba(184, 151, 106, 0.4);
  padding: 0 60px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(26, 22, 16, 0.75);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: #F5F0EA;
  letter-spacing: 1px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav-logo,
a.nav-logo,
.nav-logo:hover,
a.nav-logo:hover,
.nav-logo:active,
.nav-logo:focus,
.nav-logo:visited {
  color: #F5F0EA !important;
  cursor: default !important;
  text-decoration: none !important;
  pointer-events: none;
}

.nav-logo .nav-motto {
  font-family: 'Cinzel', var(--serif);
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
  color: rgba(184, 151, 106, 0.85);
  text-transform: none;
  text-align: center;
}

.nav-logo span {
  font-weight: 300;
  font-style: italic;
  font-size: 0.85em;
  margin-left: 6px;
  color: var(--warm-gray);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(245, 240, 234, 0.75);
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 22, 16, 0.97);
  border: 1px solid rgba(184, 151, 106, 0.3);
  border-radius: 6px;
  padding: 24px 0 12px;
  min-width: 180px;
  list-style: none;
  margin-top: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(245, 240, 234, 0.75);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: #fff;
  background: rgba(184, 151, 106, 0.15);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F0EA;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero / Banner --- */
.hero-banner {
  margin-top: 110px;
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--cream));
}

/* --- Page Container --- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 0 120px;
}

.page-container.wide {
  max-width: 1200px;
}

/* --- Sections --- */
.section {
  padding: 36px 0;
}

.section + .section {
  border-top: 1px solid var(--light-border);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--dark-brown);
  line-height: 1.3;
}

h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 28px;
}

h3 {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 14px;
}

p {
  font-size: 1.2rem;
  color: var(--muted-brown);
  line-height: 1.85;
  margin-bottom: 18px;
}

.subtitle {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-style: normal;
  color: var(--warm-gray);
  margin-top: 8px;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  text-align: left;
}

/* --- Intro Block (Home) --- */
.intro-block {
  text-align: left;
  padding: 56px 0 40px;
}

.intro-block h1 {
  margin-bottom: 20px;
}

.intro-block p {
  max-width: 800px;
  margin: 0;
  font-size: 1.3rem;
}

/* --- Mission --- */
.mission-content {
  columns: 1;
}

.mission-content p {
  margin-bottom: 20px;
}

.offering-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.offering-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 1.2rem;
  color: var(--muted-brown);
  line-height: 1.7;
}

.offering-list li::before {
  display: none;
}

/* Offering Banner Blocks (PLATO-style) */
.offering-banners {
  margin: 0;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #F0EBE3;
}

.offering-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
  padding: 80px 48px;
  text-decoration: none;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.offering-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.offering-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
}

.offering-banner.banner-lectures::before    { background: rgba(26, 26, 18, 0.4); }
.offering-banner.banner-interviews::before  { background: rgba(26, 26, 18, 0.4); }
.offering-banner.banner-discussions::before { background: rgba(26, 26, 18, 0.4); }
.offering-banner.banner-resources::before   { background: rgba(26, 26, 18, 0.4); }
.offering-banner.banner-forum::before       { background: rgba(26, 26, 18, 0.4); }

.offering-banner .banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.offering-banner h4 {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.offering-banner p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.offering-banner .banner-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 28px;
  transition: all 0.3s ease;
}

.offering-banner .banner-btn:hover {
  background: #fff;
  color: #1A1A1A;
}

@media (max-width: 768px) {
  .offering-banner {
    padding: 32px 24px;
    min-height: 180px;
  }
  .offering-banner h4 { font-size: 1.3rem; }
}

/* --- Team Cards --- */
.team-section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 56px;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--light-border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.team-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* --- Lecture Cards --- */
.lecture-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--light-border);
}

.lecture-card:last-child {
  border-bottom: none;
}

.lecture-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lecture-images.single {
  grid-template-columns: 1fr;
}

.lecture-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border-radius: 4px;
  border: 1px solid var(--light-border);
}

.lecture-images.stacked {
  grid-template-columns: 1fr;
}

.lecture-images.stacked img {
  height: 240px;
  object-position: center 60%;
}

.lecture-images.stacked img:last-child {
  object-position: center 30%;
}

.lecture-info .date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.lecture-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark-brown);
}

.lecture-info .lecture-subtitle {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--warm-gray);
  margin-bottom: 16px;
}

.lecture-info p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dark-brown);
  border: 1.5px solid var(--dark-brown);
  padding: 12px 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}

.btn:hover {
  background: var(--dark-brown);
  color: var(--cream);
}

/* --- Page Header (non-home pages) --- */
.page-header {
  margin-top: 110px;
  padding: 72px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--light-border);
}

.page-header h1 {
  font-size: 3.2rem;
  font-weight: 500;
}

.page-header .subtitle {
  margin-top: 12px;
  font-weight: 400;
  font-size: 1.05rem;
}

/* --- Resource Library --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.resource-item {
  background: var(--ivory);
  padding: 20px;
  border: 1px solid var(--light-border);
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.resource-item h3 {
  text-align: center;
}
.resource-item p {
  text-align: left;
}
.resource-item .btn {
  margin-top: auto;
  padding-top: 16px;
}

.resource-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.resource-item .resource-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.resource-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.resource-item p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* --- Forum --- */
.forum-placeholder {
  text-align: center;
  padding: 80px 32px;
  background: var(--ivory);
  border: 1px solid var(--light-border);
  border-radius: 4px;
}

.forum-placeholder h2 {
  margin-bottom: 12px;
}

.forum-placeholder p {
  max-width: 500px;
  margin: 0 auto;
}

/* --- Past Events --- */
.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--ivory);
  border: 1px solid var(--light-border);
  border-radius: 4px;
  padding: 24px;
}

.event-card .event-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.event-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.event-card .event-date {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  margin-top: 40px;
  padding: 40px 48px;
  border-top: 1px solid var(--light-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-gray);
}

.site-footer a {
  color: var(--warm-gray);
}

.site-footer a:hover {
  color: var(--accent-gold);
}

/* --- No animations --- */

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    background: rgba(44, 36, 24, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(184, 151, 106, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-banner {
    height: 240px;
  }

  .page-container {
    padding: 0 20px;
  }

  .lecture-card {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
