/* =======================================================
* Theme: Chulalongkorn University (Light & Modern Pink Theme)
* ======================================================= */

/* 1. CSS VARIABLES */
:root {
  /* โทนสีจากภาพอ้างอิง (ชมพูหวาน สว่าง สะอาดตา) */
  --primary-pink: #ED7298;       
  --primary-pink-hover: #D85D83; 
  --primary-pink-light: #FDF1F4; 
  --primary-brand: #27324B; 
  
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;       
  --text-main: #27324B; /* สีกรมท่า/น้ำเงินเข้มตามภาพ */       
  --text-muted: #64748B;         
  --border-color: #E2E8F0;
  --glass-bg: rgba(255, 255, 255, 0.95);
  
  --font-stack: 'Sarabun', 'Inter', 'Noto Sans Thai', sans-serif;
  --line-height-premium: 1.7;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --card-radius: 16px;
}

/* 2. BASE & SCROLLBAR */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: var(--line-height-premium);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-pink); }

/* =======================================================
* 3. NAVBAR (Floating Glassmorphism & Logo Integration)
* ======================================================= */
.navbar {
  position: sticky;
  top: 16px;                     
  z-index: 1000;
  max-width: 1240px;             
  margin: 0 auto;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 30px;           
  box-shadow: 0 4px 20px rgba(39, 50, 75, 0.04);
  transition: var(--transition-smooth);
}

.nav-container {
  padding: 10px 24px;            
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-main-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;                     
  align-items: center;
}

.nav-item {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;          
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background-color: rgba(39, 50, 75, 0.04); 
}

.nav-item.active {
  font-weight: 600;
}

.arrow-icon {
  font-size: 10px;
  transition: var(--transition-smooth);
}

@media screen and (max-width: 768px) {
  .nav-main-logo { height: 32px; }
}

.has-bento-dropdown { position: relative; }

