/* ==========================================================================
   CONSOLIDATED & RESPONSIVE STYLES FOR PARIPURNANANDA
   ========================================================================== */

/* 1. SEMANTIC CLASS MAPPINGS FOR INLINE CSS
   ========================================================================== */
.text-red-primary {
    color: #a60000 !important;
}

.text-blue-primary {
    color: #4a90e2 !important;
}

.btn-book-now {
    background-color: #FF9C27 !important;
    color: #a60000 !important;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.btn-book-now:hover {
    background-color: #e68313 !important;
    color: #fff !important;
}

.bg-card-green {
    background: #5F8B4C !important;
}

.bg-card-pink {
    background: #FF9A9A !important;
}

.bg-card-brown {
    background: #945034 !important;
}

.img-card-cover {
    height: 350px !important;
    object-fit: cover !important;
}

.banner-img-cover {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.height-placeholder {
    min-height: 150px !important;
    height: 150px !important;
}

.iframe-map-video {
    height: 80vh !important;
    border: none !important;
    width: 100% !important;
}

.btn-teal {
    background-color: #009da6 !important;
    color: #fff !important;
}

.btn-red {
    background-color: red !important;
    color: white !important;
}

/* 2. REUSABLE SHARED COMPONENT STYLES
   ========================================================================== */

/* Nakshatra Box Component (Pujas, Homalu, Temples, etc.) */
.nakshatra-box {
    width: 100%;
    height: 100%;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nakshatra-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nakshatra-box img.post-thumbnew1 {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: hsla(0, 80%, 50%, 0.05);
}

.nakshatra-box h2 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 60px;
}

.nakshatra-box p {
    font-size: 13px;
    color: rgb(48, 151, 8);
    margin: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 120px;
}

/* Panchang Section Component */
.panchang-section {
    background: #fff;
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.panchang-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.panchang-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.panchang-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.panchang-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 16px;
}

.panchang-date .divider {
    color: #bdc3c7;
}

.panchang-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.panchang-row {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.panchang-label {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 14px;
}

.panchang-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
}

.panchang-timings {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.timings-title {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.timing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.timing-row:last-child {
    border-bottom: none;
}

.timing-label {
    color: #7f8c8d;
    font-size: 14px;
}

.timing-value {
    color: #e74c3c;
    font-weight: 500;
}

.panchang-festival {
    text-align: center;
    margin: 20px 0;
}

.festival-badge {
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.panchang-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #7f8c8d;
}

.view-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

.festival {
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

/* 3. USER PROFILE HEADER & SECTIONS (EXTRACTED FROM USERSHEADER.PHP)
   ========================================================================== */
#topbar {
    display: flex;
    height: 64px;
    width: 100%;
    align-items: flex-end;
    position: fixed;
    background-color: white;
}

#searchbarimage {
    height: 30px;
    padding: 0px 28px 10px 30px;
    cursor: pointer;
}

#searchbarmic {
    height: 45px;
    width: 35px;
    margin-left: auto;
    background-color: white;
}

#searchbarmic img {
    height: 25px;
}

#searchbarbutton {
    height: 45px;
    width: 55px;
    position: relative;
    margin-right: -2px;
    background-color: white;
}

#searchbarbutton svg {
    height: 25px;
    width: 35px;
    position: relative;
    left: -3px;
}

#searchbarbutton svg path {
    fill: #4285F4;
}

#searchbar {
    width: 625px;
    height: 45px;
    border-radius: 100px;
    border-color: lightgray;
    border-style: solid;
    border-width: 1px;
    font-size: 16px;
    position: relative;
    bottom: 5px;
    overflow: hidden;
    display: flex;
    z-index: 100;
}

#searchbar:hover {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

#searchbar>input {
    height: 45px;
    border-style: none;
    font-size: 16px;
    line-height: 45px;
    padding-left: 20px;
    flex: 1;
}

#searchbar>input:focus {
    outline: none;
}

#searchbar button {
    border: none;
    cursor: pointer;
}

