﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
body {
    padding-top: 80px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}
body {
    background-color: #fdfaf6 !important; /* हल्का क्रीम */
}

body {
  margin-bottom: 60px;
}
/* IMAGE POST – FULL IMAGE INSIDE CARD */
.post-img {
    height: 220px; /* fixed card height */
    width: 100%;
    object-fit: contain; /* 🔥 FULL IMAGE SHOW */
    background-color: #f8f9fa;
    padding: 6px;
}

/* PDF POST */
.pdf-thumb {
    height: 220px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdf-icon {
    font-size: 64px;
    color: #dc3545;
}

.pdf-text {
    margin-top: 6px;
    font-weight: 600;
    color: #dc3545;
}
.post-img:hover {
    transform: scale(1.02);
    transition: 0.3s ease;
}



.purvank-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 14px;
}

    .purvank-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    }

.purvank-img-wrapper {
    height: 260px;
    overflow: hidden;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: #f1f1f1;
}

.purvank-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purvank-card h5 {
    color: #222;
}

.purvank-card p {
    line-height: 1.6;
}
/* CARD */
.purvank-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease;
}

    .purvank-card:hover {
        transform: translateY(-4px);
    }

/* IMAGE WRAPPER */
.purvank-img-wrapper {
    height: 260px; /* 🔥 same height for all */
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* IMAGE */
.purvank-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* 🔥 FULL image, no crop */
}


/* FOOTER */
.footer {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.footer-link {
    color: #555;
    text-decoration: none;
}

    .footer-link:hover {
        color: #0d6efd;
        text-decoration: underline;
    }
/* ===== STICKY FOOTER FIX ===== */
html, body {
    height: 100%;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    display: none;
    border: none;
    outline: none;
    background-color: #0d6efd;
    color: #fff;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    #backToTop:hover {
        background-color: #084298;
    }

/* ===== DARK MODE TOGGLE ===== */
#darkModeToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border: none;
    background: #212529;
    color: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================
   DARK MODE – CORE COLORS
========================= */
.dark-mode {
    background-color: #0f1115; /* soft dark */
    color: #e6e6e6;
}

    /* =========================
   NAVBAR
========================= */
    .dark-mode .navbar {
        background-color: #16181d !important;
        border-bottom: 1px solid #2a2d35;
    }

    .dark-mode .nav-link,
    .dark-mode .navbar-brand {
        color: #e6e6e6 !important;
    }

        .dark-mode .nav-link:hover {
            color: #9ecbff !important;
        }

    /* =========================
   MAIN CONTENT AREA
========================= */
    .dark-mode main {
        background-color: #0f1115;
    }

    /* =========================
   CARDS / LIST GROUP
========================= */
    .dark-mode .card,
    .dark-mode .list-group-item {
        background-color: #16181d;
        color: #e6e6e6;
        border: 1px solid #2a2d35;
    }

        .dark-mode .list-group-item a {
            color: #9ecbff;
        }

            .dark-mode .list-group-item a:hover {
                color: #cfe3ff;
            }

    /* =========================
   HEADINGS
========================= */
    .dark-mode h1,
    .dark-mode h2,
    .dark-mode h3,
    .dark-mode h4,
    .dark-mode h5,
    .dark-mode h6 {
        color: #ffffff;
    }

    /* =========================
   FOOTER
========================= */
    .dark-mode footer {
        background-color: #16181d !important;
        border-top: 1px solid #2a2d35;
        color: #cfcfcf;
    }

    .dark-mode .footer-link {
        color: #9ecbff;
    }

        .dark-mode .footer-link:hover {
            color: #cfe3ff;
        }

    /* =========================
   BADGES
========================= */
    .dark-mode .badge {
        background-color: #2a2d35;
        color: #ffffff;
    }

    /* =========================
   DROPDOWN
========================= */
    .dark-mode .dropdown-menu {
        background-color: #16181d;
        border: 1px solid #2a2d35;
    }

    .dark-mode .dropdown-item {
        color: #e6e6e6;
    }

        .dark-mode .dropdown-item:hover {
            background-color: #2a2d35;
            color: #ffffff;
        }

    .dark-mode p,
    .dark-mode span,
    .dark-mode li {
        color: #d6d6d6;
    }
    .dark-mode .text-muted {
        color: #aeb4bf !important; /* readable muted */
    }
    .dark-mode .container {
        background-color: transparent;
    }

    .dark-mode .list-group {
        background-color: #16181d;
        border-radius: 8px;
    }
    .dark-mode .list-group-item,
    .dark-mode .card {
        border-color: #343845;
    }
    .dark-mode footer p,
    .dark-mode footer li {
        color: #cfd3da;
    }
    .dark-mode h4,
    .dark-mode h5 {
        color: #ffffff;
        letter-spacing: 0.3px;
    }


/* ===== CUSTOM NAVBAR ===== */
.custom-navbar {
    background: linear-gradient(135deg, #fdfaf6, #fff);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 14px 0;
}

/* BRAND */
.navbar-brand {
    font-size: 26px;
    font-weight: 800;
    color: #4b2e83 !important;
    letter-spacing: 1px;
}

/* MENU ITEMS */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

    /* HOVER EFFECT */
    .navbar-nav .nav-link:hover {
        background: #f3eefc;
        color: #4b2e83 !important;
    }

    /* ACTIVE ITEM */
    .navbar-nav .nav-link.active {
        background: #4b2e83;
        color: #fff !important;
    }
.dropdown-menu {
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 500;
}

    .dropdown-item:hover {
        background: #f3eefc;
        color: #4b2e83;
    }
.navbar .btn-primary {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
}

.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }
.modal {
    animation: none !important;
}
.modal {
    transform: none !important;
}

.modal-dialog {
    transform: none !important;
}

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}
.modal-backdrop {
    position: fixed;
}
#successAlert {
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ===== USER DROPDOWN MENU ===== */
.dropdown-menu {
    border: none;
    border-radius: 14px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ITEM */
.dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
}

    /* HOVER EFFECT */
    .dropdown-item:hover {
        background: #f3eefc;
        color: #4b2e83;
        transform: translateX(2px);
    }

/* DIVIDER */
.dropdown-divider {
    margin: 8px 0;
    border-color: #eee;
}

/* BADGE IN DROPDOWN */
.dropdown-item .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* ADMIN ITEM SPECIAL */
.dropdown-item.admin-item {
    background: #fff7e6;
}

    .dropdown-item.admin-item:hover {
        background: #ffe8b3;
        color: #8a5a00;
    }



/* Google translate top banner */
.goog-te-banner-frame {
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
}

/* Default navbar position */
.custom-navbar {
    top: 0;
    transition: top 0.3s ease;
}


/* Google translate top bar */
iframe.goog-te-banner-frame {
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
}

/* Navbar default */
.custom-navbar {
    top: 0;
    z-index: 10000; /* translate se thoda upar */
    transition: top 0.3s ease;
}


