/* --- style.css --- */
:root {
  --brand: #0b66ff; 
  --bg: #f2f4f7; 
  --text-main: #1a202c; 
  --danger: #d32f2f;
  --cell-bg: #ffffff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0; font-family: "Noto Sans Malayalam", sans-serif; background: var(--bg); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; }

/* Global Navigation & Footer Links */
a { text-decoration: none; color: var(--brand); }
.site-nav { background: #fff; padding: 15px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: center; gap: 20px; font-weight: 600; font-size: 0.9rem; }
.site-nav a { color: #4a5568; transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); }

/* Containers */
.container { max-width: 600px; margin: 0 auto; background: #fff; flex: 1; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.content-pad { padding: 30px 20px; line-height: 1.6; color: #333; }
.page-title { font-size: 1.8rem; color: var(--text-main); margin-bottom: 10px; border-bottom: 3px solid var(--brand); display: inline-block; padding-bottom: 5px; }

/* Calendar Specifics */
.seo-header { background: #fff; text-align: center; padding: 15px 10px; border-bottom: 1px solid #e2e8f0; }
.seo-header h1 { margin: 0; font-size: 1.5rem; color: var(--brand); font-weight: 800; }
.seo-header p { margin: 5px 0 0 0; font-size: 0.9rem; color: #64748b; }

.top-nav { background: var(--brand); color: white; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
.nav-btn { background: rgba(255,255,255,0.25); border: none; color: white; padding: 6px 14px; border-radius: 6px; font-size: 1.2rem; cursor: pointer; }
.month-label h2 { margin: 0; font-size: 1.1rem; font-weight: 700; color: white; }
.month-label p { margin: 0; font-size: 0.8rem; opacity: 0.95; }

.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 8px 0; }
.wd-cell { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wd-en { font-size: 0.6rem; font-weight: 800; color: #64748b; }
.wd-ml { font-size: 0.75rem; font-weight: 700; color: var(--brand); }
.wd-cell.sun .wd-en, .wd-cell.sun .wd-ml { color: var(--danger); }

.grid { display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; }
.cell { position: relative; background: var(--cell-bg); border-right: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; height: 90px; display: flex; flex-direction: column; align-items: center; cursor: pointer; overflow: hidden; }
.cell:nth-child(7n) { border-right: none; }
.c-date { margin-top: 18px; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.tl-mal { position: absolute; top: 4px; left: 4px; font-size: 0.7rem; color: #718096; }
.b-star { font-size: 0.65rem; color: #4a5568; margin-top: 6px; text-align: center; width: 95%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hol-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(229, 62, 62, 0.95); color: white; font-size: 0.6rem; font-weight: 700; text-align: center; padding: 3px 0; }
.cell.is-sun .c-date, .cell.is-hol .c-date { color: var(--danger); }
.cell.today { background: #eff6ff; box-shadow: inset 0 0 0 2px var(--brand); }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-content { background: white; width: 85%; max-width: 320px; border-radius: 12px; padding: 25px; text-align: center; }
.m-date-big { font-size: 3.5rem; font-weight: 800; color: var(--brand); margin-bottom: 5px; line-height: 1;}
.m-full-date { color: #64748b; font-size: 1rem; margin-bottom: 15px; }
.m-details { border-top: 1px solid #e2e8f0; padding-top: 15px; text-align: left; }
.m-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.m-val { font-weight: 700; color: #1e293b; }
.m-close { margin-top: 20px; background: var(--brand); color: white; border: none; padding: 12px; width: 100%; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* Article & Forms */
.seo-article { max-width: 800px; margin: 30px auto; padding: 20px 30px; background: #fff; color: #333; line-height: 1.8; }
.seo-article h3 { font-size: 1.5rem; color: var(--brand); margin-top: 30px; }
.seo-article h4 { font-size: 1.1rem; color: #d32f2f; margin-bottom: 5px; }
.info-box { background: #f8fafc; border-left: 4px solid var(--brand); padding: 15px; margin: 20px 0; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #4a5568; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e0; border-radius: 6px; font-family: inherit; }
.btn-primary { background: var(--brand); color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; }

/* Footer */
footer { margin-top: auto; padding: 20px; background: #f8fafc; border-top: 1px solid #e2e8f0; text-align: center; color: #718096; font-size: 0.85rem; }
.footer-links { margin-bottom: 10px; display: flex; justify-content: center; gap: 15px; }
.footer-links a { font-weight: 600; font-size: 0.9rem; }

@media (max-width: 480px) {
  .cell { height: 75px; } 
  .c-date { font-size: 1.3rem; margin-top: 14px; }
  .b-star { font-size: 0.6rem; }
}
