/* ==========================================================================
   2026 ACE AI SW Startup Training - 2-Row Header & Notice Carousel Layer Popup
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 2-Row Navigation Styles
   -------------------------------------------------------------------------- */
.navbar-tworow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246,249,244,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(36,59,53,0.08);
  box-shadow: 0 4px 24px rgba(36,59,53,0.14);
  height: auto !important;
  min-height: 94px !important;
  padding: 0 !important;
}

.navbar-tworow .nav-container {
  max-width: 1300px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  height: auto !important;
  min-height: 94px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

/* Row 1: Brand & Core Quick Actions */
.navbar-tworow .nav-row-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 50px !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(36,59,53,0.08) !important;
  box-sizing: border-box !important;
}

.navbar-tworow .logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-tworow .logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #243B35;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.navbar-tworow .logo::before {
  content: "";
  width: 8px;
  height: 22px;
  background: linear-gradient(135deg, #D2E0FB, #D2E0FB);
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 12px rgba(36,59,53,0.14);
}

.navbar-tworow .logo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2B5CA6;
  background: rgba(43,92,166,0.132);
  border: 1px solid rgba(43,92,166,0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.navbar-tworow .nav-top-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.navbar-tworow .nav-home-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #243B35 !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(36,59,53,0.09) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  writing-mode: horizontal-tb !important;
}

.navbar-tworow .nav-home-btn:hover {
  background: rgba(255,255,255,0.91) !important;
  color: #2B5CA6 !important;
  border-color: rgba(43,92,166,0.4) !important;
}

/* Notice Trigger Button */
.nav-notice-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #243B35 !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, rgba(168,58,69,0.22), rgba(133,96,0,0.275)) !important;
  border: 1px solid rgba(133,96,0,0.5) !important;
  padding: 6px 15px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  font-family: inherit !important;
  box-shadow: 0 0 14px rgba(36,59,53,0.07) !important;
  position: relative !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  writing-mode: horizontal-tb !important;
}

.nav-notice-btn:hover {
  background: linear-gradient(135deg, rgba(168,58,69,0.385), rgba(133,96,0,0.495));
  border-color: rgba(133,96,0,0.55);
  box-shadow: 0 0 20px rgba(36,59,53,0.14);
  transform: translateY(-1px);
}

.nav-notice-btn .notice-icon-anim {
  display: inline-block;
  animation: bellRing 3s ease infinite;
  transform-origin: top center;
}

@keyframes bellRing {
  0%, 65%, 100% { transform: rotate(0); }
  70% { transform: rotate(14deg); }
  75% { transform: rotate(-14deg); }
  80% { transform: rotate(10deg); }
  85% { transform: rotate(-10deg); }
  90% { transform: rotate(4deg); }
  95% { transform: rotate(-4deg); }
}

.nav-notice-btn .notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #27765B;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(36,59,53,0.14);
}

/* User Login / Profile Slot */
.navbar-tworow .nav-auth-slot {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.navbar-tworow .nav-login-btn {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #2B5CA6 !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  background: rgba(43,92,166,0.11) !important;
  border: 1px solid rgba(43,92,166,0.3) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  writing-mode: horizontal-tb !important;
}

.navbar-tworow .nav-login-btn:hover {
  background: rgba(43,92,166,0.22) !important;
  color: #243B35 !important;
  box-shadow: 0 0 14px rgba(36,59,53,0.122) !important;
}

.navbar-tworow .user-badge-main {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  writing-mode: horizontal-tb !important;
}

/* Row 2: Secondary Menu Links */
.navbar-tworow .nav-row-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 44px !important;
  width: 100% !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 2px 0 !important;
  box-sizing: border-box !important;
}

.navbar-tworow .nav-row-sub::-webkit-scrollbar {
  display: none;
}

.navbar-tworow .subnav-links {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: auto !important;
}

.navbar-tworow .subnav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  color: #4A605A !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  writing-mode: horizontal-tb !important;
}

.subnav-link:hover {
  color: #243B35;
  background: rgba(255,255,255,0.73);
  border-color: rgba(36,59,53,0.09);
}

.subnav-link.active {
  color: #243B35;
  background: rgba(255,255,255,0.91);
  border-color: rgba(36,59,53,0.18);
}

