/* Awaj Nyayacha ePaper — design ported 1:1 from the client HTML. Brand colours: red + blue (from the logo). */
.ep-et-scope{
  --red:#d71920;
  --blue:#0b5cad;
  --navy:#1c2f86;
  --ink:#1a1a1a;
  --gray:#666;
  --line:#dcdcdc;
  --bg:#f2f2f2;
  font-family:"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);
  margin:0;
}
.ep-et-scope *{box-sizing:border-box;}
.ep-et-scope a{text-decoration:none;color:inherit;}
.ep-et-scope img{display:block;max-width:100%;}

/* ===== Site header ===== */
.ep-et-scope header{background:#fff;border-top:4px solid var(--red);border-bottom:3px solid var(--blue);position:relative;}
.ep-et-scope .header-inner{max-width:1300px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:8px 20px;}
.ep-et-scope .logo img{height:64px;width:auto;max-width:100%;}
.ep-et-scope .logo{display:flex;align-items:center;}
.ep-et-scope nav ul{list-style:none;display:flex;gap:26px;margin:0;padding:0;}
.ep-et-scope nav a{font-weight:600;font-size:14px;color:var(--ink);padding:4px 2px;border-bottom:2px solid transparent;}
.ep-et-scope nav a:hover,.ep-et-scope nav a.active{color:var(--red);border-bottom-color:var(--red);}
.ep-et-scope .menu-toggle{display:none;background:none;border:none;font-size:24px;cursor:pointer;color:var(--red);}

/* ===== Breadcrumb / date bar ===== */
.ep-et-scope .subbar{
  max-width:1300px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 20px 6px;
}
.ep-et-scope .subbar h1{font-size:15px;font-weight:600;color:var(--blue);}
.ep-et-scope .date-field{
  display:flex;align-items:center;gap:8px;
  border:1px solid var(--line);background:#fff;
  padding:7px 12px;border-radius:20px;font-size:13px;color:#333;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.ep-et-scope .date-field:focus-within{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(11,92,173,.15);
}
.ep-et-scope .date-field-icon{font-size:14px;line-height:1;}
.ep-et-scope .date-select{
  border:none;background:transparent;
  font-size:13px;font-weight:600;font-family:inherit;color:var(--ink);
  cursor:pointer;outline:none;
  padding:0 18px 0 0;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0102a' stroke-width='2.4'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right center;
  background-size:14px 14px;
}
.ep-et-scope .date-select:disabled{color:var(--gray);cursor:default;background-image:none;padding-right:0;}
.ep-et-scope .date-select::-ms-expand{display:none;}

/* ===== Reader layout ===== */
.ep-et-scope .reader{
  max-width:1300px;margin:0 auto;
  display:flex;gap:22px;
  padding:8px 20px 60px;
  align-items:flex-start;
}

/* Sidebar thumbnails */
.ep-et-scope .sidebar{
  width:150px;flex-shrink:0;
  display:flex;flex-direction:column;gap:16px;
}
.ep-et-scope .thumb-item{cursor:pointer;text-align:center;}
.ep-et-scope .thumb-item .thumb-frame{
  border:2px solid transparent;border-radius:2px;overflow:hidden;
  background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.12);
  transition:border-color .15s ease;
}
.ep-et-scope .thumb-item.active .thumb-frame{border-color:var(--blue);}
.ep-et-scope .thumb-item img{width:100%;display:block;}
.ep-et-scope .thumb-item .thumb-label{
  margin-top:6px;font-size:12px;font-weight:600;color:var(--gray);
}
.ep-et-scope .thumb-item.active .thumb-label{color:var(--blue);}

/* Main viewer */
.ep-et-scope .main-viewer{
  flex:1;position:relative;
  display:flex;justify-content:center;
}
.ep-et-scope .page-stage{
  position:relative;
  background:#fff;
  box-shadow:0 2px 14px rgba(0,0,0,.15);
  max-width:700px;width:100%;
  min-height:120px;
}
.ep-et-scope .page-stage img{width:100%;display:block;}

