/* ==========================================================
   ROOT VARIABLES & RESET
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1B3764;
  --navy-light:  #2a4f8f;
  --blue:        #1565C0;
  --blue-light:  #2196F3;
  --orange:      #E8821A;
  --orange-dk:   #C96C08;
  --green:       #28A745;
  --green-dk:    #1E7E34;
  --yellow:      #FFC107;
  --gray-bg:     #F4F6F9;
  --white:       #FFFFFF;
  --txt-dark:    #1a1a2e;
  --txt-mid:     #495057;
  --border:      #dee2e6;
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --shadow-h:    0 6px 24px rgba(0,0,0,.18);
  --radius:      8px;
}

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--txt-dark);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }
ul { list-style: none; }

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: inherit;
}

.logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--txt-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 8px 11px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-links a:hover { color: var(--navy); background: var(--gray-bg); }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 20px;
  transition: all .2s;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--navy); color: var(--white); }

.btn-get-involved {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 24px;
  letter-spacing: .4px;
  white-space: nowrap;
  transition: background .2s;
  display: inline-block;
  text-align: center;
}
.btn-get-involved:hover { background: var(--orange-dk); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 33vh;
  max-height: 40vh;
  background: var(--navy);
  background-image: url('content/background%20.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,55,100,.40);
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-title em { font-style: italic; font-weight: 400; }

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  letter-spacing: .4px;
}

.hero-img-wrap {
  flex: 1;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ==========================================================
   PROGRAMS GRID (Innovation Labs tiles)
   ========================================================== */
.programs {
  background: var(--white);
  margin-top: 18px;
}

.programs-section-header {
  background: var(--navy);
  padding: 26px 40px;
}
.programs-section-header h2 {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  max-width: 1200px;
  margin: 0 auto;
}

.programs-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 30px 20px;
}

.prog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }

.prog-img { height: 185px; overflow: hidden; }
.prog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.prog-card:hover .prog-img img { transform: scale(1.06); }

.prog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.prog-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}
.prog-title-row h3 {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .4px;
}
.prog-icon { font-size: 20px; }

/* Hover overlay for tiles */
.prog-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,55,100,0.88);
  color: var(--white);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
}
.prog-hover-overlay p {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}
.prog-card:hover .prog-hover-overlay { opacity: 1; }

/* ==========================================================
   ABOUT US + VIDEO
   ========================================================== */
.about-focus {
  padding: 42px 20px;
  background: var(--gray-bg);
}

.af-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.af-container--wide {
  grid-template-columns: 1.1fr 0.9fr;
}

.about-box, .focus-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow);
}

.about-video-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-video {
  width: 100%;
  border-radius: 6px;
  max-height: 360px;
  background: #000;
}

.af-heading {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.af-rule {
  height: 3px;
  width: 50px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 16px;
}

.about-sub {
  color: var(--txt-mid);
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-read-more {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 0px 24px;
  border-radius: 24px;
  letter-spacing: .4px;
  transition: background .2s;
}
.btn-read-more:hover { background: var(--navy-light); }

.about-expand { margin-top: 18px; }
.about-text { font-size: 14px; color: var(--txt-mid); line-height: 1.7; }

.focus-list {
  display: flex;
  flex-direction: column;
}
.focus-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
}
.focus-list li:last-child { border-bottom: none; }

.chk {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.chk-orange { color: var(--orange); }
.chk-yellow { color: var(--yellow); }

/* ==========================================================
   INCLUSIVE HUB (main page section)
   ========================================================== */
.inclusive-hub {
  background: var(--white);
  padding: 42px 20px;
}
.inclusive-hub .subpage-content {
  padding: 0;
}
.inclusive-hub .subpage-section {
  margin-bottom: 0;
}

/* ==========================================================
   INNOVATION LABS
   ========================================================== */
.labs { background: var(--gray-bg); }

.labs-header {
  position: relative;
  background: var(--navy);
  background-image: url('content/background%20.jpg');
  background-size: cover;
  background-position: center;
  padding: 26px 40px;
}
.labs-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(27,55,100,.88) 0%, rgba(80,50,160,.72) 100%);
}
.labs-header h2 {
  position: relative;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  max-width: 1200px;
  margin: 0 auto;
}

.labs-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 30px 20px;
}

.lab-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }

.lab-img { height: 160px; overflow: hidden; }
.lab-img img { width: 100%; height: 100%; object-fit: cover; }

.lab-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lab-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}
.lab-title-row h3 {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.lab-icon { font-size: 18px; }

.btn-expl {
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 28px;
  border-radius: 20px;
  letter-spacing: .8px;
  transition: filter .2s;
}
.btn-expl:hover { filter: brightness(.88); }

.btn-expl-orange { background: var(--orange); color: var(--white); }
.btn-expl-green  { background: var(--green);  color: var(--white); }
.btn-expl-blue   { background: var(--blue);   color: var(--white); }

/* ==========================================================
   ERASMUS+ & INTERNATIONAL PROJECTS
   ========================================================== */
.erasmus {
  background: var(--navy);
  overflow: hidden;
}

.erasmus-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 230px;
}