.bento-dropdown-matrix {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding-top: 12px;
  width: 540px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.has-bento-dropdown:hover .bento-dropdown-matrix {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.has-bento-dropdown:hover .arrow-icon {
  transform: rotate(180deg);   
  color: var(--primary-pink);
}

.bento-drop-grid {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px;
  box-shadow: 0 30px 50px rgba(39, 50, 75, 0.08);
}

.drop-sub-card {
  text-decoration: none;
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  border-top: 3px solid var(--primary-brand);
  transition: var(--transition-smooth);
  display: block;
}

.drop-sub-card.phd-theme { border-top-color: var(--primary-pink); }

.drop-sub-card:hover {
  background-color: var(--bg-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.drop-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background-color: #e2e8f0;
  color: var(--text-main);
  border-radius: 4px;
  margin-bottom: 8px;
}

.phd-theme .drop-badge {
  background-color: var(--primary-pink-light);
  color: var(--primary-pink);
}

.drop-sub-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main) !important;
  margin-bottom: 4px;
}

.drop-sub-card p {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin: 0;
  line-height: 1.4;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(39, 50, 75, 0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  z-index: 1001;
}

.mobile-menu-container.open { max-height: 500px; opacity: 1; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-item {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  display: block;
  padding: 8px 4px;
}

.mobile-divider {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 8px;
}

.mobile-drop-card {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-secondary);
  padding: 14px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid var(--primary-brand);
}

.mobile-drop-card.m-phd-theme { border-left-color: var(--primary-pink); }

.m-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background-color: var(--bg-main);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open .hamburger-bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =======================================================
* 4. MAIN LAYOUT
* ======================================================= */
.main-content {
  background-image: 
    radial-gradient(at 0% 0%, rgba(237, 114, 152, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(39, 50, 75, 0.02) 0px, transparent 50%),
    linear-gradient(var(--bg-main), var(--bg-main));
  padding: 40px 0 80px 0;
}

.main-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.banner-wrapper { margin-bottom: 32px; text-align: center; }

/* =======================================================
* 5. BENTO GRID ARCHITECTURE
* ======================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px -5px rgba(39, 50, 75, 0.05), 0 10px 15px -5px rgba(0, 0, 0, 0.01);
  background-color: var(--bg-main);
  border-color: rgba(237, 114, 152, 0.25);
}

.bento-hero {
  grid-column: span 2;
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-pink-light) 100%);
  border-top: 4px solid var(--primary-pink);
}

.ui-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-pink);
  background-color: var(--primary-pink-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.bento-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.sub-program-title {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.bento-image-card { padding: 0; }
.bento-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.bento-image-card:hover .bento-bg-img { transform: scale(1.06); }
.image-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(39, 50, 75, 0.85));
}
.img-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-main);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 4px;
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }

.bento-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary-pink);
  border-radius: 4px;
}

.bento-text {
  font-size: 16px; 
  color: var(--text-muted);
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.8; 
  margin-bottom: 12px;
}

.meta-info-stack p { font-size: 15px; margin-bottom: 10px; color: var(--text-muted); }
.meta-info-stack strong { color: var(--text-main); }

.bento-ordered-list {
  counter-reset: bento-counter;
  list-style: none !important; 
  padding-left: 0 !important;   
  margin: 0;
}

.bento-ordered-list li {
  counter-increment: bento-counter;
  font-size: 15px; 
  line-height: 1.7;
  margin-bottom: 14px;
  display: flex !important;
  align-items: flex-start !important; 
  gap: 12px !important;               
  text-align: left !important;
  position: relative;
}

.bento-ordered-list li::before {
  content: counter(bento-counter, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-pink);
  background-color: var(--primary-pink-light);
  padding: 3px 6px;
  border-radius: 4px;
  position: static !important;        
  display: inline-block !important;
  flex-shrink: 0 !important;          
  min-width: 26px;  
  text-align: center;
  margin-top: 2px;  
}

.highlighted-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--primary-pink-light);
  border-left: 3px solid var(--primary-pink);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  text-align: left; 
}

.divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 20px 0;
}

/* =======================================================
* 6. TABLES, LISTS, & ADMISSION
* ======================================================= */
.program-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.program-table th {
  padding: 12px;
  background-color: rgba(39, 50, 75, 0.03);
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}
.program-table td { padding: 16px 12px; border-bottom: 1px solid var(--border-color); }

.table-subtext { font-size: 12px; color: #64748b; }
.table-note { font-size: 12px; color: #64748b; font-style: italic; margin-top: 16px; }

.bento-list { padding-left: 8px; list-style: none; }
.bento-list li { color: var(--text-muted); position: relative; padding-left: 20px; }
.bento-list li::before {
  content: '•'; color: var(--primary-pink); font-size: 18px; position: absolute; left: 4px; top: -2px;
}

.bento-admission { background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%); }
.admission-title { font-size: 20px; text-align: center; margin-bottom: 28px; color: var(--text-main); }
.admission-split { display: flex; gap: 48px; }
.admission-col { flex: 1; }
.admission-sub-title {
  font-size: 15px; font-weight: 600; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; color: var(--text-main);
}

.gallery-section { display: flex; gap: 24px; justify-content: center; margin-top: 32px; }
.gallery-section img { max-width: calc(50% - 12px); height: auto; border-radius: var(--card-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }

/* =======================================================
* 7. LIGHT & CLEAN FOOTER
* ======================================================= */
.footer { 
  background-color: var(--bg-secondary); 
  color: var(--text-muted); 
  padding: 64px 0 24px 0; 
  font-size: 14px; 
  border-top: 1px solid var(--border-color); 
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 40px; }
.footer-col { flex: 1; }
.footer-col h3 { color: var(--text-main); font-size: 16px; margin-bottom: 16px; font-weight: 700; }
.contact-name { color: var(--text-main); margin-bottom: 4px; font-weight: 600; }
.label-muted { color: var(--text-muted); }
.footer-col a { color: var(--primary-pink); text-decoration: none; transition: var(--transition-smooth); font-weight: 500; }
.footer-col a:hover { color: var(--primary-pink-hover); }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* 8. RESPONSIVE DESIGN */
@media screen and (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-hero, .bento-span-2, .bento-span-3 { grid-column: span 2; }
}
@media screen and (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero, .bento-span-2, .bento-span-3 { grid-column: span 1; }
  .admission-split, .footer-grid, .gallery-section { flex-direction: column; gap: 24px; }
  .gallery-section img { max-width: 100%; }
  .navbar { top: 0; border-radius: 0; max-width: 100%; border-left: none; border-right: none; }
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
  .mobile-menu-container { display: block; }
}

/* =======================================================
* BENTO SLIDER ENHANCEMENT
* ======================================================= */
.bento-slider-card { padding: 0 !important; position: relative; height: 100%; min-height: 380px; }
.slider-wrapper { width: 100%; height: 100%; position: relative; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slider-img { width: 100%; height: 100%; object-fit: cover; }
.slider-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; background: linear-gradient(transparent, rgba(39, 50, 75, 0.95)); color: var(--bg-main); z-index: 3; }
.slider-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary-pink); background-color: var(--primary-pink-light); padding: 2px 10px; border-radius: 4px; margin-bottom: 10px; letter-spacing: 0.5px; }
.prof-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.prof-res { font-size: 12px; color: #cbd5e1; line-height: 1.5; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.4); color: var(--text-main); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; font-size: 12px; transition: var(--transition-smooth); opacity: 0; }
.bento-slider-card:hover .slide-nav { opacity: 1; }
.slide-nav:hover { background: var(--bg-main); color: var(--primary-pink); transform: translateY(-50%) scale(1.08); }
.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }
@media screen and (max-width: 768px) { .bento-slider-card { min-height: 320px; } .slide-nav { opacity: 1; } }

/* =======================================================
* LIGHT & CLEAN DYNAMIC BANNER
* ======================================================= */
.premium-gradient-banner {
    background: linear-gradient(135deg, #FDF1F4 0%, #FFF5F7 100%);
    border-radius: var(--card-radius); 
    padding: 60px 40px; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(39, 50, 75, 0.04); 
    border: 1px solid rgba(237, 114, 152, 0.1); 
}

.premium-gradient-banner::before {
    content: ''; 
    position: absolute; 
    top: -40%; 
    right: -10%; 
    width: 350px; 
    height: 350px; 
    background: #FFFFFF; 
    opacity: 0.6; 
    filter: blur(60px); 
    border-radius: 50%; 
    pointer-events: none;
}

.banner-content { position: relative; z-index: 2; }

.banner-sub { 
    font-size: 14px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--primary-pink); 
    letter-spacing: 1.5px; 
    display: block;
    margin-bottom: 8px;
}

.banner-main { 
    font-size: 36px; 
    font-weight: 700; 
    color: var(--text-main); 
    margin: 4px 0 12px 0; 
    letter-spacing: -0.5px; 
}

.banner-text-desc { 
    font-size: 16px; 
    color: var(--text-muted); 
    font-weight: 400; 
}

@media screen and (max-width: 768px) { 
    .premium-gradient-banner { padding: 40px 24px; } 
    .banner-main { font-size: 28px; } 
}

/* =======================================================
* 🛠️ LANGUAGE TOGGLE (For Manual HTML Dual-Language Content)
* ======================================================= */
body.lang-th .lang-en { display: none !important; }
body.lang-th .lang-th { display: block !important; }
body.lang-en .lang-th { display: none !important; }
body.lang-en .lang-en { display: block !important; }
body.lang-th span.lang-en { display: none !important; }
body.lang-th span.lang-th { display: inline !important; }
body.lang-en span.lang-th { display: none !important; }
body.lang-en span.lang-en { display: inline !important; }

/* =======================================================
* 🛠️ FACULTY PAGE ENHANCEMENTS (Bento Profile)
* ======================================================= */
.faculty-list-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faculty-profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.faculty-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faculty-img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.faculty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.faculty-table td {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}

.faculty-table td:first-child {
    font-weight: 600;
    width: 220px;
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

.faculty-table td:last-child {
    color: var(--text-muted);
    background-color: var(--bg-main);
}

.faculty-table ol {
    margin-left: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

.faculty-table li { margin-bottom: 6px; }
.faculty-table li:last-child { margin-bottom: 0; }

.faculty-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px dashed var(--border-color);
    padding-top: 24px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-action svg { stroke: var(--primary-pink); }

.btn-action:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background: var(--primary-pink-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(237, 114, 152, 0.15);
}

@media (max-width: 768px) {
    .faculty-profile-grid { grid-template-columns: 1fr; gap: 24px; }
    .faculty-img { max-width: 220px; }
    .faculty-table td { display: block; width: 100%; }
    .faculty-table td:first-child { border-bottom: none; }
}

.faculty-table ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.faculty-table li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.faculty-table li:last-child {
    margin-bottom: 0;
}

.faculty-table li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-pink);
    border-radius: 50%;
}

.faculty-name-th, 
.faculty-name-en {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-pink) !important;
    margin-bottom: 6px;
    line-height: 1.4;
}

.faculty-name-sub {
    font-size: 14px;
    color: var(--text-muted) !important;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 400;
}

/* =======================================================
* 🛠️ BACK TO TOP BUTTON
* ======================================================= */
#backToTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99;
    background-color: var(--primary-pink);
    color: var(--bg-main);
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(237, 114, 152, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    transform: translateY(10px);
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: var(--primary-pink-hover);
    box-shadow: 0 6px 16px rgba(237, 114, 152, 0.45);
    transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}