/* ==========================================================================
   Antigravity Dashboard - Responsive System (css/responsive.css)
   Full Device Compatibility: 1920px 4K down to 320px Ultra-Small Mobile
   ========================================================================== */

/* Large Desktop Displays (1440px - 1920px) */
@media (max-width: 1400px) {
    .custom-container {
        padding: 0 20px;
    }
}

/* Standard Laptop & Desktop (1200px - 1366px) */
@media (max-width: 1200px) {
    .hero-dashboard-card {
        padding: 30px;
    }
    .clock-display {
        font-size: 40px;
    }
    .quick-card-value {
        font-size: 18px;
    }
}

/* Tablet Landscape & Small Laptops (992px - 1199px) */
@media (max-width: 991.98px) {
    .header-nav {
        padding: 10px 0;
    }
    .search-box-wrap {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    .hero-dashboard-card {
        padding: 25px;
    }
    .clock-display {
        font-size: 34px;
    }
    .sun-time-box {
        padding: 10px 14px;
        gap: 10px;
    }
    .sun-time-box i {
        font-size: 20px;
    }
    .sun-time-val {
        font-size: 14px;
    }
    .newsletter-card {
        padding: 30px;
    }
    .card-feature-title {
        font-size: 20px;
    }
    .feature-card-btn {
        padding: 9px 20px;
        font-size: 13px;
        width: auto;
    }
}

/* Medium Tablets & Mobile Landscape (768px - 900px) */
@media (max-width: 767.98px) {
    /* 100 Mobile Performance & Zero CLS Layout Protection */
    .hero-dashboard-card {
        min-height: 240px;
        contain: content;
    }
    .ad-320x50-mobile {
        min-height: 50px;
        max-height: 50px;
        contain: layout size;
        margin: 10px auto !important;
    }
    .brand-logo-img {
        width: 36px !important;
        height: 36px !important;
    }
    .quick-card {
        contain: content;
    }

    .top-bar-ticker {
        font-size: 12px;
    }
    .ticker-label {
        padding: 0 12px;
        font-size: 11px;
    }
    .header-nav {
        top: 40px;
    }
    .clock-display {
        font-size: 32px;
        text-align: center;
    }
    .hero-date-badge {
        font-size: 12px;
    }
    .hero-dashboard-card {
        text-align: center;
    }
    .sun-time-wrapper {
        justify-content: center;
        margin-top: 15px;
    }
    .panchangam-card, .calendar-card {
        padding: 20px;
    }
    .card-feature-title {
        font-size: 19px;
    }
    .card-feature-desc {
        font-size: 12px;
    }
    .feature-card-btn {
        font-size: 13px;
        padding: 8px 18px;
        margin-top: 0;
        width: auto;
    }
    .chart-card {
        padding: 20px 15px;
    }
    .chart-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }
    .newsletter-input-group {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 12px;
    }
    .newsletter-input-group input {
        background: #ffffff;
        padding: 14px 20px;
        border-radius: 14px;
    }
    .newsletter-input-group button {
        width: 100%;
        border-radius: 14px;
        padding: 12px;
    }
    .footer-section {
        padding-top: 45px;
    }
}

/* Small Mobile Devices (375px - 575px) */
@media (max-width: 575.98px) {
    .panchangam-card, .calendar-card {
        padding: 16px 18px;
    }
    .feature-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .feature-card-action {
        width: 100%;
    }
    .card-feature-title {
        font-size: 18px;
    }
    .card-feature-desc {
        font-size: 12px;
    }
    .feature-card-btn {
        width: 100%;
        font-size: 13px;
        padding: 9px 16px;
    }
    .header-nav {
        padding: 6px 0;
    }
    .brand-logo {
        font-size: 19px;
    }
    .brand-logo i {
        font-size: 20px;
    }
    .nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .search-box-wrap input {
        height: 40px;
        font-size: 13px;
        padding-left: 16px;
        padding-right: 40px;
    }
    .search-box-wrap .search-icon {
        right: 14px;
    }
    .clock-display {
        font-size: 28px;
    }
    .quick-card {
        padding: 16px;
    }
    .quick-card-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    .quick-card-value {
        font-size: 16px;
    }
    .quick-card-title {
        font-size: 11px;
    }
    .sun-time-box {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 12px;
    }
    .sun-time-box i {
        font-size: 18px;
    }
    .sun-time-title {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    .sun-time-val {
        font-size: 12px;
        line-height: 1.2;
    }
    .category-card-img-wrap {
        height: 130px;
    }
    .category-card-img-wrap i {
        font-size: 48px;
    }
    .category-card-body {
        padding: 18px;
    }
    .category-card-title {
        font-size: 16px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Ultra Small Mobile Devices (320px - 375px) */
@media (max-width: 375px) {
    .panchangam-card, .calendar-card {
        padding: 14px 16px;
    }
    .card-feature-title {
        font-size: 16px;
    }
    .card-feature-desc {
        font-size: 11px;
    }
    .feature-card-btn {
        width: 100%;
        padding: 8px 14px;
        font-size: 12px;
    }
    .brand-logo {
        font-size: 17px;
    }
    .brand-logo i {
        font-size: 18px;
    }
    .nav-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .clock-display {
        font-size: 24px;
    }
    .quick-card-value {
        font-size: 14px;
    }
    .quick-card-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .sun-time-box {
        padding: 6px 8px;
        gap: 6px;
        border-radius: 10px;
    }
    .sun-time-box i {
        font-size: 16px;
    }
    .sun-time-title {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    .sun-time-val {
        font-size: 11px;
        line-height: 1.15;
    }
}

/* ==========================================================================
   CALENDAR RESPONSIVE SAFETY OVERRIDES (TAMIL & ENGLISH CALENDARS)
   ========================================================================== */
.crypto-cal-grid-section,
.crypto-cal-hero-section,
.crypto-cal-details-section,
.crypto-cal-top-info-section,
.crypto-cal-year-section,
.crypto-cal-weather-astro-section,
.crypto-cal-weathertz-section,
.crypto-cal-date-details-section,
.crypto-cal-countdowns-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   GLOBAL ADVERTISEMENTS 100% RESPONSIVE WIDTH OVERRIDE (ALL DEVICES)
   ========================================================================== */
.newzeefy-ad-wrapper,
.newzeefy-ad-wrapper img,
.newzeefy-ad-wrapper iframe,
.widget_custom_html img,
.widget_custom_html iframe,
.sidebar-ad-widget img,
.sidebar-ad-widget iframe,
.ad-slot-wrapper img,
.ad-slot-wrapper iframe,
.ad-banner img,
.ad-banner iframe,
ins.adsbygoogle,
ins.adsbygoogle iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
