/* APP homepage visual system, scoped only to hero, portal cards and mobile-app sections. */
#portal-home-page{

    font-family:"Segoe UI",sans-serif;

    background:#f5f7fb;

    color:#1f2937;

    overflow-x:hidden;

}



/* =====================================================
   NAVBAR
===================================================== */

#portal-home-page .navbar{

    backdrop-filter:blur(14px);

    background:rgba(255,255,255,.94)!important;

    transition:.3s;

}

#portal-home-page .navbar-brand{

    font-size:2rem;

    letter-spacing:.3px;

}

#portal-home-page .nav-link{

    font-weight:600;

    margin-left:18px;

    color:#374151!important;

    transition:.25s;

}

#portal-home-page .nav-link:hover{

    color:#0d6efd!important;

}



/* =====================================================
   HERO
===================================================== */

#portal-home-page .hero-section{

    min-height:720px;

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    display:flex;

    align-items:center;

    position:relative;

}

#portal-home-page .hero-overlay{

    width:100%;

    min-height:720px;

    display:flex;

    align-items:center;

    background:linear-gradient(
        rgba(255,255,255,.70),
        rgba(255,255,255,.82)
    );

}

#portal-home-page .hero-section h1{

    font-size:3.6rem;

    font-weight:800;

    line-height:1.15;

    margin-bottom:25px;

    color:#1f2937;

}

#portal-home-page .hero-section p{

    font-size:1.15rem;

    color:#4b5563;

    max-width:560px;

    line-height:1.8;

}

#portal-home-page .badge{

    font-size:.9rem;

    letter-spacing:.8px;

    border-radius:30px;

}



/* =====================================================
   BUTTONS
===================================================== */

#portal-home-page .btn{

    border-radius:14px;

    padding:14px 34px;

    font-weight:600;

    transition:.3s;

}

#portal-home-page .btn:hover{

    transform:translateY(-3px);

}



/* =====================================================
   FLOATING PORTAL CARDS
===================================================== */

#portal-home-page .portal-cards{

    margin-top:-100px;

    position:relative;

    z-index:20;

    padding-bottom:90px;

}

#portal-home-page .portal-card{

    background:#fff;

    border-radius:24px;

    padding:45px 35px;

    text-align:center;

    height:100%;

    transition:.35s;

    box-shadow:0 15px 45px rgba(0,0,0,.10);

    border:1px solid rgba(0,0,0,.04);

}

#portal-home-page .portal-card:hover{

    transform:translateY(-12px);

    box-shadow:0 28px 60px rgba(0,0,0,.16);

}

#portal-home-page .portal-circle{

    width:90px;

    height:90px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:34px;

    margin:0 auto 28px;

}

#portal-home-page .portal-card h3{

    font-weight:700;

    margin-bottom:16px;

}

#portal-home-page .portal-card p{

    color:#6b7280;

    line-height:1.8;

    margin-bottom:28px;

}



/* =====================================================
   FEATURES
===================================================== */

#portal-home-page .feature-card{

    background:white;

    border-radius:22px;

    padding:35px 28px;

    text-align:center;

    height:100%;

    transition:.35s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

#portal-home-page .feature-card:hover{

    transform:translateY(-10px);

    box-shadow:0 24px 50px rgba(0,0,0,.14);

}

#portal-home-page .feature-icon{

    width:72px;

    height:72px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0 auto 22px;

    color:white;

    font-size:30px;

}

#portal-home-page .feature-card h5{

    font-weight:700;

    margin-bottom:15px;

}

#portal-home-page .feature-card p{

    color:#6b7280;

    line-height:1.7;

    margin-bottom:0;

}



/* =====================================================
   ABOUT
===================================================== */

#portal-home-page #about{

    background:white;

    padding-top:90px;

    padding-bottom:90px;

}

#portal-home-page #about img{

    border-radius:24px;

    box-shadow:0 25px 60px rgba(0,0,0,.12);

    transition:.35s;

}

#portal-home-page #about img:hover{

    transform:scale(1.02);

}

#portal-home-page #about h2{

    font-size:2.6rem;

    font-weight:700;

    margin-bottom:25px;

}

#portal-home-page #about p{

    color:#6b7280;

    line-height:1.9;

}



/* =====================================================
   CONTACT
===================================================== */

#portal-home-page #contact{

    background:#f8fafc;

    padding-top:80px;

    padding-bottom:80px;

}

#portal-home-page #contact h2{

    font-weight:700;

}

#portal-home-page #contact h5{

    font-weight:700;

    margin-bottom:10px;

}

#portal-home-page #contact p{

    color:#6b7280;

}



/* =====================================================
   FOOTER
===================================================== */

#portal-home-page footer{

    background:#0f172a;

}

#portal-home-page footer p{

    margin:0;

}



/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:992px){

#portal-home-page .hero-section{

    min-height:auto;

    padding:150px 0 120px;

}

