
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #F4F8FB;
    --color-surface: #fff;
    --color-text: #0B1C29;
    --color-heading: #555;
    --color-primary: #0B1C29;
    --color-accent: #27ACBB;
    --color-accent-soft: #E3F7FA;
    --color-accent-hover: #BEE9F7;
    --color-link-contrast: #E3F7FA;
    --shadow-soft: 0 4px 8px rgba(39, 172, 187, 0.07);
    --shadow-sidebar: 2px 0 5px rgba(39, 172, 187, 0.08);
    --focus-ring: 3px solid #27ACBB;
}

[hidden] {
    display: none !important;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 1100;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: var(--color-surface);
    color: var(--color-primary);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.skip-link:focus {
    top: 16px;
}

header {
    background-color: var(--color-primary);
    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: var(--color-accent);
    color: #fff;
}

ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
    padding-left: 20px;
}

ol {
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
    padding-left: 20px;
}

.container {
    display: flex;
    margin-top: 20px;
}

.sidebar {
    width: 250px;
    background-color: var(--color-primary);
    color: var(--color-link-contrast);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sidebar);
    overflow-y: auto;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar a {
    color: var(--color-link-contrast);
    text-decoration: none;
    display: block;
    padding: 1px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar .sidebar-toggle {
    color: var(--color-link-contrast);
    background: none;
    border: 0;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    padding: 1px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font: inherit;
    cursor: pointer;
}

.sidebar a:hover,
.sidebar .sidebar-toggle:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.sidebar .active {
    background: var(--color-accent);
    color: #fff;
}

.sidebar .collapsible {
    position: relative;
    cursor: pointer;
    padding-right: 24px;
}
.sidebar .collapsible::after {
    content: '\25B6'; 
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
    font-size: 0.9em;
}
.sidebar .collapsible.expanded::after {
    content: '\25BC'; 
    transform: translateY(-50%) rotate(0deg);
}
.content {
    flex: 1;
    padding: 20px;
    background-color: var(--color-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    color: var(--color-text);
}

.content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.content-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-top: 30px;
    font-size: 1.4rem;
    color: var(--color-heading);
}

h3 {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--color-heading);
}

h4 {
    text-align: center;
    margin-top: 25px;
    font-size: 1.0rem;
    color: var(--color-heading);
}

.decision-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.decision-box {
    background-color: var(--color-accent-soft);
    color: var(--color-text);
    text-decoration: none;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    flex: 1 1 200px; /* grow, shrink, basis */
    min-width: 240px;
    max-width: 480px;
    position: relative;
}

.decision-box:hover,
.decision-box:focus,
.decision-box:active {
    background-color: var(--color-accent-hover);
    border: 2px solid var(--color-accent);
}

@media (hover: none), (pointer: coarse) {
    .decision-box {
        border: 2px solid var(--color-accent);
        box-shadow: 0 6px 14px rgba(39, 172, 187, 0.16);
    }

    .decision-box::after {
        content: 'Tap to open \2192';
        display: inline-block;
        margin-top: 14px;
        padding: 6px 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #d0d7de;
        color: #015277;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .decision-box:active {
        transform: scale(0.99);
    }
}

.decision-img {
    width: 100%;
    max-width: 256px;
    height: auto;
    margin-top: 0px;
    border-radius: 10px;
    /*box-shadow: 0 2px 8px rgba(39,172,187,0.08);*/
}

.decision-icon {
    width: 64px;
    height: auto;
    margin-top: 0px;
    border-radius: 10px;
    /*box-shadow: 0 20x 8px rgba(39,172,187,0.08);*/
}

.icon-background-architecture {
    background-color: rgba(69, 57, 163, 0.2);
}

.icon-background-data {
    background-color: rgba(2, 98, 122, 0.2);
}

.icon-background-devops {
    background-color: rgba(181, 112, 1, 0.2);
}

.icon-background-frontend {
    background-color: rgba(8, 62, 179, 0.2);
}

.icon-background-security {
    background-color: rgba(198, 40, 23, 0.2);
}

.decision-box .content-left {
    text-align: left;
    margin-top: 15px;
}

.decision-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #123953;
}

/*
.title-architecture {
    color: #4539a3;
}

.title-data {
    color: #02627a;
}

.title-devops {
    color: #b57001;
}

.title-frontend {
    color: #1b4bb2;
}

.title-security {
    color: #a83629;
}
*/

.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;
}

.decision-question {
    border: none;
    padding: 0;
    margin-bottom: 5px;
}

.decision-question legend {
    font-size: 1.0rem;
    /*font-weight: 600;*/
    margin-bottom: 12px;
}

.decision-option {
    display: block;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    background: white;
    cursor: pointer;
}

.decision-option:hover {
    background: #f3f9ff;
}

.decision-option input {
    margin-right: 10px;
}

.decision-option em {
    display: block;
    font-size: 0.85em;
    color: #6b7785;
    margin-top: 3px;
}

.decision-option input:checked + span {
    font-weight: 600;
}

.decision-option:has(input:checked) {
    border: 1px solid #015277;
    /*background: #f0f7ff;*/
}

.decision-results {
  margin-top: 20px;
}

