/* ==========================================================================
   Bhimashankar Temple - Main Theme Stylesheet
   Author: bhimashankar.in
   Description: Responsive, SEO-friendly design for Bhimashankar Temple website
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 1.4em;
}

/* --- Links --- */
a {
    color: #2a7a47;
    text-decoration: none;
}

a:hover {
    color: #1d5c33;
    text-decoration: underline;
}

/* ==========================================================================
   HEADER - Top branding section
   ========================================================================== */
header {
    background: linear-gradient(to bottom, #40ac62, #369656);
    color: #ffffff;
}

.site-header-top {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 80px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.site-branding {
    flex: 1;
    min-width: 180px;
}

.site-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.site-tagline {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    letter-spacing: 0.02em;
}

.site-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.site-header-actions .header-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.site-header-actions a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.site-header-actions a:hover {
    background: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

/* ==========================================================================
   NAVIGATION - Horizontal navbar inside header
   ========================================================================== */
.site-nav {
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

/* Primary nav list */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a,
.nav-menu > li > button.nav-dropdown-btn {
    display: block;
    padding: 10px 13px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.nav-menu > li > a:hover,
.nav-menu > li > button.nav-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #ffffff;
}

.nav-menu > li.active > a {
    background: rgba(255, 255, 255, 0.25);
}

/* Dropdown arrow indicator */
.nav-dropdown-btn::after {
    content: ' \25BE';
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Dropdown menu */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d8c4e;
    min-width: 210px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown a {
    display: block;
    padding: 9px 18px;
    color: #ffffff;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
    padding-left: 24px;
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
    .nav-menu > li.has-dropdown:hover .nav-dropdown {
        display: block;
    }
}

/* Dropdown open via JS (mobile) */
.nav-menu > li.has-dropdown.is-open .nav-dropdown {
    display: block;
}

/* Hamburger toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    padding: 7px 10px;
    margin-left: auto;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- Notice Banner --- */
.notice-banner {
    background-color: #fff3cd;
    color: #7a4f00;
    border-top: 3px solid #e6a817;
    border-bottom: 3px solid #e6a817;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================================================
   PAGE BODY - Main content area
   ========================================================================== */
#page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 60vh;
}

/* ==========================================================================
   INFO CARDS - Quick info boxes (used on homepage)
   ========================================================================== */
.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.info-card {
    flex: 1 1 160px;
    background: #f4fbf7;
    border: 1px solid #c0dece;
    border-left: 4px solid #40ac62;
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.info-card h4 {
    margin: 0 0 5px 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2d8c4e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card p {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 500;
}

.info-card a {
    font-size: 0.78rem;
    color: #2a7a47;
}

/* ==========================================================================
   HOMEPAGE LAYOUT - Two column
   ========================================================================== */
.home-layout {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.home-main {
    flex: 1;
    min-width: 280px;
}

.home-main p {
    margin-top: 0;
}

.home-sidebar {
    flex: 0 0 260px;
    min-width: 220px;
}

.home-sidebar img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
    display: block;
}

.sidebar-audio-link {
    display: block;
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 16px;
    color: #2a7a47;
    font-weight: 600;
}

/* Quick links section */
.quick-links-section {
    margin-top: 8px;
}

.quick-links-section h5 {
    margin: 0;
}

.quick-links-section h5 a {
    display: block;
    padding: 6px 0 6px 10px;
    font-size: 0.85rem;
    color: #2a7a47;
    border-bottom: 1px dashed #d0e8d8;
    transition: padding-left 0.15s, color 0.15s;
    position: relative;
    font-weight: 500;
}

.quick-links-section h5 a::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: #40ac62;
    font-size: 1rem;
}

.quick-links-section h5 a:hover {
    color: #1d5c33;
    padding-left: 16px;
    text-decoration: none;
}

/* Page info bar (Shravan mass notice etc.) */
.page-notice {
    background: #f0faf4;
    border: 1px solid #b8ddc7;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.page-notice a {
    font-weight: 600;
}

/* Social section */
.social-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

/* ==========================================================================
   PAGE TITLE
   ========================================================================== */
.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d8c4e;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 0.07em;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0dece;
}

/* ==========================================================================
   DATA TABLES - Temple schedule, poojas, etc.
   ========================================================================== */
.templeScheduleTable,
.annualPoojaTable,
.data-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 24px;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.templeScheduleTable th,
.annualPoojaTable th,
.data-table th {
    background: #2d8c4e;
    color: #ffffff;
    padding: 11px 14px;
    font-size: 0.85rem;
    text-align: left;
    font-weight: 600;
}

.templeScheduleTable td,
.annualPoojaTable td,
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2ede7;
    vertical-align: middle;
}

.templeScheduleTable tr:nth-child(odd) td,
.annualPoojaTable tr:nth-child(odd) td,
.data-table tr:nth-child(odd) td {
    background: #f4fbf7;
}

.templeScheduleTable tr:nth-child(even) td,
.annualPoojaTable tr:nth-child(even) td,
.data-table tr:nth-child(even) td {
    background: #ffffff;
}

.templeScheduleTable tr:hover td,
.annualPoojaTable tr:hover td,
.data-table tr:hover td {
    background: #e6f5ec;
}

.templeScheduleTable tr:last-child td,
.annualPoojaTable tr:last-child td,
.data-table tr:last-child td {
    border-bottom: none;
}

/* Routes table (how to reach) */
table#fff td,
table#fff th {
    padding: 8px 14px;
    font-size: 0.88rem;
}

table#priests {
    width: 100%;
    border-collapse: collapse;
}

table#priests td {
    padding: 6px 4px;
    vertical-align: top;
}

/* ==========================================================================
   NOTES & NOTICES
   ========================================================================== */
.style4,
.note-text {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
}

.bottomInfoClass {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 4px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.ContactUsContentWrapper {
    margin-top: 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contactUsDIV {
    flex: 1;
    min-width: 220px;
    font-size: 0.95rem;
}

.contactUsDIV address {
    font-style: normal;
    line-height: 2;
}

.mailDetailsDIV {
    flex: 1;
    min-width: 220px;
}

.contactUsTable {
    font-size: 0.95rem;
    border-collapse: collapse;
}

.contactUsTable td {
    padding: 6px 10px;
    vertical-align: top;
}

/* ==========================================================================
   HOW TO REACH PAGE
   ========================================================================== */
.mapDIV {
    margin-bottom: 16px;
}

.mapIframe {
    max-width: 100%;
    border-radius: 6px;
}

.infoReach {
    margin-bottom: 20px;
}

.routesDiv {
    text-align: center;
}

.routesDiv table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.routesDiv table th {
    background: #2d8c4e;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
}

.routesDiv table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2ede7;
}

.routesDiv table tr:nth-child(odd) td {
    background: #f4fbf7;
}

.routesDiv table tr:nth-child(even) td {
    background: #ffffff;
}

/* ==========================================================================
   PRIESTS PAGE
   ========================================================================== */
.tdleft {
    text-align: center;
    padding: 10px;
}

.tdright {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px 0;
}

.photo-gallery a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 0;
}

.photo-gallery a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.photo-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   PLACE TO STAY PAGE - Mobile number reveal
   ========================================================================== */
#mobileNumberSection {
    visibility: hidden;
    margin-top: 12px;
    padding: 12px;
    background: #f4fbf7;
    border: 1px solid #c0dece;
    border-radius: 6px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* ==========================================================================
   FORMS & BUTTONS
   ========================================================================== */
.btn,
input[type="button"],
button.myButton {
    display: inline-block;
    padding: 8px 18px;
    background: #2d8c4e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.btn:hover,
input[type="button"]:hover {
    background: #236b3c;
    color: #ffffff;
    text-decoration: none;
}

input[type="text"] {
    padding: 7px 12px;
    border: 1px solid #b8d4c0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

/* ==========================================================================
   ENQUIRY FORM (Contact / Stylized form)
   ========================================================================== */
.enquiryForm,
#stylized {
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    background: #f8fdf9;
    border: 1px solid #c0dece;
    border-radius: 8px;
}

#stylized h1 {
    font-size: 1rem;
    margin-bottom: 8px;
}

#stylized p {
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #c0dece;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

#stylized label {
    display: block;
    text-align: right;
    width: 130px;
    float: left;
    font-size: 0.88rem;
    padding-top: 4px;
}

