body {
      margin: 0;
      padding-bottom: 0 !important;
      font-family: Verdana, Arial, sans-serif;
      background: #fff;
    }
    .container {
      max-width: 980px;
      margin: 0 auto;
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }
    .calendar-header {
    padding: 10px 10px 10px;
    background: #122046;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    min-height: 82px;
    border-bottom: 0.88px solid #fff;
    margin: 0;
    }
    .calendar-header .header-link {
    font-size: 3rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: white !important;
    margin: 0;
    }
    
    #calendarTable {
      table-layout: fixed;
      width: 100%;
      border-collapse: collapse;
    }
    
    #calendarTable th, 
    #calendarTable td {
      border: 1px solid #000;
      width: 14.28%;   /* 7 columns ke liye equal width */
      text-align: left;
      vertical-align: top;
      padding: 5px;
      font-size: 16px;
    }
    
    #calendarTable th {
      height: 60px;      /* header ki height kam rakhi */
      text-align: center;
      font-size: 16px;
      vertical-align: middle;
    }
    
   
    /* Date number style */
    #calendarTable td .n {
      font-weight: bold;
      margin-bottom: 5px;
    }
    
    /* Note area */
    #calendarTable td .c {
      min-height: 80px;   /* Notes ke liye fixed jagah */
      display: block;
    }

    .calendar-header .header-sep,
    .calendar-header .header-title,
    .calendar-header .header-desc {
    color: #e0e5ec;
    font-size: 3rem;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
    }
    .calendar-header .header-title { font-weight: 500; }
    .calendar-header .header-desc { white-space: normal; }
    @media (max-width: 767px) {
      .calendar-header {
        height: auto;
        padding: 15px 6px 10px;
      }
      .calendar-header .header-link,
      .calendar-header .header-title {
        font-size: 18px;
        white-space: normal;
      }
      .calendar-header .header-desc {
        margin-top: 10px;
        padding-left: 15px;
        border-left: 3px solid #20306b;
      }
    }
    .main-nav {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    z-index: 1039;
    background: #122048;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-bottom: 1px solid #fff;
    color: white;
    }
    .main-nav ul {
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
    }
    .main-nav ul li {
      margin: 0 10px;
      white-space: nowrap;
    }
    .main-nav ul li a {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    }
    .main-nav ul li:hover a,
    .main-nav ul li a:focus,
    .main-nav ul li.active a {
      color: #fff;
      border-bottom-color: #e00;
      outline: none;
    }
    @media (max-width: 767px) {
      .main-nav {
        padding: 10px 15px;
      }
      .main-nav ul li {
        margin: 5px 8px;
      }
      .main-nav ul li a {
        font-size: 1rem;
        padding: 10px 12px;
      }
    }
    .calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #DBDBDB;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 10px;
    gap: 8px;
    }
    .calendar-controls button {
      font-size: 15px !important;
      padding: 7px 14px !important;
      border-radius: 5px;
      min-width: 90px;
      max-width: 140px;
      cursor: pointer;
      color: #fff;
      border: none;
      outline: none;
    }

    .calendar-controls a.prevbtnwrap, .nextbtnwrap {
    background-color: #122046;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 3rem;
    padding: 6px 18px;
    cursor: pointer;
    min-width: 60px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

button.print-btn.download-btn {   
    background-color: red;
}

#monthLabel {
    font-weight: 700;
    font-size: 2.3rem;
    color: #122046;
    min-width: 208px;
    text-align: center;
    user-select: text;
}

