/* Resize the logo in the header */
.md-header__button.md-logo img {
  height: 60px !important;
  object-fit: scale-down;
  image-rendering : auto;
  width: auto;
}

/* Light mode banner color */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #A71930 !important;
  --md-accent-fg-color: #0F204B !important;
  --md-footer-bg-color: #0F204B; 
}

/* Optional: dark mode */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #A71930 !important;
  --md-accent-fg-color: #A7A8AA !important;
  --md-footer-bg-color: #A71930;
}


.banner {
  height: 100px; /* Adjust as needed */
  background: linear-gradient(to right, white 50%, #A71930 50%);
}


/* Hide the site name next to the logo */
.md-header__title {
  display: none !important;
}

/* Move search bar to the right side of the header */
.md-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Optional: limit search width if needed */
.md-search {
  max-width: 300px;
}

/* Move the color mode toggle to the far right */
.md-header__option {
  margin-left: auto !important;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  background-color: #0F204B;   /* Replace with your desired color */
  padding: 0.4em 0.8em;
  border-radius: 6px;
  color: #ffffff;
}

/* Dark mode headings */
[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3 {
  background-color: #A71930;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.4em 0.8em;
}

.md-typeset table {
  table-layout: fixed;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.md-typeset th,
.md-typeset td {
  width: auto;
}

/* Grid spacing */
.md-typeset .grid.cards .md-button {
  display: block;
  margin: 0.2rem 0;
}

.md-typeset .md-button {
  border-radius: 10px;
  transition: 
    border-radius 0.3s ease,
    transform 0.2s ease;
}

.md-typeset .md-button:hover {
  border-radius: 24px;
  transform: translateY(-2px);
}

/* Selection Buttons */
.portal-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #000000;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.portal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portal-card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.2),
        transparent
    );
    color: white;
}

.portal-card-overlay h2 {
    margin: 0;
    font-size: 1.5rem;
}

.portal-card-overlay p {
    margin-top: .5rem;
    font-size: .95rem;
}

body[data-md-page="index"] .md-sidebar--primary,
body[data-md-page="index"] .md-sidebar--secondary {
    display: none !important;
}

body[data-md-page="index"] .md-content {
    max-width: 100%;
}

body[data-md-page="index"] .md-main__inner {
    margin-left: 0;
}

/* Interactive Classroom */

.av-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.control-panel {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.touch-panel-image {
    width: 100%;
    display: block;
}

.projector-area {
    flex: 1;
    max-width: 500px;
}

.screen-top-block {
    height: 25px;
    background: #222;
    border-radius: 8px 8px 0 0;
    color: white;
    text-align: center;
    line-height: 25px;
    font-size: 12px;
}

.projector-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.projector-panel.open {
    max-height: 300px;
}

.projector-screen-css {
    width: 100%;
    height: 250px;
    background: linear-gradient(#ffffff, #e8e8e8);
    border-left: 3px solid #333;
    border-right: 3px solid #333;
    border-bottom: 8px solid #222;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hotspot {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Coordinates will need tweaking */
.blank-btn {
    top: 18%;
    left: 21%;
    width: 18%;
    height: 20%;
}

.pc-btn {
    top: 42%;
    left: 21%;
    width: 18%;
    height: 18%;
}

.hdmi-btn {
    top: 42%;
    left: 41%;
    width: 18%;
    height: 18%;
}

.vga-btn {
    top: 42%;
    left: 61%;
    width: 18%;
    height: 18%;
}

.mic-btn {
    top: 66%;
    left: 21%;
    width: 18%;
    height: 18%;
}

/* Mobile support */

@media (max-width: 900px) {
    .av-layout {
        flex-direction: column;
    }

    .control-panel,
    .projector-area {
        max-width: 100%;
    }
}

.image-text-row {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 30px 0;
}

.image-side {
  flex: 1;
}

.image-side img {
  width: 100%;
  max-width: 350px;
  display: block;
}

.text-side {
  flex: 1;
}

/* Mobile layout */
@media (max-width: 768px) {
  .image-text-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-side img {
    max-width: 100%;
  }
}