/* ========== Variables (Light Theme) ==========
   Light theme with same layout, only color changes */
:root{
  --bg:#f8fafc;
  --bg2:#ffffff;
  --fg:#1e293b;
  --muted:#64748b;
  --primary:#059669;   /* green */
  --accent:#ea580c;    /* orange */
  --glass: rgba(255,255,255,.7);
  --border: rgba(0,0,0,.1);
  --shadow: 0 10px 30px rgba(0,0,0,.1);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:var(--fg);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(5,150,105,.15) 0%, transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(234,88,12,.08) 0%, transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Ensure Font Awesome icons display correctly */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  display: inline-block !important;
}

.fa-regular, .far {
  font-weight: 400 !important;
}
img{max-width:100%;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1120px, 92vw); margin-inline:auto}
/* account for fixed header */
body{padding-top:72px}
.skip-link{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;}
.skip-link:focus{left:1rem; top:1rem; width:auto; height:auto; background:#000; color:#fff; padding:.5rem .75rem; border-radius:.5rem;}

/* ========== Nav (fixed + drawer) ========== */
.site-header{position:fixed; top:0; left:0; right:0; z-index:100; backdrop-filter: blur(14px);}
.glass-nav{background: linear-gradient(180deg, rgba(248,250,252,.85), rgba(255,255,255,.75)); border-bottom:1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.05);}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; padding:.6rem 0;}
.brand{display:flex; gap:.75rem; align-items:center; color:var(--fg)}
.brand img{width:40px; height:40px; border-radius:50%; background:var(--glass); padding:4px; box-shadow:var(--shadow)}
.brand.small img{width:32px; height:32px}
.brand-title{font-weight:700; letter-spacing:.2px; font-size:1rem}
/* desktop nav */
.nav-desktop{display:none}
.nav-desktop .nav-list{display:flex; gap:1rem; align-items:center; list-style:none; margin:0; padding:0}
.nav-desktop .nav-list a{padding:.5rem .75rem; border-radius:.6rem}
.nav-desktop .nav-list .btn{padding:.55rem .9rem}
/* mobile toggle */
.nav-toggle{display:flex; align-items:center; justify-content:center; background:transparent; border:0; width:44px; height:44px; position:relative; z-index:102; color:var(--fg)}
.nav-toggle span{position:absolute; inset:0; margin:auto; width:22px; height:2px; background:var(--fg); border-radius:2px; transition:.25s}
.nav-toggle span:nth-child(1){transform:translateY(-7px)}
.nav-toggle span:nth-child(3){transform:translateY(7px)}

