:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #4eb095;
  --border-color: #e5e7eb;
}

.dark {
  --bg-color: #111827;
  --text-color: #ffffff;
  --border-color: #374151;
}

.h1m {
  color: #4eb095;
  font-family: "Roboto", serif;
  font-size: 2.5rem;
  font-weight: 600;
}

/* Modern Heading Style */
.modern-heading {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2dd4bf 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.modern-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #2dd4bf 100%);
    border-radius: 2px;
}

.modern-heading::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    z-index: 1;
}

/* Modern Side Heading Style */
.side-heading {
    position: relative;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    width: fit-content;
}

.side-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    border-radius: 4px;
}

.side-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 4px;
    opacity: 0.5;
}

/* Dark theme adjustment */
.dark .modern-heading::before {
    border-color: var(--bg-color);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

/* Dark theme adjustment */
.dark .side-heading {
    color: #ffffff;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .modern-heading {
        font-size: 2rem;
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .side-heading {
        font-size: 1.3rem;
        padding-left: 1rem;
    }
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.2s, color 0.2s;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 2rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .desktop-nav {
  background: rgba(17, 24, 39, 0.7);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-search {
  position: relative;
  margin-left: 2rem;
}

.search-input {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 200px;
  transition: all 0.2s;
}

.dark .search-input {
  background: rgba(0, 0, 0, 0.2);
}

.search-input:focus {
  border-color: var(--accent-color);
  width: 250px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mobile Navigation */
.mobile-top-bar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 1rem;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .mobile-top-bar {
  background: rgba(17, 24, 39, 0.7);
}

.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1rem;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
}

.dark .mobile-nav {
  background: rgba(17, 24, 39, 0.9);
}

.mobile-nav .nav-link {
  flex-direction: column;
  font-size: 0.75rem;
}

.menu-btn,
.search-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 200px;
  bottom: 64px;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 45;
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.dark .mobile-menu {
  background: rgba(17, 24, 39, 0.95);
}

.mobile-menu.active {
  transform: translateX(0);
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-item {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.menu-item:hover {
  color: var(--accent-color);
}

.search-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  padding: 1rem;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 40;
}

.dark .search-overlay {
  background: rgba(17, 24, 39, 0.95);
}

.hidden {
  display: none;
}

/* Main Content */
.content {
  padding: 5rem 1rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), #2dd4bf);
  background-clip: var(--text-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--accent-color);
}

.card p {
  margin: 0;
  color: var(--text-color);
  opacity: 0.8;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  
  .mobile-nav,
  .mobile-top-bar,
  .mobile-menu {
    display: none;
  }
  
  .content {
    padding: 6rem 2rem 2rem;
  }
}

/* Basic Styles for Carousel */
.carousel-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row for PC */
  gap: 2rem;
  padding: 2rem;
  perspective: 1000px;
}

.carousel-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(78, 176, 149, 0.1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(78, 176, 149, 0.08);
}

.carousel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  transform: translateY(100%); /* Hide by default for desktop */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop hover effects */
@media screen and (min-width: 769px) {
  .carousel-card:hover .carousel-caption {
    transform: translateY(0);
  }
}

/* Mobile styles - show caption by default */
@media screen and (max-width: 768px) {
  .carousel-caption {
    position: relative;
    transform: none;
    background: rgba(17, 24, 39, 0.95);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none; /* Remove underline */
  }

  .carousel-card {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline */
  }

  .carousel-card a {
    text-decoration: none; /* Remove underline from any links */
  }

  .carousel-card:hover {
    text-decoration: none; /* Ensure no underline on hover */
  }

  .carousel-card {
    display: flex;
    flex-direction: column;
  }

  .carousel-card img {
    border-radius: 16px 16px 0 0; /* Round only top corners */
  }
}

/* Dark theme adjustments */
.dark .carousel-card {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(78, 176, 149, 0.2);
}

.dark .carousel-caption {
  background: rgba(17, 24, 39, 0.95);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .carousel-container {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row for mobile */
    gap: 1rem;
    padding: 1rem;
  }

  .carousel-card:hover {
    transform: translateY(-5px) rotateX(3deg);
  }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
  .carousel-container {
    gap: 0.75rem;
    padding: 0.75rem;
  }
}

.button-container {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  justify-content: center;
  align-items: center;
  gap: 15px; /* Space between buttons */
  margin-top: 20px;
}

/* Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  text-align: left;
  width: 100%;
}

/* Light Theme */
.btn {
  color: var(--text-primary);
}

.btn:hover {
  background: rgba(45, 212, 191, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(45, 212, 191, 0.1);
}

/* Dark Theme */
.dark .btn {
  color: #ffffff;
  background: rgba(45, 212, 191, 0.1);
}

.dark .btn:hover {
  background: rgba(45, 212, 191, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Button Layout */
@media (max-width: 768px) {
  .btn {
      width: 100%; /* Full width on mobile */
      max-width: 350px; /* Max width of the button on mobile */
  }
}

.search-results {
  width: 80%;
  max-width: 600px;
  margin-top: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.search-result-item {
  background: var(--card-bg);
  margin: 10px 0;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.2s;
  cursor: pointer;
}

.search-result-item:hover {
  transform: translateY(-2px);
}

.result-title {
  font-weight: bold;
  color: var(--text-primary);
}

.result-context {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-top: 5px;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  stroke: var(--accent-color);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: rgba(45, 212, 191, 0.1);
}

.back-to-top:hover svg {
  transform: scale(1.1);
}

/* Dark theme */
.dark .back-to-top {
  background: transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark .back-to-top:hover {
  background: rgba(45, 212, 191, 0.1);
}

@media (max-width: 768px) {
  .back-to-top {
      bottom: 90px;
      right: 15px;
  }
}


/* Home Carousel Styles */
#home-carousel {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  background: var(--bg-color);
}

#home-carousel .carousel-track {
  display: flex;
  animation: scroll 20s linear infinite;
  gap: 2rem;
}

#home-carousel .carousel-card {
  min-width: 300px;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

#home-carousel .carousel-card:hover {
  transform: translateY(-5px);
}

#home-carousel .carousel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

#home-carousel .carousel-card h3 {
  color: var(--text-primary);
  margin: 1rem 0;
}

#home-carousel .carousel-card p {
  color: var(--text-secondary);
}

/* Bulletin Board Styles */
#home-bulletin {
  padding: 2rem;
  margin: 2rem 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#home-bulletin h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

#home-bulletin .bulletin-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#home-bulletin .bulletin-item {
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

#home-bulletin .bulletin-item:hover {
  transform: translateX(5px);
}

#home-bulletin .date {
  font-weight: bold;
  color: var (--primary-color);
}