#portal-home-page .hero-overlay{

    min-height:auto;

}

#portal-home-page .hero-section h1{

    font-size:2.6rem;

}

#portal-home-page .portal-cards{

    margin-top:-70px;

}

#portal-home-page .navbar-brand{

    font-size:1.6rem;

}

}

@media (max-width:768px){

#portal-home-page .hero-section h1{

    font-size:2.2rem;

}

#portal-home-page .hero-section p{

    font-size:1rem;

}

#portal-home-page .portal-card{

    padding:35px 25px;

}

#portal-home-page .btn{

    width:100%;

    margin-bottom:12px;

}

}

/* Reuse the main dashboard desktop/mobile view control on the public homepage. */
#portal-home-page .srms-view-toggle{
    display:inline-flex;
    align-items:center;
    gap:7px;
    border-radius:10px;
    font-weight:600;
}


/* =====================================================
   DOWNLOAD APP
===================================================== */

#portal-home-page .download-app-section{

    padding:90px 0;

    background:linear-gradient(135deg,#0f172a,#1e3a5f);

}

#portal-home-page .download-app-card{

    padding:55px;

    border-radius:28px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.16);

    box-shadow:0 25px 60px rgba(0,0,0,.22);

}

#portal-home-page .download-eyebrow{

    display:inline-block;

    margin-bottom:16px;

    color:#86efac;

    font-size:.85rem;

    font-weight:700;

    letter-spacing:1px;

}

#portal-home-page .download-app-card h2{

    color:#fff;

    font-weight:800;

    margin-bottom:18px;

}

#portal-home-page .download-app-card p{

    color:rgba(255,255,255,.82);

    font-size:1.05rem;

    line-height:1.8;

    max-width:700px;

}

#portal-home-page .download-features{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-top:25px;

}

#portal-home-page .download-features span{

    color:#fff;

    font-weight:600;

}

#portal-home-page .download-features i{

    color:#86efac;

    margin-right:7px;

}

#portal-home-page .download-app-btn{

    white-space:nowrap;

}

@media(max-width:767px){

    #portal-home-page .download-app-card{

        padding:35px 25px;

    }

    #portal-home-page .download-features{

        justify-content:center;

        gap:12px;

    }

}


/* =====================================================
   HOMEPAGE MOBILE-SIZED PREVIEW (DESKTOP ONLY)
   Isolated to the public portal homepage.
===================================================== */

#portal-home-page{
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    transition: width .25s ease, max-width .25s ease, box-shadow .25s ease;
}

body.portal-home-mobile-preview #portal-home-page{
    background: #e5e7eb;
}

body.portal-home-mobile-preview #portal-home-page{
    width: min(100%, 430px);
    max-width: 430px;
    overflow: hidden;
    background: #f5f7fb;
    box-shadow: 0 0 32px rgba(15, 23, 42, .18);
    min-height: 100vh;
}

/* A fixed desktop navbar would otherwise remain full-screen width. */
body.portal-home-mobile-preview #portal-home-page .navbar.fixed-top{
    position: sticky;
    top: 0;
    width: 100%;
}

/* Force Bootstrap desktop grid columns to stack as they do on a phone. */
body.portal-home-mobile-preview #portal-home-page .row > [class*="col-"]{
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

body.portal-home-mobile-preview #portal-home-page .container, body.portal-home-mobile-preview #portal-home-page .container-fluid{
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

body.portal-home-mobile-preview #portal-home-page .navbar > .container{
    flex-wrap: wrap;
}

body.portal-home-mobile-preview #portal-home-page .navbar-toggler{
    display: block;
}

body.portal-home-mobile-preview #portal-home-page .navbar-collapse:not(.show){
    display: none !important;
}

body.portal-home-mobile-preview #portal-home-page .navbar-collapse.show{
    display: block !important;
    flex-basis: 100%;
}

body.portal-home-mobile-preview #portal-home-page .navbar-nav{
    align-items: stretch;
    padding: 8px 0 12px;
}

body.portal-home-mobile-preview #portal-home-page .nav-link{
    margin-left: 0;
    padding: 10px 4px;
}

body.portal-home-mobile-preview #portal-home-page .hero-section, body.portal-home-mobile-preview #portal-home-page .hero-overlay{
    min-height: auto;
}

body.portal-home-mobile-preview #portal-home-page .hero-section{
    padding: 110px 0 100px;
    background-position: center;
}

body.portal-home-mobile-preview #portal-home-page .hero-section h1{
    font-size: 2.05rem;
    line-height: 1.18;
}

body.portal-home-mobile-preview #portal-home-page .hero-section p{
    font-size: .98rem;
    line-height: 1.65;
}

body.portal-home-mobile-preview #portal-home-page .portal-cards{
    margin-top: -55px;
    padding-bottom: 55px;
}

body.portal-home-mobile-preview #portal-home-page .portal-card{
    padding: 32px 22px;
}