#stylized .displayLabel {
    float: left;
    font-size: 0.88rem;
    width: 220px;
    margin: 2px 0 16px 10px;
}

#stylized .small {
    color: #666;
    display: block;
    font-size: 0.78rem;
    font-weight: normal;
    text-align: right;
    width: 130px;
}

#stylized input,
#stylized textarea {
    float: left;
    font-size: 0.88rem;
    padding: 6px 10px;
    border: 1px solid #b8d4c0;
    border-radius: 6px;
    width: 200px;
    margin: 2px 0 16px 10px;
    font-family: inherit;
}

#stylized button {
    clear: both;
    margin-left: 140px;
}

#stylized .star {
    color: red;
    font-size: 0.75em;
}

.spacer {
    clear: both;
    height: 1px;
}

/* Personal details table */
.personalDetailsTable,
.mahashivratriPoojaDetailsTable {
    border: 1px solid #b8d4c0;
    background: #f4fbf7;
    width: 100%;
    border-collapse: collapse;
}

.personalDetailsTable td,
.mahashivratriPoojaDetailsTable td {
    padding: 8px 12px;
    border-bottom: 1px solid #d8ece0;
}

.personalDetailsTable input[type="text"] {
    border-radius: 6px;
    padding: 4px 10px;
    height: auto;
}