/* Global Footer Styles */
#global-footer {
  background: var(--bg-secondary);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

#global-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

#global-footer h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

#global-footer ul {
  list-style: none;
  padding: 0;
}

#global-footer ul li {
  margin-bottom: 0.5rem;
}

#global-footer ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

#global-footer ul li a:hover {
  color: var(--primary-color);
}

#global-footer .social-icons {
  display: flex;
  gap: 1rem;
}

#global-footer .social-icons a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

#global-footer .social-icons a:hover {
  color: var(--primary-color);
}

#global-footer .footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

#global-footer .footer-bottom p {
  color: var(--text-secondary);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 3 - 6rem)); }
}

/* Dark Theme Adjustments */
.dark #home-carousel .carousel-card {
  background: var(--bg-color);
}

.dark #home-bulletin {
  background: var(--bg-color);
}

.dark #global-footer {
  background: var(--bg-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  #home-carousel .carousel-card {
      min-width: 250px;
  }
  
  #global-footer .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
   #global-footer {
        padding-bottom: 20px; /* Extra space for mobile navbar */
        margin-bottom: 60px; /* Space from bottom navbar */
    }
  
  #global-footer .social-icons {
      justify-content: center;
  }
}

/*  style for socials

/* Universal Social Pages Styles */
.social-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.social-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 212, 191, 0.1);
  position: relative;
  overflow: hidden;
}

/* Light Theme */
.social-card {
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 4px 6px rgba(45, 212, 191, 0.1);
}

.social-card:hover {
  transform: translateY(-5px);
  background: rgba(45, 212, 191, 0.1);
  box-shadow: 0 8px 12px rgba(45, 212, 191, 0.15);
}

/* Dark Theme */
.dark .social-card {
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dark .social-card:hover {
  background: rgba(45, 212, 191, 0.08);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

/* Common Elements */
.social-card h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-card p {
  color: var(--text-primary);
  line-height: 1.6;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--primary-color-dark);
  transform: translateY(-2px);
}

/* Shapes */
.shape-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.1);
  z-index: -1;
}

.shape-top-right {
  top: -20px;
  right: -20px;
}

.shape-bottom-left {
  bottom: -20px;
  left: -20px;
}

.social-container a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-container a:hover {
  color: var(--primary-color);
}

.dark .social-container a {
  color: var(--text-primary);
}

/* pc search */

.nav-search {
  position: relative;
  margin: 0 1rem;
}

.pc-search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  margin-top: 5px;
  max-height: 400px;
  overflow-y: auto;
}

.pc-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pc-search-item:hover {
  background: var(--bg-color);
  transform: translateX(5px);
}

.pc-search-item i {
  color: var(--primary-color);
}

.pc-no-results {
  padding: 12px 16px;
  text-align: center;
  color: var(--text-secondary);
}

/* Dark theme */
.dark .pc-search-results {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}

.dark .pc-search-item:hover {
  background: var(--bg-secondary);
}

.highlight {
  animation: highlight 2s ease-out;
}