.ep-et-scope .hover-box{
  position:absolute;
  z-index:15;
  display:none;
  border:2px solid var(--red);
  border-radius:2px;
  background:rgba(215,25,32,.07);
  pointer-events:none;
  transition:left .06s ease, top .06s ease, width .06s ease, height .06s ease;
}
.ep-et-scope .page-stage.can-clip{cursor:pointer;}

.ep-et-scope .flip-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:42px;height:42px;border-radius:50%;
  background:#fff;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15);
  z-index:20;color:var(--blue);
}
.ep-et-scope .flip-arrow:hover{background:var(--blue);color:#fff;}
.ep-et-scope .flip-arrow.prev{left:-21px;}
.ep-et-scope .flip-arrow.next{right:-21px;}
.ep-et-scope .flip-arrow[disabled]{opacity:.3;pointer-events:none;}
.ep-et-scope .flip-arrow svg{width:20px;height:20px;}

.ep-et-scope .page-empty-state{
  padding:60px 20px;text-align:center;color:var(--gray);font-size:14px;
}

/* ===== Page-load spinner (shown briefly while the edition image loads) ===== */
.ep-et-scope .page-stage.ep-loading{min-height:300px;}
.ep-et-scope .page-stage.ep-loading::after{
  content:"";
  position:absolute;top:50%;left:50%;
  width:34px;height:34px;margin:-17px 0 0 -17px;
  border:3px solid var(--line);
  border-top-color:var(--blue);
  border-radius:50%;
  animation:ep-spin .7s linear infinite;
  z-index:10;
}
@keyframes ep-spin{to{transform:rotate(360deg);}}

/* ===== Generic page content (About Us, Privacy Policy, or any other page) ===== */
.ep-et-scope .ep-generic-page{
  max-width:900px;margin:0 auto;padding:10px 20px 60px;
}
.ep-et-scope .ep-generic-article{
  background:#fff;border:1px solid var(--line);border-radius:4px;
  padding:32px clamp(20px,4vw,48px);
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.ep-et-scope .ep-generic-content{
  font-size:15px;line-height:1.75;color:#333;
}
.ep-et-scope .ep-generic-content p{margin:0 0 16px;}
.ep-et-scope .ep-generic-content h2{
  font-size:19px;margin:28px 0 12px;color:var(--ink);
  padding-bottom:6px;border-bottom:2px solid var(--blue);display:inline-block;
}
.ep-et-scope .ep-generic-content h3{font-size:16px;margin:22px 0 10px;color:var(--ink);}
.ep-et-scope .ep-generic-content ul,.ep-et-scope .ep-generic-content ol{margin:0 0 16px 22px;}
.ep-et-scope .ep-generic-content li{margin-bottom:6px;}
.ep-et-scope .ep-generic-content a{color:var(--red);font-weight:600;text-decoration:underline;}
.ep-et-scope .ep-generic-content img{border-radius:4px;margin:12px 0;}

/* ===== Latest News grid ===== */
.ep-et-scope .ep-news-wrap{max-width:1300px;margin:0 auto;padding:10px 20px 60px;}
.ep-et-scope .ep-news-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
}
.ep-et-scope .ep-news-card{
  background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
  transition:transform .15s ease, box-shadow .15s ease;
}
.ep-et-scope .ep-news-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}
.ep-et-scope .ep-news-thumb{aspect-ratio:16/10;overflow:hidden;background:#eee;}
.ep-et-scope .ep-news-thumb img{width:100%;height:100%;object-fit:cover;}
.ep-et-scope .ep-news-thumb-fallback{
  width:100%;height:100%;
  background:linear-gradient(135deg,var(--red),#1c2f86);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:14px;text-align:center;padding:14px;
}
.ep-et-scope .ep-news-body{padding:16px 18px 20px;display:flex;flex-direction:column;flex:1;}
.ep-et-scope .ep-news-date{font-size:11px;font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:.04em;}
.ep-et-scope .ep-news-title{font-size:16px;margin:8px 0 8px;color:var(--ink);line-height:1.35;}
.ep-et-scope .ep-news-excerpt{font-size:13px;color:var(--gray);line-height:1.6;flex:1;margin:0 0 12px;}
.ep-et-scope .ep-news-readmore{font-size:12px;font-weight:700;color:var(--red);}
.ep-et-scope .ep-news-empty{text-align:center;color:var(--gray);padding:60px 20px;font-size:14px;}
.ep-et-scope .ep-news-pagination{display:flex;justify-content:center;gap:6px;margin-top:32px;flex-wrap:wrap;}
.ep-et-scope .ep-news-pagination span,.ep-et-scope .ep-news-pagination a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:36px;height:36px;padding:0 10px;
  border:1px solid var(--line);border-radius:4px;
  font-size:13px;font-weight:600;color:var(--ink);background:#fff;
}
.ep-et-scope .ep-news-pagination a:hover{border-color:var(--red);color:var(--red);}
.ep-et-scope .ep-news-pagination .current{background:var(--red);border-color:var(--red);color:#fff;}

/* ===== Footer ===== */
.ep-et-scope footer{background:linear-gradient(180deg,var(--blue),var(--navy));border-top:4px solid var(--red);text-align:center;padding:26px 20px;color:#fff;}
.ep-et-scope footer img{height:84px;width:auto;margin:0 auto 10px;border-radius:6px;background:#fff;}
.ep-et-scope footer p{font-size:12px;color:#dbe6f7;}
.ep-et-scope footer a{color:#fff;font-weight:600;}
.ep-et-scope .footer-contact{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 22px;margin:0 0 12px;font-size:13px;color:#fff;}
.ep-et-scope .footer-contact a{text-decoration:none;}
.ep-et-scope .footer-contact a:hover{text-decoration:underline;}
.ep-et-scope .footer-social{display:flex;justify-content:center;gap:14px;margin:4px 0 12px;flex-wrap:wrap;}
.ep-et-scope .footer-social-link{font-size:12px;font-weight:600;color:#fff;border:1px solid rgba(255,255,255,.55);padding:4px 10px;border-radius:20px;}
.ep-et-scope .footer-social-link:hover{background:var(--red);border-color:var(--red);color:#fff;}

.ep-et-scope .ep-page-extra-content{max-width:1300px;margin:0 auto;padding:20px 20px 0;}

/* ===== Clip popup (fits the screen on phone + PC; close button always visible) ===== */
.ep-et-scope .clip-overlay{
  position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(20,20,20,.62);
  display:none;align-items:center;justify-content:center;
  z-index:100000;padding:16px;overflow:hidden;
}
.ep-et-scope .clip-overlay.open{display:flex;}
.ep-et-scope .clip-card{
  background:#fff;width:100%;max-width:900px;
  max-height:100%;
  display:flex;flex-direction:column;
  border-radius:6px;overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.ep-et-scope .clip-toolbar{
  flex:0 0 auto;
  display:flex;align-items:center;flex-wrap:nowrap;gap:7px;
  padding:8px 10px;background:#f1f5fb;border-bottom:2px solid var(--blue);
}
.ep-et-scope .clip-toolbar .spacer{flex:1 1 auto;min-width:4px;}
.ep-et-scope .clip-share{
  flex:0 0 auto;width:30px;height:30px;border-radius:5px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;cursor:pointer;transition:opacity .15s;
}
.ep-et-scope .clip-share:hover{opacity:.82;}
.ep-et-scope .clip-share svg{width:15px;height:15px;fill:#fff;}
.ep-et-scope .cs-fb{background:#1877f2;}
.ep-et-scope .cs-wa{background:#25d366;}
.ep-et-scope .cs-tg{background:#26a5e4;}
.ep-et-scope .cs-tw{background:#111;}
.ep-et-scope .cs-link{background:#4a5568;}
.ep-et-scope .cs-dl{background:#c1121f;}
.ep-et-scope .clip-close{
  flex:0 0 auto;width:34px;height:34px;min-width:34px;
  margin:0;padding:0;border:0;border-radius:50%;
  background:var(--red);color:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.3);
  -webkit-appearance:none;appearance:none;line-height:1;
}
.ep-et-scope .clip-close:hover{background:#b3141a;}
.ep-et-scope .clip-close svg{display:block;width:16px;height:16px;}

.ep-et-scope .clip-brand{flex:0 0 auto;display:block;padding:0;background:#fff;border-bottom:3px solid var(--red);line-height:0;}
.ep-et-scope .clip-brand-banner{display:block;width:100%;height:auto;max-width:100%;margin:0;}

/* The cut itself: sized in pixels by the script so the WHOLE cut fits the
   screen (no scrolling). overflow:auto is only a safety net. */
.ep-et-scope .clip-body{flex:1 1 auto;min-height:0;overflow:auto;background:#fff;-webkit-overflow-scrolling:touch;}
.ep-et-scope .clip-crop{
  position:relative;overflow:hidden;background:#fff;margin:0 auto;
  width:100%;
}
.ep-et-scope .clip-crop img{position:absolute;left:0;top:0;max-width:none;height:auto;}
.ep-et-scope .clip-footer{flex:0 0 auto;padding:8px 14px;background:linear-gradient(90deg,var(--blue),var(--navy));color:#fff;font-size:12px;font-weight:600;text-align:center;border-top:3px solid var(--red);}

@media (max-width:480px){
  .ep-et-scope .clip-overlay{padding:8px;}
  .ep-et-scope .clip-toolbar{gap:5px;padding:6px 8px;}
  .ep-et-scope .clip-share{width:28px;height:28px;}
  .ep-et-scope .clip-footer{font-size:11px;padding:6px 10px;}
}

/* ===== Contact block ([ep_contact]) ===== */
.ep-contact{
  max-width:560px;margin:8px 0 18px;padding:20px 22px;
  background:#f6f9fe;border:1px solid #dbe6f7;border-left:4px solid #d71920;border-radius:6px;
  font-family:"Segoe UI",Arial,sans-serif;color:#1a1a1a;
}
.ep-contact *{box-sizing:border-box;}
.ep-contact .ep-contact-name{font-size:18px;font-weight:800;color:#d71920;margin:0 0 10px;}
.ep-contact .ep-contact-list{list-style:none;margin:0 0 14px;padding:0;}
.ep-contact .ep-contact-list li{display:flex;align-items:flex-start;gap:10px;margin:0 0 8px;font-size:15px;line-height:1.5;}
.ep-contact-ic{flex:0 0 22px;text-align:center;}
.ep-contact .ep-contact-list a{color:#0b5cad;font-weight:700;text-decoration:none;}
.ep-contact .ep-contact-list a:hover{text-decoration:underline;}
.ep-contact-actions{display:flex;flex-wrap:wrap;gap:10px;}
.ep-contact-btn{
  display:inline-block;padding:10px 20px;border-radius:24px;
  font-size:14px;font-weight:700;color:#fff !important;text-decoration:none !important;
}
.ep-contact-call{background:#0b5cad;}
.ep-contact-wa{background:#25d366;}
.ep-contact-btn:hover{opacity:.88;}

/* ===== Responsive ===== */
@media (max-width:900px){
  .ep-et-scope .ep-news-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:800px){
  .ep-et-scope .reader{flex-direction:column;}
  .ep-et-scope .sidebar{
    width:100%;flex-direction:row;overflow-x:auto;
    padding-bottom:6px;
  }
  .ep-et-scope .thumb-item{flex-shrink:0;width:90px;}
  .ep-et-scope .main-viewer{width:100%;}
  .ep-et-scope .flip-arrow.prev{left:6px;}
  .ep-et-scope .flip-arrow.next{right:6px;}
  .ep-et-scope .ep-generic-article{padding:24px 20px;}
}
@media (max-width:560px){
  .ep-et-scope .ep-news-grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .ep-et-scope .site-logo{height:52px !important;}
  .ep-et-scope .header-inner{padding:8px 14px;}
  /* hamburger pinned to the right edge, vertically centred */
  .ep-et-scope .menu-toggle{
    display:flex;align-items:center;justify-content:center;
    margin:0 0 0 auto;padding:0;width:44px;height:44px;flex:0 0 44px;
    background:none;border:0;border-radius:6px;
    font-size:26px;line-height:1;color:var(--red);cursor:pointer;
    -webkit-appearance:none;appearance:none;
  }
  .ep-et-scope .menu-toggle:focus-visible{outline:2px solid var(--blue);}
  /* the nav itself takes no room; the list drops down full-width under the header */
  .ep-et-scope nav{flex:0 0 0;width:0;height:0;margin:0;padding:0;}
  .ep-et-scope nav ul{
    position:absolute;top:100%;left:0;right:0;background:#fff;
    flex-direction:column;gap:0;
    max-height:0;overflow:hidden;visibility:hidden;
    transition:max-height .25s ease, visibility 0s linear .25s;
    box-shadow:0 8px 18px rgba(0,0,0,.15);z-index:60;
  }
  .ep-et-scope nav ul.open{
    max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);
    overflow-y:auto;visibility:visible;
    transition:max-height .25s ease, visibility 0s;
    border-bottom:3px solid var(--blue);
  }
  .ep-et-scope nav li{display:block;width:100%;}
  .ep-et-scope nav a{display:block;padding:14px 20px;border-bottom:1px solid var(--line);}
  .ep-et-scope nav li:last-child a{border-bottom:0;}
  .ep-et-scope .subbar{flex-direction:column;align-items:flex-start;gap:8px;}
}

/* ===== Page loader (logo + spinner; hides itself when the page has loaded) ===== */
.ep-et-scope .ep-loader{
  position:fixed;top:0;right:0;bottom:0;left:0;z-index:100001;
  background:#fff;display:flex;align-items:center;justify-content:center;
  opacity:1;visibility:visible;
  transition:opacity .35s ease, visibility 0s linear 0s;
  /* safety net: if scripts never run, the loader still disappears */
  animation:ep-loader-fallback .01s linear 7s forwards;
}
.ep-et-scope .ep-loader.done{opacity:0;visibility:hidden;transition:opacity .35s ease, visibility 0s linear .35s;pointer-events:none;}
.ep-et-scope .ep-loader-box{display:flex;flex-direction:column;align-items:center;gap:18px;padding:20px;}
.ep-et-scope .ep-loader-box img{height:80px;width:auto;max-width:70vw;border-radius:6px;}
.ep-et-scope .ep-spinner{
  width:42px;height:42px;border-radius:50%;
  border:4px solid #e3e8f2;border-top-color:var(--red);border-right-color:var(--blue);
  animation:ep-spin .8s linear infinite;
}
@keyframes ep-loader-fallback{to{opacity:0;visibility:hidden;pointer-events:none;}}

/* spinner while a news cut loads inside the popup */
.ep-et-scope .clip-crop.loading::after{
  content:"";position:absolute;top:50%;left:50%;
  width:34px;height:34px;margin:-17px 0 0 -17px;
  border:3px solid var(--line);border-top-color:var(--red);border-radius:50%;
  animation:ep-spin .7s linear infinite;
}
.ep-et-scope .clip-crop.loading img{opacity:0;}
