/* CSS Variables */
:root {
    /* Theme Colors */
    --blue: #0075be;
    --white: #ffffff;
    --dark-gray: #333333;

    /* Typography */
    --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --base-font-size: 16px;
    --line-height: 1.5;
    --font-regular: 400;
    --font-bold: 800;

    /* Section Background Colors */
    --bg-mk-pri: #f7dac7;
    --bg-sec-preu: #eca97c;
    --bg-poly-ite: #cac5d6;
    --bg-adults: #8579a0;
    --bg-educators: #c3cfea;
    --bg-parents: #7490d0;
    --bg-sped: #bbe9ec;

    /* Section Theme Colors */
    --theme-1: #f47f32;
    --theme-2: #523f79;
    --theme-3: #3961bc;
    --theme-4: #326b59;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: #000000;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.centered {
    text-align: center;
}

.content-body p,
.content-body li,
.content-body .alpha-sub-points p {
    font-size: 1.3rem;
    line-height: 1.5;
}

.content-body h4 {
    font-size: 1.7rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Hero Banner */
.moe-logo {
    margin: 12px;
    width: 95px;
    height: 80px;
}

.hero-banner {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Journey Section */
.journey {
    padding: 4rem 0;
}

.videp-wrapper {
    max-width: 800px;
    border: 1px solid;
    border-radius: 8px;
    margin: 0 auto;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.journey .video-title {
    text-align: center;
    margin: 0.5rem auto 1rem;
    max-width: 800px;
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: var(--font-regular);
    padding: 0 1rem;
}

.section-list-group {
    max-width: 800px;
    text-align: left;
    margin: 2rem auto;
    padding: 0 1rem;
    font-weight: bold;
}

.section-list-group p {
    color: #5971F9;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.section-list {
    list-style-position: outside;
    padding-left: 1.2em;
    margin: 0;
}

.section-list li {
    color: #5971F9;
    font-size: 1.3rem;
    line-height: 1.6;
    padding-left: 0.5em;
}

.section-list li::marker {
    color: #5971F9;
}

@media screen and (max-width: 768px) {
    .section-list-group {
        padding: 0 0.5rem;
    }
    
    .section-list {
        padding-left: 1em;
    }
    
    .section-list li {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
}

.journey-intro {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.journey-intro .section-title {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin: 2rem 0;
    line-height: 1.3;
    color: #5971f9;
}

.journey-intro .intro-text {
    font-size: 1.3rem;
    font-weight: var(--font-regular);
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
    text-align: left;
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.video-item {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-item h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--dark-gray);
    text-align: center;
    font-weight: var(--font-regular);
}

/* Navigation Grid */
.nav {
    padding: 0;
    background-color: var(--white);
}

.nav .container {
    max-width: 1000px;
}

.nav h2 {
    text-align: center;
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 2rem;
}

.nav h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-color: #000000;
}

.nav h2:nth-of-type(2) {
    margin-top: 6rem;
}

.nav h2:nth-of-type(2) a {
    color: inherit;
}

.nav-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
}

.nav-card {
    background: #e7eeff;
    border-radius: 30px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: none;
    outline: none;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.nav-card h3 {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Content Sections */
.content-section {
    width: 100%;
    overflow-x: hidden;
    padding: 4rem 0;
}

/* Section Background Colors */
#mk-pri {
    background-color: var(--bg-mk-pri);
}
#sec-preu {
    background-color: var(--bg-sec-preu);
}
#poly-ite {
    background-color: var(--bg-poly-ite);
}
#adults {
    background-color: var(--bg-adults);
}
#educators {
    background-color: var(--bg-educators);
}
#parents {
    background-color: var(--bg-parents);
}
#sped {
    background-color: var(--bg-sped);
}