/* Hide toggle when drawer is open */
.nav-open .nav-toggle{
  display: none;
}
/* Drawer */
.nav-drawer{
  position:fixed; top:0; right:0; height:100vh; width:min(86vw, 360px);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
  border-left:1px solid var(--border);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.65,.25,1);
  z-index:101; display:flex; flex-direction:column;
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.drawer-header{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding:1rem; 
  border-bottom:1px solid var(--border);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.drawer-close{
  background: rgba(0,0,0,.05); 
  border: 1px solid var(--border); 
  border-radius: 50%; 
  color: var(--fg); 
  font-size: 1.25rem; 
  width: 40px; 
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 103;
}
.drawer-close:hover{
  background: rgba(0,0,0,.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}
.drawer-nav{
  display:flex; 
  flex-direction:column; 
  gap:.25rem; 
  padding:1rem;
  background: rgba(255,255,255,.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.drawer-nav a{
  display:flex; 
  align-items:center; 
  gap:.6rem; 
  padding:.8rem 1rem; 
  border-radius:.8rem; 
  border:1px solid transparent;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  color: var(--fg);
}
.drawer-nav a:hover{
  background: rgba(255,255,255,.7);
  border-color: var(--border);
  transform: translateX(4px);
}
.backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.5); backdrop-filter: blur(2px);
  opacity:0; visibility:hidden; transition:opacity .25s;
  z-index:100;
}
.nav-open .nav-drawer{transform: translateX(0)}
.nav-open .backdrop{opacity:1; visibility:visible}
/* show desktop nav on large screens */
@media (min-width: 980px){
  .nav-desktop{display:block}
  .nav-toggle{display:none}
}

/* ========== Buttons ========== */
.btn{display:inline-flex; gap:.5rem; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:.9rem; padding:.7rem 1rem; text-decoration:none; font-weight:600; transition:.25s; backdrop-filter: blur(10px);}
.btn:hover{transform:translateY(-1px)}
.btn-ghost{background:rgba(255,255,255,.6); color:var(--fg); border-color: var(--border);}
.btn-primary{background:linear-gradient(135deg, var(--primary), #10b981); color:#ffffff; border-color:transparent; box-shadow:0 10px 30px rgba(5,150,105,.25)}
.btn-primary:hover{filter:saturate(1.05)}

/* ========== Hero ========== */
.hero{
  position: relative; 
  padding: 5.5rem 0 2rem;
  z-index: 1;
}
.hero-inner{display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:2rem}
.eyebrow{color:var(--muted); letter-spacing:.16em; text-transform:uppercase; font-weight:700; font-size:.85rem}
h1{font-size:clamp(2rem, 3vw + .8rem, 3.5rem); line-height:1.1; margin:.4rem 0 1rem; color: var(--fg);}
.lead{font-size:1.1rem; color:#475569; margin:0 0 1.25rem}
.txt-grad{background: linear-gradient(90deg, #059669, var(--primary) 60%, #ea580c); -webkit-background-clip:text; background-clip:text; color:transparent}
.hero-cta{display:flex; gap:.8rem; flex-wrap:wrap; margin:1rem 0 1.2rem}
.hero-meta{display:grid; gap:1rem; padding:0; margin:0; list-style:none; color:#64748b}
.hero-art img{width:100%; border-radius:1.2rem; box-shadow:var(--shadow); border:1px solid var(--border); background:var(--glass)}

/* ========== Global Liquid Background ========== */
.liquid-layer{
  position: fixed; 
  inset: 0; 
  overflow: hidden; 
  pointer-events: none; 
  z-index: -1;
  transform: translate3d(var(--tiltX,0), var(--tiltY,0), 0);
}
.blob{
  position: absolute; 
  filter: blur(40px); 
  opacity: .4; 
  border-radius: 50%;
}
.b1{
  width: 400px; 
  height: 400px; 
  background: radial-gradient(circle at 30% 30%, var(--primary), transparent 70%); 
  top: -50px; 
  left: -80px; 
  animation: float 12s ease-in-out infinite;
}
.b2{
  width: 320px; 
  height: 320px; 
  background: radial-gradient(circle at 70% 40%, var(--accent), transparent 70%); 
  top: 15%; 
  right: 5%; 
  animation: float 14s ease-in-out -3s infinite;
}
.b3{
  width: 500px; 
  height: 500px; 
  background: radial-gradient(circle at 55% 55%, #10b981, transparent 60%); 
  bottom: -150px; 
  left: 30%; 
  animation: float 16s ease-in-out -6s infinite;
}
.grid-lines{
  position: absolute; 
  inset: 0; 
  background: 
    radial-gradient(circle at 50% -10%, rgba(0,0,0,.04), transparent 60%), 
    repeating-linear-gradient(to bottom, rgba(0,0,0,.03) 0 1px, transparent 1px 40px), 
    repeating-linear-gradient(to right, rgba(0,0,0,.02) 0 1px, transparent 1px 40px); 
  mask: linear-gradient(#000, transparent 85%);
}
@keyframes float{ 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(0,-16px,0)} }

/* ========== Sections ========== */
.section{padding:5rem 0}
.section.alt{background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(248,250,252,.8)); border-block:1px solid var(--border)}
.cols-2{display:grid; gap:1.5rem; grid-template-columns: repeat(2, minmax(0,1fr))}
.cols-3{display:grid; gap:1.5rem; grid-template-columns: repeat(3, minmax(0,1fr))} 
h2{font-size:clamp(1.8rem,2.2vw + .6rem,2.6rem); margin:0 0 1rem; color: var(--fg);}
h3{margin:.2rem 0 1rem; color: var(--fg);}
h4{margin:.2rem 0 .6rem; color: var(--fg);}
.glass-card{
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border:1px solid var(--border);
  border-radius:1.2rem; padding:1.2rem 1.2rem; box-shadow: var(--shadow); backdrop-filter: blur(18px);
}

/* Reveal animations */
[data-reveal]{opacity:0; transform:translateY(18px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform}
[data-reveal].in{opacity:1; transform:none}
/* subtle hover lift */
.glass-card:hover{transform:translateY(-2px); transition:transform .25s}

/* Lists */
.checklist{padding-left:1.1rem}
.checklist li{margin:.35rem 0}
.bullets{padding-left:1.1rem}
.rules{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:1rem}
.rule ul{margin:.5rem 0 0; padding-left:1.1rem}
.goal{min-height:100%}

/* Timeline */
.timeline{position:relative; margin-top:1rem; padding-left:1rem}
.timeline:before{content:''; position:absolute; left:.35rem; top:.2rem; bottom:.2rem; width:2px; background:linear-gradient(180deg, var(--accent), var(--primary))}
.t-item{position:relative; margin:1.2rem 0 1.2rem 0}
.t-dot{position:absolute; left:-.05rem; top:.8rem; width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(234,88,12,.25)}

/* Partners */
.partners{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:1rem}
.partner{display:flex; align-items:center; justify-content:center; min-height:80px; font-weight:600}

/* Partner Sections */
.partner-section{
  margin: 3rem 0;
}
.partner-section h3{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--fg);
}
.partners-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.partner-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--fg);
}
.partner-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,.2);
  border-color: var(--primary);
}
.partner-item img{
  width: 120px;
  height: 60px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: white;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}
.partner-item:hover img{
  transform: scale(1.05);
}
.partner-item span{
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}
.partner-item a{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Form */
.form{display:grid; grid-template-columns:1fr 1fr; gap:1rem}
.form label{display:grid; gap:.35rem; font-weight:600; color: var(--fg);}
.form input, .form textarea{
  background: rgba(255,255,255,.8); border:1px solid var(--border); color:var(--fg);
  padding:.8rem .9rem; border-radius:.8rem; outline:0; transition:border .2s, box-shadow .2s
}
.form input:focus, .form textarea:focus{border-color: var(--primary); box-shadow:0 0 0 3px rgba(5,150,105,.2)}
.form textarea{min-height:120px; grid-column:1 / -1}
.form button{grid-column:1 / -1}
.form-note{color:var(--muted); font-size:.92rem; margin:.2rem 0 0}

/* Footer */
.site-footer{border-top:1px solid var(--border); padding:2rem 0; text-align:center; color:#64748b; background: rgba(255,255,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);}
.to-top{display:inline-block; margin-top:.6rem}

/* Utilities */
.link-arrow{display:inline-flex; align-items:center; gap:.4rem}
.link-arrow:after{content:'›'; display:inline-block; transform:translateY(-1px)}
.txt-center{text-align:center}

/* Bootstrap compatibility */
.text-center{text-align:center !important}
.mb-5{margin-bottom:3rem !important}
.me-auto{margin-right:auto !important}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr}
  .hero-art{order:-1}
  .rules{grid-template-columns:1fr}
  .cols-2{grid-template-columns:1fr}
  .cols-3{grid-template-columns:1fr}
  .form{grid-template-columns:1fr}
  .partners{grid-template-columns:1fr 1fr}
  .partners-grid.cols-3{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion: reduce){
  .blob, .btn:hover{animation:none; transform:none}
}

/* Prevent accidental horizontal scroll from effects */
body{overflow-x: hidden}
.hero,.section,.site-header{overflow-x:clip}

.drawer-header{position:sticky; top:0; background:inherit}
.drawer-close{color:var(--fg); background:rgba(0,0,0,.05); border:1px solid var(--border); border-radius:.6rem}
.drawer-close:hover{background:rgba(0,0,0,.1)}

/* ========== Gallery ========== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item{
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--border);
}
.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,.2);
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img{
  transform: scale(1.05);
}
.gallery-item-more{
  position: relative;
}
.gallery-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item-more:hover .gallery-overlay{
  opacity: 1;
}
.gallery-count{
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.gallery-overlay i{
  font-size: 1.5rem;
  opacity: .8;
}

/* Gallery Lightbox */
.lightbox{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}
.lightbox-container{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-close{
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}
.lightbox-close:hover{
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.lightbox-content{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-controls{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.lightbox-prev,
.lightbox-next{
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  margin: 0 2rem;
}
.lightbox-prev:hover,
.lightbox-next:hover{
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}
.lightbox-info{
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
  border-radius: 2rem;
  color: white;
  text-align: center;
  backdrop-filter: blur(10px);
}
.lightbox-counter{
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.lightbox-title{
  font-size: 0.9rem;
  opacity: 0.8;
}
.lightbox-thumbnails{
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
}
.thumbnails-container{
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.thumbnails-container::-webkit-scrollbar {
  display: none;
}

/* Custom scrollbar styling for better UX */
.thumbnails-container:hover::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.thumbnails-container:hover::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.thumbnails-container:hover::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.thumbnails-container:hover::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
.thumbnail{
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.thumbnail:hover,
.thumbnail.active{
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.05);
}

/* FAQ Spacing */
details.glass-card{
  margin-bottom: 1.5rem;
}
details.glass-card:last-child{
  margin-bottom: 0;
}
details.glass-card summary{
  padding: 1.2rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 1.2rem;
  transition: all 0.3s ease;
  color: var(--fg);
}
details.glass-card summary:hover{
  background: rgba(255,255,255,.8);
}
details.glass-card[open] summary{
  border-bottom: 1px solid var(--border);
  border-radius: 1.2rem 1.2rem 0 0;
}
details.glass-card p{
  padding: 1.2rem;
  margin: 0;
}

/* Responsive Gallery */
@media (max-width: 768px){
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
  .gallery-count{
    font-size: 1.5rem;
  }
  .lightbox-controls{
    display: none;
  }
  .lightbox-thumbnails{
    bottom: 0.5rem;
  }
  .lightbox-info{
    bottom: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .lightbox-close{
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
@media (max-width: 480px){
  .gallery-grid{
    grid-template-columns: 1fr 1fr;
  }
  .lightbox-container{
    padding: 1rem;
  }
  .thumbnails-container{
    gap: 0.3rem;
  }
  .thumbnail{
    width: 60px;
    height: 45px;
  }
  .hero-content h1{line-height: 1.4;}
}

/* ========== Docx Modal ========== */
.docx-modal-content{
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.docx-header{
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.docx-header h3{
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.docx-header p{
  color: var(--muted);
  margin: 0;
}
.docx-viewer{
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.docx-iframe-container{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.docx-html-content{
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
}
.docx-html-content h1,
.docx-html-content h2,
.docx-html-content h3,
.docx-html-content h4,
.docx-html-content h5,
.docx-html-content h6{
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.docx-html-content p{
  margin-bottom: 1rem;
}
.docx-html-content ul,
.docx-html-content ol{
  margin-bottom: 1rem;
  padding-left: 2rem;
}
.docx-html-content table{
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.docx-html-content th,
.docx-html-content td{
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}
.docx-html-content th{
  background-color: #f8f9fa;
  font-weight: bold;
}
.docx-placeholder{
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.docx-loading,
.docx-error{
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.docx-loading p,
.docx-error h4,
.docx-error p{
  color: var(--fg);
  margin: 0;
}
.docx-error h4{
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.docx-actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.docx-actions .btn{
  min-width: 150px;
}

/* Responsive Docx Modal */
@media (max-width: 768px){
  .docx-modal-content{
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  .docx-iframe-container iframe{
    height: 300px;
  }
  .docx-actions{
    flex-direction: column;
    align-items: center;
  }
  .docx-actions .btn{
    width: 100%;
    max-width: 200px;
  }
}