*, *::before, *::after {
  box-sizing: border-box;
}

:root {

  --prim-color: #386F6B;
  --sec-color: #5C8C89;
  --third-color: #81AAA7;
  --fourth-color: #A5C7C5;

  --main-bg-color: #f4f4f4;
  --main-text-color: #333;
  --header-bg-color: #386f6b;
  --button-bg-color: rgba(255, 255, 255, 0.13);
  --button-hover-bg-color: rgba(255, 255, 255, 0.25);
  --button-text-color: white;
  --button-border-color: rgba(255, 255, 255, 0.034);
}




html {
  scroll-behavior: smooth;
  scroll-padding-top: 5vh;
  }

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

h1 {
  color: var(--header-bg-color);
}

h2 {
  color: var(--sec-color)
}

h3 {
  color: var(--third-color);
}
h4 {
  color: var(--third-color);
}



body {
    font-family: Open-Sans;
    font-weight: 500;
    width: 100%;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    overflow-x: hidden;
}


/* open-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/open-sans-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


section {
  width: 95%;
  /* padding: 20px; */
  max-width: 1200px;
  margin: 2.5vw;
  box-sizing: border-box;
}

p {
  line-height: 1.6;
  margin-bottom: 1.2em;
}

h1, h2, h3, h4 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 1em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

.text-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.text-section::after {
  content: "";
  display: table;
  clear: both;
}

.text-section img {
  max-width: 300px;
  margin-left: 10px;
  padding: 10px;
  float: right;
  border-radius: 8px;
  /* box-shadow: 0 3px 10px rgba(0,0,0,0.1); */
}

@media (max-width: 600px) {
  .text-section img {
    float: none;
    display: block;
    margin: 20px auto;
    max-width: 100%;
  }
}

strong {
  color: var(--sec-color);
}

#introduction-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.approach-card {
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--third-color);
    background-color: rgba(165, 199, 197, 0.1);
    border-radius: 0 8px 8px 0;
}

.approach-card h4 {
    margin-top: 0;
    color: var(--prim-color);
}

.approach-card p {
    margin-bottom: 0;
}

.highlight-text {
    font-style: italic;
    color: var(--sec-color);
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(165, 199, 197, 0.1);
    margin-top: 30px;
}

.warning-text {
    font-style: italic;
    color: var(--warning-color);
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(201, 131, 126, 0.418);
    margin-top: 10px;
    margin-bottom: 10px;
}


.contact-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin: 0 auto;
}

.contact-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fourth-color);
}

.contact-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.contact-section h3 {
  margin-top: 0;
  color: var(--prim-color);
}

.contact-section a {
  color: var(--sec-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: var(--prim-color);
}

.split-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

main {
    box-sizing: border-box;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    width: 100%;
    margin-right: 30px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divider {
    height: 1px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--header-bg-color);
    width: 100%;
}

.service-section {
    cursor: pointer;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: white;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--third-color);
    transition: all 0.3s ease;
}

.service-section:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--fourth-color);
}

.service-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-section::after {
    content: '➜';
    float: right;
    color: var(--sec-color);
    font-size: 1.5em;
    line-height: 1;
    position: relative;
    top: -5px;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dialogFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

dialog {
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: min(90vw, 700px);
    background: white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    animation: dialogFadeIn 0.3s ease;
    box-sizing: border-box;
}

dialog.dialog-closing {
    animation: dialogFadeOut 0.2s ease;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.dialog-image {
    flex: 0 0 200px;
}

@media (max-width: 600px) {
    .dialog-content {
        flex-direction: column;
        align-items: center;
    }

    .dialog-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

.dialog-text {
    flex: 1;
}

.dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--sec-color);
}

.dialog-close:hover {
    color: var(--prim-color);
}

/* Contact Section Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 10px 0;
}

.contact-info {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info a {
    color: var(--prim-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--sec-color);
}

.contact-form {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--sec-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--fourth-color);
    border-radius: 6px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--third-color);
    box-shadow: 0 0 0 2px var(--fourth-color);
}

.submit-button {
    background-color: var(--prim-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--sec-color);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--prim-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--sec-color);
    transform: translateY(-3px);
}

/* Course Topics Styling */
.course-topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-detail {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.topic-detail summary {
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: var(--prim-color);
    list-style: none;
    background-color: rgba(165, 199, 197, 0.1);
    transition: all 0.3s ease;
}

.topic-detail summary::-webkit-details-marker {
    display: none;
}

.topic-detail summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0);
    transition: transform 0.3s ease;
    color: var(--third-color);
    font-size: 0.8em;
}

.topic-detail[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.topic-detail summary:hover {
    background-color: rgba(165, 199, 197, 0.2);
}

.topic-content {
    padding: 20px;
    background: white;
    border-left: 4px solid var(--third-color);
}

.topic-content p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .topic-detail summary {
        padding: 12px 15px;
    }
    
    .topic-content {
        padding: 15px;
    }
}

/* Registration Section Styling */
.registration-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.registration-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--prim-color);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
}

.registration-button:hover {
    background-color: var(--sec-color);
    transform: translateY(-2px);
}

.registration-button .arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.registration-button:hover .arrow {
    transform: translateX(5px);
}

.closing-note {
    font-style: italic;
    color: var(--sec-color);
    border-left: 4px solid var(--third-color);
    padding-left: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}