html, body {
      height: 100%;
      margin: 0;
      display: flex;
      flex-direction: column;
      font-family: Century Gothic, sans-serif;
      color: black;
      background-color: #FEFCFF;
    }

/* Header */
header {
  background-color: #301934; /* dark purple */
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.desktop-menu {
  display: flex;
  align-items: center;
  background-color: #563c5c;
  padding: 3px 15px;
  position: relative;
}

/* Center the menu absolutely */
.menu {
  list-style: none;
  margin: 0 auto;   /* centers inside flexbox */
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Right-aligned join button */
.join-btn {
  margin-left: auto; /* pushes only this one to the right */
}

.join-btn a {
  background-color: #301934; /* same as top header */
  color: #d3d3d3;            /* light gray text */
  padding: 4px 10px;         /* smaller size */
  border-radius: 0;          /* square edges */
  text-decoration: none;
  font-weight: 500;          /* slightly lighter than bold */
  font-size: 14px;           /* smaller font */
  border: 1px solid #d3d3d3; /* subtle gray border */
  transition: all 0.3s ease;
}

.join-btn a:hover {
  background-color: #d3d3d3; /* gray highlight on hover */
  color: #301934;            /* dark purple text */
  border-color: #d3d3d3;
}

    .logo-title {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 16px 18px;
      background-color: #301934;
    }
    .header-logo { height: 40px; }
    .campaign-name {
      font-size: 18px;
      font-weight: bold;
      margin: 0;
      color: white;
    }
    .menu li { position: relative; margin: 5px; }
    .menu a {
      color: white;
      text-decoration: none;
      padding: 6px 12px;
      display: block;
      font-weight: 500;
    }
    .menu a:hover { background-color: #7B68EE; color: white; }
    .dropbtn { display: inline-flex; align-items: center; transition: background-color 0.3s, color 0.3s; }
    .dropbtn i { font-size: 0.8em; margin-left: 4px; }
    .dropdown:hover .dropdown-content { display: block; }
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #E6E6FA;
      min-width: 160px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      z-index: 999;
    }
    .dropdown-content a { padding: 12px 16px; color: black; }

    /* Hide toggle button on desktop */
    .menu-toggle-wrapper { display: none; }
    .sidebar { display: none; }

    /* Footer */
    .last-container {
      text-align: center;
      padding: 20px;
      background-color: #301934;
      color: white;
    }
    .last-container .social-icons { margin: 10px 0; }
    .last-container .social-icons a {
      color: white;
      font-size: 20px;
      margin: 0 10px;
      text-decoration: none;
    }
html {
  scroll-behavior: smooth;
}

    main { margin-top: 20px; height:auto; min-height:800px;}
    .btn {
      background: linear-gradient(to bottom, #f9e7c4, #d9b96a);
      border: none;
      padding: 10px 20px;
      margin: 5px 50px;
      border-radius: 20px;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 2px 2px 4px #888;
    }
    .hidden { display: none; }

    .content-box {
      margin: 15px auto;
      width: 80%;
      height: auto;
      text-align: left;
    }
/* === Group Box Style === */
.post {
  position: relative;
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* === Checkbox in Top-Left === */
.post input[type="checkbox"] {
  position: absolute;
  top: 15px;
  left: 15px;
  display: none;
}
.admin-checkbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* or center if you want */
  margin-top: 10px;
}
.admin-checkbox input[type="checkbox"] {
  display: block;
  width: 18px;
  height: 18px;
  accent-color: #a684d6;
}

.admin-checkbox label {
  font-size: 10px;
  color: #666;
  margin: 0;
  text-align: center;
}



    /* Popup styling */
    .popup {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10000;
    }
    /* ==== Admin Login Popup ==== */
#loginPopup .popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: 'Century Gothic', sans-serif;
  position: relative;
}

#loginPopup .popup-content h3 {
  margin-top: 0;
  font-size: 24px;
  color: #301934;
  font-weight: bold;
  margin-bottom: 20px;
}

#loginPopup .popup-content input[type="text"],
#loginPopup .popup-content input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f7fb;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#loginPopup .popup-content input:focus {
  outline: none;
  border-color: #a684d6;
}

#loginPopup .popup-content button {
  background: linear-gradient(to right, #7b5ca2, #a684d6);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px 6px 0;
  min-width: 120px;
  transition: background 0.3s ease;
}

#loginPopup .popup-content button:hover {
  background: linear-gradient(to right, #6e479e, #9475c9);
}


.status-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 200px;
  max-width: 80%;
  padding: 20px 30px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 10px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.status-message.show {
  opacity: 1;
  pointer-events: auto;
}

/* Upload Popup Layout */
#uploadPopup {
  top: 80px; /* Push it below the fixed header */
  align-items: flex-start; /* Align from top */
  padding-top: 20px;
  overflow-y: auto;
  max-height: 80vh;
}

#uploadPopup .popup-content {
  background: white;
  padding: 30px 25px;
  border-radius: 12px;
  width: 90vw;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 80vh; /* Internal scroll if needed */
  margin-top: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* Inputs & Textarea */