#searchbar button:focus {
    outline: none;
}

#boxesicon {
    width: 25px;
    height: 25px;
    background-image: url('images/boxes.png');
    opacity: 0.6;
    background-size: 26px;
    position: absolute;
    right: 130px;
    bottom: 14px;
}

#optionsmenuactive::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #4285F4;
    left: 5px;
    bottom: 0px;
}

#optionsmenu2 {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0px;
    margin: 0px;
    margin-left: 100px;
}

#optionsmenu2 li {
    padding: 0px 10px 15px 20px;
}

#searchresultsarea, #popnewcitysearch, #searchresultsarea1, #searchresultsarea2 {
    font-family: 'Arial', sans-serif;
}

#searchresultsnumber {
    font-size: 0.8rem;
    color: gray;
}

.searchresult {
    margin-left: 8px;
}

.searchresult h2 {
    font-size: 19px;
    line-height: 18px;
    font-weight: normal;
    color: rgb(29, 1, 189);
    margin-bottom: 0px;
    margin-top: 25px;
}

.searchresult a {
    font-size: 14px;
    line-height: 14px;
    color: green;
    margin-bottom: 0px;
}

.searchresult button {
    font-size: 10px;
    line-height: 14px;
    color: green;
    margin-bottom: 0px;
    padding: 0px;
    border-width: 0px;
    background-color: white;
}

#bellicon {
    width: 20px;
    height: 20px;
    background-color: rgb(105, 105, 105);
    background-image: url('images/bell.png');
    background-size: 12px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius: 30px;
    position: absolute;
    right: 90px;
    bottom: 18px;
}

#profileimage {
    border-radius: 50px;
    width: 32px;
    height: 32px;
    position: absolute;
    right: 40px;
    bottom: 12px;
}

#optionsbar {
    width: 100%;
    height: 50px;
    border-width: 0px;
    border-bottom: 1px;
    border-color: lightgray;
    border-style: solid;
    display: flex;
    align-items: flex-end;
    font-family: 'Arial';
    font-size: 13px;
    color: rgb(112, 112, 112);
    padding-top: 64px;
}

#optionsmenu1 {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0px;
    margin: 0px;
    margin-left: 150px;
    cursor: pointer;
}

#optionsmenu1 li {
    padding: 0px 10px 15px 20px;
}

#optionsmenuactive {
    color: #4285F4;
    font-weight: bold;
    position: relative;
    z-index: -1;
}

.searchresult p {
    width: 625px;
    font-size: 13px;
    margin-top: 0px;
    color: rgb(82, 82, 82);
}

.relatedsearches h3 {
    font-weight: normal;
    font-size: 19px;
    margin-top: 40px;
    margin-bottom: 10px;
}

.relatedlists ul {
    list-style: none;
    color: rgb(29, 1, 189);
    padding-left: 0px;
    font-size: 14px;
    margin-bottom: 50px;
}

.relatedlists {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 300px;
}

.relatedlists ul li {
    margin-bottom: 8px;
}

.pagelist {
    list-style: none;
    color: rgb(29, 135, 255);
    display: flex;
    flex-direction: row;
    font-size: 12px;
    margin-bottom: 30px;
    margin-left: 100px;
}

.pagelistprevious::before {
    content: '<';
    display: block;
    position: absolute;
    right: 12px;
    top: -35px;
    color: rgb(29, 135, 255);
    font-size: 20px;
    transform: scale(0.7, 1.2);
}

.pagelistprevious::after {
    content: '';
    display: block;
    position: absolute;
    right: -40px;
    top: -35px;
    width: 40px;
    height: 40px;
    background-image: url('images/g.png');
    background-repeat: no-repeat;
    background-size: 28px;
}

.pagelistfirst {
    margin-left: 20px;
    font-size: 13px;
}

.pagelistnumber::before,
.pagelistfirst::before {
    content: '';
    display: block;
    position: absolute;
    left: -2px;
    top: -21px;
    border-radius: 50px;
    width: 10px;
    height: 10px;
    background-color: white;
    z-index: 3;
}