/* ==========================================================================
   LEGACY CLASS ALIASES (for backward compatibility)
   ========================================================================== */
.leftTD {
    text-align: left;
}

.rightTD {
    text-align: right;
}

.pageName {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d8c4e;
    letter-spacing: 0.07em;
}

/* MAP section */
.mapDIV iframe {
    max-width: 100%;
    border-radius: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: linear-gradient(to bottom, #40ac62, #369656);
    color: #ffffff;
    text-align: center;
    padding: 16px 20px;
    margin-top: 30px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.footerContent {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet */
@media (max-width: 900px) {
    .site-title {
        font-size: 1.5rem;
    }

    .nav-menu > li > a,
    .nav-menu > li > button.nav-dropdown-btn {
        padding: 10px 10px;
        font-size: 0.74rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header-top {
        padding: 10px 16px;
        gap: 10px;
    }

    .site-logo img {
        height: 60px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-tagline {
        display: none;
    }

    .site-header-actions {
        display: none;
    }

    /* Show hamburger on mobile */
    .nav-toggle {
        display: block;
    }

    .nav-container {
        padding: 0;
        flex-wrap: wrap;
    }

    .nav-toggle {
        margin: 8px 16px 8px auto;
    }

    /* Collapsed nav */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 6px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu > li > a,
    .nav-menu > li > button.nav-dropdown-btn {
        padding: 11px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        font-size: 0.82rem;
        text-transform: none;
    }

    /* Mobile dropdowns open/close via JS */
    .nav-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.12);
        min-width: auto;
    }

    .nav-dropdown a {
        padding: 8px 20px 8px 32px;
        font-size: 0.8rem;
    }

    /* Disable hover dropdown on mobile */
    .nav-menu > li.has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .nav-menu > li.has-dropdown.is-open .nav-dropdown {
        display: block;
    }

    /* Page body */
    #page-body {
        padding: 16px 14px;
    }

    /* Homepage layout stack */
    .home-layout {
        flex-direction: column;
    }

    .home-sidebar {
        flex: none;
        width: 100%;
    }

    .home-sidebar img {
        max-width: 100%;
    }

    /* Contact */
    .ContactUsContentWrapper {
        flex-direction: column;
        gap: 20px;
    }

    /* Tables responsive */
    .templeScheduleTable,
    .annualPoojaTable,
    .data-table {
        font-size: 0.8rem;
    }

    .templeScheduleTable td,
    .annualPoojaTable td,
    .data-table td,
    .templeScheduleTable th,
    .annualPoojaTable th {
        padding: 8px 10px;
    }

    /* Photo gallery */
    .photo-gallery img {
        width: 95px;
        height: 95px;
    }

    /* Info cards */
    .info-cards {
        gap: 8px;
    }

    .info-card {
        flex: 1 1 130px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .site-title {
        font-size: 1rem;
    }

    .site-logo img {
        height: 50px;
    }

    .info-card {
        flex: 1 1 100%;
    }

    .annualPoojaTable {
        font-size: 0.75rem;
    }

    .annualPoojaTable td,
    .annualPoojaTable th {
        padding: 6px 8px;
    }

    .mapDIV iframe {
        width: 100%;
        height: 250px;
    }
}