#uploadPopup .popup-content input,
#uploadPopup .popup-content textarea {
  margin: 10px 0;
  width: 100%;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

#uploadPopup .popup-content textarea {
  resize: vertical;
  min-height: 120px;
}

/* âœ… Button Group (Horizontal Alignment) */
.upload-button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap; /* Responsive on smaller screens */
  margin-top: 20px;
}

/* âœ… Button Styling (shared across all) */
#uploadPopup .popup-content button {
  font-weight: bold;
  background: linear-gradient(to right, #7b5ca2, #a684d6);
  color: white;
  border: none;
  transition: background 0.3s ease;
  cursor: pointer;
  border-radius: 25px;
  font-size: 14px;
  width: 150px;
  padding: 10px 0;
  display: inline-block;
}

#uploadPopup .popup-content button:hover {
  background: linear-gradient(to right, #6e479e, #9475c9);
}

.edit-title,
.edit-link,
.edit-caption {
  display: block;
  margin-bottom: 5px;
  padding: 5px;
  width: 100%;
  max-width: 400px;
}

/* Floating Admin Control Bar */
.function-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 10px;
  z-index: 1000; /* stay above content */
}

.function-button .btn {
  background: #6c63ff; /* violet-ish theme color */
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.3s;
}

.function-button .btn:hover {
  background: #5848d0;
}

.paragraph-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

.paragraph-box::-webkit-scrollbar {
    width: 8px;
}
.paragraph-box::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}
.paragraph-box::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.paragraph-box p {
  margin: 0;
  text-align:justify;
  font-size:16px;
}

.content-box a {
  display: inline-block;
  margin: 4px 0 8px 0;
}
/* ðŸŽ¯ Highlight and emphasize the description textarea */
textarea[name="description"] {
  border: 2px solid #FF69B4; /* hot pink for emphasis */
  box-shadow: 0 0 5px rgba(255, 105, 180, 0.6); /* subtle glow */
  padding: 10px;
  font-size: 14px;
  background-color: #fffdfd;
  transition: border 0.3s, box-shadow 0.3s;
  height: 200px;
  width: 100%;
  overflow-y: scroll;
  resize: vertical;
}

/* On focus, make it even more obvious */
textarea[name="description"]:focus {
  border-color: #ff1493;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.8);
}

/* âœ… Scrollbar styles for WebKit browsers */
textarea[name="description"]::-webkit-scrollbar {
  width: 8px;
}

textarea[name="description"]::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

textarea[name="description"]::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

.br-intro {
      position: relative;
      width: 100%;
      height: 40vh;
      overflow: hidden;
      margin-top:100px;
    }

    .br-intro .br-image-holder {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('images/jinbr/brintro.avif') center center / cover no-repeat;
      filter: blur(2px) brightness(0.75);
      z-index: 1;
    }
    .br-intro .br-text-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
      color: white;
      text-align: center;
      padding: 20px;
      width: 100%;
    }

    .br-intro .br-text-overlay h1 {
      font-size: 4rem;
      font-weight: bold;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }
   
   
    .container {
    max-width: 1200px;
    margin: 20px auto; /* Center horizontally */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    display: flex;
    gap: 30px;
    box-sizing: border-box;
  }
  .table-wrapper {
    flex: 3; /* bigger */
    overflow-x: auto;
    padding-right: 10px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50; /* professional green header */
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.even-row {
    background-color: #f9f9f9;
}

.odd-row {
    background-color: #ffffff;
}

tr:hover {
    background-color: #e0f7fa; /* subtle hover effect */
}

.latest-month {
    background-color: #fffae6 !important; /* soft yellow highlight */
    font-weight: bold;
    color: #333;
}

  .description {
    flex: 2; /* smaller */
    border-left: 2px solid #e0e0e0;
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.5;
    min-width: 280px;
  }
  .description h2 {
    color: #4a90e2;
    margin-bottom: 20px;
  }
  .table-wrapper h2 {
    color: #4a90e2;
    margin-bottom: 20px;
    text-align:center;
  }
  .table-wrapper::-webkit-scrollbar {
    height: 8px;
  }
  .table-wrapper::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 4px;
  }
  .iframely-embed, .fb-embed-container {
  width: 70vw;         /* 70% of viewport width */
  margin: 0 auto;      /* centers the container horizontally */
  max-width: 100%;     /* prevent overflow on small screens */
  box-sizing: border-box;
}
.tweet-embed-container {
  width: 80%;
  margin: 0 auto;
  box-sizing: border-box;
}


.naver-banner {
  display: block;
  width: 100%;
  height: 50px;
  background-color: #2db400; /* Naver green */
  color: white;
  text-align: center;
  line-height: 50px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
}
.naver-banner:hover {
  background-color: #249900;
}
.blue-divider {
  height: 4px;
  width: 200px; /* adjust length */
  margin: 40px auto; /* centers it */
  background: linear-gradient(to right, #0073e6, #00aaff, #0073e6);
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 115, 230, 0.3);
}

