body {
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.header {
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 10rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    opacity: 0.99;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: none;
}

.header-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5rem;
}

.header-nav-list a {
    color: #555;
    text-decoration: none;
    font-weight: 350;
}

.header-nav-list a:hover {
    color: black;
    font-weight: 600;
}

.header-nav-list a.nav-active,
.header-nav-list li a.nav-active {
    color: black !important;
    font-weight: 700 !important;
}

.header-nav-list a.nav-active:hover,
.header-nav-list li a.nav-active:hover {
    color: black !important;
    font-weight: 700 !important;
}

main {
    padding-left: 15rem;
    padding-right: 15rem;
    font-family: 'Anonymous Pro', sans-serif;
}

.main-phrase {
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 10rem;
    line-height: 1;
}

#main-phrase-platform {
    text-shadow: 2px 2px blueviolet;
}

.main-phrase h1 {
    font-family: 'Anonymous Pro', sans-serif;
    font-weight: 350;
    font-size: 4rem;
}

.course-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.course-container-box-one-third {
    flex: 1;
}

.course-nav-box {
    display: block;
}

.course-nav {
    display: flex;
    flex-direction: column;
    background: #1E1E1E;
    border-radius: 20px;
    justify-content: space-between;
}

.course-nav a {
    margin-left: 6px;
    margin-right: 6px;
    margin-top: 6px;

    padding: 1.5rem 1rem 1rem 5rem;

    text-decoration: none;
    color: white;
    background: #2D2D2D;
    font-size: 1.3rem;
}

.course-nav a:hover {
    background: #3F3F3F;
}

.course-nav-count {
    margin-top: 0.3rem;
    font-size: 1rem;
    color: #818181;
    text-align: left;
}

