*{margin:0;padding:0;box-sizing:border-box;font-family:Arial}

body{background:#f4f8fc;}

.container{
width:90%;
max-width:1200px;
margin:auto;
}


/* HEADER */

.header{
      background:#fff;
      position:sticky;
      top:0;
      z-index:9999;
      box-shadow:0 5px 20px rgba(0,0,0,.08);
    }

    .nav{
      display:flex;
      justify-content:space-between;
      align-items:center;
      min-height:80px;
      gap:20px;
    }

    .site-logo{
      display:inline-flex;
      align-items:center;
      gap:12px;
      text-decoration:none;
    }

    .logo-mark{
      width:52px;
      height:52px;
      border-radius:16px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:linear-gradient(135deg,#1b79d1,#0f4c81);
      color:#fff;
      font-size:20px;
      font-weight:800;
      letter-spacing:1px;
      box-shadow:0 10px 24px rgba(27,121,209,.28);
      transition:.3s ease;
    }

    .logo-text{
      display:flex;
      flex-direction:column;
      line-height:1.1;
    }

    .logo-text strong{
      font-size:20px;
      color:#123b67;
      font-weight:800;
    }

    .logo-text small{
      font-size:12px;
      color:#6b7b8c;
      margin-top:4px;
      letter-spacing:.3px;
    }

    .site-logo:hover .logo-mark{
      transform:translateY(-2px) scale(1.04);
    }

    .site-logo:hover .logo-text strong{
      color:#1b79d1;
    }

    .menu ul{
      list-style:none;
      margin:0;
      padding:0;
    }

    .menu > ul{
      display:flex;
      gap:30px;
      align-items:center;
    }

    .menu a{
      text-decoration:none;
      font-weight:600;
      color:#0f4c81;
      padding:10px 0;
      display:block;
      transition:.3s;
    }

    .menu a:hover{
      color:#1b79d1;
    }

    .dropdown{
      position:relative;
    }

    .submenu{
      position:absolute;
      top:100%;
      left:0;
      background:#fff;
      min-width:220px;
      box-shadow:0 10px 25px rgba(0,0,0,.1);
      border-radius:8px;
      padding:10px 0;
      opacity:0;
      visibility:hidden;
      transform:translateY(10px);
      transition:.3s;
    }

    .submenu li{
      padding:0 15px;
    }

    .submenu a{
      color:#333;
      padding:8px 0;
    }

    .submenu a:hover{
      background:#f3f7fc;
      color:#1b79d1;
    }

    .dropdown:hover .submenu{
      opacity:1;
      visibility:visible;
      transform:translateY(0);
    }


/* HERO */

.hero{
background:linear-gradient(135deg,#0f4c81,#1b79d1);
color:white;
padding:80px 0;
text-align:center;
}

.hero h1{
font-size:44px;
margin-bottom:10px;
}

/* LAYOUT */

.layout{
display:grid;
grid-template-columns:2fr 1fr;
gap:30px;
margin-top:40px;
}

/* FEATURED */

.featured{
background:white;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.1);
margin-bottom:30px;
}

.featured img{
width:100%;
height:300px;
object-fit:cover;
}

.featured-content{
padding:25px;
}

.meta{
font-size:12px;
color:#888;
margin-bottom:10px;
}

/* GRID */

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

.card{
background:white;
border-radius:15px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,.05);
transition:.3s;
}

.card:hover{
transform:translateY(-8px);
}

.card img{
width:100%;
height:180px;
object-fit:cover;
}

.card-content{
padding:15px;
}

/* SIDEBAR */

.sidebar{
display:flex;
flex-direction:column;
gap:20px;
}

.widget{
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.widget h3{
margin-bottom:15px;
}

.widget ul{
list-style:none;
}

.widget ul li{
margin-bottom:10px;
font-size:14px;
}


/* footer */
.footer{
background:#0d2340;
color:#d5e3f3;
margin-top:80px;
}

.footer-top{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
padding:60px 0;
}

.footer-logo{
font-size:26px;
color:white;
margin-bottom:10px;
}

.footer-col h3{
color:white;
margin-bottom:15px;
}

.footer-col p{
font-size:14px;
line-height:1.6;
}

.footer-col ul{
list-style:none;
padding:0;
}

.footer-col ul li{
margin-bottom:10px;
}

.footer-col a{
color:#c9d8ea;
text-decoration:none;
transition:.3s;
}

.footer-col a:hover{
color:#1b79d1;
padding-left:5px;
}

.socials{
margin-top:15px;
display:flex;
gap:10px;
}

.socials a{
width:35px;
height:35px;
display:flex;
align-items:center;
justify-content:center;
background:#1b79d1;
border-radius:50%;
color:white;
transition:.3s;
}

.socials a:hover{
transform:translateY(-5px);
background:#0f4c81;
}

.footer-bottom{
border-top:1px solid rgba(255,255,255,.1);
text-align:center;
padding:15px;
font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){
.footer-top{
grid-template-columns:1fr 1fr;
}
}

@media(max-width:500px){
.footer-top{
grid-template-columns:1fr;
}
}

/* CATEGORY */

.categories{
display:flex;
gap:10px;
margin:30px 0;
flex-wrap:wrap;
}

.cat{
padding:8px 15px;
background:white;
border-radius:20px;
font-size:14px;
cursor:pointer;
box-shadow:0 5px 10px rgba(0,0,0,.05);
}

.cat:hover{
background:#1b79d1;
color:white;
}

/* RESPONSIVE */

@media(max-width:900px){
.layout{
grid-template-columns:1fr;
}

.news-grid{
grid-template-columns:1fr;
}
}



/* ─── PAGE RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid, .features-grid, .programs-grid,
  .news-grid, .footer-grid, .steps-grid, .benefits-grid,
  .cards-grid, .partners-grid, .docs-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .hero { padding: 70px 0 !important; min-height: auto !important; }
  .hero h1, .hero h2 { font-size: 30px !important; }
  .hero p { font-size: 16px !important; }
  .hero-badge { font-size: 12px; padding: 8px 12px; }
  .section-title h2 { font-size: 28px !important; }
  .cta h2 { font-size: 26px !important; }
  .cta { padding: 50px 20px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mobility-grid, .schedule-layout, .contact-grid,
  .two-col, .split-grid { grid-template-columns: 1fr !important; }
  .sidebar { position: static !important; }
}
@media (max-width: 560px) {
  .stats-grid, .features-grid, .programs-grid,
  .news-grid, .footer-grid, .steps-grid, .benefits-grid,
  .cards-grid, .partners-grid, .docs-grid, .team-grid {
    grid-template-columns: 1fr !important;
  }
  .container { width: 95% !important; }
  .hero h1, .hero h2 { font-size: 24px !important; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr !important; }
  section { padding: 60px 0 !important; }
  .timeline-line { left: 16px !important; transform: none !important; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100% !important; left: 0 !important;
    text-align: left !important; padding: 0 0 24px 44px !important;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { left: 6px !important; right: auto !important; }
}

/* ─── OVERFLOW / SCROLL FIX ──── */
html, body { overflow-x: hidden; max-width: 100%; }
* { max-width: 100%; }
img, video { max-width: 100%; height: auto; }
.schedule-layout { grid-template-columns: 1fr !important; }
@media (max-width: 1100px) {
  .schedule-layout { grid-template-columns: 1fr !important; }
  .sidebar { position: static !important; top: auto; }
}
@media (max-width: 768px) {
  .lesson { grid-template-columns: 1fr !important; }
  .room { align-items: flex-start !important; text-align: left !important; }
}

/* ─── PAGINATION ─── */
.pagination-wrap {
  padding: 48px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pg-btn {
  padding: 10px 22px;
  border: 1.5px solid #d1daf0;
  background: #fff;
  color: #0052cc;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  font-family: inherit;
}
.pg-btn:hover:not(:disabled) {
  background: #0052cc;
  color: #fff;
  border-color: #0052cc;
  transform: translateY(-1px);
}
.pg-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.pg-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pg-num {
  width: 40px;
  height: 40px;
  border: 1.5px solid #d1daf0;
  background: #fff;
  color: #2d3748;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.pg-num:hover {
  background: #e8f0fe;
  border-color: #0052cc;
  color: #0052cc;
}
.pg-num.active {
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: #fff;
  border-color: #0052cc;
  box-shadow: 0 3px 10px rgba(0,82,204,0.28);
}
.pg-ellipsis {
  color: #a0aec0;
  padding: 0 4px;
  font-size: 18px;
  line-height: 40px;
}
.pg-info {
  font-size: 13px;
  color: #718096;
}
@media (max-width: 540px) {
  .pg-btn { padding: 9px 14px; font-size: 13px; }
  .pg-num { width: 36px; height: 36px; font-size: 13px; }
}


/* News page refinements */
.news-page {
  padding-top: 34px;
  padding-bottom: 34px;
}

.news-page .layout,
.news-layout {
  align-items: start;
}

.news-main,
.news-sidebar,
.news-card,
.news-featured,
.news-article-card {
  min-width: 0;
}

.news-featured,
.news-article-card,
.news-card {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, .08);
  background: #fff;
}

.news-featured,
.news-article-card {
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(15, 76, 129, .12);
}

.news-featured-media,
.news-card-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #dcecff, #f5f9ff);
}

.news-featured-media { aspect-ratio: 16 / 7; }
.news-card-media { aspect-ratio: 16 / 10; }

.news-featured-media img,
.news-card-media img,
.news-article-card .news-featured-media img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-featured:hover .news-featured-media img,
.news-card:hover .news-card-media img {
  transform: scale(1.045);
}

.news-featured .featured-content,
.news-article-card .featured-content,
.news-card .card-content {
  min-width: 0;
}

.news-featured h2,
.news-article-card h2,
.news-card h3,
.news-card p,
.news-sidebar li,
.rich-text {
  overflow-wrap: anywhere;
}

.news-featured h2,
.news-article-card h2 {
  color: #123b67;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  margin-bottom: 12px;
}

.news-featured p,
.news-card p,
.rich-text {
  color: #51687d;
  line-height: 1.7;
}

.news-grid {
  align-items: stretch;
}

.news-card {
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(15, 76, 129, .09);
}

.news-card .card-content {
  padding: 20px;
}

.news-card h3 {
  color: #123b67;
  font-size: 19px;
  line-height: 1.32;
  margin: 8px 0 10px;
}

.news-sidebar .widget {
  border: 1px solid rgba(15, 76, 129, .08);
  box-shadow: 0 14px 36px rgba(15, 76, 129, .1);
}

.news-sidebar a {
  color: #17385d;
  text-decoration: none;
}

.news-sidebar a:hover { color: #1b79d1; }

.rich-text img,
.rich-text iframe,
.rich-text video {
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.rich-text img {
  height: auto;
  margin: 18px 0;
}

.news-page .pagination-wrap {
  padding: 56px 0 10px;
}

.news-page .pagination {
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(15, 76, 129, .08);
  box-shadow: 0 18px 44px rgba(15, 76, 129, .1);
  backdrop-filter: blur(10px);
}

.news-page .pg-btn,
.news-page .pg-num,
.news-page .pg-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  text-decoration: none;
}

.news-page .pg-btn {
  padding: 0 18px;
  border: 1px solid rgba(27, 121, 209, .18);
  background: #fff;
  color: #0f4c81;
  font-weight: 800;
}

.news-page .pg-btn:hover:not(.disabled) {
  background: #0f4c81;
  border-color: #0f4c81;
  color: #fff;
  transform: translateY(-1px);
}

.news-page .pg-btn.disabled {
  opacity: .42;
  cursor: not-allowed;
}

.news-page .pg-num {
  border: 1px solid rgba(27, 121, 209, .18);
  background: #f7fbff;
  color: #17385d;
  font-weight: 800;
}

.news-page .pg-num:hover {
  background: #e8f3ff;
  color: #0f4c81;
}

.news-page .pg-num.active {
  background: linear-gradient(135deg, #1b79d1, #0f4c81);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(27, 121, 209, .28);
}

.news-page .pg-ellipsis {
  color: #7d90a3;
  font-weight: 800;
}

.news-page .pg-info {
  color: #6d7f91;
  font-weight: 700;
}

@media (max-width: 900px) {
  .news-featured-media { aspect-ratio: 16 / 10; }
  .news-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .news-page { padding-top: 22px; }
  .news-page .pagination { width: 100%; }
  .news-page .pg-btn { flex: 1 1 120px; }
  .news-page .pg-numbers { order: 3; width: 100%; justify-content: center; }
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.news-detail-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #eef6ff;
  border: 1px solid rgba(15, 76, 129, .08);
}

.news-detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.news-detail-gallery-item:hover img {
  transform: scale(1.04);
}

/* Admin editable news content guard rails */
.rich-text,
.rich-text * {
  box-sizing: border-box;
}

.rich-text {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.rich-text :where(p, li, td, th, h1, h2, h3, h4, h5, h6, figcaption, blockquote, a) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-text :where(p, ul, ol, blockquote, figure, table, pre) + :where(p, ul, ol, blockquote, figure, table, pre) {
  margin-top: 16px;
}

.rich-text :where(ul, ol) {
  padding-left: 1.35rem;
}

.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }

.rich-text :where(div, section, article, aside, figure, table, pre, code) {
  min-width: 0;
}

.rich-text :where([style*="width" i]) {
  max-width: 100% !important;
}

.rich-text :where([style*="min-width" i]) {
  min-width: 0 !important;
}

.rich-text :where(img, video, canvas, svg, iframe, embed, object) {
  max-width: 100% !important;
}

.rich-text :where(img, video, canvas, svg) {
  height: auto !important;
}

.rich-text :where(iframe, embed, object) {
  width: 100% !important;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
  background: #eef4fb;
}

.rich-text figure.image,
.rich-text .image,
.rich-text .image_resized {
  max-width: 100% !important;
}

.rich-text figure.image img {
  width: 100%;
  height: auto;
}

.rich-text .image-style-side {
  float: right;
  width: min(44%, 420px) !important;
  margin: 0 0 18px 24px;
}

.rich-text table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
}

.rich-text table :where(th, td) {
  min-width: 120px;
}

.rich-text pre {
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  background: #0f2238;
  color: #eef6ff;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .rich-text .image-style-side {
    float: none;
    width: 100% !important;
    margin: 18px auto;
  }

  .rich-text :where(iframe, embed, object) {
    min-height: 220px;
  }
}