.highlight {
  animation: glowPulse 2s infinite;
  background: linear-gradient(90deg, #fff5f5, #ffe3f3);
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 0px rgba(255,0,128,0.4); }
  50% { box-shadow: 0 0 20px rgba(255,0,128,0.8); }
  100% { box-shadow: 0 0 0px rgba(255,0,128,0.4); }
}

    /* Mobile */
    @media (max-width: 768px) {
   .desktop-menu { display: none; }
  .menu-toggle-wrapper {
    display: flex; align-items: center; justify-content: center;
    background: #563c5c; padding: 4px 8px; height: 34px; gap: 4px; width: 100%;
  }
  .menu-toggle { font-size: 18px; color: white; }
  .menu-label { font-size: 14px; color: white; font-weight: 600; }

  .sidebar {
    display: block;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    width: auto; max-width: none;
    height: 50vh; /* ⬅️ Half the screen height */
    background: #6d4c7d;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 20px 15px;
  }
  .sidebar.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .sidebar ul li { margin-bottom: 20px; } /* more spacing */
  .sidebar ul li a {
    text-decoration: none;
    color: #f2e9f8;
    font-size: 18px; /* balanced size */
    line-height: 1.5;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.3s;
  }
  .sidebar ul {
  list-style: none;
  padding: 20px 0 0 0; /* ⬅️ pushes menu items down */
  margin: 0;
}
  .sidebar ul li a:hover { background: #8a6b96; }

  .sidebar .dropdown-content {
    background: #c9b6d4;
    border-radius: 6px;
    padding: 4px 0;
  }
  .sidebar .dropdown-content a {
    color: #301934;
    font-size: 18px;
    padding: 8px 14px;
    display: block;
  }
  .sidebar .dropdown-content a:hover { background: #b497c4; color: #fff; }

  /* Bigger close button */
  .sidebar .close-btn {
    position: absolute;
    top: 8px; right: 20px;
    font-size: 36px; /* ⬅️ Bigger for easy tapping */
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background:transparent;
  }
  .sidebar .dropdown > a i {
  transition: transform 0.3s;
}
.sidebar .dropdown > a i.rotate {
  transform: rotate(180deg);
}
/* Make all sidebar menu labels uppercase */
.sidebar ul li a,
.sidebar .dropdown-content a {
  text-transform: uppercase;
}

  /* General Layout: Ensure 100% width with 10px horizontal padding */
  body, html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .container,
  .content-box,
  .content,
  .description,
  .table-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
    margin: 0 auto;
  }

  .description {
    border-left: none;
    padding-left: 10px;
  }

  .table-wrapper {
    overflow-x: auto;
    padding-right: 0;
  }

  table {
    min-width: 600px;
  }

  /* Content spacing under header */
  .content {
    margin-top: 0px;
  }

  /* Header Text */
  .br-intro .br-text-overlay h1 {
    font-size: 2.5rem;
  }

  /* Upload Popup */
#uploadPopup {
  top: 70px;
  padding: 0; /* ✅ Remove inner padding from parent */
  box-sizing: border-box;
}

/* Centered Popup Content */
#uploadPopup .popup-content {
  width: 100%;
  max-width: 100%;
  margin: 10px 10px; /* ✅ 10px left & right margin */
  border-radius: 10px;
  padding: 20px 16px;
  box-sizing: border-box;
  height: 600px;
}

/* Inputs & Textarea */
#uploadPopup .popup-content input,
#uploadPopup .popup-content textarea {
  font-size: 15px;
  padding: 10px;
  box-sizing: border-box;
}

/* Button Group */
.upload-button-group {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
}

/* Buttons */
#uploadPopup .popup-content button {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

  /* Highlighted textarea (Admin Upload) */
  textarea[name="description"] {
    font-size: 16px;
    padding: 12px;
    height: 400px;
    box-shadow: 0 0 6px rgba(255, 105, 180, 0.7);
  }

  textarea[name="description"]::placeholder {
    font-size: 15px;
    color: #999;
  }
    .br-intro .br-image-holder {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('images/jinbr/brintro.avif') center center / fill no-repeat;
      filter: blur(2px) brightness(0.75);
      z-index: 1;
    }
    .br-intro {
        height: 30vh; /* or 30vh or 40vh */
        margin-top: 100px;
  }
  .br-intro .br-text-overlay {
    padding: 10px;
  }

  .iframely-embed,
  .fb-embed-container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  .paragraph-box {
    max-height: none;
    overflow-y: visible;
    margin: 8px 0;
  }

  .paragraph-box p {
    font-size: 15px;
    line-height: 1.5;
  }
 .function-button {
    bottom: 10px;
    right: 5px;
    gap: 6px;
    padding: 0;
  }

  .function-button .btn {
    padding: 8px 12px;
    font-size: 13px;
    margin: 3px 0; /* ✅ remove big left/right margins */
  }
}
