/* ===== CALL FOR PAPERS PAGES - CREAM & GOLD THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A456;
  --gold-light: #E0C88A;
  --gold-dark: #8B6B3D;
  --gold-glow: rgba(201, 164, 86, 0.4);
  --olive: #6B6E3D;
  --olive-dark: #4A4D2A;
  --black: #0b0b0b;
  --cream: #FFFBF5;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --font-display: 'Playfair Display', serif;
  --font-thai: 'Prompt', sans-serif;
  --gradient-gold: linear-gradient(135deg, #C9A456 0%, #8B6B3D 100%);
  --navbar-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  font-family: var(--font-thai);
  color: var(--gray-800);
  line-height: 1.7;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding-top: 80px;
}

/* ===== HERO SECTION - LIKE INDEX ===== */
.page-hero {
  background: var(--cream);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 164, 86, 0.08) 0%, transparent 60%);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201, 164, 86, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gallery-hero {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.hero-heading {
  font-family: var(--font-thai);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 8px;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.hero-heading span {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hero Divider */
.hero-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 30px auto 0;
  border-radius: 2px;
}

/* Gallery - Hidden */
.gallery {
  display: none;
}

/* ===== MAIN LAYOUT ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 2rem;
}

/* ===== PANEL ===== */
.panel {
  background: transparent;
}

/* Featured Image */
.featured-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-image:hover img {
  transform: scale(1.03);
}

/* Image in content */
.content-image {
  float: right;
  width: 45%;
  margin: 0 0 1.5rem 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-image.left {
  float: left;
  margin: 0 2rem 1.5rem 0;
}

/* Clear float */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.label {
  display: inline-block;
  border: 1px solid rgba(201, 164, 86, 0.3);
  padding: 8px 18px;
  border-radius: 24px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.panel strong {
  color: var(--gray-800);
  font-weight: 600;
}

.panel ul,
.panel ol {
  margin: 12px 0 20px 24px;
  color: var(--gray-600);
}

.panel li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.panel a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.panel a:hover {
  color: var(--gold);
}

.rule {
  border-left: none;
  border-top: 2px solid rgba(201, 164, 86, 0.25);
  padding-left: 0;
  padding-top: 1.5rem;
  margin: 1.5rem 0;
}

/* ===== SIDE COLUMN ===== */
.side {
  border-left: 2px solid rgba(201, 164, 86, 0.3);
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.note-card {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.note-card .label {
  color: var(--olive);
}

.note-card ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.note-card li {
  margin-bottom: 10px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.note-card ol {
  margin-top: 8px;
  padding-left: 20px;
}

/* CTA Card - Sidebar Version */
.cta {
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A456' fill-opacity='0.08'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta .label {
  color: var(--gold-light);
  border: none;
  font-size: 1.1rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  display: block;
}

.cta .sub-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-gold);
  color: var(--white) !important;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  position: relative;
  z-index: 2;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(201, 164, 86, 0.4);
  background: var(--gradient-gold);
  color: var(--white) !important;
  opacity: 0.95;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .side {
    border-left: none;
    border-top: 2px solid rgba(201, 164, 86, 0.25);
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 2rem;
  }

  .hero-heading {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .content-image {
    width: 50%;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-hero {
    padding: 80px 1rem 50px;
    min-height: 35vh;
  }

  .hero-heading {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }

  .layout {
    padding: 40px 1rem;
  }

  .label {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .panel li {
    font-size: 0.95rem;
  }

  .content-image,
  .content-image.left {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }

  .featured-image img {
    height: 200px;
  }

  .cta a {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}