/* 🔥 SSB SABHABHAVANA - COMPLETE RESPONSIVE CSS + CALENDAR BUTTONS */

/* BASE STYLES - MOBILE FIRST */
* {
    margin: 0;
    padding: 1vw;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fffcf5;
    overflow-x: hidden;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

header {
    background: rgba(255,255,255,0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* 🔥 NAVIGATION + LOGO STYLING */
nav {
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO STYLING - RESPONSIVE */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 100px;           /* DESKTOP */
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* MOBILE HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #d32f2f;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* DESKTOP MENU */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: #d32f2f;
}

/* 🔥 CALENDAR NAVIGATION BUTTONS - SMALL & CLASSY */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    padding: 0 8px;
}

.calendar-nav button {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 6px 12px;      /* SMALL & PERFECT */
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;        /* SMALL FONT */
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
    transition: all 0.3s ease;
    min-width: 45px;
    height: 32px;           /* FIXED HEIGHT */
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.4);
    background: linear-gradient(135deg, #45a049, #2e7d32);
}

.calendar-nav button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76,175,80,0.3);
}

#monthYear {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    min-width: 140px;
    text-align: center;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
                url('hallbanner.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.btn {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(211,47,47,0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(211,47,47,0.4);
}

/* CALENDAR SPECIFIC */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

.calendar-day {
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    min-width: 0;
    box-sizing: border-box;
}

/* SECTIONS */
.features, .pricing, .gallery, .contact-section {
    padding: 6rem 0;
}

.features {
    background: #fff3e0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* FORM STYLES */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 5px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

input, select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}

button[type="submit"] {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76,175,80,0.4);
}

/* INSTAGRAM FEED */
.instagram-feed {
    padding: 5rem 0;
    background: #f8f9fa;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.insta-post {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.3s;
    height: 350px;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s;
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

/* ABOUT, GALLERY, CONTACT */
.about-hero, .gallery-hero, .contact-hero {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 10rem 0 4rem;
    text-align: center;
}

.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.contact-form {
    background: #fff3e0;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.contact-item {
    margin: 2rem 0;
}

.map-placeholder {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

footer {
    background: #2c1810;
    color: #f4e4bc;
    padding: 3rem 0;
    text-align: center;
}

/* TABLES (Admin) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #4caf50;
    color: white;
    font-weight: 600;
}

/* ===========================================
   MOBILE RESPONSIVE MEDIA QUERIES
============================================= */

/* MOBILE PORTRAIT (320px - 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
        margin: 0 5px;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .logo img {
        height: 40px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        height: 80vh;
        padding: 0 20px;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 🔥 MOBILE CALENDAR BUTTONS - EXTRA SMALL */
    .calendar-nav {
        gap: 8px;
        padding: 0 4px;
    }
    
    .calendar-nav button {
        padding: 5px 10px !important;
        font-size: 12px !important;
        min-width: 40px !important;
        height: 28px !important;
    }
    
    #monthYear {
        font-size: 16px;
        min-width: 110px;
    }
    
    #calendar {
        gap: 4px;
        padding: 15px 10px;
    }
    

    .calendar-day {
        min-height: 48px !important;
        padding: 3px !important;
    }
    
    .day-label {
        font-size: 14px !important;
    }
    
    .day-status {
        font-size: 9px !important;
    }

    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .features, .pricing, .gallery, .contact-section {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 2rem 1.5rem;
    }
    
    .icon {
        font-size: 3rem;
    }
    
    .insta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insta-post {
        height: 250px;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    table {
        font-size: 11px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    th, td {
        padding: 6px 4px !important;
        min-width: 50px;
    }
    
    button[type="submit"] {
        padding: 1.2rem;
        font-size: 16px;
    }
}

/* TABLET PORTRAIT (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 25px;
        max-width: 95%;
    }
    
    nav {
        padding: 1.2rem 25px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .insta-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* TABLET CALENDAR BUTTONS */
    .calendar-nav button {
        padding: 6px 14px;
        font-size: 14px;
        min-width: 48px;
        height: 30px;
    }
}

