/*
Theme Name: Online Training Theme
Theme URI: https://example.com/
Author: Ginoup
Description: A clean WordPress theme for the Online Training System plugin.
Version: 0.1.1
Text Domain: online-training-theme
*/

body {
    margin: 0;
    color: #18212f;
    background: #f6f8fb;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: #125f9c;
}

.ott-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #d8dee4;
    box-shadow: 0 8px 20px rgba(24, 33, 47, 0.06);
}

.ott-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.ott-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}

.ott-brand {
    flex: 0 0 auto;
}

.ott-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.ott-brand .custom-logo {
    display: block;
    width: auto;
    max-height: 48px;
}

.ott-site-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.ott-site-title a {
    color: #18212f;
    text-decoration: none;
}

.ott-course-search {
    display: flex;
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 440px;
}

.ott-course-search input[type="search"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b8c1cc;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    font-size: 15px;
}

.ott-course-search button,
.ott-auth-button {
    min-height: 42px;
    border: 0;
    border-radius: 0 6px 6px 0;
    padding: 0 14px;
    background: #125f9c;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.ott-auth-button {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
}

.ott-auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
}

.ott-auth-link {
    color: #354154;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ott-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ott-nav a {
    color: #354154;
    text-decoration: none;
}

.ott-main {
    padding: 32px 0;
}

.ott-content {
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    padding: 24px;
}

.ott-page-title {
    margin-top: 0;
}

.ott-footer {
    padding: 42px 0 24px;
    border-top: 1px solid #d8dee4;
    background: #101827;
    color: #d7deea;
}

.ott-footer a {
    color: #f3f7ff;
    text-decoration: none;
}

.ott-footer a:hover,
.ott-footer a:focus {
    color: #8fd0ff;
}

.ott-footer-main {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ott-footer-column {
    padding: 20px;
    border: 1px solid rgba(216, 222, 228, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.ott-footer-column h2,
.ott-footer-support h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.ott-footer-column p,
.ott-footer-support p,
.ott-footer-company p {
    margin: 0 0 14px;
    color: #aeb9c9;
}

.ott-footer-column a {
    display: block;
    padding: 7px 0;
    border-top: 1px solid rgba(216, 222, 228, 0.1);
}

.ott-footer-support {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 22px;
    padding: 22px;
    border-radius: 8px;
    background: #162235;
}

.ott-footer-support-links,
.ott-footer-ecosystem-links,
.ott-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ott-footer-support-links a,
.ott-footer-ecosystem-links a,
.ott-footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(216, 222, 228, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
}

.ott-footer-ecosystem {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(216, 222, 228, 0.16);
}

.ott-footer-company span {
    display: block;
    margin-bottom: 6px;
    color: #8fd0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ott-footer-brand {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
}

.ott-footer-ecosystem-links a {
    flex-direction: column;
    align-items: flex-start;
    min-width: 160px;
    min-height: 58px;
    border-radius: 8px;
}

.ott-footer-ecosystem-links span {
    color: #aeb9c9;
    font-size: 13px;
}

.ott-footer-legal {
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(216, 222, 228, 0.16);
}

.ott-footer-legal a {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aeb9c9;
    font-size: 13px;
}

.ott-footer-copy {
    margin: 18px 0 0;
    color: #8491a3;
    text-align: center;
    font-size: 13px;
}

.ott-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ott-card {
    padding: 18px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
}

.ott-market-hero {
    margin-bottom: 28px;
    padding: 34px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
}

.ott-market-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #66758a;
    font-size: 14px;
}

.ott-market-breadcrumb a {
    color: #354154;
    text-decoration: none;
}

.ott-market-breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: #a0acba;
}

.ott-market-hero-inner {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: end;
}

.ott-market-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #125f9c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ott-market-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.ott-market-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #566579;
    font-size: 17px;
}

.ott-market-search {
    display: flex;
    min-width: 0;
}

.ott-market-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #b8c1cc;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    padding: 0 14px;
    font: inherit;
}

.ott-market-search button {
    min-height: 48px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #125f9c;
    color: #fff;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ott-market-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
}

.ott-market-main,
.ott-market-sidebar {
    min-width: 0;
}

.ott-market-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ott-market-toolbar p {
    margin: 0;
    color: #566579;
}

.ott-market-toolbar select {
    min-height: 42px;
    border: 1px solid #b8c1cc;
    border-radius: 6px;
    background: #fff;
    color: #18212f;
    padding: 0 12px;
}

.ott-market-course-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ott-market-course-card {
    overflow: hidden;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
}

.ott-market-course-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: #e9f3fb;
    color: #125f9c;
    text-decoration: none;
}