.decision-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.decision-result-row {
    margin-bottom: 12px;
}

.decision-bar-label {
    /*font-size: 14px;*/
    margin-bottom: 4px;
    /*font-weight: 500;*/
    text-transform: capitalize;
    color: #2980b9;
    font-weight: bold;
}

.decision-bar {
    width: 100%;
    height: 10px;
    background: #e6eef3;
    border-radius: 6px;
    overflow: hidden;
}

.decision-bar-fill {
    height: 100%;
    background: #015277;
    transition: width 0.3s ease;
}



/*
.notes {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-top: 15px;
}
*/
.note {
    /*background: #fffbe6;
    border-left: 4px solid #ffd700;*/
    background: hsl(217, 100%, 96%);
    border-left: 4px solid #015277;
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 6px;
    font-style: italic;
    color: #444;
    font-size: 1.05em;
}

.donate-note {
    background: hsl(217, 100%, 96%);
    border: 1px solid #015277;
    padding: 8px 8px;
    margin: 20px 0 0 0;
    border-radius: 6px;
    color: #015277;
    font-size: 1em;
    font-weight: bolder;
    font-style: normal;
}

.examples {
    margin-top: 20px;
}

.examples h4 {
    text-align: left;
    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: var(--color-accent-soft);
    color: var(--color-text);
    text-decoration: none;
    padding: 20px;
    /*  width: 420px; */
    text-align: center;  
    border-radius: 8px;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.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: var(--color-accent);
    border-radius: 2px;
    transition: all 0.3s;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}


/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 500;
  color: #2980b9;
  margin-bottom: 2px;
}

.form-input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1em;
  background: #f8fafc;
  color: #0B1C29;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: #27ACBB;
  outline: none;
}

.form-button {
  background: #27ACBB;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  font-size: 1.08em;
  cursor: pointer;
  transition: background 0.2s;
}
.form-button:hover {
  background: #2980b9;
}

@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;
}

footer a {
  color: #4da6ff;
  text-decoration: none;
}

footer a:hover {
  color: #80c1ff;
  text-decoration: underline;
}

footer .footer-copy {
    margin-top: 8px;
    font-size: 0.9rem;
}

.social-icons a {
    margin-right: 12px;
    margin-top: 8px;
    display: inline-block;
    transition: transform 0.2s;
}
.social-icons a:hover {
    transform: scale(1.3);
}
.social-icons svg {
    vertical-align: middle;
}

.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: 128px;
    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 h2 {
    color: #2980b9;
    font-size: 1.30rem;
    margin-bottom: 10px;
    text-align: left;
}
.info-card h3 {
    color: #2980b9;
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-align: left;
}
.examples h3 {
    color: #2980b9;
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-align: left;
}
.info-card h4 {
    color: #2980b9;
    font-size: 1.0rem;
    margin-bottom: 10px;
    text-align: left;
}
.info-card ul {
    list-style-type: disc;
    padding-left: 18px;
    color: #444;
    font-size: 1rem;
}

.info-card ol {
    list-style-type: decimal;
    padding-left: 18px;
    color: #444;
    font-size: 1rem;
}

.info-card p {
    margin: 10px 0;
}
.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: 240px;
    max-width: 440px;
   /* flex: 1 1 260px;*/
    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;
}
.recommendations h2,
.code-demo h2,
.related h2,
.links h2 {
    color: #2980b9;
    font-size: 1.30rem;
    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;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}
.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;
        flex: 1 1 60px;
    }
    .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;
    }
}

.topic-link-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0 8px 0;
}

.topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 200px;
    min-width: 180px;
    background: #fff;
    border: 2px solid #27ACBB;
    border-radius: 8px;
    padding: 14px 18px;
    text-decoration: none;
    color: #0B1C29;
    box-shadow: 0 2px 6px rgba(39,172,187,0.10);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.topic-link:hover {
    background: #e3f7fa;
    border-color: #2980b9;
    box-shadow: 0 4px 14px rgba(39,172,187,0.22);
    transform: translateY(-2px);
    color: #0B1C29;
}

.topic-link-title {
    font-weight: bold;
    font-size: 1.08rem;
    color: #27ACBB;
    margin-bottom: 4px;
}

.topic-link-desc {
    font-size: 0.88rem;
    color: #555;
}

.topic-link-arrow {
    font-size: 1.5rem;
    color: #27ACBB;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.topic-link:hover .topic-link-arrow {
    transform: translateX(4px);
}

/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: none;
    background-color: #14384d;
    color: #fff;
    border: none;
    border-radius: 30%;
    padding: 6px 8px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    background-color: #0d6da5;
}

/* Default - desktop */
.mobile-icons {
  display: none;
}

@media (max-width: 768px) {
  .mobile-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-around;
    width: 100%;
  }

  .mobile-icons a:hover {
    transform: scale(1.3);
  }

    .mobile-icons button {
        background: none;
        border: 0;
        padding: 0;
        margin: 0;
        color: inherit;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-icons button:hover {
        transform: scale(1.3);
    }

  /*
  .mobile-icons img {
    width: 28px;
    height: 28px;
  }
*/
  
  nav {
    display: none;
  }
}