body.portal-home-mobile-preview #portal-home-page .btn{
    width: 100%;
    margin: 0 0 10px;
    white-space: normal;
}

body.portal-home-mobile-preview #portal-home-page .hero-section .mt-4 > div{
    width: 100%;
}

body.portal-home-mobile-preview #portal-home-page .srms-view-toggle{
    width: auto;
    margin-bottom: 16px;
}

body.portal-home-mobile-preview #portal-home-page .download-app-section{
    padding: 55px 0;
}

body.portal-home-mobile-preview #portal-home-page .download-app-card{
    padding: 30px 20px;
}

body.portal-home-mobile-preview #portal-home-page .download-app-card .text-lg-end{
    text-align: center !important;
}

body.portal-home-mobile-preview #portal-home-page .download-features{
    gap: 10px;
}

body.portal-home-mobile-preview #portal-home-page #about h2{
    font-size: 2rem;
}

body.portal-home-mobile-preview #portal-home-page footer{
    padding-left: 12px;
    padding-right: 12px;
}

/* Keep preview usable on narrow desktop windows as well. */
@media (max-width: 430px) {
    body.portal-home-mobile-preview #portal-home-page{
        width: 100%;
        box-shadow: none;
    }
}


/* =========================================================
   MOBILE VIEW: match the Teacher Resources section width.
   Keep the homepage full-width; Bootstrap .container controls
   the same centered content width and gutters used by Teacher
   Resources. All rules are scoped to Mobile View only.
========================================================= */
body.portal-home-mobile-preview #portal-home-page {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    overflow-x: clip;
    overflow-y: visible;
    background: #f5f7fb;
    box-shadow: none;
    min-height: 100vh;
}

/* Do not override Bootstrap container widths or gutters here.
   This makes the hero, portal cards and app section use exactly
   the same .container sizing as the Teacher Resources section. */

/* Keep the original desktop-style text alignment and card layout
   while allowing the columns to stack for the mobile presentation. */
body.portal-home-mobile-preview #portal-home-page .hero-section h1,
body.portal-home-mobile-preview #portal-home-page .hero-section p {
    text-align: left;
}

body.portal-home-mobile-preview #portal-home-page .hero-section .mt-4 > div {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.portal-home-mobile-preview #portal-home-page .hero-section .btn,
body.portal-home-mobile-preview #portal-home-page .portal-card .btn {
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
    white-space: normal;
}

body.portal-home-mobile-preview #portal-home-page .portal-card {
    text-align: center;
    border-radius: 24px;
}

/* Retain the desktop app-card alignment and visual shape. */
body.portal-home-mobile-preview #portal-home-page .download-app-card {
    border-radius: 28px;
}

body.portal-home-mobile-preview #portal-home-page .download-app-card h2,
body.portal-home-mobile-preview #portal-home-page .download-app-card p {
    text-align: left;
}

body.portal-home-mobile-preview #portal-home-page .download-app-card .text-lg-end {
    text-align: right !important;
}

body.portal-home-mobile-preview #portal-home-page .download-app-action {
    align-items: flex-start !important;
}

body.portal-home-mobile-preview #portal-home-page .download-app-btn {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
}

body.portal-home-mobile-preview #portal-home-page .download-features {
    justify-content: flex-start;
}

/* Keep the mobile navigation and card columns responsive. */
body.portal-home-mobile-preview #portal-home-page .navbar.fixed-top {
    position: sticky;
    top: 0;
    width: 100%;
}

body.portal-home-mobile-preview #portal-home-page .navbar > .container {
    flex-wrap: wrap;
}

body.portal-home-mobile-preview #portal-home-page .navbar-toggler {
    display: block;
}

body.portal-home-mobile-preview #portal-home-page .navbar-collapse:not(.show) {
    display: none !important;
}

body.portal-home-mobile-preview #portal-home-page .navbar-collapse.show {
    display: block !important;
    flex-basis: 100%;
}

body.portal-home-mobile-preview #portal-home-page .navbar-nav {
    align-items: stretch;
}

body.portal-home-mobile-preview #portal-home-page .nav-link {
    margin-left: 0;
}

body.portal-home-mobile-preview #portal-home-page .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}


/* Restore Bootstrap's exact responsive .container sizing used by
   the Teacher Resources section (the earlier preview rule widened it). */
body.portal-home-mobile-preview #portal-home-page .container {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}
@media (min-width: 576px) {
    body.portal-home-mobile-preview #portal-home-page .container { max-width: 540px; }
}
@media (min-width: 768px) {
    body.portal-home-mobile-preview #portal-home-page .container { max-width: 720px; }
}
@media (min-width: 992px) {
    body.portal-home-mobile-preview #portal-home-page .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    body.portal-home-mobile-preview #portal-home-page .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
    body.portal-home-mobile-preview #portal-home-page .container { max-width: 1320px; }
}
body.portal-home-mobile-preview #portal-home-page .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}
