* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    color: #222;
    line-height: 1.6;
}
header {
    background: linear-gradient(to right, #2f9e44, #ffa200);
    color: white;
    text-align: center;
    padding: 6em 2em 4em;
}
header h1 {
    font-size: 2.8em;
    margin-bottom: 0.4em;
}
header p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;

}
nav {
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 1em;
}
nav a {
    color: #2f9e44;
    text-decoration: none;
    margin: 0 1em;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ffa200;
}
section {
    max-width: 960px;
    margin: 4em auto;
    background: white;
    border-radius: 15px;
    padding: 3em;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}
section h2 {
    font-size: 2em;
    margin-bottom: 1em;
    color: #2f9e44;
    border-left: 5px solid #ffa200;
    padding-left: 0.5em;
}
section h3 {
    font-size: 1.5em;
    margin-top: 1em;
    margin-bottom: 1em;
    color: #ffa200;
    border-left: 5px solid #2f9e44;
    padding-left: .5em;
    margin-left: .5em;
}
section img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1em 0;
}
ul {
    list-style: none;
    padding-left: 1em;
}
ul li {
    margin-bottom: 0.6em;
    padding-left: 1.2em;
    position: relative;
}
ul li::before {
    content: "\f00c";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffa200;
    position: absolute;
    left: 0;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 2em;
}
input, textarea {
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
}
button {
    background-color: #ffa200;
    color: white;
    padding: 1em;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #cc8500;
}
footer {
    background-color: #2f9e44;
    color: white;
    text-align: center;
    padding: 2em;
    margin-top: 4em;
}
img{
    padding: 10px;
    float: right;
}
section p{
        text-align: justify;
}
section1 a{
    display: inline-block; 
    float: right;
    margin-top: 1em; color: white; 
    background-color: #ffa200; 
    padding: 0.6em 1.2em; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background-color 0.3s ease;
}
section a{
    color:#ffa200;
}


body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', Arial; background:#f7f7f8; color:#111; }
    :root { --gap: 10px; --colHeadH: 56px; --allDayH: 34px; --timeColW: 64px; --slotH: 24px; }
    * { box-sizing: border-box; }
    .wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
    header.calendar {all: unset; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#000}
    .controls { display:flex; gap:8px; }
    button { border:1px solid #ddd; background:#fff; border-radius:10px; padding:8px 10px; cursor:pointer; color:#000}
    button:hover { background:#f0f0f0; }
    .sub { color:#666; font-size:13px; }

    .calendar { margin-top: 12px; background:#fff; border:1px solid #e6e6e8; border-radius:16px; overflow:hidden; }

    /* Header row */
    .grid { display:grid; grid-template-columns: var(--timeColW) repeat(7, 1fr); }
    .colhead { height: var(--colHeadH); border-bottom:1px solid #eee; display:flex; align-items:center; gap:8px; padding: 0 10px; background:#fafafa; position:sticky; top:0; z-index:3; }
    .colhead .dow { font-weight:700; text-transform:capitalize; }
    .colhead .date { color:#666; font-size:12px; }

    /* All-day row */
    .alldayRow { display:grid; grid-template-columns: var(--timeColW) repeat(7, 1fr); border-bottom:1px solid #eee; background:#fff; }
    .alldayLabel { border-right:1px solid #eee; color:#666; font-size:12px; display:flex; align-items:center; justify-content:center; }
    .alldayCell { height: var(--allDayH); border-right:1px solid #eee; padding: 4px; position:relative; }
    .alldayEvt { position:absolute; left:4px; right:4px; top:4px; bottom:4px; background:#eef6ff; border:1px solid #cfe5ff; border-radius:8px; padding:6px 8px; font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

    /* Time grid */
    .timeGrid { display:grid; grid-template-columns: var(--timeColW) repeat(7, 1fr); }
    .timeCol { border-right:1px solid #eee; background:#fafafa; }
    .timeLabel { height: var(--slotH); line-height: var(--slotH); text-align:right; padding-right:6px; color:#777; font-size:12px; }

    .dayCol { border-right:1px solid #eee; position:relative; background:#fff; }
    .slot { height: var(--slotH); border-bottom:1px dotted #f0f0f0; }
    .half { border-bottom-style: solid; border-bottom-color:#f6f6f6; }

    .busy { position:absolute; left:4px; right:4px; background: repeating-linear-gradient(45deg, #f58585, #f57f7f 6px, #ff0202 6px, #ececec 12px); border:1px dashed #d5d5d8; border-radius:8px; color:#666; font-size:12px; display:flex; align-items:center; justify-content:center; opacity:.9; pointer-events:none; z-index:0; }
    .busy .label { background:rgba(255,255,255,0.85); padding:2px 6px; border-radius:999px; border:1px solid #e5e5e8; }

    .event { position:absolute; left:6px; right:6px; border:1px solid #e0e0e0; border-left-width:3px; background:#edb599; border-left-color:#fd6b6b; border-radius:8px; padding:6px 8px; box-shadow:0 1px 0 rgba(0,0,0,.03); overflow:hidden; z-index:2; }
    .event .title { font-weight:700; font-size:13px; }
    .event .time { font-size:12px; color:#555; margin-top:2px; }
    .event .loc { font-size:12px; color:#666; margin-top:2px; }

    .nowLine { position:absolute; left:0; right:0; height:2px; background:#ff3b30; z-index:3; }

    .error { margin-top: 10px; color:#a00000; background:#fff1f1; border:1px solid #d6ffdc; padding:10px; border-radius:12px; }
    .status { margin-top: 6px; color:#666; font-size:13px; }

    @media (max-width: 900px){ .grid, .alldayRow, .timeGrid { grid-template-columns: var(--timeColW) repeat(3, 1fr); } }
    @media (max-width: 600px){ .grid, .alldayRow, .timeGrid { grid-template-columns: var(--timeColW) repeat(2, 1fr); } }
    @media (max-width: 440px){ .grid, .alldayRow, .timeGrid { grid-template-columns: 1fr; } .timeCol{ display:none; } }