:root {
  --ekg-accent: rgb(216, 119, 22);
  --ekg-accent-dark: rgb(180, 95, 14);
}

a {
  color: var(--ekg-accent);
}

a:hover,
a:focus {
  color: var(--ekg-accent-dark);
}

#header a.active,
#header .dropmenu ul li a:hover,
#header .dropmenu ul li a:focus {
  color: var(--ekg-accent) !important;
}

body.header-fixed #header,
#header {
  z-index: 500;
}

#header .dropmenu ul ul {
  z-index: 600;
}

.mobile-menu .button_container span {
  background: var(--ekg-accent);
}

.ekg-footer {
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  padding: 0;
}

.ekg-footer-top {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(200px, 1fr) minmax(340px, 1.8fr);
  gap: 0;
  overflow: hidden;
}

.ekg-footer-left,
.ekg-footer-links {
  background: #efefef;
  padding: 2.6rem 2rem;
}

.ekg-footer-contact {
  background: #284b7a;
  color: #fff;
  padding: 2.6rem 2.4rem;
}


.ekg-footer h4 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ekg-footer-contact h4 {
  color: #fff;
}

.ekg-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ekg-footer-links li {
  margin: 0.4rem 0;
}

.ekg-footer-links a {
  color: #222;
  text-decoration: none;
}

.ekg-footer-links a:hover {
  text-decoration: underline;
}

.ekg-footer-contact a {
  color: #fff;
}

.ekg-footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
}

.ekg-footer-contact-grid p {
  margin: 0 0 0.95rem;
}

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

  .ekg-footer-left,
  .ekg-footer-links,
  .ekg-footer-contact {
    padding: 1.4rem 1.2rem;
  }
}

.ekg-home-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  margin-bottom: 2rem;
  background: #1f3f6f;
  box-shadow: 0 16px 30px rgba(15, 27, 45, 0.18);
}

.ekg-home-hero-media {
  position: absolute;
  inset: 0 0 0 34%;
}

.ekg-home-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11, 31, 60, 0.06), rgba(11, 31, 60, 0.5));
  z-index: 1;
}

.ekg-home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ekg-home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(46%, 560px);
  min-height: 420px;
  padding: 2.1rem 2.1rem 2.4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #284b7a;
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0% 100%);
}

.ekg-home-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ekg-accent);
  font-weight: 700;
}

.ekg-home-hero-copy h1 {
  margin: 0;
  color: #fff;
  line-height: 1.07;
  font-size: clamp(1.85rem, 3.25vw, 3.2rem);
}

.ekg-home-quicklinks {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1;
  width: min(300px, 34%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 216, 230, 0.9);
  border-radius: 10px;
  padding: 0.95rem;
  backdrop-filter: blur(4px);
}

.ekg-home-quicklinks h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ekg-home-quicklinks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

.ekg-home-quicklinks a {
  display: block;
  padding: 0.52rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: #20344f;
  background: #fff;
  border: 1px solid #dce3ef;
  font-weight: 600;
}

.ekg-home-quicklinks a:hover {
  background: #2f5e96;
  color: #fff;
  border-color: #2f5e96;
}

@media (max-width: 980px) {
  .ekg-home-hero {
    min-height: 0;
  }

  .ekg-home-hero-media {
    position: relative;
    inset: auto;
    height: 260px;
  }

  .ekg-home-hero-copy {
    width: 100%;
    min-height: 0;
    clip-path: none;
    padding: 1.2rem;
  }

  .ekg-home-quicklinks {
    position: static;
    width: 100%;
    border-radius: 0 0 10px 10px;
    border-top: 0;
  }
}

@media (max-width: 840px) {
  .mobile-menu {
    display: block !important;
    z-index: 700;
  }

  .mobile-menu .button_container {
    z-index: 710;
  }

  .overlay {
    z-index: 705;
  }
}

.ekg-home-news {
  margin: 2rem 0 2.2rem;
}