.course-nav-first {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.course-nav-last {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-bottom: 6px;
}

.course-card-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.course-card {
    border-radius: 15px;
    text-decoration: none;
    color: black;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.course-card h3 {
    font-weight: 400;
    position: absolute;
    margin: 1.7rem;
    color: white;
}

.course-card-hidden-text {
    font-weight: 400;
    margin: 0;
    opacity: 0;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-card-hidden-text {
    opacity: 1;
}

.gallery {
    padding: 5rem 0;
    text-align: center;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    justify-content: center;
}

.gallery-item {
    min-width: 200px;
    padding: 1rem;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: left;
}

@media (max-width: 768px) {
    main {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .header {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-nav {
        width: 100%;
    }

    .header-nav-list {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .main-phrase h1 {
        font-size: 2.5rem;
    }

    .course-container {
        flex-direction: column;
    }

    .course-nav-box {
        display: none;
    }

    .course-card-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .course-card {
        width: 45%;
        margin: 1rem;
    }

    .gallery-container {
        flex-direction: column;
    }

    .contact-form-container {
        width: 90%;
        max-width: 500px;
    }

    .contact-form-container-input {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-nav {
        width: 100%;
    }

    .header-nav-list {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        font-size: 0.9rem;
    }

    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-phrase {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .main-phrase h1 {
        font-size: 1.8rem;
    }

    .course-card {
        width: 100%;
    }

    .contact-form-container {
        width: 90%;
        max-width: 400px;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .contact-form-container-input {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-input {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
}

.about-section {
    padding: 5rem 0;
    text-align: center;
}

.about-table {
    width: 80%;
    margin: 2rem auto;
    border-collapse: collapse;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #fff;
}

.about-table thead {
    display: contents;
}

.about-table thead tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column: 1 / -1;
}

.about-table tbody {
    display: contents;
}

.about-table tbody tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column: 1 / -1;
}

.about-table th {
    background-color: #2D2D2D;
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.about-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.about-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.about-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .about-table {
        grid-template-columns: 1fr;
    }

    .about-table thead {
        display: none;
    }

    .about-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        padding: 0.5rem;
    }

    .about-table td {
        text-align: left;
        padding: 0.5rem;
        border: none;
    }

    .about-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        display: inline-block;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .about-table tr {
        grid-template-columns: 1fr;
    }

    .about-table td {
        padding-left: 0;
    }

    .about-table td:before {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.contact-form {
    padding: 2rem 0rem;
    background-color: white;
    color: white;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-form-container {
    background-color: #3F3F3F;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.contact-form-container h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.contact-form-container-input {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.contact-input {
    width: 200px;
    padding: 0.5rem;
    margin: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #4A4A4A;
    color: white;
    outline: none;
}

.contact-input::placeholder {
    color: #ccc;
}

.contact-button {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #2D2D2D;
}

.contact-button:hover {
    background-color: #e0e0e0;
}

.footer {
    padding: 1rem 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.blog-section {
    padding: 3rem 0;
}

.blog-section h1 {
    margin-bottom: 0.5rem;
}

.blog-section > p {
    color: #555;
    margin-bottom: 1.5rem;
}

.blog-actions {
    margin-bottom: 1.5rem;
}

.blog-load-btn {
    padding: 0.5rem 1rem;
    background: #2D2D2D;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.blog-load-btn:hover {
    background: #1E1E1E;
}

.blog-preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
}

.blog-preloader[hidden] {
    display: none;
}

.blog-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: blueviolet;
    border-radius: 50%;
    animation: blog-spin 0.8s linear infinite;
}

@keyframes blog-spin {
    to { transform: rotate(360deg); }
}

.blog-preloader-text {
    color: #666;
    font-size: 0.95rem;
}

.blog-error {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-error[hidden] {
    display: none;
}

.blog-error--network {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.blog-error--not_found {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.blog-error--server,
.blog-error--generic {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.blog-error--empty {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.blog-posts {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-post-card {
    padding: 1.25rem;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.blog-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
}

.blog-post-body {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.blog-post-meta {
    font-size: 0.8rem;
    color: #666;
}

.suggest-page .suggest-section {
    padding: 3rem 0;
    max-width: 42rem;
    margin: 0 auto;
}

.suggest-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.suggest-section > p {
    color: #555;
    margin-bottom: 2rem;
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.suggest-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
    color: #333;
}

.suggest-input,
.suggest-textarea {
    font-family: 'Inter', sans-serif;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.suggest-input:focus,
.suggest-textarea:focus {
    outline: none;
    border-color: blueviolet;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.15);
}

.suggest-textarea {
    resize: vertical;
    min-height: 4rem;
}

.suggest-submit {
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    background: #2D2D2D;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.suggest-submit:hover {
    background: #1E1E1E;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.suggestion-item-removing {
    opacity: 0;
    transform: scale(0.98);
}

.suggestion-done {
    margin-top: 0.35rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: blueviolet;
    cursor: pointer;
    flex-shrink: 0;
}

.suggestion-body {
    flex: 1;
    min-width: 0;
}

.suggestion-meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.suggestion-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #222;
    cursor: text;
    border-radius: 4px;
    padding: 0.2rem 0;
}

.suggestion-edit-inline {
    width: 100%;
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    padding: 0.25rem 0.4rem;
    background: rgba(138, 43, 226, 0.06);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
}

.suggestion-text[contenteditable="true"] {
    outline: none;
    background: rgba(138, 43, 226, 0.06);
    padding: 0.25rem 0.4rem;
    margin: -0.05rem -0.4rem 0 -0.4rem;
}

.suggestion-item-done .suggestion-text {
    text-decoration: line-through;
    color: #666;
}

.suggestion-delete {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #888;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.suggestion-delete:hover {
    color: #c00;
    background: rgba(200, 0, 0, 0.08);
}
.session {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
    font-size: 0.9rem;
    color: #555;
}

.session-link {
    color: #555;
    text-decoration: none;
    font-weight: 350;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.3rem 0.8rem;
}

.session-link:hover {
    color: black;
    border-color: black;
}