.erasmus-content {
  flex: 1.3;
  padding: 44px 60px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.erasmus-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
}

.erasmus-stats-row {
  display: flex;
  gap: 32px;
  align-items: center;
}

.estat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.estat-icon { font-size: 26px; }
.estat-item strong { font-size: 17px; display: block; }
.estat-item span { font-size: 13px; color: rgba(255,255,255,.75); }

.erasmus-big {
  display: flex;
  gap: 44px;
}
.ebig-item { display: flex; flex-direction: column; }
.ebig-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.ebig-lbl {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  margin-top: 4px;
}

.btn-view {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 26px;
  letter-spacing: .5px;
  align-self: flex-start;
  transition: background .2s;
}
.btn-view:hover { background: var(--orange-dk); }

.erasmus-photo {
  flex: 1;
  overflow: hidden;
}
.erasmus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   BOTTOM: PARTNER / EVENTS / NEWS
   ========================================================== */
.bottom-sec { background: var(--white); }

.bottom-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  min-height: 300px;
}

/* Partner column */
.partner-col {
  background: var(--navy);
  color: var(--white);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.partner-col h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .5px;
}

.partner-list { display: flex; flex-direction: column; gap: 18px; }
.partner-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
}
.p-icon {
  font-size: 22px;
  background: rgba(255,255,255,.14);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Events column */
.events-col {
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.events-img-wrap { height: 185px; overflow: hidden; }
.events-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.events-list {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.events-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-mid);
  cursor: pointer;
  transition: color .2s;
}
.events-list li:last-child { border-bottom: none; }
.events-list li:hover { color: var(--navy); }

/* News column */
.news-col {
  background: var(--navy);
  color: var(--white);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-col h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .5px;
}
.news-img-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
}
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.btn-footer {
  flex: 1;
  min-width: 180px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 17px 24px;
  border-radius: 32px;
  letter-spacing: .5px;
  transition: filter .2s;
  text-align: center;
  display: inline-block;
}
.btn-footer:hover { filter: brightness(.88); }

.btn-footer-orange { background: var(--orange); color: var(--white); }
.btn-footer-green  { background: var(--green);  color: var(--white); }
.btn-footer-navy   { background: var(--navy);   color: var(--white); }

.social-row { display: flex; gap: 12px; }
.soc-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: filter .2s;
}
.soc-btn:hover { filter: brightness(.82); }

.soc-fb { background: #1877f2; }
.soc-em { background: var(--orange); }
.soc-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.soc-li { background: #0077b5; }

.footer-copy {
  font-size: 12px;
  color: var(--txt-mid);
  text-align: center;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .news-col { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.14);
    z-index: 999;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }

  /* Hero */
  .hero { min-height: 28vh; max-height: none; }
  .hero-content { padding: 28px 24px; max-width: 100%; }
  .hero-title { font-size: 24px; }

  /* About */
  .af-container, .af-container--wide { grid-template-columns: 1fr; }

  /* Bottom */
  .bottom-grid { grid-template-columns: 1fr; }
  .news-col { grid-column: span 1; }
}

@media (max-width: 540px) {
  .programs-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 20px; }
  .btn-footer { min-width: 140px; }
}

/* ==========================================================
   SUBPAGE STYLES
   ========================================================== */

/* Sub-page hero banner */
.subpage-hero {
  position: relative;
  background: var(--navy);
  background-image: url('content/background%20.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 40px 50px;
  text-align: center;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(27,55,100,.88) 0%, rgba(80,50,160,.72) 100%);
}
.subpage-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px;
}
.subpage-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  margin-top: 10px;
}

/* Subpage content area */
.subpage-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px;
}

.subpage-section {
  margin-bottom: 50px;
}

.subpage-section h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}

.subpage-section p, .subpage-section li {
  font-size: 15px;
  color: var(--txt-mid);
  line-height: 1.75;
}

.subpage-section ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 10px;
}

.subpage-section ul li {
  margin-bottom: 8px;
}

/* Two-column layout for subpages */
.subpage-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.subpage-two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Card grid for subpages */
.subpage-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.subpage-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.subpage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }

.subpage-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.subpage-card-body {
  padding: 20px;
}

.subpage-card-body h3 {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}

.subpage-card-body p {
  font-size: 13.5px;
  color: var(--txt-mid);
  line-height: 1.65;
}

/* Contact / form section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 14px;
  color: var(--txt-mid);
}

.contact-info-item a:hover { color: var(--navy); text-decoration: underline; }

/* CTA box */
.cta-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}

.cta-box h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--white);
  border: none;
  display: block;
  padding: 0;
}

.cta-box p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
  line-height: 1.7;
}

.btn-cta {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 28px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
}
.btn-cta:hover { background: var(--orange-dk); }

/* Active nav link for current page */
.nav-links a.active, .nav-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--gray-bg);
}

@media (max-width: 768px) {
  .subpage-two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .subpage-card-grid { grid-template-columns: 1fr 1fr; }
  .subpage-hero h1 { font-size: 26px; }
}

@media (max-width: 540px) {
  .subpage-card-grid { grid-template-columns: 1fr; }
}
