:root {
  --color-primary: #e63946;
  --color-secondary: #1d3557;
  --color-accent: #457b9d;
  --color-bg: #f5f7fb;
  --color-text: #33343d;
  --radius-lg: 18px;
  --shadow-soft: 0 15px 35px rgba(29, 53, 87, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

body.no-scroll {
  overflow: hidden;
}

.hero {
  position: relative;
  d_background: url("https://images.unsplash.com/photo-1545243424-0ce743321e11") center/cover;
  d_color: #fff;
  color: #2196f3;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.top-nav {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 2rem;
  z-index: 2;
  font-weight: 600;
}

.top-nav a {
  color: var(--color-secondary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(29, 53, 87, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(29, 53, 87, 0.2);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  d_background: rgba(29, 53, 87, 0.55);
  background: rgba(255, 255, 255, 1);
}

.hero-content {
  position: relative;
  Qmax-width: 800px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 2px;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 25px rgba(230, 57, 70, 0.35);
}

.cta-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid rgba(29, 53, 87, 0.35);
  box-shadow: none;
}

.cta-secondary:hover {
  box-shadow: 0 14px 26px rgba(29, 53, 87, 0.2);
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(230, 57, 70, 0.45);
}

.section {
  padding: 4.5rem 1.5rem;
  d-max-width: 1100px;
  max-width:70%;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 2rem;
  font-family: "Playfair Display", serif;
  color: var(--color-secondary);
}

.section-lead {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
  color: #4c4e57;
}

.plan-grid,
.language-grid,
.story-cards,
.testimonial-grid {
  display: grid;
  gap: 1.8rem;
}

.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan {
  background: #fff;
  padding: 2.4rem 2.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.plan h3 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--color-secondary);
}

.plan-subtitle {
  font-weight: 600;
  color: #273248;
}

.plan-meta {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.plan-summary {
  color: #4c4e57;
  line-height: 1.6;
}

.plan-section {
  border-top: 1px solid #e6e9f2;
  padding-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.plan-section h4 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6180;
}

.plan-modules {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.plan-modules li {
  background: #f6f8ff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.plan-modules li strong {
  color: #1a1f2c;
  font-weight: 700;
}

.plan-modules li span {
  color: #4c4e57;
}

.plan-outcomes,
.plan-extras {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  color: #3b3f4f;
}

.plan-outcomes li::before,
.plan-extras li::before {
  content: "✈";
  margin-right: 0.6rem;
  color: var(--color-primary);
}

.plan-outcomes li,
.plan-extras li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.language-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.language-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-height: 280px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.language-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(29, 53, 87, 0.05), rgba(29, 53, 87, 0.65));
  transition: opacity 0.3s ease;
}

.language-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 45px rgba(29, 53, 87, 0.2);
}

.language-card:hover::before {
  opacity: 0.85;
}

.language-card h3,
.language-card p,
.language-card span {
  position: relative;
  z-index: 1;
}

.story {
  background: linear-gradient(145deg, #fff 0%, #eef2fb 100%);
}

.story-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.story-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.story-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.story-card .story-content {
  padding: 1.5rem;
}

.story-card h4 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.story-card ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.story-card li {
  background: rgba(69, 123, 157, 0.08);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 500;
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial::before {
  content: "“";
  font-size: 4rem;
  position: absolute;
  top: -25px;
  left: 20px;
  color: rgba(230, 57, 70, 0.25);
  font-family: "Playfair Display", serif;
}

.testimonial h3 {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--color-secondary);
}

.portal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.portal-content {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.portal-intro {
  display: grid;
  gap: 1.5rem;
}

.portal-dashboards {
  display: grid;
  gap: 2rem;
}

.dashboard {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(29, 53, 87, 0.12);
  display: grid;
  gap: 1.25rem;
}

.portal-lead {
  color: rgba(51, 52, 61, 0.72);
  line-height: 1.6;
}

.portal-cards {
  display: grid;
  gap: 1.5rem;
}

.portal-card {
  background: rgba(244, 246, 255, 0.9);
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 10px 35px rgba(69, 123, 157, 0.12);
}

.portal-card--compact {
  padding: 1.2rem 1.4rem;
  gap: 0.75rem;
}

.portal-card-header {
  display: grid;
  gap: 0.4rem;
}

.portal-card-meta {
  color: rgba(51, 52, 61, 0.7);
  font-size: 0.95rem;
}

.portal-card-subtitle {
  font-weight: 600;
  color: var(--color-secondary);
}

.portal-section {
  display: grid;
  gap: 0.75rem;
}

.portal-section h4 {
  font-size: 1rem;
  font-weight: 700;
}

.portal-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.portal-list li {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.portal-list--links a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.portal-list--links a:hover {
  text-decoration: underline;
}

.portal-meta {
  font-size: 0.85rem;
  color: rgba(51, 52, 61, 0.7);
}

.portal-form fieldset {
  border: 1px solid rgba(69, 123, 157, 0.2);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: 1rem;
}

.portal-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.portal-form input,
.portal-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(69, 123, 157, 0.3);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.2s ease;
}

.portal-form input:focus,
.portal-form textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.portal-form button,
.admin-form button {
  justify-self: start;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-form button:hover,
.portal-form button:focus,
.admin-form button:hover,
.admin-form button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(230, 57, 70, 0.25);
}

.portal-info {
  background: rgba(230, 57, 70, 0.08);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: rgba(51, 52, 61, 0.85);
}

.portal-highlight {
  font-size: 1.05rem;
  font-weight: 700;
}

.portal-message {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.button-secondary {
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 57, 70, 0.4);
  background: transparent;
  color: rgba(230, 57, 70, 0.9);
  cursor: pointer;
  transition: background 0.2s ease;
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(230, 57, 70, 0.12);
}

.admin-layout {
  display: grid;
  gap: 1.75rem;
}

.admin-section {
  display: grid;
  gap: 1.1rem;
}

.admin-form {
  display: grid;
  gap: 0.9rem;
}

.admin-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.admin-list-item {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(69, 123, 157, 0.12);
}

.admin-course-list {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.login-form input {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(69, 123, 157, 0.35);
  transition: border 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.login-form button {
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(29, 53, 87, 0.22);
}

.form-message {
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.course-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 33, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 999;
}

.course-list-raty-mies {
	
}

.course-list-separator {
	margin-right: 20px;
}

.course-list-dt-start {
	margin-right: 20px;
}

.course-list-dt-end {

}

.course-list-cena {

}

.course-list-raty {
	font-weight: bold;	
}

.course-list-daty {
	
}

.course-list-location {
	
}

.course-list-dt-label {
	font-weight: bold;	
	margin-right: 10px;
}

.course-list-dt-location {
	
}

.course-dialog {
  position: relative;
  background: #fff;
  width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-dialog-sidebar {
	width: auto;
    padding: 20px;
}

.course-dialog-sidebar a {
	display: block;
	color: #333;
	text-decoration: none;
	padding: 10px 0;
	border-bottom: 1px solid #ddd;
	flex: 1;
}


.course-group-content{
	overflow-y: auto;
	max-height: 70vh;
}

.course-overlay-content{
	display: flex;
}

.course-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: rgba(51, 52, 61, 0.6);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.course-close:hover,
.course-close:focus {
  color: var(--color-primary);
}

.course-dialog-body {
  display: flex;
  gap: 2rem;
  padding: 3.5rem 3rem 3rem;
  flex: 1;
}

.course-list {
  flex: 1.2;
  aa-overflow-y: auto;
  padding-right: 0.5rem;
}

.course-subtitle {
  color: rgba(51, 52, 61, 0.7);
  margin-bottom: 1.5rem;
}

.course-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-group {
  background: rgba(239, 240, 248, 0.65);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-group h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.course-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.course-item h4 {
  font-size: 1.05rem;
}

.course-item-level {
  margin-top: 0.2rem;
  color: rgba(51, 52, 61, 0.65);
  font-size: 0.9rem;
}

.course-description {
  color: rgba(51, 52, 61, 0.82);
  line-height: 1.55;
}

.course-schedule {
  margin-top: 0.45rem;
  padding-left: 1.25rem;
}

.course-schedule li {
  list-style: disc;
  margin-top: 0.25rem;
}

.course-detail {
  font-size: 0.95rem;
  color: rgba(51, 52, 61, 0.75);
}

.course-item--open {
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.course-item-cta {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--color-secondary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-item-cta:hover,
.course-item-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(29, 53, 87, 0.25);
}

.course-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  text-transform: capitalize;
}

.course-status--open {
  background: rgba(99, 102, 241, 0.18);
  color: var(--color-secondary);
}

.course-status--active {
  background: rgba(45, 212, 191, 0.18);
  color: #0f766e;
}

.course-status--pending {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.course-info {
  padding: 1.5rem;
  background: rgba(239, 240, 248, 0.65);
  border-radius: 16px;
  color: rgba(51, 52, 61, 0.8);
}

.course-info--error {
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
}

.course-application {
  flex: 0.8;
  background: rgba(69, 123, 157, 0.12);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.course-application h3 {
  font-family: "Playfair Display", serif;
}

.level-title {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

.level-box {
  border-radius: 12px;
  padding: 16px 20px;
  background-color: rgba(232, 228, 228, 0.25);
  margin-bottom: 24px;
}

.level-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.level-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 8px;
}

.level-pill {
  height: 80px;
  width: 20%;
  justify-content: center;  
  border: none;
  background: #fff;
  color: var(--color-secondary);
  font-weight: 700;
  padding: 1.2rem 2.8rem;
  font-size: 1.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(29, 53, 87, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(29, 53, 87, 0.2);
}

.level-icon {
  width: 26px;
  height: 26px;
  fill: var(--color-primary);
}

.level-row > ul {
  width: 50%;
}

.level-img {
  display: block;
  margin: 0 auto;
  width: 50%;
  height: auto;
}

.level-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 50%;
}

.level-images .level-img {
  width: 100%;
}

.dell-level-box ul {
  margin: 0;
  padding-left: 20px;
}

.center-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  padding-top: 40px;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.application-form input,
.application-form textarea {
  width: 100%;
  margin-top: 0.35rem;
}

.application-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.application-form button:hover,
.application-form button:focus {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(230, 57, 70, 0.25);
}

.course-application .form-message {
  margin-top: 0.5rem;
}

.course-overlay.hidden .course-dialog {
  display: none;
}

.application-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(13, 16, 33, 0.72);
}

.application-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35);
}

.application-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: #1d3557;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.application-dialog h2 {
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
  font-family: "Playfair Display", serif;
}

.application-lead {
  color: rgba(51, 52, 61, 0.72);
  line-height: 1.55;
}

.application-course {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(239, 240, 248, 0.75);
}

.application-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.application-details div {
  min-width: 0;
}

.application-details dt {
  color: rgba(51, 52, 61, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.application-details dd {
  margin: 0.2rem 0 0;
  color: #33343d;
}

.application-schedule ul {
  margin-top: 0.35rem;
  padding-left: 1.25rem;
}

.application-schedule li {
  list-style: disc;
  margin-top: 0.2rem;
}

.application-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(230, 57, 70, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.application-email:hover,
.application-email:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(230, 57, 70, 0.3);
}

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 33, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 1000;
}

.info-overlay.hidden {
  display: none;
}

.info-dialog {
  position: relative;
  background: #fff;
  width: min(1024px, 100%);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  padding: 2.5rem 2.25rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.funding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 33, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 1000;
}

.funding-overlay.hidden {
  display: none;
}

.funding-dialog {
  position: relative;
  background: #fff;
  width: min(1024px, 100%);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  padding: 2.5rem 2.25rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.funding-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1d3557;
  cursor: pointer;
}

.funding-body h2 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.funding-body p {
  margin-bottom: 0.9rem;
  color: #4c4e57;
}

.funding-body ul {
  margin: 0 0 1rem 1.5rem;
}

.funding-body a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.funding-body a:hover {
  text-decoration: underline;
}

.info-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1d3557;
  cursor: pointer;
}

.info-dialog h2 {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.info-lead {
  margin-bottom: 1.5rem;
  color: #4c4e57;
}

.info-body {
  color: #4c4e57;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}

.info-dialog-body {
  overflow-y: auto;
  padding-right: 0.5rem;
  flex: 1;
  min-height: 0;
}

.funding-closed-body{
    overflow-y: auto;
}

.info-lines {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.info-line {
  margin: 0;
  color: #4c4e57;
  line-height: 1.6;
}

.info-line--heading {
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.info-line--spacer {
  height: 0.6rem;
}

.info-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.info-label {
  font-weight: 600;
  margin-right: 0.4rem;
}

.info-value {
  color: var(--color-secondary);
  text-decoration: none;
}

.info-value:hover {
  text-decoration: underline;
}

.course-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 33, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 1000;
}

.course-info-overlay.hidden {
  display: none;
}

.course-info-dialog {
  position: relative;
  background: #fff;
  width: min(780px, 100%);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  padding: 2.5rem 2.5rem;
}

.course-info-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1d3557;
  cursor: pointer;
}

.course-info-body h2 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.course-info-text {
  color: #4c4e57;
  white-space: pre-line;
  margin-bottom: 1.75rem;
}

.course-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-info-link.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 22px rgba(230, 57, 70, 0.25);
}

.course-info-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(29, 53, 87, 0.18);
}

.level-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 33, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 1000;
}

.level-overlay.hidden {
  display: none;
}

.level-dialog {
  position: relative;
  background: #fff;
  width: min(780px, 100%);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  padding: 2.5rem 2.5rem;
}

.level-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1d3557;
  cursor: pointer;
}

.level-dialog-body h2 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.level-list {
  margin-bottom: 1.5rem;
  padding-left: 20px;
  color: #4c4e57;
}

.level-media {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.level-media img {
  width: 100%;
  height: auto;
  display: block;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(51, 52, 61, 0.7);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .application-dialog {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .application-details {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .course-dialog-body {
    flex-direction: column;
    padding: 3.5rem 1.75rem 2.5rem;
  }

  .course-list,
  .course-application {
    flex: 1;
    max-height: 50vh;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 65vh;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .course-dialog {
    border-radius: 18px;
  }

  .course-dialog-body {
    padding: 3rem 1.25rem 2rem;
  }

  .course-group {
    padding: 1.25rem;
  }

  .course-item {
    padding: 1rem 1.1rem;
  }

  .course-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dell-course-status {
    align-self: flex-start;
  }
}



.kafelki-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px;
  amax-width: 1100px;
  margin: 0 auto;
}
.kafelki-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.kafelki-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.kafelki-tile img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}
.kafelki-tile .kafelki-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.kafelki-tile .kafelki-subtitle {
  margin: 4px 0 0;
  opacity: .75;
  font-size: 14px;
}