.ekg-admission {
  margin: 1.1rem 0 1.4rem;
  background: #dfe4ec;
  border: 1px solid #d3dae5;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  padding: 1.35rem;
}

.ekg-admission-copy h2 {
  margin: 0.1rem 0 0.65rem;
}

.ekg-admission-kicker {
  margin: 0;
  font-size: 0.98rem;
  color: #3d4a5e;
}

.ekg-admission-copy p {
  margin: 0 0 0.85rem;
  color: #354254;
  max-width: 52ch;
}

.ekg-admission-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ekg-admission-btn {
  display: inline-block;
  background: var(--ekg-accent);
  color: #fff !important;
  border: 1px solid var(--ekg-accent);
  border-radius: 7px;
  padding: 0.54rem 0.88rem;
  text-decoration: none;
  font-weight: 700;
}

.ekg-admission-btn:hover,
.ekg-admission-btn:focus {
  background: var(--ekg-accent-dark);
  border-color: var(--ekg-accent-dark);
  color: #fff !important;
  text-decoration: none;
}

.ekg-admission-btn-secondary {
  background: #ffffff;
  color: #243247 !important;
  border-color: #cdd6e3;
}

.ekg-admission-btn-secondary:hover,
.ekg-admission-btn-secondary:focus {
  background: #eef2f8;
  border-color: #bdc8da;
  color: #243247 !important;
}

.ekg-admission-media {
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
}

.ekg-admission-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ekg-home-news > h2 {
  margin: 0 0 1rem;
}

.ekg-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ekg-news-card {
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(20, 34, 53, 0.08);
}

.ekg-news-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ekg-news-card-link:hover {
  text-decoration: none;
}

.ekg-news-media {
  aspect-ratio: 16 / 9;
  background: #dce6f3;
}

.ekg-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ekg-news-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2a4b77;
  background: linear-gradient(135deg, #cdd8ea, #e8eef8);
}

.ekg-news-body {
  padding: 0.9rem 0.95rem 1rem;
}

.ekg-news-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  line-height: 1.25;
}

.ekg-news-body p {
  margin: 0;
  color: #4f5b6d;
  font-size: 0.94rem;
  line-height: 1.4;
}

.ekg-news-date {
  margin-top: 0.7rem !important;
  padding-top: 0.55rem;
  border-top: 1px solid #e0e6ef;
  color: #7f8da3 !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
}

.ekg-home .ekg-news-body h3 {
  font-size: 0.9rem;
}

.ekg-home .ekg-news-body p {
  font-size: 0.8rem;
}

.ekg-news-actions {
  margin: 1rem 0 0;
  text-align: right;
}

.ekg-news-more-wrap {
  margin: 1.1rem 0 0;
  text-align: right;
}

.ekg-news-button {
  display: inline-block;
  background: var(--ekg-accent);
  color: #fff !important;
  border: 1px solid var(--ekg-accent);
  border-radius: 7px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.ekg-news-button:hover,
.ekg-news-button:focus {
  background: var(--ekg-accent-dark);
  border-color: var(--ekg-accent-dark);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .ekg-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ekg-admission {
    grid-template-columns: 1fr;
  }

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

  .ekg-news-actions {
    text-align: left;
  }
}

.ekg-article-gallery {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f2;
}

.ekg-article-gallery h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.ekg-article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.ekg-article-gallery-grid a {
  display: block;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ekg-article-gallery-grid a:hover {
  border-color: #b8c6dc;
}

.ekg-article-gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.ekg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 24, 0.82);
  display: grid;
  place-items: center;
  z-index: 1200;
  padding: 2rem;
}

.ekg-lightbox[hidden] {
  display: none;
}

.ekg-lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.ekg-lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

.ekg-lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .ekg-article-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ekg-article-gallery-grid {
    grid-template-columns: 1fr;
  }

  .ekg-article-gallery-grid img {
    height: auto;
  }
}