/* Section Header */
.section-header {
    width: 100%;
    margin-bottom: 4rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-image {
    margin-bottom: 0;
    flex-shrink: 0;
}

.circular-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.section-label {
    display: block;
    margin-bottom: 1.5rem;
    text-align: left;
}

.section-label span {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: var(--font-regular);
    display: inline-block;
    border: 2px solid;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    text-align: left;
}

/* Media query for mobile */
@media screen and (max-width: 768px) {

    .journey-intro .intro-text,
    .section-list-group p, 
    .section-list li {
        font-size: 1rem;
    }

    .header-image {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .section-header h2,
    .section-header p,
    .section-label {
        text-align: center;
    }

    .circular-image {
        width: 150px;
        height: 150px;
    }

    /* Adjust sub-point alignment for mobile */
    .content-list ul {
        padding-left: 1.5rem;
    }

    .content-list ul li {
        padding-left: 1.5rem;
        margin-left: -1.5rem;
    }

    .content-list ul li::before {
        left: 0;
    }

    .alpha-sub-points {
        padding-left: 1.5rem;
        margin-left: -1.5rem;
    }

    .alpha-sub-points p {
        padding-left: 1.5rem;
        margin-left: -1.5rem;
    }

    /* Mobile text size optimization */
    .content-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-body h4 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .content-body p,
    .content-body li,
    .content-body .alpha-sub-points p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .content-list li {
        margin-bottom: 0.75rem;
    }

    .content-list ul li {
        margin-bottom: 0.5rem;
    }

    /* Adjust content block padding for mobile */
    .content-block {
        padding: 1rem 0.75rem;
    }

    .video-title {
        font-size: 1.25rem;
        margin: 0.75rem auto;
    }

    .video-item h4 {
        font-size: 1rem;
        margin: 0.35rem 0;
    }

    /* Footer mobile optimization */
    .footer-top {
        padding: 1rem 0;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-links,
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .footer-left,
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-left a,
    .footer-right a,
    .footer-right span {
        font-size: 0.85rem;
    }

    .social-icon {
        font-size: 1.25rem;
    }

    .copyright,
    .last-updated {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Content Block Styles */
.content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    margin-top: 1.5rem;
}

/* Tablet size - reduce padding to half */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .content-block {
        padding: 2rem 4rem;
    }
}

.content-block .number-label {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: 1.2rem;
}

/* Theme Colors for Content Block Labels */
#mk-pri .content-block .number-label,
#sec-preu .content-block .number-label {
    border-color: var(--theme-1);
    color: var(--theme-1);
}

#poly-ite .content-block .number-label,
#adults .content-block .number-label {
    border-color: var(--theme-2);
    color: var(--theme-2);
}

#educators .content-block .number-label,
#parents .content-block .number-label {
    border-color: var(--theme-3);
    color: var(--theme-3);
}

#sped .content-block .number-label {
    border-color: var(--theme-4);
    color: var(--theme-4);
}

.content-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-bold);
}

.content-body h4 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.content-body p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: var(--font-regular);
}

/* List Styles */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    font-weight: var(--font-regular);
}

.content-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: var(--font-bold);
}

.content-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.content-list ul li {
    margin-bottom: 0.5rem;
}

.content-list ul li::before {
    content: "◦";
}

.alpha-sub-points {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.alpha-sub-points p {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

/* Theme Colors */
#mk-pri .content-title,
#mk-pri .content-body-header,
#mk-pri .content-list li::before,
#mk-pri .section-label span,
#sec-preu .content-title,
#sec-preu .content-body-header,
#sec-preu .content-list li::before,
#sec-preu .section-label span {
    color: var(--theme-1);
}

#poly-ite .content-title,
#poly-ite .content-body-header,
#poly-ite .content-list li::before,
#poly-ite .section-label span,
#adults .content-title,
#adults .content-body-header,
#adults .content-list li::before,
#adults .section-label span {
    color: var(--theme-2);
}

#educators .content-title,
#educators .content-body-header,
#educators .content-list li::before,
#educators .section-label span,
#parents .content-title,
#parents .content-body-header,
#parents .content-list li::before,
#parents .section-label span {
    color: var(--theme-3);
}

#sped .content-title,
#sped .content-body-header,
#sped .content-list li::before,
#sped .section-label span {
    color: var(--theme-4);
}

/* Content Images */
.content-image-wrapper {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.content-image {
    border-radius: 12px;
}

/* Footer */
footer {
    color: var(--white);
    margin-top: auto;
}

.footer-top {
    background-color: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    background-color: #2b3044;
    padding: 1.5rem 0;
}

.footer-links,
.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links span {
    color: #282E45;
    font-weight: bold
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-left a,
.footer-right a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-bottom .footer-left a,
.footer-bottom .footer-right span {
    color: #ffffff;
}

.footer-left a:hover,
.footer-right a:hover {
    opacity: 0.8;
}

.social-icon {
    font-size: 1.5rem;
    color: #6c757d;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-icon.fab.fa-facebook:hover {
    color: #1877f2;
}
.social-icon.fab.fa-linkedin:hover {
    color: #0077b5;
}
.social-icon.fab.fa-instagram:hover {
    color: #e4405f;
}
.social-icon.fab.fa-twitter:hover {
    color: #1da1f2;
}
.social-icon.fab.fa-youtube:hover {
    color: #ff0000;
}

/* Custom Schoolbag Icon */
.schoolbag-icon {
    width: 14px;
    height: 12px;
    display: inline-block;
    background-image: url("../images/schbag-icon.ico");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.9);
}

.schoolbag-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: grayscale(0%) brightness(1);
}

.copyright,
.last-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 768px) {
    .footer-links,
    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left,
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 117, 190, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #005a92; /* Darker shade of the blue */
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 117, 190, 0.4);
}

.back-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease-in-out;
}

