/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; 
}

main {
    padding: 0;
    flex-grow: 1;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #333333;
}

/* Header & Nav */
header {
    background-color: #0c2f6b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-bottom: 3px solid #e67e22;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s;
    font-size: 15px;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.5);
    color: #ffbf00;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 5px;
}

.mobile-menu-btn svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.mobile-menu {
    display: none;
    background-color: #2c3e50;
    border-top: 1px solid #34495e;
}

.mobile-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-bottom: 1px solid #34495e;
    font-size: 15px;
}

.mobile-menu a:hover {
    background-color: #1a252f;
    color: #e67e22;
}

.mobile-menu.active {
    display: block;
}

/* Content Box */
.content-box {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee; 
}

/* H1 Styling */
.h1-wrapper {
    text-align: left; 
    margin-bottom: 20px;
    padding-top: 10px;
}

h1 {
    font-size: 2.2rem; /* Exact size requested */
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 3px solid #e67e22;
    padding-bottom: 8px;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
    font-size: 1.05rem;
}

/* Image Styling */
.calendar-image-container {
    text-align: center;
    margin: 30px 0;
    width: 100%;
    background: #fff;
    padding: 0;
    overflow-x: auto; 
}

.img-wrapper {
    display: inline-block;
    min-width: 800px;
    max-width: 100%;
}

.calendar-image-container img {
    height: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-shadow: none; 
}

/* H2 Styling */
h2 {
    font-size: 1.8rem;
    margin: 40px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
    font-family: 'Roboto', sans-serif;
}

/* Snippet Text under headings */
.section-snippet {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Downloads Section */
.download-container {
    margin: 40px 0; 
    padding: 30px; 
    background: #fff; 
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-container:hover {
    border-color: #e67e22;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.1);
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 5px;
    border-radius: 50%;
}

.btn-pdf {
    background-color: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-pdf:hover {
    background-color: #e74c3c;
    color: #fff;
}

.btn-png {
    background-color: #fff;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.btn-png:hover {
    background-color: #27ae60;
    color: #fff;
}

/* Table of Contents */
.toc-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e67e22;
    border-radius: 4px;
    margin: 20px 0 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    width: auto;
}

.toc-header {
    background: #f8f9fa;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
}

.toc-list {
    padding: 15px 20px;
    display: none;
}

.toc-list.open {
    display: block;
}

.toc-list li {
    margin-bottom: 10px;
    list-style: none;
}

.toc-list a {
    text-decoration: none;
    color: #34495e;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.toc-list a i {
    margin-right: 10px;
    color: #e67e22;
    font-size: 0.8rem;
}

/* Rich Table Styling */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Anek Telugu', sans-serif;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
    border: 2px solid #1a252f;
}

.data-table th {
    background-color: #1a252f;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: 1px solid #34495e;
}

.data-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    color: #444;
    font-size: 1rem;
    vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Hover Effect */
.data-table tbody tr:hover {
    background-color: #e67e22; 
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover td {
    color: #ffffff;
    border-color: #d35400;
}

.data-table tbody tr:hover .sub-text,
.data-table tbody tr:hover .item-col,
.data-table tbody tr:hover .day-col {
    color: #ffffff !important;
}

.date-col {
    font-weight: 600;
    color: #2c3e50;
    width: 15%;
    white-space: nowrap;
}

.item-col {
    font-weight: 500;
    color: #555;
    width: 25%;
}

.value-col {
    width: 60%;
}

.day-col {
     font-weight: 500;
     color: #555;
     width: 20%;
}

.sub-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
    margin-top: 2px;
}

/* Scroll to Top Button */
#scroll-to-top-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: #e67e22;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#scroll-to-top-btn:hover {
    background-color: #d35400;
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background-color: #0c2f6b;
    color: #ecf0f1;
    padding: 50px 0 20px 0;
    margin-top: auto;
    border-top: 5px solid #e67e22;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-col h3 {
    color: #e67e22;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #e67e22;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #e67e22;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
     color: #fff;
     background: rgba(255,255,255,0.1);
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     transition: background 0.3s;
}

.social-links a:hover {
    background: #e67e22;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    .download-buttons { flex-direction: column; }
    .btn { width: 100%; }
    
    .calendar-image-container img {
        min-width: 1200px; 
    }

    /* Compact Table for Mobile */
    .data-table th, .data-table td {
        padding: 8px 10px; /* Reduced padding */
        font-size: 0.95rem; /* Slightly smaller font */
    }
    
    .date-col {
        width: 20%; /* Adjust width for better fit */
    }
}