/* CSS Revision: Mobile-first approach with CSS variables, escaped ID, corrected selectors */
:root {
    --brand-blue: #003f88;
    --brand-accent: #63b2ff;
    --highlight: #ffb063;
    --white: #ffffff;
    --black: #000000;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.main-section {
    background-color: var(--white);
}
#main-content-section {
    background-color: var(--white);
    padding: 10px;
}
section {
    content-visibility: auto;
    contain-intrinsic-size: 800px; /* approximate height */
}

#container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.body-container {
    flex: 1;
    min-height: calc(100vh - 50px);
    overflow: hidden;
}

.body-container > section {
    padding: 15px 0 15px 10px;
    background-color: var(--white);
}

/* Base: mobile-first image sizing */
.body-container > section .image-wrapped-head img {
    max-height: 150px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
#topnav i {
  font-size: inherit; /* use parent's size */
  color: inherit; /* match parent color */
}
.image-container,
.image-container-small {
    width: 100%;
    overflow: hidden;
}

.image-container {
    height: auto;
}

.image-container img {
  width: 250px;
  height: 200px;
  object-fit: cover;
}

.image-container-small {
    height: auto;
}

.image-container-small img {
    width: 150px;
    height: 100px;
    object-fit: fill;
}

.body-container > section .image-wrapped-head {
    text-align: center;
}

/* Base navigation: collapsed mobile nav */
.topnav {
    background-color: var(--brand-blue);
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.topnav a {
    display: none;
    width: 100%;
    text-align: center;
}

.topnav a.icon {
    display: block;
    float: right;
}

#topnav i {
    float: right;
}

.topnav.responsive {
    display: flex;
    flex-direction: column;
}

.topnav.responsive a {
    display: block;
    padding: 12px;
    background-color: var(--brand-blue);
    color: var(--white);
    border-top: 1px solid var(--brand-accent);
}

.topnav.responsive a:hover {
    background-color: var(--highlight);
    color: var(--black);
}

/* Global nav link styles */
.topnav a:hover {
    background-color: var(--highlight);
    color: var(--black);
}

.topnav a.active {
    background-color: var(--highlight);
    color: var(--white);
}

/* Tablet and above: reset mobile-only image tweaks */
@media screen and (min-width: 40em) {
    .top-navi-inner {
        background-color: var(--brand-blue);
    }
    .body-container > section .image-wrapped-head img {
        max-height: none;
        margin-top: initial;
        margin-bottom: initial;
    }
    .topnav a.icon {
    display: block;
    }
    #featured-blog-section {
        padding: 10px;
    }
}

/* Desktop and above: expanded nav */
@media screen and (min-width: 1024px) {
    .top-navi-inner {
    background-color: var(--brand-blue);
    border-radius: 10px;
    }
    .orange-bg {
        background-color: transparent; /* no orange here */
        padding: 2rem 0;
    }
    .blue-bg {
        background-color: transparent; /* no orange here */
        padding: 2rem 0;
    }
    #featured-blog-section {
        padding: 10px;
    }
    .topnav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0px 20px;
    }
    .topnav a {
        display: none;
        float: right;
        color: var(--white);
        padding: 14px 16px;
        text-decoration: none;
        font-size: 1.2rem;
    }
    .topnav a.icon {
        display: block;
    }
    #topnav i {
        float: right;
    }
}

/* Large desktop */
@media screen and (min-width: 1200px) {
    .expanded.row {
        padding-left: calc((100% - 1200px) / 2 + .9rem);
        padding-right: calc((100% - 1200px) / 2 + .9rem);
    }
}

menu {
    margin: 0;
}

h1, h2, h3, h5 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
}

.bc {
    padding: 10px;
}

.top-navi {
    background-color: var(--white);
}

.top-navi-inner {
    background-color: var(--brand-blue);
}

.top-navi a.icon {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
}

/* Escape ID starting with number */
#logo123 {
    margin: 10px;
}

#main-logo-section {
    color: var(--white);
    background-color: var(--white);
    padding: 10px 0;
}

#main-logo-section .logo {
    max-width: 35%;
    height: auto;
    aspect-ratio: 1.25;
}

#tag-line {
    color: #2F79F8;
    font-weight: bold;
    text-shadow: 1px 1px 1px var(--black);
      font-family: 'Roboto Slab', serif;
  font-display: swap;
}

#card-des {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

#featured-blog-section {
  padding: 2rem 10px;
}

#featured-blog-section .card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: var(--highlight);
    padding: 10px 15px;
    justify-content: space-between;
}

#featured-blog-section .card-divider {
    background-color: var(--highlight);
    font-family: 'Roboto Slab', serif;
    color: var(--white);
    font-weight: 700;
    align-items: center;
    border-radius: var(--rd-0) var(--rd-0) 0 0;
    display: flex;
    height: 55px;
    justify-content: center;
    text-transform: uppercase;
    width: 90%;
    margin: 0 auto;
}

#featured-blog-section .card-section {
    color: #ffffff;
    flex: 1;
    padding: 10px;
    background-color: var(--highlight);
}

#featured-blog-section .button {
    float: right;
}

#featured-blog-section h5 {
    color: var(--white);
}

#featured-blog-section h5 a {
    text-transform: none;
    text-decoration: none;
    color: var(--white);
}

#featured-blog-section img {
    padding: 5px 0;
}

#chat-section {
    padding: 10px;
}

#chat-section .card {
    border: 3px solid var(--highlight);
}

#chat-section .card-divider {
    background-color: var(--highlight);
    font-family: 'Roboto Slab', serif;
    color: var(--white);
    font-weight: 700;
    align-items: center;
    border-radius: var(--rd-0) var(--rd-0) 0 0;
    display: flex;
    height: 40px;
    justify-content: center;
    text-transform: uppercase;
    width: 82%;
    margin: 0 auto;
}

#chat-section .card-section {
    font-family: 'Roboto', sans-serif;
    padding-top: 20px;
    background-color: #e9ecef;
}

#live-chat-section {
    padding: 10px;
    color: var(--white);
}

#live-chatsection a {
    font-weight: bold;
}
#safe-chat-section {
    padding: 10px;
    color: var(--white);
}

#safe-chat-section a {
    font-weight: bold;
}
.orange-bg {
  background-color: transparent; /* no orange here */
  padding: 2rem 0;
}
.orange-box {
  background-color: var(--highlight);
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem; /* or use your existing vertical spacing */
  border-radius: 8px;
}
.blue-bg {
  background-color: transparent; /* no orange here */
  padding: 2rem 0;
}
.blue-box {
  background-color: var(--brand-accent);
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem; /* or use your existing vertical spacing */
  border-radius: 8px;
}

#legal {
    padding: 10px;
    color: var(--black);
}

#footer-bottom-section {
    color: var(--white);
}

#footer-bottom-section a {
    color: var(--highlight);
    font-weight: bold;
}

/* Unified .img-foot */
.img-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

#channel-list {
    padding: 0 10px;
}

#channel-list > li {
    display: inline-block;
    height: 5rem;
    text-align: center;
    padding: 5px;
}

#channel-list > li > .wrapper {
    display: block;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 5px;
    border: 5px solid #9CC3D5FF;
    border-radius: 5px;
    background-color: #0063B2FF;
}

#channel-list > li > .wrapper.a-notice {
    border-color: red;
    position: relative;
}

#channel-list > li .wrapper.a-notice div:first-child {
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 0.55rem;
    font-style: italic;
    color: var(--white);
}

#channel-list > li > .wrapper span {
    display: inline-block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-weight: bold;
}

.alert {
    color: red;
}