/* Specific button styles in Row 2 */
.subnav-link.nav-hw1 {
  color: #5D4AA8 !important;
  background: rgba(93,74,168,0.132);
  border-color: rgba(93,74,168,0.3);
  font-weight: 700;
}
.subnav-link.nav-hw1:hover, .subnav-link.nav-hw1.active {
  background: rgba(93,74,168,0.275);
  box-shadow: 0 0 12px rgba(36,59,53,0.122);
}

.subnav-link.nav-hw2 {
  color: #2B5CA6 !important;
  background: rgba(43,92,166,0.132);
  border-color: rgba(43,92,166,0.3);
  font-weight: 700;
}
.subnav-link.nav-hw2:hover, .subnav-link.nav-hw2.active {
  background: rgba(43,92,166,0.275);
  box-shadow: 0 0 12px rgba(36,59,53,0.122);
}

.subnav-link.nav-codex {
  color: #856000 !important;
  background: rgba(133,96,0,0.132);
  border-color: rgba(133,96,0,0.35);
  font-weight: 700;
}
.subnav-link.nav-codex:hover, .subnav-link.nav-codex.active {
  background: rgba(133,96,0,0.275);
  box-shadow: 0 0 12px rgba(36,59,53,0.122);
}

.subnav-link.nav-qr {
  color: #27765B !important;
  background: rgba(39,118,91,0.11);
  border-color: rgba(39,118,91,0.25);
}
.subnav-link.nav-qr:hover, .subnav-link.nav-qr.active {
  background: rgba(39,118,91,0.22);
  box-shadow: 0 0 10px rgba(36,59,53,0.105);
}

/* Adjust page tops for 2-row navbar (96px height) */
body.has-tworow-nav {
  padding-top: 96px !important;
}

/* --------------------------------------------------------------------------
   2. Notice Layer Popup (SlideShare Style Modal)
   -------------------------------------------------------------------------- */
.notice-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(36,59,53,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notice-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.notice-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: #F6F9F4;
  border: 1px solid rgba(36,59,53,0.108);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(36,59,53,0.14), 0 0 40px rgba(36,59,53,0.052);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notice-modal-backdrop.is-open .notice-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.notice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  background: #F6F9F4;
  border-bottom: 1px solid rgba(36,59,53,0.08);
}

.notice-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #243B35;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.notice-counter-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2B5CA6;
  background: rgba(43,92,166,0.132);
  border: 1px solid rgba(43,92,166,0.3);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notice-modal-close {
  background: rgba(255,255,255,0.73);
  border: 1px solid rgba(36,59,53,0.09);
  color: #4A605A;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.notice-modal-close:hover {
  background: rgba(168,58,69,0.22);
  border-color: rgba(168,58,69,0.4);
  color: #A83A45;
}

/* Modal Quick Tabs (SlideShare category selector) */
.notice-quick-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(246,249,244,0.95);
  border-bottom: 1px solid rgba(36,59,53,0.08);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.notice-quick-tabs::-webkit-scrollbar { display: none; }

.notice-tab-btn {
  background: rgba(255,255,255,0.67);
  border: 1px solid rgba(36,59,53,0.08);
  color: #4A605A;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notice-tab-btn:hover {
  background: rgba(255,255,255,0.79);
  color: #243B35;
}

.notice-tab-btn.is-active {
  background: #D7EEDD;
  color: #243B35;
  border-color: rgba(43,92,166,0.5);
  box-shadow: 0 0 12px rgba(36,59,53,0.14);
}

.notice-tab-badge-new {
  background: #F6D5CF;
  color: #243B35;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Modal Body / Slides Viewport */
.notice-slides-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #F6F9F4;
  min-height: 460px;
}

.notice-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.notice-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 36px 36px;
  overflow-y: auto;
  max-height: calc(92vh - 200px);
}

.notice-slide::-webkit-scrollbar {
  width: 6px;
}
.notice-slide::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.61);
}
.notice-slide::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.92);
  border-radius: 4px;
}

/* Slide Content Formatting */
.notice-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.tag-urgent {
  background: rgba(168,58,69,0.165);
  color: #A83A45;
  border: 1px solid rgba(168,58,69,0.3);
}

.tag-faculty {
  background: rgba(93,74,168,0.165);
  color: #5D4AA8;
  border: 1px solid rgba(93,74,168,0.3);
}

.tag-learning {
  background: rgba(43,92,166,0.165);
  color: #2B5CA6;
  border: 1px solid rgba(43,92,166,0.3);
}

