* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F4F8FB;
    color: #0B1C29;
}

header {
    background-color: #0B1C29;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

header nav ul li {
    display: inline-block;
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

header nav ul li a.active, header nav ul li a:hover {
    background: #27ACBB;
    color: #fff;
}

ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
    padding-left: 20px;
}

.container {
    display: flex;
    margin-top: 20px;
}

.sidebar {
    width: 250px;
    background-color: #0B1C29;
    color: #E3F7FA;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(39,172,187,0.08);
    overflow-y: auto;
    max-height: 100vh;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar a {
    color: #E3F7FA;
    text-decoration: none;
    display: block;
    padding: 1px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    background-color: #27ACBB;
    color: #fff;
}

.sidebar .active {
    background: #27ACBB;
    color: #fff;
}

.sidebar a.collapsible {
    position: relative;
    cursor: pointer;
    padding-right: 24px;
}
.sidebar a.collapsible::after {
    content: '\25B6'; 
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
    font-size: 0.9em;
}
.sidebar a.collapsible.expanded::after {
    content: '\25BC'; 
    transform: translateY(-50%) rotate(0deg);
}
.sidebar ul ul {
    transition: display 0.2s;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(39,172,187,0.07);
    color: #0B1C29;
}

.content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.content-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

h3 {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2rem;
    color: #555;
}

.decision-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.decision-box {
    background-color: #E3F7FA;
    color: #0B1C29;
    text-decoration: none;
    padding: 20px;
    /*width: 420px;*/
    min-width: 220px;
    max-width: 520px;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(39,172,187,0.07);
}

.decision-box:hover {
    background-color: #BEE9F7;
}

.decision-img {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39,172,187,0.08);
}

.decision-box .content-left {
    text-align: left;
    margin-top: 15px;
}

.decision-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.question {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2980b9;
    margin-top: 10px;
}

.description {
    font-size: 1.1rem;
    /* font-weight: bold; */
    font-weight: 500;
    color: #444;
    margin-top: 10px;
}

.notes {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-top: 10px;
}

.examples {
    margin-top: 20px;
}

.examples h5 {
    font-weight: bold;
    font-size: 1.1rem;
}

.examples ul {
    list-style-type: none;
    padding-left: 20px;
}

.examples ul li {
    margin-bottom: 10px;
}

.codebox {
        border:1px solid black;
        background-color:#EEEEFF;
        /* width:300px;*/
        overflow:auto;    
        padding:10px;
        max-width: 100%;
        max-height: 600px;
        white-space: pre;
}

.codebox code, .codebox pre {
    font-size:0.9em;
    white-space: pre;
    word-break: break-all;
    display: block;
}

.code-box {
    background-color: #E3F7FA;
    color: #0B1C29;
    text-decoration: none;
    padding: 20px;
    /*  width: 420px; */
    text-align: center;  
    border-radius: 8px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(39,172,187,0.07);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: 10px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #27ACBB;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    header nav ul {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100vw;
        top: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
        max-height: 100vh;
    }
    .sidebar.sidebar-open {
        left: 0;
    }
    .container {
        flex-direction: column;
    }
    main.content {
        margin-top: 60px;
    }
}

footer {
    background-color: #0B1C29;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.center-text {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.center-left-text {
    text-align: left;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}

.recommendation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

.recommendation-table th,
.recommendation-table td {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 80%;
}

.recommendation-table th {
  background-color: #f4f4f4;
  font-weight: bold;
  font-size: 80%;
}

.page-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: center;
    color: #27ACBB;
}
.center-img {
    display: block;
    margin: 24px auto 24px auto;
    /* max-width: 1040px; */
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39,172,187,0.08);
}

.logo-img {
    display: block;
    margin: 24px auto 24px auto;
    /* max-width: 1040px; */
    max-width: 256px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39,172,187,0.08);
}

.intro-section {
    margin-bottom: 32px;
}
.lead {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 0;
}
.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}
.info-card {
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39,172,187,0.07);
    padding: 20px 24px;
    min-width: 860px;
    max-width: 1040px;
   /* min-width: 260px;
    max-width: 340px; */
/* flex: 1 1 260px; */
    flex: 1 1 26px;
}
.info-card h3 {
    color: #2980b9;
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-align: left;
}
.info-card ul {
    list-style-type: disc;
    padding-left: 18px;
    color: #444;
    font-size: 1rem;
}
.examples {
    margin-bottom: 32px;
}
.example-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}
.example-card {
    background: #f4f8fb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(39,172,187,0.06);
    padding: 16px 18px;
    min-width: 200px;
    max-width: 260px;
    flex: 1 1 200px;
    text-align: left;
}
.example-card h4 {
    color: #27ACBB;
    font-size: 1.08rem;
    margin-bottom: 6px;
}
.recommendations h3,
.code-demo h3,
.related h3,
.links h3 {
    color: #2980b9;
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-align: left;
}
.code-demo {
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39,172,187,0.07);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.code-demo .codebox {
    margin-top: 10px;
    background: #222;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 0.98em;
    box-shadow: 0 1px 4px rgba(39,172,187,0.08);
    border: none;
}
.code-demo pre {
    margin: 0;
    padding: 10px;
    overflow-x: auto;
}
.code-demo code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.98em;
    background: none;
    color: inherit;
}
.related {
    margin-bottom: 32px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding-left: 0;
}
.tag-list li {
    background: #e3f7fa;
    color: #2980b9;
    border-radius: 16px;
    padding: 6px 16px;
    font-size: 0.98em;
    font-weight: 500;
}
.links {
    margin-bottom: 32px;
}
.external-links {
    list-style: none;
    padding-left: 0;
}
.external-links li {
    margin-bottom: 8px;
}
.external-links a {
    color: #27ACBB;
    text-decoration: underline;
    transition: color 0.2s;
}
.external-links a:hover {
    color: #2980b9;
}
@media (max-width: 900px) {
    .info-cards, .example-grid {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 600px) {
    .info-card, .example-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 12px 8px;
    }
    .code-demo {
        padding: 12px 8px;
    }
}

.key-question {
    display: block;
    background: linear-gradient(90deg, #27ACBB 0%, #0B1C29 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 18px 24px;
    margin: 24px auto 12px auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(39,172,187,0.10);
   /* max-width: 700px; */
    max-width: 1040px;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s;
}
.key-question + .key-question {
    margin-top: 0;
}
@media (max-width: 800px) {
    .key-question {
        font-size: 1.08rem;
        padding: 12px 8px;
        max-width: 98vw;
    }
}

.modern-usecase-list.clean-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0 0;
}
.modern-usecase-list.clean-list li {
    display: block;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 10px;
    padding: 0 0 8px 0;
    font-size: 1.08rem;
    border-bottom: 1px solid #f0f0f0;
    transition: none;
}
.modern-usecase-list.clean-list li:last-child {
    border-bottom: none;
}
.usecase-title {
    font-weight: bold;
    color: #27ACBB;
    display: inline;
}
.usecase-desc {
    color: #444;
    font-weight: 400;
    display: inline;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    transition: opacity 0.2s;
}
.sidebar.sidebar-open ~ .sidebar-overlay {
    display: block;
}
@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}