/* TABLET LANDSCAPE / SMALL DESKTOP (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 40px;
    }
    
    nav {
        padding: 1.5rem 40px;
    }
    
    .hero {
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    #calendar {
        gap: 8px;
        padding: 20px;
    }
    
    .calendar-day {
        height: 65px;
        padding: 12px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}

/* DESKTOP (1025px - 1440px) */
@media screen and (min-width: 1025px) {
    .container {
        max-width: 1100px;
        padding: 0 50px;
    }
    
    nav {
        padding: 1.5rem 50px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    #calendar {
        gap: 12px;
    }
    
    .calendar-day {
        height: 75px;
        padding: 15px;
    }
    
    table th, table td {
        padding: 14px;
    }
}

/* LARGE DESKTOP (1441px+) */
@media screen and (min-width: 1441px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }
    
    nav {
        padding: 2rem 60px;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    table {
        font-size: 16px;
    }
    
    th, td {
        padding: 16px;
    }
}

/* MOBILE MENU - CONSOLIDATED */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    /* HAMBURGER → X ANIMATION */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        padding: 15px 25px;
        border-radius: 12px;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a:hover {
        background: rgba(211, 47, 47, 0.1);
        color: #d32f2f;
    }
}

/* LANDSCAPE MOBILE */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 70vh;
    }
    
    .container {
        padding: 0 15px;
    }
    
    #calendar {
        gap: 3px;
    }
    
    .calendar-day {
        height: 50px !important;
        padding: 8px 2px !important;
        font-size: 14px !important;
    }
    
    .calendar-nav button {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-width: 36px !important;
        height: 26px !important;
    }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .container {
        background: rgba(45, 45, 45, 0.95);
    }
    
    .calendar-day {
        background: #404040;
        color: #e0e0e0;
    }
    
    input, select, textarea {
        background: #404040;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .calendar-nav button {
        background: linear-gradient(135deg, #66bb6a, #4caf50);
    }
}

/* PRINT */
@media print {
    header, footer, button, nav {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
        padding: 0;
    }
    
    body {
        background: white;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (pointer: coarse) {
    button:focus, input:focus, select:focus {
        outline: 3px solid #4caf50;
    }
}

/* 🔥 MOBILE CALENDAR TEXT FIX */
.calendar-day {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 55px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding: 4px !important;
}

.day-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.day-status {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1;
    max-width: 100%;
    word-break: break-word;
    padding: 0 2px;
}

/* MOBILE SPECIFIC */
@media (max-width: 480px) {
    .calendar-day {
        min-height: 48px !important;
        padding: 3px !important;
    }
    
    .day-label {
        font-size: 14px !important;
    }
    
    .day-status {
        font-size: 9px !important;
    }
}
/* 🔥 MOBILE TEXT FIX - TEXT STAYS INSIDE BOXES */
.calendar-day {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 55px !important;
    padding: 4px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
}

.day-label {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 1px !important;
    min-height: 20px !important;
}

.day-status {
    font-size: 9px !important;
    opacity: 0.9 !important;
    line-height: 1 !important;
    max-width: 90% !important;
    word-break: break-word !important;
    padding: 0 1px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* MOBILE - EXTRA SMALL */
@media (max-width: 480px) {
    .calendar-day {
        min-height: 48px !important;
        padding: 2px !important;
        font-size: 12px !important;
    }
    
    .day-label {
        font-size: 14px !important;
    }
    
    .day-status {
        font-size: 8px !important;
        max-width: 85% !important;
    }
}

/* TABLET */
@media (max-width: 768px) and (min-width: 481px) {
    .calendar-day {
        min-height: 52px !important;
        padding: 3px !important;
    }
    
    .day-label {
        font-size: 15px !important;
    }
    
    .day-status {
        font-size: 9px !important;
    }
}

/* LANDSCAPE MOBILE */
@media (max-height: 500px) and (orientation: landscape) {
    .calendar-day {
        min-height: 45px !important;
        padding: 2px !important;
    }
    
    .day-label {
        font-size: 13px !important;
    }
    
    .day-status {
        font-size: 7.5px !important;
    }
}/* 🔥 SCROLLING TEXT ANIMATION */
.day-num {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 1px !important;
    min-height: 18px !important;
}

.status-scroll {
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: 90% !important;
    text-align: center !important;
    animation: scrollLeft 3s linear infinite !important;
}

@keyframes scrollLeft {
    0% { transform: translateX(100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-120%); opacity: 0; }
}

/* MOBILE - SMALLER */
@media (max-width: 480px) {
    .day-num { font-size: 13px !important; }
    .status-scroll { font-size: 8px !important; animation-duration: 2.5s !important; text-overflow: wrap; }
}
