:root {
    --clr-primary: #2563eb;
    --clr-text-main: #0f172a;
    --clr-text-muted: #64748b;
    --clr-bg-body: #f8fafc;
    --clr-bg-surface: #ffffff;
    --clr-border: #e2e8f0;
    --btn-blue: #3b82f6;
    --btn-green: #10b981;
    --btn-red: #ef4444;
    --btn-orange: #f59e0b;
    --btn-purple: #8b5cf6;
    --btn-teal: #14b8a6;
    --btn-pink: #ec4899;
    --btn-dark: #1e293b;
    --site-width: 1200px;
    --header-height: 70px;
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Meera Inimai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--clr-bg-body);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-optical-sizing: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul, ol {
    list-style: none;
}

/* Material Icons Helpers */
.material-symbols-outlined::before {
    content: attr(data-icon);
    font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 24;
}

.material-symbols-rounded[icon]::before {
    content: attr(icon);
    font-family: 'Material Symbols Rounded';
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

.material-symbols-rounded {
    vertical-align: middle;
    font-size: 1.25rem;
}

/* Color Utilities */
.green { color: #2e7d32; }
.green-soft { color: #43a047; }
.green-lite { color: #66bb6a; }
.blue { color: #1e88e5; }
.blue-soft { color: #42a5f5; }
.teal { color: #00897b; }
.teal-soft { color: #26a69a; }
.orange { color: #fb8c00; }
.orange-soft { color: #ffb74d; }
.red { color: #e53935; }
.red-soft { color: #ef5350; }
.purple { color: #8e24aa; }
.purple-soft { color: #ba68c8; }
.pink { color: #d81b60; }
.pink-soft { color: #f06292; }
.maroon { color: #800020; }
.maroon-soft { color: #a8324a; }
.gray { color: #757575; }
.gray-light { color: #bdbdbd; }
.dark { color: #111; }
.white { color: #fff; }

/* Text Alignment Utilities */
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }

/* Main Layout */
.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 24px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Header & Navigation */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--clr-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgb(0 0 0 / .02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    color: #333;
    z-index: 1001;
}

.logo img {
    height: 1.3em;
    width: auto;
    display: block;
    flex-shrink: 0;
    margin-right: 5px;
}

.logo span {
    line-height: 1;
    display: inline-block;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: .95rem;
    color: var(--clr-text-main);
    padding: 8px 0;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--clr-primary);
}

/* Dropdown (Click/Checkbox Method) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-input {
    display: none;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--clr-border);
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: var(--radius);
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--clr-primary);
}

/* Dropdown Checked State (Desktop) */
.dropdown-input:checked ~ .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-input:checked + .dropdown-trigger .arrow-icon {
    transform: rotate(180deg);
    color: var(--clr-primary);
}

.dropdown-input:checked + .dropdown-trigger {
    color: var(--clr-primary);
}

/* Mobile Toggle & Overlay */
.nav-toggle-input {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    color: #1e293b;
    z-index: 1001;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / .5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

/* Typography & Content */
h1 { font-size: 2.2rem; margin-bottom: .5rem; line-height: 1.2; color: #111; }
h2 { font-size: 1.75rem; margin: 2rem 0 1rem; padding-bottom: 10px; border-bottom: 1px solid var(--clr-border); }
h3 { font-size: 1.4rem; margin: 1.5rem 0 .75rem; color: #1e293b; }
p { margin-bottom: 1.25rem; font-size: 1.05rem; color: #334155; }
small { font-size: .85em; color: var(--clr-text-muted); }
strong { color: #0f172a; font-weight: 700; }
mark { background: #fef9c3; color: #854d0e; padding: 2px 4px; border-radius: 4px; }

/* Styled Lists */
.styled-list-ul li { list-style: disc; margin-left: 20px; margin-bottom: 8px; color: #334155; }
.styled-list-ol li { list-style: decimal; margin-left: 20px; margin-bottom: 8px; color: #334155; }
.styled-list-ol span { font-weight: 400; }

/* Buttons */
.btn-containers, .btn-container { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.btn-container { justify-content: center; align-items: center; }
.btn { padding: 10px 18px; border-radius: 6px; font-size: .9rem; font-weight: 500; color: #fff; cursor: pointer; border: none; transition: transform 0.1s, opacity 0.2s; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.bg-blue { background: var(--btn-blue); }
.bg-green { background: var(--btn-green); }
.bg-red { background: var(--btn-red); }
.bg-orange { background: var(--btn-orange); }
.bg-purple { background: var(--btn-purple); }
.bg-teal { background: var(--btn-teal); }
.bg-pink { background: var(--btn-pink); }
.bg-dark { background: var(--btn-dark); }

/* Notepad */
.notepad { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .05); margin: 30px 0; overflow: hidden; transition: box-shadow 0.3s; }
.notepad:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1); }
.notepad-header { background: #f8fafc; border-bottom: 1px solid var(--clr-border); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
.header-left, .header-controls { display: flex; align-items: center; gap: 10px; }
.header-controls { gap: 15px; }
.notepad-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-text-muted); }
.status-dot { width: 8px; height: 8px; background: var(--btn-green); border-radius: 50%; display: inline-block; }

/* Toggle Switch */
.toggle-switch { position: relative; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 10px; font-weight: 800; color: #fff; transition: .4s; }
.toggle-slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgb(0 0 0 / .2); }
.toggle-switch input:checked + .toggle-slider { background: var(--clr-primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(24px); }
.toggle-label-on { display: none; }
.toggle-label-off { display: block; margin-left: auto; }
.toggle-switch input:checked + .toggle-slider .toggle-label-on { display: block; }
.toggle-switch input:checked + .toggle-slider .toggle-label-off { display: none; }

.icon-btn { background: none; border: none; cursor: pointer; color: var(--clr-text-muted); padding: 6px; border-radius: 50%; display: flex; }
.icon-btn:hover { background: #f1f5f9; color: var(--clr-primary); }
.notepad textarea { width: 100%; min-height: 300px; border: none; padding: 20px; resize: vertical; font-family: "Inter", "Meera Inimai", sans-serif; font-size: 1.05rem; color: var(--clr-text-main); outline: none; }
.notepad textarea:focus { background: #fff; }
.notepad textarea::placeholder { color: #cbd5e1; font-style: italic; }

/* Suggestions & Tags */
.suggestion-area ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin-top: 15px; }
.tag-pill { padding: 6px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600; cursor: pointer; border: 1px solid #fff0; transition: all 0.2s; }
.tag-pill:hover { transform: translateY(-2px); filter: brightness(.95); }
.tag-pill:nth-child(5n+1) { background: #f0f9ff; color: #0369a1; border-color: #e0f2fe; }
.tag-pill:nth-child(5n+2) { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }
.tag-pill:nth-child(5n+3) { background: #faf5ff; color: #7e22ce; border-color: #f3e8ff; }
.tag-pill:nth-child(5n+4) { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.tag-pill:nth-child(5n+5) { background: #fff1f2; color: #be123c; border-color: #ffe4e6; }

/* Ads & Layout Sections */
.ilove-place, .ad-place { background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-weight: 600; border-radius: var(--radius); width: 100%; height: 120px; margin-bottom: 20px; }
.updates-box { background: #eff6ff; border-left: 4px solid var(--clr-primary); padding: 20px; border-radius: 4px; margin-bottom: 30px; }
.update-item { display: flex; flex-direction: column; gap: 5px; }
.update-date { font-size: .8rem; color: var(--clr-primary); font-weight: 700; text-transform: uppercase; }
.sidebar-widget { margin-bottom: 40px; }
.sidebar-widget h4 { font-size: 1.1rem; margin-bottom: 15px; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
.sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .sidebar {
        width: 100%;
        position: -webkit-sticky;
        position: sticky;
        bottom: 20px;
        align-self: flex-end;
    }
}


/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-header { padding: 15px 20px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-icon { color: var(--clr-primary); transition: transform 0.3s ease; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: #fff; }
.faq-inner { padding: 0 20px 20px; color: #475569; font-size: .95rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-header { color: var(--clr-primary); }

/* Feedback Ticker */
.feedback-ticker { background: #fff; border-radius: 12px; padding: 15px; box-shadow: 0 4px 12px rgb(0 0 0 / .08); border: 1px solid #eee; }
.feedback-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }
.feedback-header-title { font-size: 14px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: .5px; }
.feedback-dot { height: 8px; width: 8px; background-color: #25d366; border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(.95); box-shadow: 0 0 0 0 rgb(37 211 102 / .7); } 70% { transform: scale(1); box-shadow: 0 0 0 5px #fff0; } 100% { transform: scale(.95); box-shadow: 0 0 0 0 #fff0; } }
.feedback-list { position: relative; height: 110px; overflow: hidden; }
.feedback-item { display: none; animation: fadeIn 0.5s ease-in-out; }
.feedback-item.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.user-info { display: flex; align-items: center; margin-bottom: 8px; }
.user-avatar { width: 32px; height: 32px; background: #1976d2; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-right: 10px; }
.user-name { font-size: 13px; font-weight: 600; color: #444; }
.feedback-rating { color: #ffb400; font-size: 12px; margin-bottom: 5px; }
.feedback-message { font-size: 13px; color: #555; line-height: 1.4; font-style: italic; }
.feedback-date { font-size: 11px; color: #999; margin-top: 5px; text-align: right; }

/* Page Templates (About, Contact, etc) */
.page-header { margin-bottom: 24px; }
.page-kicker { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--clr-primary); margin-bottom: 8px; }
.page-title { font-size: 1.5rem; line-height: 1.2; color: #0f172a; margin-bottom: 8px; }
.page-meta { font-size: .85rem; color: var(--clr-text-muted); display: flex; flex-wrap: wrap; gap: 10px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }
.page-main { background: #fff; border-radius: var(--radius); border: 1px solid var(--clr-border); padding: 24px 24px 28px; box-shadow: 0 10px 20px -15px rgb(15 23 42 / .35); }
.page-section-title { font-size: 1.15rem; margin: 20px 0 10px; color: #1e293b; }
.page-section { margin-bottom: 16px; }
.page-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 18px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: .8rem; background: #f1f5f9; color: #475569; }
.sidebar-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--clr-border); padding: 16px 18px; }
.sidebar-card-title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.sidebar-card-text { font-size: .9rem; color: #64748b; }

/* Font Table */
.font-table-container { overflow-x: auto; margin-top: 20px; border: 1px solid #eee; border-radius: 8px; }
.font-table { width: 100%; border-collapse: collapse; background: #fff; }
.font-table thead tr { background: #f8f9fa; border-bottom: 2px solid #eee; }
.font-table th { padding: 15px 12px; text-align: left; color: #333; font-weight: 600; }
.font-table td { padding: 12px; border-bottom: 1px solid #eee; color: #444; }
.font-table tr:last-child td { border-bottom: none; }
.download-chip { display: inline-flex; align-items: center; gap: 5px; background: #007bff; color: #fff!important; padding: 6px 16px; border-radius: 50px; text-decoration: none; font-size: .85rem; font-weight: 500; transition: background 0.3s ease, transform 0.2s ease; }
.download-chip:hover { background: #0056b3; transform: translateY(-1px); box-shadow: 0 4px 6px rgb(0 0 0 / .1); }

/* Categories */
.cat-section { padding: 40px 0; border-top: 1px solid var(--clr-border); background: #fff; margin-top: 40px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 20px; }
.cat-tag { display: block; padding: 10px; background: #f1f5f9; color: #334155; text-align: center; border-radius: 6px; font-weight: 500; transition: 0.2s; }
.cat-tag:hover { background: var(--clr-primary); color: #fff !important; }

/* Sidebar Link List Styling */
.sidebar-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link-list li {
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-link-list li:last-child {
    border-bottom: none;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: var(--clr-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

/* FIXED: Changed bad character code to standard Unicode \203A (>) */
.sidebar-link-list a::before {
    content: "\203A";
    font-size: 1.2rem;
    line-height: 1;
    margin-right: 8px;
    color: #cbd5e1;
    transition: color 0.2s, transform 0.2s;
}

.sidebar-link-list a:hover {
    color: #1d4ed8;
    padding-left: 5px;
}

.sidebar-link-list a:hover::before {
    color: var(--clr-primary);
    transform: translateX(2px);
}

#live-clock {
    display: inline-block;
    color: #2563eb;
    background: #f8fafc;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.clock-sep {
    color: #94a3b8;
    margin: 0 8px;
    font-weight: 300;
}

/* Footer */
.site-footer { background: #1e293b; color: #cbd5e1; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; text-transform: uppercase; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid #334155; padding-top: 20px; font-size: .9rem; }
.footer-bottom a { color: #60a5fa; text-decoration: none; }
.footer-bottom a:hover { color: #93c5fd; text-decoration: underline; }
.site-footer p { color: #cbd5e1; }

/* Combined Mobile Queries */
@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 0;
        gap: 0;
        box-shadow: -5px 0 20px rgb(0 0 0 / .15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-toggle-input:checked ~ .nav-menu {
        transform: translateX(0);
    }

    .nav-toggle-input:checked ~ .nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 600;
        color: #000;
        display: block;
    }

    .dropdown {
        width: 100%;
        display: block;
border-bottom: 1px solid #f1f5f9;
    }

    .dropdown-trigger {
        width: 100%;
        padding: 15px 25px;
        justify-content: space-between;
        font-weight: 600;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f8fafc;
    }

    .dropdown-input:checked ~ .dropdown-menu {
        display: block;
    }

.dropdown-input:checked + .dropdown-trigger + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 45vh;
}

    .dropdown-item {
        padding: 12px 40px;
        font-weight: 500;
    }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
}


.cal-modern-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 20px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cal-mod-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 20px;
}

.cal-date-circle {
    background: var(--clr-primary);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.d-month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.d-day { font-size: 1.8rem; font-weight: 800; }

.cal-header-details { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
}

.d-year { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.d-full { font-size: 1.1rem; font-weight: 800; color: #0f172a; }

.d-tithi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3e8ff;
    color: #7e22ce;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.d-tithi-badge strong { font-weight: 800; }
.icon-mini { font-size: 1rem; }

.sun-row { display: flex; gap: 12px; margin-top: 2px; }
.sun-row span { font-size: 0.8rem; font-weight: 600; color: #475569; display: flex; align-items: center; gap: 4px; }
.icon-tiny { font-size: 1rem; }

.cal-mod-section { margin-bottom: 24px; }

.sec-title { 
    font-size: 0.95rem; 
    font-weight: 700; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.time-pill {
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    justify-content: center;
}

.tp-label { font-size: 0.75rem; font-weight: 700; opacity: 0.8;  }
.tp-vals span { display: block; font-size: 0.9rem; font-weight: 700; line-height: 1.3; }

.tp-label small, .ip-label small {
    font-size: 0.62rem;
    opacity: 0.8;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.pill-row-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.info-pill {
    padding: 10px 4px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ip-label { font-size: 0.7rem; margin-bottom: 4px; font-weight: 600; opacity: 0.9; }
.ip-time { font-size: 0.85rem; font-weight: 700; }

.time-item {
    color: #334155;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px; 
    text-align: center;
}

.time-item:last-child {
}

@media (max-width: 600px) {
    .tp-label .text-content {
        display: none;
    }
    
    .tp-label::before {
        content: attr(data-mobile);
    }
}

.detail-stack { display: flex; flex-direction: column; gap: 10px; }

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
}

.dr-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dr-content { display: flex; flex-direction: column; gap: 2px; }
.dr-label { font-size: 0.75rem; color: #64748b; font-weight: 600; }
.dr-val { font-size: 0.9rem; color: #334155; line-height: 1.4; }
.dr-val strong { color: #0f172a; }

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.q-lbl { display: block; font-size: 0.7rem; color: #64748b; margin-bottom: 2px; }
.q-val { display: block; font-size: 0.95rem; font-weight: 700; color: #0f172a; }

.cal-mod-footer {
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #14532d;
    line-height: 1.5;
   margin-bottom: 6px;
}

.icon-med { font-size: 1.5rem; }

.pill-green { background: #ecfdf5; border: 1px solid #d1fae5; color: #047857; }
.pill-teal { background: #f0f9ff; border: 1px solid #e0f2fe; color: #0369a1; }
.pill-red { background: #fef2f2; border: 1px solid #fee2e2; color: #b91c1c; }
.pill-orange { background: #fff7ed; border: 1px solid #ffedd5; color: #c2410c; }
.pill-blue { background: #eff6ff; border: 1px solid #dbeafe; color: #1d4ed8; }

.bg-purple-light { background: #f3e8ff; }
.bg-blue-light { background: #eff6ff; }
.bg-orange-light { background: #fff7ed; }
.bg-green-light { background: #f0fdf4; }
.bg-pink-light   { background: #fce7f3; }
.bg-red-light    { background: #fee2e2; }
.bg-yellow-light { background: #fef9c3; }
.bg-indigo-light { background: #eef2ff; }
.bg-teal-light   { background: #f0fdfa; }
.bg-cyan-light   { background: #ecfeff; }
.bg-lime-light   { background: #f7fee7; }
.bg-amber-light  { background: #fffbeb; }
.bg-rose-light   { background: #ffe4e6; }
.bg-sky-light    { background: #e0f2fe; }

.text-green { color: #15803d; }
.text-red { color: #b91c1c; }
.text-purple { color: #7e22ce; }
.text-orange { color: #c2410c; }
.text-blue { color: #1d4ed8; }
.text-pink    { color: #be185d; }
.text-yellow  { color: #a16207; }
.text-indigo  { color: #4338ca; }
.text-teal    { color: #0f766e; }
.text-cyan    { color: #0e7490; }
.text-lime    { color: #4d7c0f; }
.text-amber   { color: #b45309; }
.text-rose    { color: #be123c; }
.text-sky     { color: #0369a1; }
.text-gray    { color: #374151; }

@media (max-width: 400px) {
    .tp-vals span { font-size: 0.73rem; }
    .ip-time { font-size: 0.70rem; }
    .q-val { font-size: 0.80rem; }
}

.daily-calendar-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto 15px auto;
    max-width: 900px;
    text-align: center;
}

.dc-select-row {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 15px;
    width: 100%;
}

.dc-select {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    background-color: #fff !important;
    cursor: pointer;
    height: 40px !important;
    box-sizing: border-box !important;
}

.dc-select:focus {
    border-color: #2563eb !important;
    outline: none;
}

.dc-small { min-width: 65px; }
.dc-medium { min-width: 120px; }

.dc-btn-go {
    display: inline-block !important;
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
    height: 40px !important;
    font-size: 0.95rem !important;
    width: auto !important;
}

.dc-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.9rem;
}

.dc-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.dc-link:hover { 
    text-decoration: underline; 
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}


.dc-link.active { font-weight: 800; color: #0f172a; pointer-events: none; }
.dc-sep { color: #cbd5e1; }

.dc-image-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
}

.dc-date-header {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-align: center;
}

.dc-daily-sheet {
    width: 85% !important;
    max-width: 100% !important;
    height: auto !important;    
    display: block !important;
    margin: 0 auto; 
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
    border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .daily-calendar-wrapper { padding: 15px 5px; }
    .dc-select-row { gap: 5px !important; }
    
    .dc-select { 
        font-size: 0.85rem !important; 
        padding: 4px 6px !important;
        height: 38px !important;
    }
    .dc-medium { min-width: 100px; }
    .dc-btn-go { height: 38px !important; }
    .dc-break-mobile { flex-basis: 100%; height: 0; }
    .dc-mobile-hide { display: none; }
    .dc-links-row { gap: 4px 8px; }
    .dc-image-container { padding: 15px 5px; }
   .dc-daily-sheet {
    width: 95% !important;
}
}

.event-timeline-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 15px;
    max-width: 600px;
    margin: 20px auto;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.et-header {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f1f5f9;
}

.et-section {
    margin-bottom: 30px;
}

.et-section-header {
    text-align: center;
    margin-bottom: 15px;
}


.et-title-ta {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2563eb; 
    line-height: 1.2;
}

.et-title-en {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.et-divider {
    margin-top: 5px;
    line-height: 0;
    opacity: 0.6;
}

.et-events-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.et-event-card {
    display: flex;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    gap: 12px;
    align-items: center;
    transition: transform 0.2s;
}

.et-event-card:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.et-date-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.et-db-day {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.et-db-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ef4444; 
    margin-top: 2px;
}

.et-card-content {
    flex: 1;
    min-width: 0;
}

.et-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.et-event-name {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.et-day-tag {
    font-size: 0.75rem;
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.et-event-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.2;
}

.et-note-row {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #b45309;
    background: #fffbeb;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.note-icon {
    font-size: 14px !important;
}

@media (max-width: 480px) {
    .et-event-card {
        padding: 8px;
        gap: 10px;
    }
    
    .et-date-box {
        width: 48px;
        height: 48px;
    }
    
    .et-db-day { font-size: 1.1rem; }
    .et-event-name { font-size: 0.95rem; }
    .et-card-top { flex-wrap: wrap; gap: 4px; }
}

.event-item {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #334155;
}

.event-item strong {
    color: #e11d48;
}

.event-description {
    font-size: 0.95rem;
    color: #2b7cf0;
    margin-top: 4px;
    padding-left: 20px;
    border-left: 2px dashed #cbd5e1;
}

.dc-date-header2 { padding: 12px; text-align: center; }
.dc-daily-sheet { width: 100%; height: auto; display: block; }
.dc-sheet-footer { padding: 15px; background: #fff; text-align: center; border-bottom: 1px solid #eee; }
.view-details-link { display: inline-block; color: #2563eb; text-decoration: none; font-weight: bold; font-size: 16px; }
.view-details-link:hover { color: #e11d48; text-decoration: underline; }
.is-hidden { display: none; }
#loadMoreContainer { margin: 40px 0; text-align: center; }
.dc-btn-load { background: var(--btn-blue); color: #fff; border: none; padding: 15px 40px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 16px; }


.today-summary-box{
    margin: 24px 0 10px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #dbe7f0;
    border-radius: 10px;
}

.today-summary-box p{
    margin: 10px 0 0;
    line-height: 1.8;
    color: #334155;
}

.today-subha-sep{
    margin: 0 6px;
    color: #94a3b8;
}