.ott-market-course-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ott-market-course-thumb span {
    font-size: 42px;
    font-weight: 700;
}

.ott-market-course-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.ott-market-chip {
    justify-self: start;
    color: #125f9c;
    font-size: 13px;
    font-weight: 700;
}

.ott-market-course-body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.ott-market-course-body h2 a {
    color: #18212f;
    text-decoration: none;
}

.ott-market-course-body p {
    min-height: 52px;
    margin: 0;
    color: #566579;
    font-size: 14px;
}

.ott-market-meta,
.ott-market-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ott-market-meta {
    color: #66758a;
    font-size: 13px;
}

.ott-market-course-footer {
    padding-top: 10px;
    border-top: 1px solid #e4e9ef;
}

.ott-market-course-footer strong {
    color: #18212f;
}

.ott-market-course-footer del {
    margin-right: 5px;
    color: #8b97a6;
    font-weight: 400;
}

.ott-market-course-footer a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: #125f9c;
    color: #fff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ott-market-sidebar {
    display: grid;
    gap: 20px;
}

.ott-market-widget,
.ott-market-banner,
.ott-market-empty {
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.ott-market-widget h2,
.ott-market-banner h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.ott-market-widget p,
.ott-market-banner p {
    margin: 0;
    color: #566579;
}

.ott-market-mini-course {
    display: grid;
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e4e9ef;
    color: #18212f;
    text-decoration: none;
}

.ott-market-mini-course:first-of-type {
    border-top: 0;
}

.ott-market-mini-course span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #e9f3fb;
    color: #125f9c;
    font-weight: 700;
}

.ott-market-mini-course strong {
    line-height: 1.35;
}

.ott-market-categories {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ott-market-categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e4e9ef;
}

.ott-market-categories li:first-child {
    border-top: 0;
}

.ott-market-categories a {
    color: #18212f;
    text-decoration: none;
}

.ott-market-categories span {
    color: #66758a;
}

.ott-market-banner {
    background: #18212f;
    color: #fff;
}

.ott-market-banner span {
    display: inline-block;
    margin-bottom: 8px;
    color: #8fd0ff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.ott-market-banner h2,
.ott-market-banner p {
    color: inherit;
}

.ott-market-banner a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 16px;
    border-radius: 6px;
    background: #fff;
    color: #18212f;
    padding: 0 14px;
    font-weight: 700;
    text-decoration: none;
}

.ott-policy h2,
.ott-contact h2 {
    margin: 26px 0 8px;
    font-size: 20px;
}

.ott-contact-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.ott-contact-form {
    display: grid;
    gap: 14px;
}

.ott-contact-form label,
.ott-contact-form span,
.ott-contact-form input,
.ott-contact-form textarea {
    display: block;
    width: 100%;
}

.ott-contact-form span {
    margin-bottom: 6px;
    font-weight: 700;
}

.ott-contact-form input,
.ott-contact-form textarea {
    box-sizing: border-box;
    border: 1px solid #b8c1cc;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
}

.ott-contact-form button {
    justify-self: start;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    background: #125f9c;
    color: #fff;
    cursor: pointer;
}

.ott-contact-info {
    padding: 18px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #f6f8fb;
}

.ott-contact-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-left: 4px solid #008a20;
    background: #f0fff4;
}

@media (max-width: 720px) {
    .ott-header-inner {
        align-items: stretch;
        flex-direction: column;
        padding: 18px 0;
    }

    .ott-course-search {
        flex-basis: auto;
        min-width: 0;
        max-width: none;
    }

    .ott-auth-links {
        justify-content: flex-start;
        margin-left: 0;
    }

    .ott-footer-main,
    .ott-footer-support,
    .ott-footer-ecosystem {
        grid-template-columns: 1fr;
    }

    .ott-footer-support-links,
    .ott-footer-ecosystem-links,
    .ott-footer-legal {
        flex-direction: column;
    }

    .ott-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1040px) {
    .ott-market-layout {
        grid-template-columns: 1fr;
    }

    .ott-market-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ott-market-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ott-market-hero {
        padding: 22px;
    }

    .ott-market-hero-inner,
    .ott-market-sidebar,
    .ott-market-course-grid {
        grid-template-columns: 1fr;
    }

    .ott-market-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ott-market-toolbar select {
        width: 100%;
    }

    .ott-market-search {
        flex-direction: column;
    }

    .ott-market-search input,
    .ott-market-search button {
        border-radius: 6px;
    }

    .ott-market-search input {
        border-right: 1px solid #b8c1cc;
        margin-bottom: 8px;
    }

    .ott-market-meta,
    .ott-market-course-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