.pagelistnumber::after {
    content: '';
    display: block;
    position: absolute;
    left: -6px;
    top: -25px;
    border-radius: 50px;
    width: 18px;
    height: 18px;
    background-color: rgb(255, 196, 0);
    z-index: 2;
}

.pagelistfirst::after {
    content: '';
    display: block;
    position: absolute;
    left: -6px;
    top: -25px;
    border-radius: 50px;
    width: 18px;
    height: 18px;
    background-color: red;
    z-index: 2;
}

.pagelist li {
    margin-right: 15px;
    position: relative;
}

.pagelistnext {
    margin-left: 40px;
    font-size: 13px;
}

.pagelistnext::before {
    content: '>';
    display: block;
    position: absolute;
    left: 5px;
    top: -35px;
    color: rgb(29, 135, 255);
    font-size: 20px;
    transform: scale(0.7, 1.2);
}

.pagelistnext::after {
    content: '';
    display: block;
    position: absolute;
    left: -55px;
    top: -37px;
    width: 50px;
    height: 50px;
    background-image: url('images/gle.png');
    background-repeat: no-repeat;
    background-size: 48px;
}

#footer {
    background-color: rgb(238, 238, 238);
    position: relative;
    left: 0px;
    bottom: 0px;
    width: 100%;
    font-size: 13px;
    font-family: 'arial';
    color: rgb(85, 85, 85);
}

#footermenu {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin-top: 0px;
    margin-left: 135px;
    margin-bottom: 0px;
    padding-bottom: 10px;
}

#footermenu li {
    padding-right: 30px;
}

#footerlocation {
    display: flex;
    direction: row;
    margin-left: 175px;
    position: relative;
    top: -5px;
}

#footerlocation p:nth-of-type(1) {
    font-weight: bold;
}

#main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 150px;
}

#left-section {
    width: 65%;
}

#right-section {
    width: 30%;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sponsored-ads {
    background-color: #fff;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.sponsored-ads-bottom {
    background-color: #fff;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    margin: 0 auto;
}

.sponsored-ads h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ad-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.ad {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.ad:hover {
    transform: scale(1.05);
}

.ad img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ad-content {
    padding: 10px;
    text-align: center;
}

.ad-content h4 {
    font-size: 14px;
    color: #007bff;
    margin-bottom: 5px;
}

.ad-content p {
    font-size: 16px;
    font-weight: bold;
}

.ad-content span {
    font-size: 12px;
    color: #666;
}

.results {
    display: flex;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

/* 4. MOBILE-FIRST RESPONSIVE DESIGN (MOBILE WEB APP ENHANCEMENTS)
   ========================================================================== */

/* Tablets and Mobile Devices */
@media screen and (max-width: 768px) {
    /* Main Layout Responsiveness */
    #main-container {
        flex-direction: column !important;
        margin: 15px !important;
    }

    #left-section, #right-section {
        width: 100% !important;
    }

    #right-section {
        order: 1 !important;
        margin-bottom: 20px !important;
    }

    #left-section {
        order: 2 !important;
    }

    /* List grids for all views */
    .row > .col-lg-3,
    .row > .col-md-3,
    .row > .col-md-4,
    .row > .col-sm-6,
    .row > .col-sm-4 {
        width: 50% !important; /* Display cards side-by-side */
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 8px !important;
    }

    /* Adjust cards inside side-by-side grids */
    .nakshatra-box {
        margin-bottom: 15px !important;
        height: auto !important;
        min-height: 380px !important;
    }

    .nakshatra-box img.post-thumbnew1 {
        height: 140px !important;
    }

    .nakshatra-box h2 {
        font-size: 14px !important;
    }

    /* Navigation & Menu adjustments */
    #optionsmenu1 {
        margin-left: 10px !important;
    }

    #optionsmenu1 li {
        padding: 8px 12px !important;
    }

    /* Search area styling on tablet */
    #searchresultsarea, #popnewcitysearch {
        margin-left: 15px !important;
    }

    .ad-container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Panchang responsive grid */
    .panchang-details {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .timing-row {
        padding: 10px 0 !important;
    }
}

