:root{
    --brand-green:#67b44a;
    --brand-green-dark:#4f9537;
    --brand-green-soft:#f4f9f1;
    --text-dark:#333333;
    --text-mid:#555555;
    --text-light:#777777;
    --border:#e5e5e5;
    --background:#ffffff;
    --card-bg:#ffffff;
    --shadow:none;
    --radius:14px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#ffffff;
    color:var(--text-dark);
}

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

a{
    color:inherit;
}

button{
    font:inherit;
}

/* SHARED LAYOUT */

.site-header{
    background:#ffffff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
}

.header-inner{
    width:100%;
    margin:0;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

.logo img{
    width:160px;
}

.menu-toggle{
    border:1px solid var(--border);
    background:#fff;
    border-radius:10px;
    padding:10px 14px;
    font-weight:600;
    cursor:pointer;
}

.site-nav{
    width:100%;
    display:none;
    flex-direction:column;
    gap:10px;
    padding-top:8px;
}

.site-nav.open{
    display:flex;
}

.site-nav a{
    text-decoration:none;
    color:var(--text-dark);
    font-weight:600;
    padding:10px 0;
}

.header-btn,
.btn{
    display:inline-block;
    background:var(--brand-green);
    color:#fff !important;
    padding:12px 16px;
    border-radius:10px;
    text-align:center;
    text-decoration:none;
    font-weight:700;
    border:none;
    cursor:pointer;
}

.header-btn:hover,
.btn:hover{
    background:var(--brand-green-dark);
}

.page-shell{
    width:100%;
    margin:0;
    padding:0 16px 48px;
}

.page-shell-portal{
    padding-top:16px;
}

.site-footer{
    border-top:1px solid var(--border);
    background:#fff;
    margin-top:24px;
}

.footer-inner{
    width:100%;
    margin:0;
    padding:18px 16px;
    text-align:center;
    color:var(--text-light);
    font-size:14px;
}

/* INDEX */

.hero{
    text-align:center;
    padding:32px 16px 24px;
}

.hero h1{
    font-size:30px;
    line-height:1.15;
    margin:0 0 12px;
}

.hero p{
    font-size:16px;
    line-height:1.6;
    color:var(--text-mid);
    margin:0 auto;
    max-width:760px;
}

.hero-card{
    background:#ffffff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:28px 20px;
    margin-top:10px;
}

.hero-actions{
    margin-top:22px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

.helper-text{
    margin-top:18px;
    font-size:14px;
    color:var(--text-light);
    line-height:1.5;
}

.btn-secondary{
    background:#fff;
    color:var(--brand-green-dark) !important;
    border:1px solid var(--border);
}

.btn-secondary:hover{
    background:#f8f8f8;
}

/* PORTAL */

.section-card,
.dashboard-card{
    background:#ffffff;
    border:1px solid var(--border);
    border-radius:var(--radius);
}

.section-card{
    padding:18px;
    margin-bottom:20px;
}

.section-header{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:16px;
}

.section-header h2{
    margin:0 0 6px;
    font-size:24px;
}

.section-header p{
    margin:0;
    color:var(--text-mid);
    line-height:1.6;
}

.calendar-controls{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.view-btn{
    border:1px solid var(--border);
    background:#fff;
    color:var(--text-dark);
    border-radius:999px;
    padding:10px 14px;
    font-weight:600;
}

.view-btn.active{
    background:var(--brand-green);
    border-color:var(--brand-green);
    color:#fff;
}

.calendar-frame{
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.calendar-topbar{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:14px;
    background:#ffffff;
    border-bottom:1px solid var(--border);
}

.calendar-title{
    font-size:18px;
    font-weight:700;
}

.calendar-nav{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.calendar-nav button{
    border:1px solid var(--border);
    background:#fff;
    border-radius:8px;
    padding:8px 12px;
    font-weight:600;
}

.calendar-scroll{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    background:#ffffff;
}

.calendar-scroll::-webkit-scrollbar{
    height:8px;
}

.calendar-scroll::-webkit-scrollbar-thumb{
    background:#d8d8d8;
    border-radius:999px;
}

.week-grid{
    display:flex;
    min-width:max-content;
}

.day-column{
    width:85vw;
    max-width:340px;
    min-height:260px;
    padding:14px;
    border-right:1px solid var(--border);
    scroll-snap-align:start;
    flex:0 0 auto;
    background:#ffffff;
}

.day-column:last-child{
    border-right:none;
}

.day-name{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--text-light);
    margin-bottom:8px;
}

.day-date{
    font-size:18px;
    font-weight:700;
    margin-bottom:12px;
}

.event{
    background:var(--brand-green-soft);
    border-left:4px solid var(--brand-green);
    border-radius:10px;
    padding:10px 12px;
    margin-bottom:10px;
}

.event strong{
    display:block;
    margin-bottom:4px;
    font-size:14px;
}

.event span{
    color:var(--text-mid);
    font-size:13px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

.dashboard-card{
    padding:20px;
}

.dashboard-card h3{
    margin:0 0 12px;
    font-size:22px;
}

.dashboard-card p{
    color:var(--text-mid);
    line-height:1.6;
}

.status-pill{
    display:inline-block;
    background:var(--brand-green-soft);
    color:var(--brand-green-dark);
    border-radius:999px;
    padding:8px 14px;
    font-weight:600;
    font-size:14px;
    margin-bottom:14px;
}

.card-list{
    list-style:none;
    padding:0;
    margin:0;
}

.card-list li{
    padding:0 0 14px;
    margin:0 0 14px;
    border-bottom:1px solid var(--border);
}

.card-list li:last-child{
    border-bottom:none;
    margin-bottom:0;
    padding-bottom:0;
}

.card-list strong{
    display:block;
    margin-bottom:6px;
    font-size:15px;
}

.card-list span{
    color:var(--text-mid);
    font-size:14px;
    line-height:1.5;
}

.meta{
    display:block;
    margin-top:6px;
    font-size:12px;
    color:var(--text-light);
}

.card-link{
    display:inline-block;
    margin-top:18px;
    color:var(--brand-green-dark);
    font-weight:700;
    text-decoration:none;
}

.card-link:hover{
    text-decoration:underline;
}

.upload-box{
    border:2px dashed #d7e5d0;
    border-radius:12px;
    padding:24px;
    text-align:center;
    background:#ffffff;
}

.upload-box strong{
    display:block;
    margin-bottom:8px;
    font-size:16px;
}

.upload-box span{
    color:var(--text-mid);
    font-size:14px;
    line-height:1.5;
}

.page-note{
    text-align:center;
    font-size:14px;
    color:var(--text-light);
    margin-top:10px;
}

/* TABLET / DESKTOP */

@media (min-width: 768px){
    .header-inner{
        padding:16px 24px;
        flex-wrap:nowrap;
    }

    .logo img{
        width:200px;
    }

    .menu-toggle{
        display:none;
    }

    .site-nav{
        width:auto;
        display:flex;
        flex-direction:row;
        align-items:center;
        gap:18px;
        padding-top:0;
    }

    .page-shell{
        padding:0 24px 64px;
    }

    .page-shell-portal{
        padding-top:24px;
    }

    .hero{
        padding:56px 24px 36px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero-card{
        padding:40px 32px;
    }

    .section-card{
        padding:28px;
        margin-bottom:28px;
    }

    .section-header{
        flex-direction:row;
        justify-content:space-between;
        align-items:flex-start;
    }

    .calendar-topbar{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        gap:16px;
        padding:16px 18px;
    }

    .day-column{
        width:320px;
    }

    .dashboard-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (min-width: 1200px){
    .page-shell{
        padding-left:32px;
        padding-right:32px;
    }

    .header-inner,
    .footer-inner{
        padding-left:32px;
        padding-right:32px;
    }

    .calendar-scroll{
        overflow-x:visible;
    }

    .week-grid{
        display:grid;
        grid-template-columns:repeat(7, 1fr);
        min-width:0;
    }

    .day-column{
        width:auto;
        max-width:none;
        min-height:280px;
    }

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