
/* Overlay */
.ngg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Open Sans', sans-serif;
    padding: 15px; /* Added padding for mobile edges */
}

/* Responsive Popup Container */
.ngg-popup {
    width: 100%;
    max-width: 1080px; /* Desktop width */
    max-height: 95vh; /* Prevents overflow on short screens 
    padding: 40px;*/
    border-radius: 26px;
    position: relative;
    text-align: center;
    color: white;/*
    overflow-y: auto;  Enable scroll if content is too tall for mobile */
    margin:auto;
}

/* Typography Scale */
.ngg-title {
    font-size: clamp(22px, 5vw, 36px); /* Fluid typography */
    background: var(--ngg-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
}

.ngg-subtitle {
    font-size: clamp(12px, 2vw, 14px);
    margin-bottom: 20px;
    color: #d1d1d1;
}

/* --- Responsive Grid System --- */
.ngg-calendar-container {
    display: grid;
    /* Mobile Default: 2 columns */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 3%;
}

/* Base Card Style */
.ngg-popcard {
    background: linear-gradient(0deg, rgba(0, 46, 126, 1) 0%, rgba(0, 3, 57, 1) 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    font-weight: bold;
    padding: 15px 5px;
    min-height: 100px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.ngg-popcard-end { 
    opacity:0.6;
}

.ngg-bg-pop { background:url('../imgs/doorbuster-popup-bg.png') no-repeat top left #082967; background-size:contain; }

.ngg-bg-pop2 { background: 
    /* Gradient: Top (#07255f) to Bottom (#1b5bcd) */
     
    url('../imgs/doorbuster-popup-bg.png'),
    linear-gradient(
      to bottom, 
      rgba(2, 15, 37, 1), 
      rgba(27, 91, 205, 1)
    );

  /* Presentation styles */
  background-size: contain;
  background-repeat: no-repeat;
}

/* Featured Card (Mobile) */
.ngg-featured {
    grid-column: span 2; /* Full width on mobile */
    grid-row: span 2;
    background: var(--ngg-featured-bg);
    position: relative;
    overflow: hidden;
   
}



/* Featured Images & Text */
.ngg-featured img { 
    object-fit: contain; 
    width: 120%; 
    height: 100%; 
    position: absolute; 
    left: -20%; 
    opacity: 0.6; /* Slight transparency to help text readability on mobile */
}

.ngg-date-header {
    color: #FCCB67;    
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    z-index: 2;
    position: absolute;
    top: 6%; right: 6%; 
    font-weight: 800;
    text-align: right;
    line-height: 1;
    font-family:'Open Sans',sans-serif;
    text-shadow:1px 1px 5px #000;
}

/* Decorative Peel */
.ngg-peel-corner {
    position: absolute;
    bottom: -15px; left: -15px;
    width: clamp(60px, 10vw, 90px);
    height: clamp(60px, 10vw, 90px);
    background-color: #ffbb00;
    transform: rotate(45deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Close Button Mobile Adjust */
.ngg-close-btn {
    position: absolute;
    top: 5px; right: 15px;
    font-size: clamp(40px, 8vw, 60px);
    color: white;
    cursor: pointer;
    background: none; border: none;
    line-height: 1;
}

.ngg-popcard small {
    display: block;
    font-weight: normal;
    font-size: clamp(1.5rem, 2vw, 1.6rem);
    margin-top: 4px;
}

small.ngg-day-selected { font-weight:bold; }

.ngg-calendar-btn {
    background: var(--ngg-gold-gradient);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 100%; /* Full width on mobile */
    max-width: 320px; /* Limit on desktop */
}

.ngg-popimg { background:url('../imgs/calendar-lp_current-month.png') no-repeat left top; background-size:cover; box-shadow:0 0 15px 3px rgba(255,255,255,0.2); }

/* Desktop Overrides */
@media (min-width: 768px) {
    .ngg-calendar-container {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, 130px);
        gap: 25px;
    }

    .ngg-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .ngg-popcard {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        font-family:'Open Sans', sans-serif;
    }
}

@media (min-width: 768px) {
    .ngg-featured img { 
        width: 128%; 
        left: -25%; 
        opacity: 1;
    }
}

@media (max-width:768px) {
     .ngg-popup { width:75%; }
}