@keyframes highlight {
  0% { background: var(--primary-color); }
  100% { background: transparent; }
}

/* dl page */

.download-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

/* Light Theme */
.download-btn {
  background: transparent;
  color: var(--text-primary);
}

.download-btn:hover {
  background: rgba(45, 212, 191, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(45, 212, 191, 0.1);
}

/* Dark Theme */
.dark .download-btn {
  background: rgba(45, 212, 191, 0.1);
  color: #ffffff;
}

.dark .download-btn:hover {
  background: rgba(45, 212, 191, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.download-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.download-btn:hover svg {
  transform: scale(1.1);
}

/* Contents Styles */
.instruction-box {
    background: rgba(78, 176, 149, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.instruction-box p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

.contents-container {
    position: relative;
    background: rgba(78, 176, 149, 0.08); /* More visible background */
    border: 2px solid rgba(78, 176, 149, 0.2); /* Darker border */
    border-radius: 24px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 800px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 
        0 4px 24px rgba(78, 176, 149, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.contents-list {
    position: relative;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Changed to left alignment */
    gap: 1rem;
    z-index: 1;
}

.contents-list li {
    position: relative;
    width: 100%;
    transform: translateZ(0);
}

.contents-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    display: block;
    background: rgba(78, 176, 149, 0.03);
    border: 1px solid rgba(78, 176, 149, 0.08);
    text-align: left;  /* Ensure text is left aligned */
}

.contents-link:hover {
    color: var(--accent-color);
    transform: translateX(10px);
    background: rgba(78, 176, 149, 0.08);
    box-shadow: 
        0 4px 20px rgba(78, 176, 149, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Modern gradient corners */
.contents-container::before,
.contents-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78, 176, 149, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.contents-container::before {
    top: -150px;
    right: -150px;
    transform: rotate(-45deg);
}

.contents-container::after {
    bottom: -150px;
    left: -150px;
    transform: rotate(45deg);
}

/* Dark theme adjustments */
.dark .contents-container {
    background: rgba(17, 24, 39, 0.3);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dark .contents-link {
    background: rgba(78, 176, 149, 0.02);
}

.dark .contents-link:hover {
    background: rgba(78, 176, 149, 0.05);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.section {
    margin: 4rem 0;
    scroll-margin-top: 100px;
}

/* Contents Styles with Shapes */
.contents-container {
    position: relative;
    background: rgba(78, 176, 149, 0.08); /* More visible background */
    border: 2px solid rgba(78, 176, 149, 0.2); /* Darker border */
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(78, 176, 149, 0.1);
}

/* Decorative shapes */
.contents-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.contents-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(315deg, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.contents-list {
    position: relative;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.contents-list li {
    position: relative;
    padding-left: 1.5rem;
    width: fit-content;
}

.contents-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.contents-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.contents-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    background: rgba(78, 176, 149, 0.1);
}

.contents-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.contents-link:hover::after {
    width: 80%;
}

.instruction-box {
    text-align: center;
    background: rgba(78, 176, 149, 0.1);
    border-left: 4px solid var(--accent-color);
    border-right: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 8px;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.instruction-box::before,
.instruction-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
}

.instruction-box::before {
    top: -10px;
    left: -10px;
}

.instruction-box::after {
    bottom: -10px;
    right: -10px;
}

.dark .contents-container {
    background: rgba(17, 24, 39, 0.3);
    border-color: rgba(78, 176, 149, 0.15);
}

.dark .contents-container {
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Modern Nav Card Styles */
.nav-card-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.nav-card {
  position: relative;
  display: block;
  padding: 1.5rem 2rem;
  background: rgba(78, 176, 149, 0.1); /* Increased opacity */
  border: 2px solid rgba(78, 176, 149, 0.2); /* Darker border */
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(78, 176, 149, 0.1);
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      transparent 0%,
      rgba(78, 176, 149, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  background: rgba(78, 176, 149, 0.15); /* Darker hover state */
  border-color: rgba(78, 176, 149, 0.3); /* Darker border on hover */
  box-shadow: 
      0 8px 20px rgba(78, 176, 149, 0.15),
      0 2px 4px rgba(78, 176, 149, 0.1);
}

.nav-card:hover::before {
  opacity: 1;
}

.dark .nav-card {
    background: rgba(78, 176, 149, 0.05);
    border-color: rgba(78, 176, 149, 0.15);
}


/* Disable text selection and long press */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Allow interaction on interactive elements */
a, button, input, textarea, [role="button"], .btn, .nav-link, .carousel-card, .menu-item, .social-icons a {
    -webkit-touch-callout: initial;
    -webkit-user-select: initial;
    -khtml-user-select: initial;
    -moz-user-select: initial;
    -ms-user-select: initial;
    user-select: initial;
    cursor: pointer;
}

/* Allow text selection only in specific elements */
input, 
textarea, 
[contenteditable="true"] {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