.controls-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.controls-right {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.controls-right .download-btn{
    font-size: 1.9rem !important;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 18px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.3s;
    background-color: #122046;
}

    .print-btn { background: #d32f2f; }
    .download-btn { background: #1976d2; }
    @media (max-width: 600px) {
      .calendar-controls button {
        width: 100%;
        margin-bottom: 8px;
        min-width: unset;
        max-width: unset;
      }
    }
    table.calendar {
      table-layout: fixed;
      width: 100%;
      border-collapse: collapse;
      border: 2px solid #000;
      margin-top: 20px;
      font-size: 1.5rem;
      position: relative;
      margin-bottom: 25px; /* space between calendar and footer */
    }
    .calendar th,
    .calendar td {
      border: 1px solid #000;
      width: 14.2857%;
      height: 90px;
      vertical-align: top;
      position: relative;
      cursor: pointer;
      text-align: center;
      padding: 5px;
      transition: background-color 0.3s;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: normal;
      word-wrap: break-word;
      max-width: 100%;
    }
    .calendar th {
      background: #f5f5f5;
      font-weight: 600;
      cursor: default;
    }
    .calendar td:hover {
      background-color: #f0f6ff;
    }
    .calendar td.today {
      background: #fff7e6;
      font-weight: bold;
    }
    .calendar .n {
      position: absolute;
      top: 5px;
      right: 6px;
      font-size: 1.25rem;
      user-select: text;
      color: #333;
    }
    .calendar .c {
      white-space: pre-wrap;
      word-wrap: break-word;
      overflow-wrap: break-word;
      max-height: 60px;
      overflow-y: auto;
      margin-top: 30px;
      font-size: 0.9rem;
      user-select: text;
      color: #222;
      padding: 0 4px;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      text-align: left;
    }
    .note-input {
      width: 100%;
      border: none;
      background: none;
      font-size: 0.88rem;
      color: #222;
      padding: 0;
      resize: none;
      outline: none;
      text-align: left;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
    .calendar-watermark {
      pointer-events: none;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.10;
      font-size: calc(2.8vw + 2.8vh);
      color: #e3e5ec;
      font-weight: 700;
      text-align: center;
      transform: rotate(-22deg);
      user-select: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.04em;
      font-family: 'Arial Black', Arial, sans-serif;
    }
    .calendar-heading-export {
      font-size: 2rem;
      font-weight: 600;
      text-align: center;
      color: #16306e;
      margin-bottom: 25px;
      display: none;
    }
    .site-footer {
      font-family: Calibri, Calibri;
      font-size: 1.5rem;
      margin-top: 40px;
      padding: 40px 20px;
      background: #122046;
      color: #e0e5ec;
      text-align: left;
    }
    .footer-container {
     max-width: 1080px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 60px;
    }
    .footer-column {
     flex: 1 1 220px;
     min-width: 180px;
    }
    .footer-column a {
      color: #e0e5ec;
      text-decoration: none;
    }
    .footer-column a:hover {
      text-decoration: underline;
    }
    .footer-logo {
      font-size: 1.7rem;
      font-weight: bold;
      color: #fff;
      text-decoration: none;
      letter-spacing: 0.02em;
    }
    .footer-about {
      max-width: 280px;
      font-size: 1.1rem;
      line-height: 1.6;
      margin-top: 0.5rem;
    }
    .footer-list {
      list-style: none;
      margin: 0;
      padding: 0;
      font-weight: 400;
      font-size: 1.6rem;
    }
    .footer-list li {
      margin: 8px 0;
    }
    .footer-list a {
      color: #e0e5ec;
      text-decoration: none;
    }
    .footer-list a:hover {
      color: #fff;
      text-decoration: underline;
    }
    .footer-title {
      font-weight: 700;
      font-size: 1.3rem;
      color: #fff;
      margin-bottom: 1rem;
    }
    .footer-bottom {
      font-size: 1rem;
      color: #b0b6d0;
      margin-top: 25px;
    }
    @media (max-width: 600px) {
      .main-nav ul li a, .calendar-controls button {
        font-size: 1rem !important;
      }
      .calendar-controls button {
        width: 100%;
        margin-bottom: 8px;
        min-width: unset;
        max-width: unset;
      }
      .footer-container {
        flex-direction: column;
      }
    }

    /* 12-08-2025 */

    /* Highlight today's date cell as a square block behind number */
    td.highlight-today {
      /* No border-radius for square shape */
      background-color: #eef0f3; /* red background */
      color: white;
      font-weight: bold;
      /* Optional: align content center vertically and horizontally */
      text-align: center;
      vertical-align: middle;
    }

    /* Make the number div inside highlighted cell stand out */
    td.highlight-today > div.n {
      background-color: #337ab7; /* same red */
      color: white;
      font-weight: bold;
      padding: 5px 8px;
      display: inline-block;
      /* No border-radius, so square */
      border-radius: 0;
}


@media print {
      /* Hide header, nav, footer while printing */
      .calendar-header,
      .main-nav,
      .site-footer,
      .calendar-controls a.btn,
      .calendar-controls button,
      #monthLabel { 
        display: none !important;
        visibility: hidden !important;
      }

      /* Expand calendar to full page */
      body {
        margin: 0;
        padding: 0;
      }
      .container, main.container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0;
      }
    }

/* 23/08/25 */
 body.export-mode {
    margin: 0 !important;
    padding-top: 0 !important;
    background: #fff !important;
  }
  body.export-mode .calendar-header,
  body.export-mode .main-nav,
  body.export-mode .site-footer,
  body.export-mode .calendar-controls,
  body.export-mode #monthLabel {
    display: none !important;
    visibility: hidden !important;
  }
  body.export-mode main.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.export-mode #calendarParent {
    margin: 0 auto !important;
    padding: 16px !important;
    background: #fff !important;
  }
  body.export-mode #calendarHeading {
    display: block !important;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 8px 0;
  }

/*year pages*/

.year-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.month-box {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.month-box h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
}
.month-box iframe {
  width: 100%;
  height: 300px;
}