.notice-post-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #243B35;
  line-height: 1.4;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

.notice-card-box {
  background: rgba(246,249,244,0.85);
  border: 1px solid rgba(36,59,53,0.08);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 16px;
}

.notice-card-box.highlight-blue {
  border-left: 4px solid rgba(43,92,166,0.55);
  background: linear-gradient(90deg, rgba(43,92,166,0.088), rgba(246,249,244,0.85));
}

.notice-card-box.highlight-amber {
  border-left: 4px solid rgba(133,96,0,0.55);
  background: linear-gradient(90deg, rgba(133,96,0,0.088), rgba(246,249,244,0.85));
}

.notice-card-box.highlight-green {
  border-left: 4px solid rgba(39,118,91,0.55);
  background: linear-gradient(90deg, rgba(39,118,91,0.088), rgba(246,249,244,0.85));
}

.notice-card-box.highlight-red {
  border: 1px solid rgba(168,58,69,0.38);
  border-left: 4px solid rgba(168,58,69,0.55);
  background: linear-gradient(90deg, rgba(168,58,69,0.154), rgba(246,249,244,0.92));
}

.notice-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #243B35;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
}

.notice-text-p {
  color: #4A605A;
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0 0 12px 0;
  word-break: keep-all;
}

.notice-text-p:last-child {
  margin-bottom: 0;
}

.notice-check-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #243B35;
  font-size: 0.93rem;
  line-height: 1.6;
}

.notice-check-list li .check-icon {
  color: #27765B;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Attached Image in Notice 2 */
.notice-attachment-wrap {
  margin-top: 20px;
  background: rgba(246,249,244,0.9);
  border: 1px solid rgba(36,59,53,0.09);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.attachment-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4A605A;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 4px;
}

.notice-team-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(36,59,53,0.14);
  cursor: zoom-in;
  transition: transform 0.2s ease;
  display: block;
  margin: 0 auto;
}

.notice-team-img:hover {
  transform: scale(1.01);
}

.notice-author-sign {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(36,59,53,0.108);
  color: #4A605A;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Floating Slide Arrows (SlideShare Style) */
.notice-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(246,249,244,0.85);
  border: 1px solid rgba(36,59,53,0.135);
  color: #243B35;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(36,59,53,0.14);
}

.notice-nav-arrow:hover {
  background: #D2E0FB;
  border-color: rgba(43,92,166,0.55);
  box-shadow: 0 0 16px rgba(36,59,53,0.14);
  transform: translateY(-50%) scale(1.08);
}

.notice-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.notice-nav-arrow.prev { left: 12px; }
.notice-nav-arrow.next { right: 12px; }

/* Modal Footer / Navigation Controls */
.notice-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #F6F9F4;
  border-top: 1px solid rgba(36,59,53,0.08);
}

.notice-pagination-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.notice-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, #D2E0FB, #D2E0FB);
  box-shadow: 0 0 10px rgba(36,59,53,0.14);
}

.notice-footer-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.notice-control-btn.btn-prev {
  background: rgba(255,255,255,0.73);
  border: 1px solid rgba(36,59,53,0.09);
  color: #4A605A;
}

.notice-control-btn.btn-prev:hover:not(:disabled) {
  background: rgba(255,255,255,0.91);
  color: #243B35;
}

.notice-control-btn.btn-next {
  background: #27765B;
  border: 1px solid rgba(43,92,166,0.4);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(36,59,53,0.105);
}

.notice-control-btn.btn-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #D2E0FB, #D2E0FB);
  box-shadow: 0 0 16px rgba(36,59,53,0.14);
  transform: translateY(-1px);
}

.notice-control-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Lightbox Modal for Image Zoom */
.notice-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(246,249,244,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.notice-lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.notice-lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(36,59,53,0.14);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .navbar-tworow .nav-container { padding: 0 16px; }
  .navbar-tworow .nav-row-top { height: 48px; }
  .navbar-tworow .logo { font-size: 1.05rem; }
  .navbar-tworow .logo-badge { display: none; }
  .nav-notice-btn { padding: 5px 10px; font-size: 0.82rem; }
  .navbar-tworow .nav-home-btn { padding: 5px 10px; font-size: 0.82rem; }
  .notice-slide { padding: 20px 18px 28px; }
  .notice-post-title { font-size: 1.2rem; }
  .notice-nav-arrow { display: none; }
}
