/* UNIQUE CSS SCOPED TO .subcalmon-wrapper */
        .subcalmon-wrapper {
           /*  --subcalmon-primary-bg: #f4f7f6; */
            --subcalmon-container-bg: #ffffff;
            --subcalmon-border-color: #cbd5e1; 
            --subcalmon-grid-border: 2px solid var(--subcalmon-border-color);
            --subcalmon-cell-bg: #ffffff;
            --subcalmon-text-main: #1e293b;
            --subcalmon-text-muted: #475569;
            --subcalmon-text-tithi: #0369a1;
            --subcalmon-text-nak: #0f172a;
            --subcalmon-sunday-color: #dc2626;
            --subcalmon-sunday-bg: #fef2f2;
            
            font-family: 'Poppins', 'Anek Telugu', sans-serif;
            background-color: var(--subcalmon-primary-bg);
            color: var(--subcalmon-text-main);
            padding: 0px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            width: 100%;
        }

        .subcalmon-wrapper *, .subcalmon-wrapper *::before, .subcalmon-wrapper *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        .subcalmon-main-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0px; }
        
        .subcalmon-calendar-container { width: 100%; max-width: 1300px; background: var(--subcalmon-container-bg); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; display: flex; flex-direction: column; }

        /* --- Header Styling --- */
        .subcalmon-header-wrapper { background: #ffffff; padding: 15px; display: flex; flex-direction: column; border-bottom: 2px solid #e2e8f0; border-radius: 12px 12px 0 0; }
        .subcalmon-header-blocks { display: flex; flex: 1; gap: 15px; align-items: stretch; min-height: 180px; }
        
        .subcalmon-block-month { flex: 1.2; padding-top: 15px; background: linear-gradient(to right, #006eb3, #009ce5); border-radius: 10px; color: white; display: flex; align-items: center; justify-content: center; font-family: 'Anek Telugu', sans-serif; font-size: 4rem; font-weight: 800; position: relative; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
        .subcalmon-block-month::before { content: ""; position: absolute; bottom: -30px; left: -30px; width: 120px; height: 1px; background: rgba(255,255,255,0.7); transform: rotate(-45deg); }
        
        .subcalmon-block-year { flex: 1; background: linear-gradient(to right, #f24438, #f57f20); border-radius: 10px; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 10px; text-align: center; }
        .subcalmon-year-text { font-size: 4.5rem; font-weight: 800; line-height: 1; }
        
        .subcalmon-location-text { font-size: 36px !important; font-weight: 500; letter-spacing: 1px; margin-top: 5px; background: transparent; padding: 4px 15px; font-family: 'Anek Telugu', sans-serif; line-height: 1.2; }

        .subcalmon-block-details { flex: 1.8; background: linear-gradient(to right, #459a43, #66b53c); border-radius: 10px; color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-family: 'Anek Telugu', sans-serif; padding: 15px; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.1); overflow: hidden; height: auto; min-height: fit-content; }
        .subcalmon-block-details::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.1) 15px, rgba(255, 255, 255, 0.1) 16px); pointer-events: none; }
        .subcalmon-samvatsaram { font-size: 1.6rem; font-weight: 700; margin-bottom: 5px; z-index: 1; }
        .subcalmon-masam-details { font-family: 'Anek Telugu', sans-serif; line-height: 1.6; z-index: 1; }

        /* --- Calendar Grid --- */
        .subcalmon-table-responsive { width: 100%; overflow-x: auto; background-color: #d1e8fa; -webkit-overflow-scrolling: touch; }
        .subcalmon-calendar-table { width: 100%; table-layout: fixed; border-collapse: collapse; background-color: white; }
        .subcalmon-calendar-table th, .subcalmon-calendar-table td { border: var(--subcalmon-grid-border); padding: 15px 8px 8px 8px; vertical-align: top; } 

        .subcalmon-calendar-table th { width: 15%; text-align: center; color: #ffffff; position: relative; overflow: hidden; padding: 20px 10px; vertical-align: middle; }
        .subcalmon-calendar-table th::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 8px 8px; pointer-events: none; z-index: 0; }
        .subcalmon-wk-fa-bg { position: absolute; font-size: 9rem; color: rgba(255, 255, 255, 0.1); top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg); z-index: 0; pointer-events: none; }
        .subcalmon-wk-en, .subcalmon-wk-te { position: relative; z-index: 1; }
        .subcalmon-wk-en { font-family: 'Roboto', sans-serif; font-size: 2.2rem; font-weight: 400; line-height: 1; margin-bottom: 12px; letter-spacing: 2px; text-transform: uppercase; } 
        .subcalmon-wk-te { font-family: 'Anek Telugu', sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; }

        /* --- Calendar Cell Base & Paksham Colors --- */
        .subcalmon-cal-cell { background: var(--subcalmon-cell-bg); transition: all 0.3s ease; position: relative; text-align: center; } 
        .subcalmon-paksha-sukla { background: #e0f2fe; } 
        .subcalmon-paksha-krishna { background: #fafafa; } 
        .subcalmon-sunday-cell { background: var(--subcalmon-sunday-bg) !important; }
        .subcalmon-empty-cell { background: #f8fafc; } 

        .subcalmon-cal-cell:not(.subcalmon-ad-cell):hover { background: #ea580c !important; border-color: #ea580c !important; box-shadow: inset 0 0 10px rgba(0,0,0,0.1); }
        .subcalmon-cal-cell:not(.subcalmon-ad-cell):hover * { color: #ffffff !important; }
        .subcalmon-cal-cell:not(.subcalmon-ad-cell):hover .subcalmon-lunar-month, .subcalmon-cal-cell:not(.subcalmon-ad-cell):hover .subcalmon-dur-badge, .subcalmon-cal-cell:not(.subcalmon-ad-cell):hover .subcalmon-var-badge { background: rgba(255, 255, 255, 0.25) !important; color: #ffffff !important; }
        .subcalmon-cal-cell:not(.subcalmon-ad-cell):hover .fa-solid { opacity: 0.9; }

        .subcalmon-ad-cell { vertical-align: middle; background: transparent; padding: 0 !important; }

        /* --- Dates & Cell Flex Header --- */
        .subcalmon-cell-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
        .subcalmon-cell-top-flex { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 5px; }
        
        .subcalmon-sun-times, .subcalmon-moon-times { flex: 1; font-size: 11px; color: var(--subcalmon-text-muted); line-height: 1.4; display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
        .subcalmon-sun-times { text-align: left; } .subcalmon-moon-times { text-align: right; }
        .subcalmon-sun-times i, .subcalmon-moon-times i { width: 14px; text-align: center; }

        .subcalmon-date-number-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
        .subcalmon-date-number { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--subcalmon-text-main); font-family: 'Poppins', sans-serif; position: relative; z-index: 2; text-decoration: none; display: block; }
        .subcalmon-date-number:hover { text-decoration: none; color: inherit; }
        .subcalmon-sunday-cell .subcalmon-date-number { color: var(--subcalmon-sunday-color); }
        .subcalmon-date-number.subcalmon-holiday-date { color: #dc2626 !important; }
        
        .subcalmon-moon-icon { font-size: 20px; line-height: 1; }
        .subcalmon-lunar-month { font-size: 14px; color: #0f172a; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; margin-top: 6px; font-weight: 500; text-align: center; font-family: 'Anek Telugu', sans-serif; }

        /* --- Panchangam Info --- */
        .subcalmon-panchangam-info { text-align: center; line-height: 1.4; font-family: 'Anek Telugu', sans-serif; }
        .subcalmon-tithi-text { font-size: 18px; font-weight: 700; color: var(--subcalmon-text-tithi); margin-bottom: 5px; line-height: 1.3; } 
        .subcalmon-nak-text { font-size: 16px; font-weight: 600; color: var(--subcalmon-text-nak); margin-bottom: 5px; line-height: 1.3; } 
        
        .subcalmon-timings-container { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--subcalmon-text-muted); text-align: center; display: flex; flex-direction: column; gap: 4px; }
        .subcalmon-timing-row { line-height: 1.4; }

        .subcalmon-badge { padding: 1px 5px; border-radius: 3px; font-weight: bold; font-size: 13px; margin-right: 4px; display: inline-block; } 
        .subcalmon-dur-badge { background: #fee2e2; color: #b91c1c; } 
        .subcalmon-var-badge { background: #ffedd5; color: #c2410c; } 
        .subcalmon-paksha-prefix { color: #1e293b; font-weight: 400; } 

        .subcalmon-grid-holiday-list { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #cbd5e1; font-size: 15px; font-family: 'Anek Telugu', sans-serif; line-height: 1.4; }
        
        /* --- FOOTER STYLING --- */
        .subcalmon-footer { padding: 0; display: flex; flex-direction: column; font-size: 14px; border-top: 1px solid #e2e8f0; border-radius: 0 0 12px 12px; overflow: hidden; }
        .subcalmon-footer-top { display: flex; justify-content: space-between; align-items: center; width: 100%; background: linear-gradient(to right, #20628b, #2980b9); padding: 10px 10px; } 
        .subcalmon-nav-link { color: #0f172a; text-decoration: none; font-weight: 700; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #e2e8f0; border-radius: 5px; transition: all 0.3s ease; line-height: 1; }
        .subcalmon-nav-link:hover { background: #cbd5e1; color: #dc2626; }
        .subcalmon-footer-center { text-align: center; font-size: 15px; display: flex; gap: 10px; align-items: center; justify-content: center; color: #ffffff; font-weight: 600; }
        .subcalmon-footer-festivals { width: 100%; text-align: left; font-size: 15px; color: #334155; padding: 20px; background: #e0f2fe; line-height: 1.7; } 
        .subcalmon-fest-heading { font-size: 18px; font-family: 'Anek Telugu', sans-serif; color: var(--subcalmon-text-tithi); margin-bottom: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; } 
        .subcalmon-fest-date { color: #1e293b; font-weight: 500; }
        .subcalmon-fest-link { text-decoration: none !important; }
        .subcalmon-fest-link:hover { text-decoration: none !important; opacity: 0.8; }
        .subcalmon-footer-bottom-strip { width: 100%; text-align: center; font-size: 14px; background: #374151; color: #ffffff; padding: 25px 15px; letter-spacing: 0.5px; font-family: 'Poppins', sans-serif; font-weight: 500; } 

        /* --- DOWNLOAD BOX STYLING --- */
        .subcalmon-download-box { width: 100%; max-width: 1300px; margin-top: 30px; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; padding: 25px; display: flex; flex-direction: column; align-items: center; text-align: center; font-family: 'Poppins', 'Anek Telugu', sans-serif; }
        .subcalmon-dl-title { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
        .subcalmon-dl-desc { font-size: 15px; color: #64748b; margin-bottom: -5px; max-width: 1100px; line-height: 1.5; }
        .subcalmon-dl-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
        .subcalmon-btn-download { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; outline: none; }
        .subcalmon-btn-img { background: #3b82f6; color: white; box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2); }
        .subcalmon-btn-img:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3); }
        .subcalmon-btn-pdf { background: #ef4444; color: white; box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2); }
        .subcalmon-btn-pdf:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3); }

        @media (max-width: 992px) {
            .subcalmon-header-blocks { flex-direction: column; height: auto; }
            .subcalmon-header-wrapper { min-height: auto; }
            .subcalmon-block-month, .subcalmon-block-year { padding: 15px; }
            .subcalmon-location-text { font-size: 20px !important; } 
            .subcalmon-calendar-table { min-width: 1100px; } 
            .subcalmon-footer-center { flex-direction: column; gap: 5px; }
            .subcalmon-sun-times, .subcalmon-moon-times { font-size: 11px; } 
        }
    

/* --- WATERMARK STYLES --- */
.watermark {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
position: absolute; /* Changed from fixed so it scrolls with the page */
top: 1000px;
left: 50%;
transform: translate(-50%, -50%) rotate(-45deg); /* Center and rotate */
font-size: 4.25rem;
font-weight: 700;
color: rgba(000, 0, 0, 0.09); /* Red with low opacity */
z-index: 100; /* Sit on top of everything */
pointer-events: none; /* CRITICAL: Allows clicks to pass through to the calendar */
user-select: none; /* Prevents user from highlighting the watermark text */
white-space: nowrap;
border: 5px solid rgba(000, 0, 0, 0.06);
padding: 10px 30px;
border-radius: 10px;
}
/* Mobile Resizing */
@media (max-width: 900px) {
.watermark {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
top: 1200px;
font-size: 3rem; /* Smaller text for mobile */
color: rgba(000, 0, 0, 0.10); /* Red with low opacity */
padding: 10px 20px; /* Smaller box */
border-width: 5px; /* Thinner border */
width: auto;
max-width: 95%; /* Ensure it doesn't cause horizontal scrolling */
}
}

/* Mobile Resizing */
@media (max-width: 600px) {
.watermark {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
top: 1200px;
font-size: 2rem; /* Smaller text for mobile */
transform: translate(-50%, -50%) rotate(-60deg); /* Center and rotate */
color: rgba(000, 0, 0, 0.10); /* Red with low opacity */
padding: 10px 20px; /* Smaller box */
border-width: 3px; /* Thinner border */
width: auto;
max-width: 94%; /* Ensure it doesn't cause horizontal scrolling */
}
}
