/* ============================================================
   JC Team Theme — Blue Portal Style
   Version: 3.0.0
   ============================================================ */

:root {
  --jc-blue: #1565c0;
  --jc-blue-dark: #0d47a1;
  --jc-blue-light: #1e88e5;
  --jc-blue-50: #e3f2fd;
  --jc-blue-100: #bbdefb;
  --jc-blue-200: #90caf9;
  --jc-bg: #f0f2f5;
  --jc-surface: #ffffff;
  --jc-border: #dde1e6;
  --jc-border-light: #eef0f3;
  --jc-text: #1a1a2e;
  --jc-text-sec: #5f6368;
  --jc-text-muted: #9aa0a6;
  --jc-link: #1565c0;
  --jc-link-hover: #0d47a1;
  --jc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --jc-radius: 6px;
  --jc-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --jc-shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --jc-container: 1260px;
  --jc-sidebar-w: 240px;
}

/* Reset */
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--jc-font);font-size:14px;line-height:1.55;color:var(--jc-text);background:var(--jc-bg);min-height:100vh;display:flex;flex-direction:column}
a{color:var(--jc-link);text-decoration:none;transition:color .15s}
a:hover{color:var(--jc-link-hover);text-decoration:underline}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.3}

/* a11y */
.jct-skip{position:absolute;top:-100%;left:16px;padding:8px 16px;background:var(--jc-blue);color:#fff;border-radius:var(--jc-radius);font-weight:600;z-index:9999}
.jct-skip:focus{top:10px;color:#fff;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ============================================================
   CONTAINER
   ============================================================ */
.jct-wrap{width:100%;max-width:var(--jc-container);margin:0 auto;padding:0 16px}

/* ============================================================
   TOP BAR
   ============================================================ */
.jct-topbar{background:#0d47a1;color:rgba(255,255,255,.7);font-size:12px;padding:5px 0}
.jct-topbar .jct-wrap{display:flex;justify-content:space-between;align-items:center;gap:12px}
.jct-topbar__links{display:flex;gap:14px;flex-wrap:wrap}
.jct-topbar__links a{color:rgba(255,255,255,.7);font-size:12px}
.jct-topbar__links a:hover{color:#fff;text-decoration:none}
.jct-topbar__right{display:flex;align-items:center;gap:10px}
.jct-topbar__search{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:rgba(255,255,255,.1);border-radius:var(--jc-radius);color:rgba(255,255,255,.8);cursor:pointer;transition:all .15s}
.jct-topbar__search:hover{background:rgba(255,255,255,.2);color:#fff}
.jct-topbar__search:focus-visible{outline:2px solid #fff;outline-offset:2px}
.jct-topbar__social{display:flex;gap:8px}
.jct-topbar__social a{color:rgba(255,255,255,.5);transition:color .15s}
.jct-topbar__social a:hover{color:#fff}

/* ============================================================
   HEADER
   ============================================================ */
.jct-header{background:var(--jc-surface);border-bottom:3px solid var(--jc-blue);padding:10px 0;position:relative;z-index:9999}
.jct-header__row{display:flex;align-items:center;gap:16px}
.jct-logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.jct-logo:hover{text-decoration:none}
.jct-logo__text{display:flex;flex-direction:column}
.jct-logo__title{font-size:20px;font-weight:800;color:var(--jc-blue-dark);line-height:1.15}
.jct-logo__sub{font-size:11px;color:var(--jc-text-sec);line-height:1.15}
@media(max-width:575px){.jct-logo__sub{display:none}}

/* (search moved to topbar) */

/* Search overlay */
.jct-search-overlay{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.6);
  z-index:9999;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:80px;
}
.jct-search-overlay.is-open{display:flex}
.jct-search-box{
  background:var(--jc-surface);
  border-radius:var(--jc-radius);
  padding:6px;
  width:100%;
  max-width:560px;
  box-shadow:0 8px 32px rgba(0,0,0,.3);
  display:flex;
  gap:0;
  margin:0 16px;
}
.jct-search-box input{
  flex:1;
  border:none;
  padding:12px 16px;
  font-size:16px;
  font-family:inherit;
  outline:none;
  min-width:0;
}
.jct-search-box button{
  border:none;
  background:var(--jc-blue);
  color:#fff;
  padding:12px 24px;
  border-radius:var(--jc-radius);
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
.jct-search-box button:hover{background:var(--jc-blue-dark)}
.jct-search-close{
  position:absolute;
  top:20px;right:24px;
  background:rgba(255,255,255,.2);
  border:none;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  line-height:1;
  width:40px;height:40px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.jct-search-close:hover{background:rgba(255,255,255,.3)}

/* Mobile menu */
.jct-burger{display:none;flex-direction:column;gap:5px;padding:8px;border:none;background:none;cursor:pointer;position:relative;z-index:9999}
.jct-burger span{display:block;width:22px;height:2px;background:var(--jc-text);border-radius:2px;transition:all .2s}
.jct-burger[aria-expanded="true"] span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.jct-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.jct-burger[aria-expanded="true"] span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
@media(max-width:767px){.jct-burger{display:flex}}

/* ============================================================
   NAVIGATION
   ============================================================ */
.jct-nav{background:var(--jc-blue)}
.jct-nav__list{display:flex;flex-wrap:wrap}
.jct-nav__item a{display:block;padding:10px 16px;color:#fff;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;text-decoration:none;transition:background .15s;white-space:nowrap}
.jct-nav__item a:hover{background:var(--jc-blue-dark);text-decoration:none}
.jct-nav__item--active a{background:var(--jc-blue-dark)}
.jct-nav__item--rss{margin-left:auto}
.jct-nav__item--rss a{text-transform:none;font-weight:400}

@media(max-width:767px){
  .jct-nav{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--jc-surface);z-index:9998;overflow-y:auto;transform:translateX(-100%);transition:transform .25s}
  .jct-nav.is-open{transform:translateX(0)}
  .jct-nav__list{flex-direction:column;padding-top:56px}
  .jct-nav__item a{color:var(--jc-text);padding:14px 20px;border-bottom:1px solid var(--jc-border-light);font-size:15px;text-transform:none}
  .jct-nav__item a:hover{background:var(--jc-blue-50);color:var(--jc-blue)}
  .jct-nav__item--active a{background:var(--jc-blue-50);color:var(--jc-blue)}
  .jct-nav__item--rss{margin-left:0}
}

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.jct-content{flex:1;padding:20px 0}

/* Page layout (article + sidebar) */
.jct-page-layout{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:992px){
  .jct-page-layout{grid-template-columns:1fr var(--jc-sidebar-w)}
}

/* Home layout (news + sidebar) */
.jct-home-layout{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:992px){
  .jct-home-layout{grid-template-columns:1fr var(--jc-sidebar-w)}
}

/* List layout (list + sidebar) */
.jct-list-layout{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:992px){
  .jct-list-layout{grid-template-columns:1fr var(--jc-sidebar-w)}
}

/* ============================================================
   CARDS
   ============================================================ */
.jct-card{background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);margin-bottom:16px;overflow:hidden}
.jct-card__hd{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:13px;font-weight:700;color:var(--jc-text);background:#f8f9fa;border-bottom:1px solid var(--jc-border)}
.jct-card__hd svg{color:var(--jc-blue);flex-shrink:0}
.jct-card__hd a{color:var(--jc-text)}
.jct-card__hd a:hover{color:var(--jc-blue)}
.jct-card__hd--blue{background:var(--jc-blue);color:#fff;border-bottom:none}
.jct-card__hd--blue a{color:#fff}
.jct-card__hd--blue a:hover{color:#fff;opacity:.9}
.jct-card__hd--blue svg{color:#fff}
.jct-card__bd{padding:12px 14px}
.jct-card__bd p{margin-bottom:8px}
.jct-card__bd p:last-child{margin-bottom:0}
.jct-card__menu{padding:6px 0}
.jct-card__menu a{display:block;padding:6px 14px;font-size:13px;color:var(--jc-text);transition:background .1s}
.jct-card__menu a:hover{background:var(--jc-blue-50);color:var(--jc-blue);text-decoration:none}
.jct-card__more{margin-top:10px;font-size:12px}

/* ============================================================
   ADMIN PANEL (inside article)
   ============================================================ */
.jct-admin-panel{
  background:#e3f2fd;
  border:1px solid #90caf9;
  border-left:4px solid var(--jc-blue);
  border-radius:var(--jc-radius);
  padding:12px 16px;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.jct-admin-panel__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  color:var(--jc-blue-dark);
}
.jct-admin-panel__title svg{color:var(--jc-blue)}
.jct-admin-panel__actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.jct-admin-panel__actions a,
.jct-admin-panel__actions button{
  font-size:12px;
  padding:5px 12px;
  border-radius:var(--jc-radius);
  text-decoration:none;
  font-weight:600;
}
.jct-admin-panel__actions a{
  background:var(--jc-blue);
  color:#fff;
  border:none;
  cursor:pointer;
}
.jct-admin-panel__actions a:hover{background:var(--jc-blue-dark);color:#fff;text-decoration:none}

/* ============================================================
   SIDEBAR RIGHT (20%)
   ============================================================ */
.jct-aside{display:flex;flex-direction:column;gap:16px}

/* Latest articles widget */
.jct-widget-news .jct-card__hd{background:var(--jc-blue);color:#fff}
.jct-widget-news .jct-card__hd svg{color:#fff}
.jct-widget-news .jct-card__hd a{color:#fff}
.jct-news-item{padding:8px 0;border-bottom:1px solid var(--jc-border-light)}
.jct-news-item:last-child{border-bottom:none}
.jct-news-item__date{font-size:11px;color:var(--jc-text-muted);margin-bottom:2px}
.jct-news-item__title{font-size:13px;line-height:1.4}
.jct-news-item__title a{color:var(--jc-text)}
.jct-news-item__title a:hover{color:var(--jc-blue)}

/* Banners widget */
.jct-widget-banners .jct-card__hd{background:#f8f9fa}
.jct-banner{display:block;margin-bottom:10px;border-radius:var(--jc-radius);overflow:hidden;border:1px solid var(--jc-border-light)}
.jct-banner:last-child{margin-bottom:0}
.jct-banner img{width:100%;height:auto;display:block}
.jct-banner:hover{box-shadow:var(--jc-shadow-md)}

/* ============================================================
   FEATURED NEWS — Two Column Cards
   ============================================================ */
.jct-featured{margin-bottom:20px}
.jct-featured__hd{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--jc-blue);color:#fff;border-radius:var(--jc-radius) var(--jc-radius) 0 0}
.jct-featured__title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:#fff}
.jct-featured__title svg{color:#fff}
.jct-featured__more{color:rgba(255,255,255,.85);font-size:13px}
.jct-featured__more:hover{color:#fff;text-decoration:none}
.jct-news-grid{display:grid;grid-template-columns:1fr;gap:16px;background:var(--jc-surface);border:1px solid var(--jc-border);border-top:none;border-radius:0 0 var(--jc-radius) var(--jc-radius);padding:16px}
@media(min-width:576px){.jct-news-grid{grid-template-columns:repeat(2,1fr)}}

/* News Card */
.jct-ncard{background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s}
.jct-ncard:hover{box-shadow:var(--jc-shadow-md)}
.jct-ncard__img{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f2f5}
.jct-ncard__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.jct-ncard:hover .jct-ncard__img img{transform:scale(1.03)}
.jct-ncard__body{padding:14px;flex:1;display:flex;flex-direction:column}
.jct-ncard__date{font-size:11px;color:var(--jc-text-muted);margin-bottom:6px}
.jct-ncard__title{font-size:15px;font-weight:700;line-height:1.35;margin-bottom:8px}
.jct-ncard__title a{color:var(--jc-text)}
.jct-ncard__title a:hover{color:var(--jc-blue)}
.jct-ncard__desc{font-size:13px;color:var(--jc-text-sec);line-height:1.55;margin-bottom:12px;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jct-ncard__footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.jct-ncard__link{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:var(--jc-blue);transition:gap .15s}
.jct-ncard__link:hover{gap:8px;text-decoration:none}
.jct-ncard__link svg{width:14px;height:14px}
.jct-ncard__cat{font-size:11px;color:var(--jc-text-muted)}

/* ============================================================
   ARTICLE
   ============================================================ */
.jct-article{background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);padding:24px;margin-bottom:20px}
.jct-content:has(.jct-article){flex:0 0 auto;padding-bottom:0}
.jct-content:has(.jct-article) .jct-article{margin-bottom:0}
body:has(.jct-article) .jct-footer{margin-top:0}
.jct-article__hd{margin-bottom:20px}
.jct-article__title{font-size:22px;color:var(--jc-text);margin-bottom:10px}
.jct-article__desc{font-size:15px;color:var(--jc-text-sec);margin-bottom:12px}
.jct-article__meta{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--jc-text-muted)}
.jct-article__meta span{display:flex;align-items:center;gap:4px}
.jct-article__cat{color:var(--jc-blue);font-weight:600}
.jct-article__body{font-size:14px;line-height:1.7}
.jct-article__body p{margin-bottom:14px}
.jct-article__body h2,.jct-article__body h3,.jct-article__body h4{margin:20px 0 10px}
.jct-article__body ul,.jct-article__body ol{margin:0 0 14px 20px}
.jct-article__body ul{list-style:disc}
.jct-article__body ol{list-style:decimal}
.jct-article__body li{margin-bottom:4px}
.jct-article__body blockquote{border-left:3px solid var(--jc-blue);padding:8px 14px;margin:14px 0;color:var(--jc-text-sec);font-style:italic;background:var(--jc-blue-50)}
.jct-article__body code{background:#f5f5f5;padding:2px 5px;border-radius:3px;font-size:13px}
.jct-article__body pre{background:#f5f5f5;padding:14px;border-radius:var(--jc-radius);overflow-x:auto;margin:14px 0}
.jct-article__body img{border-radius:var(--jc-radius);margin:14px 0}
.jct-article__featured{margin-bottom:20px;border-radius:var(--jc-radius);overflow:hidden}
.jct-article__featured img{width:100%;height:auto;display:block;border-radius:var(--jc-radius)}
.jct-article__tags{margin-top:20px;padding-top:15px;border-top:1px solid var(--jc-border);font-size:13px;color:var(--jc-text-sec)}
.jct-article__tags a{display:inline-block;padding:3px 10px;background:var(--jc-blue-50);color:var(--jc-blue);border-radius:20px;font-size:12px;margin:2px}
.jct-article__tags a:hover{background:var(--jc-blue);color:#fff;text-decoration:none}
.jct-article__file{margin-top:15px;padding:14px;background:#f5f5f5;border-radius:var(--jc-radius)}
.jct-article__fileinfo{margin-top:6px;font-size:12px;color:var(--jc-text-muted)}
.jct-related{margin-top:28px;padding-top:22px;border-top:1px solid var(--jc-border)}
.jct-related>h2{margin:0 0 16px;font-size:20px;color:var(--jc-text)}
.jct-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.jct-related__card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dce6f0;border-radius:14px;color:var(--jc-text);text-decoration:none;box-shadow:0 3px 12px rgba(30,60,90,.04);transition:transform .2s,box-shadow .2s}
.jct-related__card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(30,60,90,.11);text-decoration:none}
.jct-related__image{height:130px;display:flex;align-items:center;justify-content:center;background:#e8f4ff;color:#a5ccef;overflow:hidden}
.jct-related__image img{width:100%;height:100%;object-fit:cover}
.jct-related__content{padding:14px;display:flex;flex-direction:column;gap:10px;flex:1}
.jct-related__content h3{font-size:14px;line-height:1.45;margin:0;font-weight:650}
.jct-related__content time{margin-top:auto;color:#748196;font-size:12px}
@media(max-width:650px){.jct-related__grid{grid-template-columns:1fr}.jct-related__card{flex-direction:row}.jct-related__image{height:auto;min-height:100px;width:110px;flex-shrink:0}}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.jct-bc{margin-bottom:15px;font-size:12px;color:var(--jc-text-muted)}
.jct-bc a{color:var(--jc-link)}

/* ============================================================
   PAGE LIST
   ============================================================ */
.jct-list{background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);padding:20px;margin-bottom:20px}
.jct-list__cat{margin-bottom:20px}
.jct-list__cat-title{font-size:18px}
.jct-list__cat-count{font-weight:400;color:var(--jc-text-muted)}
.jct-list__cat-desc{margin-top:4px;font-size:13px;color:var(--jc-text-sec)}
.jct-list__items{display:flex;flex-direction:column;gap:16px}
.jct-list__item{padding-bottom:16px;border-bottom:1px solid var(--jc-border-light)}
.jct-list__item:last-child{border-bottom:none;padding-bottom:0}
.jct-list__item-title{font-size:15px;margin-bottom:6px}
.jct-list__item-title a{color:var(--jc-text)}
.jct-list__item-title a:hover{color:var(--jc-blue)}
.jct-list__item-desc,.jct-list__item-text{font-size:13px;color:var(--jc-text-sec);line-height:1.6;margin-bottom:8px}
.jct-list__item-meta{display:flex;gap:12px;font-size:12px;color:var(--jc-text-muted)}
.jct-list__item-hits{display:flex;align-items:center;gap:3px}

/* ============================================================
   PAGINATION
   ============================================================ */
.jct-pager{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:20px;padding-top:15px;border-top:1px solid var(--jc-border)}
.jct-pager__info{font-size:13px;color:var(--jc-text-sec)}
.jct-pager__links{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.jct-pager__links a,.jct-pager__links span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border-radius:var(--jc-radius);font-size:13px;border:1px solid var(--jc-border);color:var(--jc-text);background:var(--jc-surface);transition:all .1s}
.jct-pager__links a:hover{background:var(--jc-blue-50);border-color:var(--jc-blue);color:var(--jc-blue);text-decoration:none}
.jct-pager__links .pagenav_current{background:var(--jc-blue);border-color:var(--jc-blue);color:#fff}

/* ============================================================
   BUTTONS
   ============================================================ */
.jct-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:none;border-radius:var(--jc-radius);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s;text-decoration:none}
.jct-btn--primary{background:var(--jc-blue);color:#fff}
.jct-btn--primary:hover{background:var(--jc-blue-dark);color:#fff;text-decoration:none}

/* ============================================================
   ALERTS
   ============================================================ */
.jct-alert{padding:12px 14px;border-radius:var(--jc-radius);margin-bottom:15px;font-size:13px}
.jct-alert__title{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;margin-bottom:6px}
.jct-alert--error{background:#ffebee;color:#c62828;border:1px solid #ffcdd2}
.jct-alert--warning{background:#fff8e1;color:#f57f17;border:1px solid #fff176}
.jct-alert--success{background:#e8f5e9;color:#2e7d32;border:1px solid #c8e6c9}

/* ============================================================
   AUTH
   ============================================================ */
.jct-auth{max-width:420px;margin:0 auto;background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);padding:24px}
.jct-auth__form{display:flex;flex-direction:column;gap:14px}
.jct-form__grp{display:flex;flex-direction:column;gap:4px}
.jct-form__lbl{font-size:13px;font-weight:600}
.jct-form__acts{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* ============================================================
   MESSAGE
   ============================================================ */
.jct-msg{max-width:500px;margin:40px auto}
.jct-msg__card{background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);padding:30px;text-align:center}
.jct-msg__title{font-size:20px;margin-bottom:12px}
.jct-msg__body{color:var(--jc-text-sec);margin-bottom:20px}
.jct-msg__confirm{display:flex;justify-content:center;gap:12px}

/* ============================================================
   ERROR
   ============================================================ */
.jct-error{display:flex;align-items:center;justify-content:center;min-height:80vh;padding:20px}
.jct-error__card{text-align:center;max-width:400px}
.jct-error__title{font-size:20px;margin-bottom:10px}
.jct-error__body{color:var(--jc-text-sec);margin-bottom:20px}

/* ============================================================
   RECENT
   ============================================================ */
.jct-recent{margin-bottom:20px}
.jct-recent__hd{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#1565c0;color:#fff;border-radius:var(--jc-radius) var(--jc-radius) 0 0}
.jct-recent__title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:#fff}
.jct-recent__title a{color:#fff}
.jct-recent__title a:hover{text-decoration:none;opacity:.9}
.jct-recent__title svg{color:#fff}
.jct-recent__grid{display:grid;grid-template-columns:1fr;gap:15px;background:var(--jc-surface);border:1px solid var(--jc-border);border-top:none;border-radius:0 0 var(--jc-radius) var(--jc-radius);padding:16px}
@media(min-width:768px){.jct-recent__grid{grid-template-columns:repeat(2,1fr)}}
.jct-recent__col h3{font-size:14px;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid var(--jc-border-light)}
.jct-empty{padding:12px;background:#f5f5f5;border-radius:var(--jc-radius);font-size:13px;color:var(--jc-text-muted);text-align:center}

/* ============================================================
   FOOTER
   ============================================================ */
.jct-footer{margin-top:auto}
.jct-footer__main{background:#1a1a2e;color:#ccc;padding:30px 0}
.jct-footer__grid{display:grid;grid-template-columns:1fr;gap:25px}
@media(min-width:576px){.jct-footer__grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:992px){.jct-footer__grid{grid-template-columns:1.5fr repeat(3,1fr);gap:30px}}
.jct-footer__hd{font-size:14px;font-weight:700;color:#fff;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #333}
.jct-footer__txt{font-size:13px;color:#999;line-height:1.6;margin-bottom:12px}
.jct-footer__social{display:flex;gap:10px}
.jct-footer__social a{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#2a2a3e;color:#ccc;border-radius:var(--jc-radius);transition:background .15s}
.jct-footer__social a:hover{background:var(--jc-blue);color:#fff;text-decoration:none}
.jct-footer__list{display:flex;flex-direction:column;gap:6px}
.jct-footer__list a{font-size:13px;color:#999;transition:color .15s}
.jct-footer__list a:hover{color:#fff;text-decoration:none}
.jct-footer__list--phones a{color:#fff;font-weight:500}
.jct-footer__btm{background:#111;border-top:1px solid #333;padding:12px 0}
.jct-footer__btm-inner{display:flex;align-items:center;justify-content:flex-end}
.jct-back{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#2a2a3e;color:#ccc;border:none;border-radius:var(--jc-radius);cursor:pointer;transition:background .15s}
.jct-back:hover{background:var(--jc-blue);color:#fff}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],input[type="password"],input[type="email"],input[type="search"],input[type="url"],input[type="number"],input[type="date"],textarea,select{width:100%;max-width:100%;padding:8px 10px;border:1px solid var(--jc-border);border-radius:var(--jc-radius);font-family:inherit;font-size:13px;color:var(--jc-text);background:var(--jc-surface);transition:border-color .15s}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--jc-blue)}
input[type="radio"],input[type="checkbox"]{width:auto}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media(max-width:991px){
  .jct-layout{grid-template-columns:1fr !important}
  .jct-aside{order:2}
}
@media(max-width:767px){
  .jct-header__row{flex-wrap:wrap}
  .jct-logo{flex:1}
  .jct-topbar .jct-wrap{flex-direction:column;gap:6px}
}

/* ============================================================
   UTILITY
   ============================================================ */
.small{font-size:12px}
.clear{clear:both}

/* ============================================================
   PRINT
   ============================================================ */
@media print{
  .jct-topbar,.jct-header,.jct-nav,.jct-aside,.jct-footer,.jct-back{display:none!important}
  .jct-content{padding:0}
  .jct-article{border:none;padding:0;box-shadow:none}
  body{background:#fff;color:#000}
  a{color:#000}
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.jct-profile__header{
  display:flex;align-items:center;gap:20px;
  background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  padding:24px;margin-bottom:20px;
}
.jct-profile__avatar{
  width:88px;height:88px;border-radius:50%;overflow:hidden;
  background:var(--jc-blue-50);border:3px solid var(--jc-blue-100);flex-shrink:0;
}
.jct-profile__avatar img{width:100%;height:100%;object-fit:cover;display:block}
.jct-profile__avatar-ph{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:2em;font-weight:700;color:#fff;
  background:var(--jc-blue);text-transform:uppercase;letter-spacing:1px;
}
.jct-profile__info{flex:1;min-width:0}
.jct-profile__name{font-size:22px;font-weight:700;color:var(--jc-text);margin-bottom:6px}
.jct-profile__meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--jc-text-muted)}
.jct-profile__meta-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.jct-profile__meta-item svg{color:var(--jc-blue);flex-shrink:0}

.jct-profile__grid{
  display:grid;grid-template-columns:1fr;gap:20px;
}
.jct-profile__col{display:flex;flex-direction:column;gap:16px}
.jct-profile__actions{text-align:right;padding-top:4px}

/* Profile fields */
.jct-pfield{margin-bottom:16px}
.jct-pfield:last-child{margin-bottom:0}
.jct-pfield__lbl{
  display:block;font-size:13px;font-weight:600;color:var(--jc-text-sec);
  margin-bottom:5px;
}
.jct-pfield__lbl--inline{display:inline;font-weight:600;margin-right:4px}
.jct-pfield__ctrl{font-size:14px;color:var(--jc-text)}
.jct-pfield__ctrl input[type="text"],
.jct-pfield__ctrl input[type="password"],
.jct-pfield__ctrl textarea,
.jct-pfield__ctrl select{
  padding:9px 12px;border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  font-family:inherit;font-size:13px;color:var(--jc-text);background:var(--jc-surface);
  transition:border-color .15s,box-shadow .15s;width:100%;
}
.jct-pfield__ctrl input:focus,
.jct-pfield__ctrl textarea:focus,
.jct-pfield__ctrl select:focus{
  outline:none;border-color:var(--jc-blue);
  box-shadow:0 0 0 3px rgba(21,101,192,.1);
}
.jct-pfield__ctrl textarea{min-height:80px;resize:vertical}
.jct-pfield__email{margin-bottom:8px}
.jct-pfield__email-pass{margin-top:8px}
.jct-pfield__email-pass input[type="password"]{
  padding:8px 10px;border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  font-family:inherit;font-size:13px;
}
.jct-pfield__hint{font-size:12px;color:var(--jc-text-muted);margin-top:4px}
.jct-pfield--photo img{max-width:200px;border-radius:var(--jc-radius)}

.jct-pfield__pass-row{display:flex;gap:12px;flex-wrap:wrap}
.jct-pfield__pass-col{flex:1;min-width:140px}
.jct-pfield__pass-col input[type="password"]{
  width:100%;padding:9px 12px;border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  font-family:inherit;font-size:13px;
}

.jct-btn--lg{padding:10px 24px;font-size:14px}

@media(min-width:768px){
  .jct-profile__grid{grid-template-columns:1fr 1.5fr;align-items:start}
}
@media(max-width:767px){
  .jct-profile__header{flex-direction:column;text-align:center;padding:20px}
  .jct-profile__meta{justify-content:center}
  .jct-profile__avatar{width:72px;height:72px}
  .jct-profile__avatar-ph{font-size:1.5em}
  .jct-pfield__pass-row{flex-direction:column;gap:10px}
  .jct-profile__actions{text-align:center}
}
@media(max-width:575px){
  .jct-profile__header{padding:16px}
}

/* ============================================================
   CONFIRM MODAL (jqModal)
   ============================================================ */
.jqmOverlay{background:rgba(0,0,0,.5);position:fixed;top:0;left:0;width:100%;height:100%;z-index:3000}

.jqmWindow{
  display:none;position:fixed;top:50%;left:50%;
  transform:translate(-50%,-50%);
  background:var(--jc-surface);color:var(--jc-text);
  border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  box-shadow:0 8px 32px rgba(0,0,0,.2);
  padding:24px;min-width:320px;max-width:480px;
  z-index:3001;text-align:center;
}
.jqmWindow h4{
  font-size:16px;font-weight:700;color:var(--jc-text);
  margin:0 0 12px;padding-bottom:10px;
  border-bottom:1px solid var(--jc-border);text-align:left;
}
.jqmWindow p{
  font-size:14px;color:var(--jc-text-sec);line-height:1.6;
  margin:0 0 20px;text-align:left;
}
.jqmWindow p a.jct-btn,
.jqmWindow a.jct-btn{
  display:inline-flex;align-items:center;gap:6px;
  margin:0 6px;text-decoration:none;
}
.jqmWindow .jqmClose{
  position:absolute;top:12px;right:12px;
  background:none;border:none;font-size:20px;
  color:var(--jc-text-muted);cursor:pointer;
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--jc-radius);transition:background .15s;
}
.jqmWindow .jqmClose:hover{background:var(--jc-blue-50);color:var(--jc-text)}

/* Confirm page inside modal (from message.php msg=920) */
.jqmWindow .jct-msg__card{background:transparent;border:none;padding:0;box-shadow:none}
.jqmWindow .jct-msg__title{font-size:18px;margin-bottom:10px;color:var(--jc-text);text-align:left}
.jqmWindow .jct-msg__body{color:var(--jc-text-sec);margin-bottom:20px;text-align:left;font-size:14px}
.jqmWindow .jct-msg__confirm{display:flex;gap:10px;justify-content:flex-start}

@media(max-width:575px){
  .jqmWindow{min-width:0;width:calc(100% - 32px);padding:16px}
}

/* ============================================================
   HOMEPAGE — Hero Section
   ============================================================ */
.jct-hero{
  background:linear-gradient(135deg,var(--jc-blue) 0%,var(--jc-blue-dark) 100%);
  color:#fff;padding:48px 0;margin-bottom:0;
}
.jct-hero__content{display:flex;align-items:center;gap:40px}
.jct-hero__text{flex:1}
.jct-hero__title{font-size:32px;font-weight:800;margin-bottom:12px;line-height:1.2}
.jct-hero__desc{font-size:16px;opacity:.85;margin-bottom:24px;line-height:1.6;max-width:500px}
.jct-hero__actions{display:flex;gap:12px;flex-wrap:wrap}
.jct-hero__btn-outline{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 24px;border:2px solid rgba(255,255,255,.5);border-radius:var(--jc-radius);
  color:#fff;font-size:14px;font-weight:600;text-decoration:none;transition:all .15s;
}
.jct-hero__btn-outline:hover{background:rgba(255,255,255,.15);border-color:#fff;color:#fff;text-decoration:none}
.jct-hero__image{flex-shrink:0}
.jct-hero__img-placeholder{
  width:280px;height:200px;background:rgba(255,255,255,.1);border-radius:12px;
  display:flex;align-items:center;justify-content:center;
}
@media(max-width:767px){
  .jct-hero{padding:32px 0}
  .jct-hero__content{flex-direction:column;text-align:center}
  .jct-hero__title{font-size:24px}
  .jct-hero__desc{font-size:14px}
  .jct-hero__actions{justify-content:center}
  .jct-hero__image{display:none}
}

/* ============================================================
   HOMEPAGE — Emergency Numbers
   ============================================================ */
.jct-emergency{background:var(--jc-surface);border-bottom:1px solid var(--jc-border);padding:16px 0}
.jct-emergency__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.jct-emergency__item{
  display:flex;align-items:center;gap:12px;padding:14px 16px;
  border-radius:var(--jc-radius);text-decoration:none;color:var(--jc-text);
  border:1px solid var(--jc-border);transition:all .15s;
}
.jct-emergency__item:hover{box-shadow:var(--jc-shadow-md);text-decoration:none;transform:translateY(-2px)}
.jct-emergency__icon{
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;color:#fff;
}
.jct-emergency__item--fire .jct-emergency__icon{background:#e53935}
.jct-emergency__item--police .jct-emergency__icon{background:#1565c0}
.jct-emergency__item--medical .jct-emergency__icon{background:#2e7d32}
.jct-emergency__item--gas .jct-emergency__icon{background:#f57f17}
.jct-emergency__number{font-size:18px;font-weight:800;display:block;line-height:1.2}
.jct-emergency__label{font-size:12px;color:var(--jc-text-sec)}
@media(max-width:767px){
  .jct-emergency__grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:400px){
  .jct-emergency__grid{grid-template-columns:1fr}
}

/* ============================================================
   HOMEPAGE — Services Grid
   ============================================================ */
.jct-services{padding:32px 0;background:var(--jc-bg)}
.jct-section-title{
  display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;
  color:var(--jc-text);margin-bottom:20px;
}
.jct-section-title svg{color:var(--jc-blue);flex-shrink:0}
.jct-services__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.jct-services__item{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:20px 12px;background:var(--jc-surface);border:1px solid var(--jc-border);
  border-radius:var(--jc-radius);text-decoration:none;color:var(--jc-text);
  transition:all .15s;text-align:center;
}
.jct-services__item:hover{box-shadow:var(--jc-shadow-md);transform:translateY(-2px);text-decoration:none}
.jct-services__icon{
  width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;
}
.jct-services__icon--news{background:var(--jc-blue-50);color:var(--jc-blue)}
.jct-services__icon--org{background:#e8f5e9;color:#2e7d32}
.jct-services__icon--users{background:#fff3e0;color:#e65100}
.jct-services__icon--search{background:#f3e5f5;color:#7b1fa2}
.jct-services__icon--rss{background:#fce4ec;color:#c62828}
.jct-services__icon--auth{background:#e0f2f1;color:#00695c}
.jct-services__label{font-size:13px;font-weight:600}
@media(max-width:767px){
  .jct-services__grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:400px){
  .jct-services__grid{grid-template-columns:repeat(2,1fr)}
}

/* ============================================================
   HOMEPAGE — News Section
   ============================================================ */
.jct-news-section-home{margin-bottom:0}
.jct-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.jct-section-more{font-size:13px;color:var(--jc-blue);font-weight:600}
.jct-section-more:hover{text-decoration:none}
.jct-news-grid-home{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(max-width:767px){
  .jct-news-grid-home{grid-template-columns:1fr}
}

/* Recent updates on homepage */
.jct-recent-home{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.jct-recent-home__title{font-size:14px;font-weight:700;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--jc-border)}
@media(max-width:767px){
  .jct-recent-home{grid-template-columns:1fr}
}

/* ============================================================
   PAGE EDIT / ADD FORM
   ============================================================ */
.jct-edit-page{max-width:900px;margin:0 auto}
.jct-edit-page__header{margin-bottom:24px}
.jct-edit-page__title{font-size:24px;font-weight:700;color:var(--jc-text);margin:0}
.jct-edit-page__id{font-weight:400;color:var(--jc-text-muted);font-size:18px}
.jct-edit-page__header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.jct-edit-page__links{display:flex;gap:8px;flex-wrap:wrap}
.jct-edit-link{display:inline-flex;align-items:center;min-height:40px;padding:9px 14px;border:1px solid #d6e2ef;border-radius:10px;background:#fff;color:#155db0;font-weight:600;font-size:13px;text-decoration:none}
.jct-edit-link:hover{background:#eef6ff;text-decoration:none}
.jct-edit-link--danger{color:#b83245;border-color:#f1cbd0}
.jct-edit-link--danger:hover{color:#a72235;background:#fff3f4}

.jct-edit-section{
  background:var(--jc-surface);border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  padding:20px 24px;margin-bottom:16px;
}
.jct-edit-section--danger{border-color:#ffcdd2;background:#fff5f5}
.jct-edit-section__title{
  display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;
  color:var(--jc-text);margin:0 0 16px;padding-bottom:12px;
  border-bottom:1px solid var(--jc-border-light);
}
.jct-edit-section__title svg{color:var(--jc-blue);flex-shrink:0}

/* Expandable editor cards keep the form usable without JavaScript. */
details.jct-edit-section{
  border-radius:16px;box-shadow:0 4px 16px rgba(28,49,79,.05);
}
details.jct-edit-section > summary.jct-edit-section__title{
  cursor:pointer;list-style:none;user-select:none;min-height:36px;
}
details.jct-edit-section > summary::-webkit-details-marker{display:none}
details.jct-edit-section > summary::before{
  content:'Свернуть';order:2;margin-left:auto;font-size:12px;font-weight:600;color:#65809e;
}
details.jct-edit-section:not([open]) > summary::before{content:'Развернуть'}
details.jct-edit-section > summary::after{
  content:"";order:3;margin-left:4px;flex:0 0 34px;height:34px;border:1px solid #dae8f7;border-radius:11px;
  background:#edf5ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center no-repeat;
  transition:transform .2s,background-color .2s;
}
details.jct-edit-section:not([open]) > summary{margin-bottom:0;padding-bottom:0;border-bottom:0}
details.jct-edit-section:not([open]) > summary::after{transform:rotate(-90deg)}
details.jct-edit-section > summary:hover::after{background-color:#dfedff}
details.jct-edit-section > summary:focus-visible{outline:2px solid #8bbcff;outline-offset:4px;border-radius:8px}

.jct-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.jct-edit-field{display:flex;flex-direction:column;gap:5px}
.jct-edit-field--full{grid-column:1/-1}
.jct-edit-label{font-size:13px;font-weight:600;color:var(--jc-text-sec)}
.jct-edit-control{font-size:14px}
.jct-edit-control input[type="text"],
.jct-edit-control input[type="password"],
.jct-edit-control textarea,
.jct-edit-control select{
  width:100%;padding:9px 12px;border:1px solid var(--jc-border);border-radius:var(--jc-radius);
  font-family:inherit;font-size:13px;color:var(--jc-text);background:var(--jc-surface);
  transition:border-color .15s;
}
.jct-edit-control input:focus,
.jct-edit-control textarea:focus,
.jct-edit-control select:focus{outline:none;border-color:var(--jc-blue);box-shadow:0 0 0 3px rgba(21,101,192,.1)}
.jct-edit-control textarea{min-height:300px;resize:vertical}
.jct-edit-field--description .jct-edit-control{width:100%}
.jct-edit-page .jct-edit-control textarea{min-height:110px}
.jct-edit-field--description textarea{min-height:120px}
.jct-company-notice{padding:15px 18px;margin:0 0 22px;border:1px solid #f1dca9;border-radius:12px;background:#fff8e7;color:#725315;font-size:14px;font-weight:600;line-height:1.5}
.jct-company-layout{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:24px;align-items:start}
.jct-company-contacts{display:grid;gap:12px}
.jct-company-contact{padding:16px;border:1px solid #dce8f4;border-radius:14px;background:#f7faff;box-shadow:0 3px 12px rgba(32,65,105,.05)}
.jct-company-contact h2{margin:0 0 8px;font-size:13px;font-weight:700;color:#1763b7}
.jct-company-contact p{margin:0;line-height:1.55;overflow-wrap:anywhere}
.jct-company-content{min-width:0}
.jct-company-content h2,.jct-company-content h3,.jct-company-content h4{color:#193b60;line-height:1.35}
.jct-company-content h2{font-size:19px;margin:26px 0 12px}
.jct-company-content p{line-height:1.75}
.jct-company-content img{max-width:100%;height:auto;border-radius:12px}
.jct-company-content a{overflow-wrap:anywhere}
@media(max-width:700px){.jct-company-layout{grid-template-columns:1fr}.jct-company-contacts{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}
.jct-edit-control select{
  appearance:none;-webkit-appearance:none;border-radius:10px;padding-right:54px;
  min-height:42px;cursor:pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23516d8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center,
    linear-gradient(to right, transparent calc(100% - 45px), #dce5ef calc(100% - 45px), #dce5ef calc(100% - 44px), #f3f7fc calc(100% - 44px));
  background-color:var(--jc-surface);
}
.jct-edit-control select:hover{border-color:#a9c5e5}
.jct-edit-control select:focus{border-color:#79a9df;box-shadow:0 0 0 3px rgba(21,101,192,.1)}
@supports (appearance: base-select) {
  .jct-edit-control select,.jct-edit-control select::picker(select){appearance:base-select}
  .jct-edit-control select::picker-icon{display:none}
  .jct-edit-control select::picker(select){
    border:1px solid #dce5ef;border-radius:12px;padding:6px;margin-top:6px;
    background:#fff;box-shadow:0 12px 30px rgba(32,55,84,.16);
  }
  .jct-edit-control select option{padding:10px 12px;border-radius:7px;color:var(--jc-text)}
  .jct-edit-control select option:hover,.jct-edit-control select option:focus{background:#edf5ff}
}

.jct-edit-file{
  padding:10px;border:2px dashed var(--jc-border);border-radius:var(--jc-radius);
  width:100%;cursor:pointer;transition:border-color .15s;
}
.jct-edit-file:hover{border-color:var(--jc-blue)}
.jct-edit-hint{font-size:12px;color:var(--jc-text-muted);margin-top:4px}
.jct-edit-checkbox{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--jc-text-sec);margin-top:6px}
.jct-edit-pfs{margin-top:10px}

.jct-edit-fi-preview{
  display:flex;align-items:flex-start;gap:16px;margin-bottom:12px;
  padding:12px;background:var(--jc-bg);border-radius:var(--jc-radius);
}
.jct-edit-fi-preview img{max-width:200px;max-height:150px;border-radius:var(--jc-radius);border:1px solid var(--jc-border)}
.jct-edit-fi-delete{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--jc-text-sec);cursor:pointer}

.jct-edit-actions{
  display:flex;gap:10px;justify-content:flex-end;padding:16px 0;
  border-top:1px solid var(--jc-border);margin-top:8px;
}

@media(max-width:767px){
  .jct-edit-grid{grid-template-columns:1fr}
  .jct-edit-section{padding:16px}
  .jct-edit-actions{flex-wrap:wrap;justify-content:center}
  .jct-edit-page__links{width:100%}
}

/* ============================================================
   NEWS — FEEO.RK.GOV.RU STYLE
   ============================================================ */
.jct-news-feo{margin-bottom:32px}
.jct-news-feo__header{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.jct-news-feo__title{
  font-size:28px;font-weight:800;color:var(--jc-text);margin:0;line-height:1.2;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
.jct-news-feo__more{
  display:flex;align-items:center;justify-content:center;width:36px;height:36px;
  color:var(--jc-text);transition:color .15s;flex-shrink:0;
}
.jct-news-feo__more:hover{color:var(--jc-blue);text-decoration:none}

.jct-news-feo__grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}

/* FEEO News Card */
.jct-feo-card{
  display:flex;flex-direction:column;
  background:var(--jc-surface);border:1px solid var(--jc-border-light);
  border-radius:12px;overflow:hidden;
  transition:box-shadow .2s,transform .2s;
  text-decoration:none;color:var(--jc-text);
}
.jct-feo-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.08);transform:translateY(-2px);text-decoration:none}
.jct-feo-card__img{
  position:relative;width:100%;padding-top:65%;overflow:hidden;background:var(--jc-blue-50);
}
.jct-feo-card__img img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.jct-feo-card__placeholder{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:var(--jc-blue-200);
}
.jct-feo-card__body{padding:16px;flex:1;display:flex;flex-direction:column}
.jct-feo-card__title{
  font-size:15px;font-weight:600;line-height:1.4;color:var(--jc-text);
  margin:0 0 auto;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.jct-feo-card__footer{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;border-top:1px solid var(--jc-border-light);
  margin-top:16px;
}
.jct-feo-card__date{font-size:13px;color:var(--jc-text-muted)}
.jct-feo-card__arrow{
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  color:var(--jc-text-muted);transition:color .15s,transform .15s;
}
.jct-feo-card:hover .jct-feo-card__arrow{color:var(--jc-blue);transform:translateX(3px)}

@media(max-width:991px){
  .jct-news-feo__grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:575px){
  .jct-news-feo__grid{grid-template-columns:1fr}
  .jct-news-feo__title{font-size:22px}
}

/* ============================================================
   NEWS CATEGORY PAGE
   ============================================================ */
.jct-news-layout{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:992px){
  .jct-news-layout{grid-template-columns:1fr 300px}
}
.jct-news-main{min-width:0}

/* Category Header */
.jct-news-cat-header{margin-bottom:20px}
.jct-news-cat-title{font-size:22px;font-weight:700;color:var(--jc-text);margin-bottom:6px}
.jct-news-cat-count{font-weight:400;color:var(--jc-text-muted);font-size:16px}
.jct-news-cat-desc{font-size:14px;color:var(--jc-text-sec);margin-top:4px}

/* Article Cards */
.jct-news-articles{display:flex;flex-direction:column;gap:0}
.jct-news-card{
  display:flex;gap:16px;padding:16px 0;
  border-bottom:1px solid var(--jc-border-light);
}
.jct-news-card:first-child{padding-top:0}
.jct-news-card:last-child{border-bottom:none}

.jct-news-card__img{
  width:200px;min-height:130px;flex-shrink:0;
  border-radius:var(--jc-radius);overflow:hidden;
  background:var(--jc-blue-50);display:block;
  position:relative;
}
.jct-news-card__img img{width:100%;height:100%;object-fit:cover;display:block}
.jct-news-card__placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  min-height:130px;color:var(--jc-blue-200);
}
.jct-news-card__body{flex:1;min-width:0;display:flex;flex-direction:column}
.jct-news-card__title{font-size:16px;font-weight:700;line-height:1.35;margin-bottom:6px}
.jct-news-card__title a{color:var(--jc-text);transition:color .15s}
.jct-news-card__title a:hover{color:var(--jc-blue);text-decoration:none}
.jct-news-card__desc,.jct-news-card__text{
  font-size:13px;color:var(--jc-text-sec);line-height:1.55;
  margin-bottom:10px;flex:1;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.jct-news-card__meta{
  display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--jc-text-muted);
  align-items:center;margin-top:auto;
}
.jct-news-card__meta span{display:inline-flex;align-items:center;gap:4px}
.jct-news-card__meta svg{flex-shrink:0}
.jct-news-card__admin{margin-left:auto}
.jct-news-card__admin a{color:var(--jc-text-muted);font-size:12px}
.jct-news-card__admin a:hover{color:var(--jc-blue)}

@media(max-width:767px){
  .jct-news-card__img{width:120px;min-height:90px}
  .jct-news-card__title{font-size:14px}
}
@media(max-width:575px){
  .jct-news-card{flex-direction:column;gap:10px}
  .jct-news-card__img{width:100%;min-height:180px}
}

/* ============================================================
   SIDEBAR — News Widgets
   ============================================================ */
.jct-news-sidebar{display:flex;flex-direction:column;gap:16px}

/* Search in sidebar */
/* Admin Panel in Sidebar */
.jct-sidebar__admin-actions{display:flex;flex-direction:column;gap:8px}
.jct-sidebar__admin-btn{
  width:100%;justify-content:center;gap:6px;padding:9px 12px;
  font-size:13px;font-weight:600;
}
.jct-sidebar__admin-btn-secondary{
  width:100%;justify-content:center;gap:6px;padding:8px 12px;
  font-size:12px;font-weight:500;
  background:var(--jc-blue-50);color:var(--jc-blue);border:1px solid var(--jc-blue-100);
  border-radius:var(--jc-radius);cursor:pointer;transition:all .15s;
  text-decoration:none;display:inline-flex;align-items:center;
}
.jct-sidebar__admin-btn-secondary:hover{background:var(--jc-blue);color:#fff;border-color:var(--jc-blue);text-decoration:none}

/* Search in sidebar */
.jct-sidebar__search-form{display:flex;gap:0}
.jct-sidebar__search-input{
  flex:1;padding:9px 12px;border:1px solid var(--jc-border);border-right:none;
  border-radius:var(--jc-radius) 0 0 var(--jc-radius);font-size:13px;
  font-family:inherit;min-width:0;
}
.jct-sidebar__search-input:focus{outline:none;border-color:var(--jc-blue)}
.jct-sidebar__search-btn{
  padding:9px 14px;background:var(--jc-blue);color:#fff;border:none;
  border-radius:0 var(--jc-radius) var(--jc-radius) 0;cursor:pointer;
  display:flex;align-items:center;transition:background .15s;flex-shrink:0;
}
.jct-sidebar__search-btn:hover{background:var(--jc-blue-dark)}

/* Ad Banners */
.jct-sidebar__ad{overflow:hidden}
.jct-sidebar__ad-link{display:block;text-decoration:none}
.jct-sidebar__ad-banner{
  padding:20px;border-radius:var(--jc-radius);color:#fff;position:relative;
}
.jct-sidebar__ad-content{position:relative;z-index:1}
.jct-sidebar__ad-label{
  font-size:10px;text-transform:uppercase;letter-spacing:1px;
  opacity:.7;display:block;margin-bottom:6px;
}
.jct-sidebar__ad-title{font-size:16px;font-weight:700;margin-bottom:6px}
.jct-sidebar__ad-text{font-size:13px;opacity:.85;line-height:1.5}
.jct-sidebar__ad-link:hover .jct-sidebar__ad-banner{opacity:.95}

/* Popular Widget */
.jct-sidebar__popular-list{display:flex;flex-direction:column}
.jct-sidebar__popular-item{
  display:flex;gap:10px;padding:10px 0;
  border-bottom:1px solid var(--jc-border-light);
  text-decoration:none;transition:background .1s;
}
.jct-sidebar__popular-item:last-child{border-bottom:none}
.jct-sidebar__popular-item:hover{background:var(--jc-blue-50);margin:0 -14px;padding:10px 14px;border-radius:var(--jc-radius)}
.jct-sidebar__popular-num{
  width:24px;height:24px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--jc-blue);color:#fff;border-radius:50%;
  font-size:12px;font-weight:700;
}
.jct-sidebar__popular-title{
  font-size:13px;line-height:1.4;color:var(--jc-text);
}
.jct-sidebar__popular-item:hover .jct-sidebar__popular-title{color:var(--jc-blue)}

/* Categories in sidebar */
.jct-sidebar__cats{display:flex;flex-direction:column;gap:4px}
.jct-sidebar__cats li a{
  display:block;padding:7px 10px;font-size:13px;color:var(--jc-text);
  border-radius:var(--jc-radius);transition:background .1s;
}
.jct-sidebar__cats li a:hover{background:var(--jc-blue-50);color:var(--jc-blue);text-decoration:none}

/* Social in sidebar */
.jct-sidebar__social{display:flex;gap:10px}
.jct-sidebar__social-link{
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;background:var(--jc-blue-50);color:var(--jc-blue);
  border-radius:var(--jc-radius);transition:all .15s;
}
.jct-sidebar__social-link:hover{background:var(--jc-blue);color:#fff;text-decoration:none}

/* ============================================================
   RESPONSIVE — Mobile Optimizations
   ============================================================ */

/* Tablet and below */
@media(max-width:991px){
  .jct-layout{grid-template-columns:1fr !important}
  .jct-aside{order:2}
  .jct-news-layout{grid-template-columns:1fr}
  .jct-news-sidebar{order:2}
  .jct-page-layout{grid-template-columns:1fr}
  .jct-home-layout{grid-template-columns:1fr}
  .jct-list-layout{grid-template-columns:1fr}
}

/* Mobile */
@media(max-width:767px){
  /* Header */
  .jct-header__row{flex-wrap:wrap}
  .jct-logo{flex:1;min-width:0}
  .jct-logo__title{font-size:16px}
  .jct-logo__icon svg{width:36px;height:36px}
  .jct-topbar .jct-wrap{flex-direction:column;gap:6px}
  .jct-topbar__links{justify-content:center}
  .jct-topbar__right{justify-content:center}

  /* Navigation */
  .jct-nav__item a{padding:12px 14px;font-size:14px}

  /* Content area */
  .jct-content{padding:12px 0}
  .jct-wrap{padding:0 12px}

  /* Article cards — full width image on mobile */
  .jct-news-card{flex-direction:column;gap:10px}
  .jct-news-card__img{width:100%;min-height:180px;max-height:220px}
  .jct-news-card__title{font-size:15px}
  .jct-news-card__desc,.jct-news-card__text{-webkit-line-clamp:2}
  .jct-news-card__meta{font-size:11px;gap:8px}

  /* Article page */
  .jct-article{padding:14px}
  .jct-article__title{font-size:18px}
  .jct-article__body{font-size:14px}

  /* Cards */
  .jct-card{margin-bottom:12px}
  .jct-card__hd{padding:8px 12px;font-size:12px}
  .jct-card__bd{padding:10px 12px}

  /* Admin panel */
  .jct-admin-panel{flex-direction:column;gap:8px;padding:10px 12px}
  .jct-admin-panel__title{font-size:13px}
  .jct-admin-panel__actions{width:100%}
  .jct-admin-panel__actions a,.jct-admin-panel__actions button{font-size:11px;padding:4px 10px}

  /* Profile page */
  .jct-profile__header{flex-direction:column;text-align:center;padding:16px}
  .jct-profile__meta{justify-content:center}
  .jct-profile__avatar{width:72px;height:72px}
  .jct-profile__avatar-ph{font-size:1.5em}
  .jct-profile__grid{grid-template-columns:1fr !important}
  .jct-pfield__pass-row{flex-direction:column;gap:10px}
  .jct-profile__actions{text-align:center}

  /* Sidebar widgets on mobile */
  .jct-news-sidebar{gap:12px}
  .jct-sidebar__ad-banner{padding:14px}
  .jct-sidebar__ad-title{font-size:14px}
  .jct-sidebar__ad-text{font-size:12px}

  /* Pagination */
  .jct-pager__links{flex-wrap:wrap;gap:4px}
  .jct-pager__links a,.jct-pager__links span{min-width:28px;height:28px;font-size:12px;padding:0 6px}

  /* Footer */
  .jct-footer__main{padding:20px 0}
  .jct-footer__grid{grid-template-columns:1fr;gap:20px}
  .jct-footer__hd{font-size:13px}
  .jct-footer__txt{font-size:12px}
  .jct-footer__list a{font-size:12px}
  .jct-footer__btm{padding:10px 0}

  /* Featured news grid */
  .jct-news-grid{grid-template-columns:1fr !important;padding:12px}
  .jct-featured__hd{padding:8px 12px}
  .jct-featured__title{font-size:14px}

  /* Lists */
  .jct-list{padding:14px}
  .jct-list__item-title{font-size:14px}
  .jct-list__item-desc,.jct-list__item-text{font-size:12px}

  /* Message / Error pages */
  .jct-msg__card{padding:20px}
  .jct-msg__title{font-size:18px}
  .jct-auth{padding:16px;margin:0 12px}

  /* Buttons — ensure 44px touch targets */
  .jct-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .jct-nav__item a{min-height:44px;display:flex;align-items:center}

  /* Prevent horizontal overflow */
  img{max-width:100%;height:auto}
  table{width:100%;overflow-x:auto;display:block}
  pre{overflow-x:auto}

  /* Breadcrumbs */
  .jct-bc{font-size:11px;overflow-x:auto;white-space:nowrap;padding-bottom:4px}

  /* Recent grid */
  .jct-recent__grid{grid-template-columns:1fr !important;padding:12px}
}

/* Very small screens */
@media(max-width:400px){
  .jct-logo__title{font-size:14px}
  .jct-logo__sub{display:none}
  .jct-news-card__img{min-height:160px;max-height:180px}
  .jct-news-card__title{font-size:14px}
  .jct-footer__grid{gap:16px}
  .jct-sidebar__popular-item{padding:8px 0}
  .jct-sidebar__popular-title{font-size:12px}
}

/* Touch device optimizations */
@media(hover:none) and (pointer:coarse){
  .jct-btn{min-height:48px}
  .jct-nav__item a{min-height:48px}
  .jct-sidebar__popular-item:hover{background:transparent;margin:0;padding:10px 0}
  .jct-sidebar__cats li a:hover{background:transparent}
}

/* Landscape mobile */
@media(max-width:767px) and (orientation:landscape){
  .jct-news-card__img{min-height:140px;max-height:160px}
}

/* Safe area for notched phones */
@supports(padding:max(0px)){
  .jct-topbar,.jct-header,.jct-nav,.jct-content,.jct-footer{
    padding-left:max(12px, env(safe-area-inset-left));
    padding-right:max(12px, env(safe-area-inset-right));
  }
  .jct-footer__btm{
    padding-bottom:max(10px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   FEEO-STYLE NEWS CARDS (homepage + categories)
   ============================================================ */
.jct-feo-card{
  display:flex;flex-direction:column;
  background:var(--jc-surface);border:1px solid var(--jc-border-light);
  border-radius:10px;overflow:hidden;text-decoration:none;color:var(--jc-text);
  transition:box-shadow .2s;
}
.jct-feo-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.07);text-decoration:none}

.jct-feo-card__img{
  width:100%;padding-top:62%;position:relative;overflow:hidden;
  background:var(--jc-blue-50);
}
.jct-feo-card__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.jct-feo-card__ph{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:var(--jc-blue-100);
}

.jct-feo-card__body{padding:14px 16px 0;flex:1}
.jct-feo-card__title{
  font-size:15px;font-weight:700;line-height:1.4;color:var(--jc-text);
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
}

.jct-feo-card__footer{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;margin-top:auto;
}
.jct-feo-card__date{font-size:13px;color:var(--jc-text-muted)}
.jct-feo-card__arrow{
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  color:var(--jc-text-muted);border-radius:50%;transition:all .15s;
}
.jct-feo-card:hover .jct-feo-card__arrow{color:var(--jc-blue);transform:translateX(3px)}

.jct-feo-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
@media(max-width:991px){
  .jct-feo-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:575px){
  .jct-feo-grid{grid-template-columns:1fr}
  .jct-feo-card__img{padding-top:60%}
}

/* ============================================================
   RECENT UPDATES GRID
   ============================================================ */
.jct-recent-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;
}
.jct-recent-item{
  display:flex;flex-direction:column;gap:6px;
  padding:14px 16px;background:var(--jc-surface);
  border:1px solid var(--jc-border-light);border-radius:var(--jc-radius);
  text-decoration:none;color:var(--jc-text);
  transition:box-shadow .15s,border-color .15s;
}
.jct-recent-item:hover{box-shadow:var(--jc-shadow-md);border-color:var(--jc-blue-100);text-decoration:none}
.jct-recent-item__date{font-size:12px;color:var(--jc-text-muted)}
.jct-recent-item__title{font-size:14px;font-weight:600;line-height:1.35;color:var(--jc-text);flex:1}
.jct-recent-item--empty{color:var(--jc-text-muted);font-size:13px;text-align:center;justify-content:center}
@media(max-width:767px){
  .jct-recent-grid{grid-template-columns:1fr}
}

article.jct-feo-card { position: relative; }
.jct-feo-card__link::after { content: ""; position: absolute; inset: 0; }
.jct-feo-card__footer { gap: 8px; justify-content: flex-end; }
.jct-feo-card__date { margin-right: auto; }
.jct-feo-card__delete {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 8px;
  color: #a12a37;
}
.jct-feo-card__delete:hover, .jct-feo-card__delete:focus-visible {
  background: #fff0f1;
  color: #8b1c2b;
}
#confirmBox.jqmWindow { margin: 0 !important; }
.jqmWindow .jct-message { margin: 0; }
.jqmWindow .jct-message__card { box-shadow: none; margin: 0; padding: 0; }

/* User directory */
.jct-members { display: grid; gap: 20px; padding: 8px 0 40px; }
.jct-members__header h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; }
.jct-members__scope { margin-top: 5px; color: var(--jc-text-sec); }
.jct-members__filters, .jct-members__results {
  border: 1px solid var(--jc-border);
  border-radius: 18px;
  background: var(--jc-surface);
  box-shadow: 0 5px 18px rgb(26 26 46 / 5%);
}
.jct-members__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  align-items: end;
  gap: 14px 18px;
  padding: clamp(16px, 3vw, 24px);
}
.jct-members__field { display: grid; min-width: 0; gap: 5px; font-weight: 600; font-size: 13px; }
.jct-members__field :is(input, select) { width: 100%; min-height: 42px; border-radius: 10px; font-weight: 400; }
.jct-members__field select {
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%235f6368' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
.jct-members__field :is(input, select):focus-visible {
  outline: 2px solid var(--jc-blue);
  outline-offset: 2px;
}
.jct-members__filter-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jct-members__filter-actions .jct-btn, .jct-members__order { min-height: 42px; border-radius: 10px; }
.jct-members__order {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  background: var(--jc-blue-50);
  font-size: 20px;
  text-decoration: none;
}
.jct-members__count, .jct-members__empty { padding: 16px 22px; color: var(--jc-text-sec); }
.jct-members__count strong { color: var(--jc-text); }
.jct-members__scroll { overflow: auto; }
.jct-members__table { width: 100%; border-collapse: collapse; min-width: 530px; text-align: left; }
.jct-members__table :is(th, td) { padding: 12px 20px; border-top: 1px solid var(--jc-border-light); }
.jct-members__table th { background: #f7f9fc; color: var(--jc-text-sec); font-size: 13px; }
.jct-members__table tbody tr:hover { background: #f8fbff; }
.jct-members__identity, .jct-members__country { display: flex; align-items: center; gap: 8px; }
.jct-members__identity { gap: 12px; font-weight: 650; }
.jct-members__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--jc-blue-50);
  color: var(--jc-blue-dark);
  text-transform: uppercase;
}
.jct-members__group { display: inline-block; border-radius: 999px; background: var(--jc-blue-50); padding: 4px 10px; font-size: 12px; }
.jct-members__date { white-space: nowrap; color: var(--jc-text-sec); }
.jct-members__pagination { padding: 12px 20px; }

.jct-members { grid-template-columns: minmax(0, 1fr); }
.jct-members__filter-actions { grid-column: span 2; }
@media (max-width: 520px) {
  .jct-members__filter-actions { grid-column: auto; }
}
.jct-feo-card__views {
  color: var(--jc-text-sec);
  font-size: 12px;
  white-space: nowrap;
}

/* Photo archive on the home page */
body:has(.history-home){background:#f4f2ec;color:#132c40}
body:has(.history-home) :is(.jct-topbar,.jct-header,.jct-nav,.jct-footer){display:none}
.jct-content:has(.history-home){padding:0;flex:1}
.jct-wrap:has(> .jct-main > .history-home){max-width:1390px;padding:0 38px}
.history-home{--ink:#16344a;--blue:#245a78;--soft:#f9f8f3;color:var(--ink);font-family:system-ui,-apple-system,sans-serif}
.history-home a{text-decoration:none}
.history-header{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid #deded5}
.history-brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:14px;line-height:1.16;letter-spacing:.01em}.history-brand b{font-weight:750}.history-brand__mark{display:grid;place-items:center;width:45px;height:45px;border-radius:15px;background:#275a76;color:#fff;font-family:Georgia,serif;font-size:27px;font-weight:400;box-shadow:0 6px 15px #1d4c7024}
.history-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.history-nav a{color:#5d7180;font-size:13px;font-weight:650;padding:10px 14px;border-radius:30px}.history-nav a:hover,.history-nav .is-current{background:#fff;color:#245a78;box-shadow:0 4px 16px #233c4b12}
.history-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:42px 0 29px}.history-kicker{display:inline-flex;align-items:center;gap:8px;color:#718a94;font-size:10px;letter-spacing:.16em;font-weight:750}.history-kicker span{width:23px;height:1px;background:#78a3b4}.history-intro h1{font-family:Georgia,serif;letter-spacing:-.045em;line-height:1.03;font-size:clamp(42px,5vw,68px);margin:14px 0 12px;font-weight:500;color:var(--ink)}.history-intro h1 em{font-weight:400;color:#53839a}.history-intro p,.history-gallery__heading p{color:#74858d;font-size:14px;margin:0}.history-intro__count{color:#83939a;font-size:12px;line-height:1.5;text-align:right;padding-bottom:5px}.history-intro__count span{display:block;color:#315d73;font:32px Georgia,serif}
.history-feature{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(200px,.8fr);gap:20px;align-items:stretch}.history-feature__photo{position:relative;min-height:440px;border:7px solid #fff;overflow:hidden;border-radius:53px 122px 46px 78px / 65px 100px 71px 79px;box-shadow:0 18px 36px #31423e1a}.history-feature__photo>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.history-feature__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,39,53,.78),rgba(13,39,53,.1) 75%)}.history-feature__text{position:relative;z-index:1;padding:70px 8%;color:white}.history-feature__text>span,.history-feature__number{font-size:10px;letter-spacing:.19em;font-weight:700}.history-feature__text h2{font:clamp(42px,5.2vw,70px)/1.05 Georgia,serif;letter-spacing:-.04em;margin:17px 0}.history-feature__text p{font-size:14px;color:#eef4f1}.history-feature__text a{display:inline-flex;align-items:center;gap:25px;padding:12px 17px;margin-top:30px;color:#17394e;background:white;border-radius:24px;font-size:13px;font-weight:700;box-shadow:0 5px 16px #192f4033}.history-feature__text a:hover{background:#e9f4f7}.history-feature__number{position:absolute;right:36px;bottom:31px;color:white;z-index:1}.history-feature__aside{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;background:#e4edf0;border:7px solid #fff;border-radius:65px 29px 65px 29px;padding:28px 25px;box-shadow:0 12px 26px #31423e12}.history-feature__star{color:#e4ad62;font-size:32px;line-height:1}.history-feature__aside>p{font:clamp(25px,2.6vw,38px)/1.2 Georgia,serif;letter-spacing:-.03em}.history-feature__aside>p em{color:#6694a7}.history-feature__aside div{border-top:1px solid #c6d6db;padding-top:18px;width:100%;font-size:12px;color:#67808b}.history-feature__aside div>span{font-size:10px;letter-spacing:.14em;color:#477487;font-weight:700}.history-feature__aside div p{margin:8px 0 0}.history-feature__aside>a{position:absolute;bottom:25px;right:23px;display:grid;place-items:center;border-radius:50%;width:37px;height:37px;background:#fff;color:#215775;font-size:21px}
.history-gallery{padding:65px 0 35px}.history-gallery__heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:25px}.history-gallery__heading h2{font:clamp(30px,3.3vw,43px)/1.1 Georgia,serif;letter-spacing:-.035em;margin:10px 0}.history-gallery__total{font-size:12px;color:#698592;background:#e4eef0;border-radius:30px;padding:9px 14px;white-space:nowrap}.history-gallery__grid{columns:4;column-gap:17px}.history-gallery__item{display:inline-block;vertical-align:top;break-inside:avoid;width:100%;margin:0 0 17px;padding:6px;background:#fff;border-radius:19px;box-shadow:0 7px 20px #213f4c12;color:#29475a;transition:transform .2s,box-shadow .2s}.history-gallery__item:hover{transform:translateY(-3px);box-shadow:0 12px 25px #213f4c24}.history-gallery__item img{display:block;width:100%;height:auto;border-radius:14px}.history-gallery__item>span{display:flex;justify-content:space-between;align-items:center;padding:11px 8px 7px;font-size:12px;font-weight:650}.history-gallery__item>span span{color:#78a1b1;font-size:16px}.history-bottom{display:flex;justify-content:space-between;border-top:1px solid #deded5;padding:25px 0 40px;color:#7a8e96;font-size:12px}.history-bottom a{color:#376980;font-weight:700}
.history-lightbox{max-width:100vw;max-height:100vh;width:100%;height:100%;margin:auto;padding:60px 70px;border:0;background:rgba(12,26,35,.94);color:#fff}.history-lightbox::backdrop{background:#0b1821e8}.history-lightbox[open]{display:flex;align-items:center;justify-content:center}.history-lightbox figure{max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:12px}.history-lightbox figure img{max-width:100%;max-height:calc(100vh - 150px);object-fit:contain;border-radius:8px}.history-lightbox figcaption{font-size:13px;color:#c9d9dd}.history-lightbox button{position:absolute;display:grid;place-items:center;width:46px;height:46px;border:1px solid #ffffff4a;border-radius:50%;background:#ffffff1a;color:#fff;cursor:pointer;font-size:32px;line-height:1}.history-lightbox button:hover{background:#ffffff33}.history-lightbox__close{top:22px;right:25px}.history-lightbox__prev{left:18px;top:50%}.history-lightbox__next{right:18px;top:50%}
@media(max-width:850px){.jct-wrap:has(> .jct-main > .history-home){padding:0 24px}.history-feature{grid-template-columns:minmax(0,2fr) minmax(165px,.8fr)}.history-feature__photo{min-height:370px}.history-gallery__grid{columns:3}.history-feature__aside{padding:22px 18px}.history-nav{gap:0}.history-nav a{padding:9px}}
@media(max-width:600px){.jct-wrap:has(> .jct-main > .history-home){padding:0 16px}.history-header{padding:17px 0;min-height:0;align-items:flex-start;flex-direction:column;gap:14px}.history-nav{justify-content:flex-start}.history-nav a{font-size:12px;padding:8px 10px}.history-intro{padding:33px 0 23px}.history-intro__count{display:none}.history-feature{grid-template-columns:1fr}.history-feature__photo{min-height:360px;border-radius:40px 72px 35px 55px}.history-feature__text{padding:55px 8%}.history-feature__aside{min-height:170px;border-radius:38px 24px 38px 24px}.history-feature__aside>p{margin:8px 0}.history-feature__aside div{padding-top:10px}.history-feature__star{position:absolute;right:28px;top:23px}.history-gallery{padding-top:46px}.history-gallery__grid{columns:2;column-gap:10px}.history-gallery__item{margin-bottom:10px}.history-gallery__item>span{font-size:11px}.history-lightbox{padding:60px 45px}.history-lightbox__prev{left:3px}.history-lightbox__next{right:3px}.history-lightbox button{width:38px;height:38px}}
.history-home .history-intro{padding:34px 0 18px;display:block}
.history-home .history-notice{max-width:900px;margin:0;color:#506a77;font-size:15px;line-height:1.7}
.history-home .history-gallery{padding:12px 0 34px}
.history-home .history-gallery__item{padding:5px}
@media(max-width:600px){.history-home .history-intro{padding:24px 0 14px}.history-home .history-notice{font-size:14px}.history-home .history-gallery{padding-top:8px}}
.history-home .history-intro{padding:22px 0}
.history-home .history-notice{max-width:none;padding:17px 20px;border:1px solid #d4e3e8;border-radius:16px;background:#fff;box-shadow:0 6px 18px #213f4c0b;color:#405c6b}
.history-feature--full{display:block;width:calc(100% + 76px);margin:0 -38px}
.history-feature--full .history-feature__photo{min-height:min(74vh,720px);border-width:7px;border-radius:44px;box-shadow:0 16px 35px #31423e1a}
.history-feature--full .history-feature__shade{background:linear-gradient(90deg,rgba(13,39,53,.65),rgba(13,39,53,.05) 75%)}
.history-feature--full .history-feature__text{display:flex;align-items:flex-end;min-height:min(74vh,720px);padding:55px 6%}
.history-feature--full h1{color:white;font:clamp(38px,5.5vw,76px)/1.07 Georgia,serif;letter-spacing:-.04em;text-shadow:0 2px 16px #10233366;margin:0}
.history-home .history-gallery{padding-top:28px}
@media(max-width:850px){.history-feature--full{width:calc(100% + 48px);margin:0 -24px}}
@media(max-width:600px){.history-feature--full{width:calc(100% + 32px);margin:0 -16px}.history-feature--full .history-feature__photo,.history-feature--full .history-feature__text{min-height:55vh}.history-feature--full .history-feature__photo{border-width:5px;border-radius:30px}.history-feature--full .history-feature__text{padding:30px 7%}.history-home .history-intro{padding:18px 0}.history-home .history-notice{padding:14px 16px}}

/* Compact photo presentation */
.history-gallery__grid{column-gap:2px}
.history-gallery__item{padding:0;margin:0 0 2px;border:0;border-radius:6px;box-shadow:none;overflow:hidden}
.history-gallery__item img{border-radius:6px}
.history-feature--full .history-feature__photo{border:0;border-radius:8px;box-shadow:none}
.jct-feo-grid,.jct-news-feo__grid,.jct-related__grid{gap:2px}
.jct-feo-card,.jct-related__card{border:0;border-radius:6px;box-shadow:none}
.jct-feo-card__body{padding:10px 11px 0}
.jct-feo-card__footer{padding:8px 11px;margin-top:8px}
.jct-news-layout{gap:10px}
.jct-article,.jct-card,.jct-company-contact,.jct-company-notice{border-radius:7px}
.jct-article{padding:18px}
.jct-content{padding-top:12px}
.jct-related{margin-top:18px;padding-top:14px}
@media(max-width:600px){.history-gallery__grid{column-gap:2px}.history-gallery__item{margin-bottom:2px}.history-feature--full .history-feature__photo{border:0;border-radius:6px}.jct-article{padding:12px}}
/* Shared public header and quiet footer */
.jct-unified-header{background:#f4f2ec}
.jct-unified-header .jct-wrap{max-width:1390px;padding:0 38px}
.jct-unified-header .history-header{--ink:#16344a}
.jct-unified-header a{text-decoration:none}
.jct-footer--simple,body:has(.history-home) .jct-footer--simple{display:block;background:#f4f2ec;color:#74858d;padding:22px 0;border-top:1px solid #deded5;font-size:13px}
.jct-footer--simple .jct-wrap{max-width:1390px;padding:0 38px}
@media(max-width:850px){.jct-unified-header .jct-wrap,.jct-footer--simple .jct-wrap{padding:0 24px}}
@media(max-width:600px){.jct-unified-header .jct-wrap,.jct-footer--simple .jct-wrap{padding:0 16px}}
/* Full-width news category, with comfortable spacing between cards. */
.jct-news-layout--news{grid-template-columns:minmax(0,1fr)}
.jct-news-layout--news .jct-feo-grid{gap:10px}
@media(min-width:992px){.jct-news-layout--news .jct-feo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