/* Small Mobile Screens (Phones) */
@media screen and (max-width: 480px) {
    /* Side-by-side grid goes to full width on very small phones if columns are too cramped, 
       but keeping 2 columns if columns are well proportioned. Let's make it single column */
    .row > .col-lg-3,
    .row > .col-md-3,
    .row > .col-md-4,
    .row > .col-sm-6,
    .row > .col-sm-4,
    .row > .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 10px !important;
    }

    .nakshatra-box {
        min-height: auto !important;
    }

    /* Panchang full width */
    .panchang-details {
        grid-template-columns: 1fr !important;
    }

    .panchang-row, .timing-row {
        flex-direction: column !important;
        text-align: left !important;
    }

    .panchang-value, .timing-value {
        text-align: left !important;
        margin-top: 5px !important;
    }

    /* Header top adjustments - keep visible and responsive */
    .header-top {
        display: block !important;
        padding: 6px 10px !important;
    }
    .header-top .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .header-top .col-md-8, 
    .header-top .col-md-4 {
        width: 100% !important;
        text-align: center !important;
    }
    .left-top ul, .right-top ul {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .left-top ul li {
        font-size: 11px !important;
        display: inline-block !important;
    }
    .right-top ul li {
        display: inline-block !important;
    }
    .right-top ul li a i {
        font-size: 12px !important;
    }

    .logo-section .row {
        flex-direction: column !important;
    }

    .logo-section img {
        margin-bottom: 10px !important;
    }

    /* Banner buttons & form spacing */
    .banner-form {
        flex-direction: column !important;
        padding: 10px !important;
    }

    .banner-form .input-group-form {
        width: 100% !important;
        margin-bottom: 10px !important;
        border-radius: 5px !important;
    }

    .banner-form .button-form {
        width: 100% !important;
        border-radius: 5px !important;
    }

    /* Scale titles for readability on phones */
    h2, .banner-heading h2 {
        font-size: 20px !important;
    }

    /* Mobile footer menus */
    #footermenu {
        margin-left: 20px !important;
        flex-direction: column !important;
    }

    #footermenu li {
        padding-bottom: 8px !important;
    }

    #footerlocation {
        margin-left: 20px !important;
    }
}

/* Header Navigation & Search Box Styles */
.nav-item.search-toggle i {
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.nav-item.search-box {
    animation: fadeIn 0.3s ease-in-out;
}

.nav-item.search-box input {
    width: 200px;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
    .nav-item.search-box input {
        width: 100px;
    }
}

/* ==========================================
   5. RESPONSIVE FOOTER STYLES
   ========================================== */

/* Main Frontend Footer (footer-seven) Spacing & Centering on Mobile */
@media screen and (max-width: 768px) {
    .footer-seven .footer-top .footer-widget {
        margin-bottom: 35px !important;
        text-align: center !important;
    }
    .footer-seven .footer-top .footer-widget:last-child {
        margin-bottom: 0 !important;
    }
    .footer-seven .footer-top .footer-widget .footer-title {
        text-align: center !important;
    }
    .footer-seven .footer-top .footer-widget .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .footer-seven .copyright-text.text-start,
    .footer-seven .copyright-text.text-md-end {
        text-align: center !important;
        margin-bottom: 12px !important;
    }
    .footer-seven .copyright-text.text-md-end {
        margin-bottom: 0 !important;
    }
}

/* Dashboard/Backend Footer Layout & Responsiveness (backfooter.php) */
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 30px;
    gap: 15px;
}
.left-links, .right-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.left-links a, .right-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}
.left-links a:hover, .right-links a:hover {
    color: #FF9C27 !important; /* Premium warm accent */
    transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
        gap: 20px !important;
    }
    .left-links, .right-links {
        justify-content: center !important;
        width: 100% !important;
        gap: 15px !important;
    }
}