/* Resources Section Styles */
.resources-section {
    padding: 2rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 2rem 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    color: #000;
}
.section-header h2.white {
    color: white;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

.resources-content {
    max-width: 800px;
    margin: 0 auto;
}

.resource-subsection {
    margin-bottom: 4rem;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    margin-bottom: 2rem;
    color: #000;
    text-align: center;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #f0f7ff;
    padding: 1.5rem;
    border-radius: 4px;
}

.blue-bar {
    width: 4px;
    min-height: 24px;
    height: 100%;
    background-color: var(--blue);
    flex-shrink: 0;
}

.resource-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.resource-list li {
    padding: 0;
    margin: 0;
}

.resource-link {
    color: #000;
    text-decoration: underline;
    font-size: 1rem;
    line-height: 1.5;
    display: block;
    width: 100%;
}

.resource-link:hover {
    color: var(--blue);
}

@media screen and (max-width: 768px) {
    .resources-content {
        padding: 0 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media screen and (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .nav-card h3 {
        font-size: 1.2rem;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

@media screen and (max-width: 768px) {
    .hero-banner-img {
        content: url("../images/banner-mobile.jpg");
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .journey-intro h2 {
        font-size: 2rem;
    }

    .content-block {
        padding: 1.5rem;
    }

    .content-title {
        font-size: 1.75rem;
    }

    .content-body h4 {
        font-size: 1.25rem;
    }

    /* .content-body p,
    .content-body li,
    .content-body .alpha-sub-points p {
        font-size: 0.95rem;
    } */

    .circular-image {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    p {
        font-size: 16px;
    }

    .journey .video-title {
        font-size: 0.9rem;
    }

    .section-header {
        text-align: center;
        margin: 0 auto 2rem;
        justify-self: center;
        display: flex;
        flex-flow: column;
    }

    .header-image {
        justify-content: center;
    }

    .section-header h2,
    .section-header p {
        text-align: center;
    }
}

/* Nav card hover effects with theme color text and background */
a[href="#mk-pri"].nav-card:hover {
    background-color: var(--bg-mk-pri);
    box-shadow: 0 12px 32px rgba(244, 127, 50, 0.2);
}

a[href="#sec-preu"].nav-card:hover {
    background-color: var(--bg-sec-preu);
    box-shadow: 0 12px 32px rgba(244, 127, 50, 0.2);
}

a[href="#poly-ite"].nav-card:hover {
    background-color: var(--bg-poly-ite);
    box-shadow: 0 12px 32px rgba(82, 63, 121, 0.2);
}

a[href="#adults"].nav-card:hover {
    background-color: var(--bg-adults);
    box-shadow: 0 12px 32px rgba(82, 63, 121, 0.2);
}

a[href="#educators"].nav-card:hover {
    background-color: var(--bg-educators);
    box-shadow: 0 12px 32px rgba(57, 97, 188, 0.2);
}

a[href="#parents"].nav-card:hover {
    background-color: var(--bg-parents);
    box-shadow: 0 12px 32px rgba(57, 97, 188, 0.2);
}

a[href="#sped"].nav-card:hover {
    background-color: var(--bg-sped);
    box-shadow: 0 12px 32px rgba(29, 182, 193, 0.2);
}

/* Media Queries for Resources */
@media screen and (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .resources-content {
        max-width: 1200px; /* Wider container for video grid */
    }
}


/* Content Highlight Styles */
.content-highlight {
    background-color: #F9F8F0;
    border: 2px solid;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.content-highlight p,
.content-highlight .content-list li {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
}

.content-highlight .content-list {
    margin-top: 1rem;
}

/* Make content-highlight responsive */
@media screen and (max-width: 768px) {
    .content-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .content-highlight p,
    .content-highlight .content-list li {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    .content-highlight {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Section-specific border colors */
#mk-pri .content-highlight,
#sec-preu .content-highlight {
    border-color: var(--theme-1);
}

#poly-ite .content-highlight,
#adults .content-highlight {
    border-color: var(--theme-2);
}

#educators .content-highlight,
#parents .content-highlight {
    border-color: var(--theme-3);
}

#sped .content-highlight {
    border-color: var(--theme-4);
}

/* Content Link Styles */
.content-link {
    font-family: var(--font-family);
    font-size: 1.3rem;
    line-height: 1.6;
    text-decoration: underline;
    display: inline-block;
    margin-top: 1rem;
}
.content-link.para {
    margin-top: 0;
    display: inline;
}

/* Theme Colors for Content Links */
#mk-pri .content-link,
#sec-preu .content-link {
    color: var(--theme-1);
}

#poly-ite .content-link,
#adults .content-link {
    color: var(--theme-2);
}

#educators .content-link,
#parents .content-link {
    color: var(--theme-3);
}

#sped .content-link {
    color: var(--theme-4);
}

/* Make content-link responsive */
@media screen and (max-width: 768px) {
    .content-link {
        font-size: 1rem;
        line-height: 1.5;
    }
}
