/* Premium Custom CSS - Anti-gravity Styling System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #efa24c;
    --primary-hover: #d98a33;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Global Font Override */
body {
    font-family: 'Outfit', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* Header & Top Bar Beautification */
.p-head-wrapper {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    width: 100%;
}

.p-head {
    padding: 1rem 0;
    border: none !important;
    transition: all 0.3s ease;
}

.p-head .logo img {
    max-height: 45px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-head .logo img:hover {
    transform: scale(1.03);
}

/* Premium Unified Header Actions */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-logo-wrap img {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-action-btn {
    border: none;
    background: #f1f5f9;
    height: 42px;
    padding: 0 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    gap: 8px;
}

.header-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* WhatsApp Phone Action specific styles */
.phone-btn {
    color: #334155 !important;
    font-weight: 600;
}

.phone-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Menu Hamburger icon button */
.menu-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-handle:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}


/* Navigation Menu styling */
.menu {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.sidebar-menu-wrapper {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-menu-list li {
    padding: 0;
    margin: 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 1rem;
    color: #475569 !important;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 1px solid transparent;
}

.sidebar-menu-link:hover {
    color: var(--primary-color) !important;
    background: rgba(239, 162, 76, 0.08);
    transform: translateX(4px);
}

.sidebar-menu-link.active {
    color: white !important;
    background: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 162, 76, 0.25);
}

/* Footer Styling */
.p-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 0 !important;
    background: #f8fafc;
}

.footer-section {
    padding: 4rem 0 1.5rem 0;
    color: #334155;
    font-size: 0.95rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.about-text {
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-info li .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-contact-info a {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: var(--primary-color) !important;
}

.footer-contact-info span {
    color: #475569;
    line-height: 1.4;
}

.footer-divider {
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.developer-credit {
    font-weight: 500;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 162, 76, 0.2);
}

.social-icon-btn:hover img {
    filter: brightness(0) invert(1);
}


/* Search Icon Styling in Header */
.search-trigger-btn {
    border: none;
    background: #f1f5f9;
    height: 42px;
    padding: 0 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.search-trigger-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Full-Screen AJAX Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    overflow-y: auto;
}
.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.search-modal-container {
    width: 90%;
    max-width: 700px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-modal.active .search-modal-container {
    transform: translateY(0);
}
.search-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}
.search-modal-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}
.search-modal-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.25rem;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}
.search-modal-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(239, 162, 76, 0.15);
}
.search-modal-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-results-list {
    max-height: 450px;
    overflow-y: auto;
}
.search-result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
}
.search-result-card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: scale(1.01);
}
.search-result-card .img-thumb {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.search-result-card .info {
    flex-grow: 1;
    min-width: 0;
}
.search-result-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Mobile Menu Overlay & Top Drawer slide-in */
body.sm-menu-open {
    overflow: hidden !important;
}

.sm-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45); /* Elegant overlay backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sm-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sm-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 92vh;
    background: linear-gradient(185deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 4px solid var(--primary-color);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    padding: 2rem;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sm-menu.active .sm-menu-panel {
    transform: translateY(0);
}

.sm-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-menu-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-align: center;
}

.sm-menu-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.sm-menu .close-sm-menu {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-57%);
}

.sm-menu .close-sm-menu:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-57%) scale(1.1) rotate(90deg);
    box-shadow: 0 0 15px rgba(239, 162, 76, 0.4);
}

.sm-menu .link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.25rem;
}

.sm-menu .link-container a {
    display: inline-block !important;
    width: auto !important;
    min-width: 260px;
    max-width: 100%;
    color: rgba(241, 245, 249, 0.8) !important;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
    padding: 0.75rem 1rem !important;
    margin: 0.2rem 0 !important;
    background: transparent !important; /* Override legacy blue blocks */
    height: auto !important;
    line-height: normal !important;
    border: none !important;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease, padding-left 0.2s ease !important;
}

.sm-menu.active .link-container a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays for menu links */
.sm-menu.active .link-container a:nth-child(1) { transition-delay: 0.05s; }
.sm-menu.active .link-container a:nth-child(2) { transition-delay: 0.1s; }
.sm-menu.active .link-container a:nth-child(3) { transition-delay: 0.15s; }
.sm-menu.active .link-container a:nth-child(4) { transition-delay: 0.2s; }
.sm-menu.active .link-container a:nth-child(5) { transition-delay: 0.25s; }
.sm-menu.active .link-container a:nth-child(6) { transition-delay: 0.3s; }
.sm-menu.active .link-container a:nth-child(7) { transition-delay: 0.35s; }
.sm-menu.active .link-container a:nth-child(8) { transition-delay: 0.4s; }
.sm-menu.active .link-container a:nth-child(9) { transition-delay: 0.45s; }
.sm-menu.active .link-container a:nth-child(10) { transition-delay: 0.5s; }

.sm-menu .link-container a:hover,
.sm-menu .link-container a.active {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: scale(1.05) translateY(0) !important;
}

/* Mobile Menu Footer Contact Actions */
.sm-menu-footer {
    width: 100%;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.sm-menu-footer .d-flex {
    width: 100%;
    max-width: 320px;
}

.mobile-menu-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.mobile-menu-contact-btn.whatsapp {
    background: #25d366;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.mobile-menu-contact-btn.whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.mobile-menu-contact-btn.phone {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-contact-btn.phone:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-contact-btn svg {
    transition: transform 0.3s ease;
}

.mobile-menu-contact-btn:hover svg {
    transform: scale(1.1);
}

/* Premium Headers Modernization */
.header {
    background: transparent !important;
    color: #0f172a !important;
    font-weight: 700;
    font-size: 1.8rem;
    padding: 0.5rem 0 !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
    border-bottom: 2px solid var(--border-color) !important;
    position: relative;
    border-radius: 0 !important;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Project / Category Cards */
.category .item, .category .hovered {
    background: white;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.category .item:hover, .category .hovered:hover {
    background: white !important;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    border-color: rgba(239, 162, 76, 0.3) !important;
}

/* Image styling inside cards (overrides default vertical ratio) */
.category .item .img, .category .hovered .img {
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important; /* Landscape/Square standard height */
    transition: transform 0.5s ease !important;
    display: block;
    background-size: cover;
    background-position: center;
}


.category .item:hover .img, .category .hovered:hover .img {
    transform: scale(1.02);
}

.category .item .book_name, .category .hovered .book_name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 1rem 0 0.25rem 0 !important;
    text-align: center;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category .item:hover .book_name, .category .hovered:hover .book_name {
    color: var(--primary-color) !important;
}

/* Gallery Thumbnails on Detail Page */
.venobox {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.venobox:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.gallery-thumb-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.venobox:hover .gallery-thumb-wrap {
    transform: scale(1.06);
}

/* Content HTML & Typography styling */
.category p, .p-2 p, .p-2 {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.category h2, .p-2 h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.category h3, .p-2 h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Make lists inside descriptions clean and spaced */
.p-2 ul, .p-2 ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.p-2 li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}


/* Premium Lightbox Overlay (Venobox) Override */
.vbox-overlay {
    --vbox-tools-color: #ffffff;
    --vbox-title-background: rgba(15, 23, 42, 0.75);
    --vbox-title-width: auto;
    --vbox-title-radius: 8px;
    --vbox-share-background: rgba(15, 23, 42, 0.75);
    --vbox-padding: 0px;
    --vbox-max-width: 90%;
    
    /* Modern Glass backdrop */
    background: rgba(15, 23, 42, 0.93) !important;
    backdrop-filter: blur(16px) !important;
}

.vbox-close {
    background: rgba(255, 255, 255, 0.15) !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 1.5rem !important;
    right: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
}

.vbox-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    transform: rotate(90deg) scale(1.05);
}

.vbox-next, .vbox-prev {
    background: rgba(255, 255, 255, 0.1) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
    /* Robust vertical centering: always stays at 50% of viewport height */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
}

.vbox-next:hover, .vbox-prev:hover {
    background: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(239, 162, 76, 0.4) !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.vbox-next span, .vbox-prev span {
    border-top-width: 3px !important;
    border-right-width: 3px !important;
    width: 14px !important;
    height: 14px !important;
    top: 50% !important;
    margin-top: -7px !important;
}

.vbox-prev span {
    left: 18px !important;
    right: auto !important;
}

.vbox-next span {
    right: 18px !important;
    left: auto !important;
}

/* Rounded covers inside lightbox */
.vbox-child {
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    background: transparent !important;
}

.vbox-child img {
    border-radius: 16px !important;
    max-height: calc(100vh - 120px) !important;
}

/* Wave spinner color to match brand theme */
.vbox-overlay {
    --sk-color: var(--primary-color) !important;
}

/* Mobile responsive overlay tools positioning */
@media (max-width: 767px) {
    .vbox-next, .vbox-prev {
        width: 38px !important;
        height: 38px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-top: 0 !important;
    }
    .vbox-next:hover, .vbox-prev:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }
    .vbox-next span, .vbox-prev span {
        width: 10px !important;
        height: 10px !important;
        top: 50% !important;
        margin-top: -5px !important;
    }
    .vbox-prev span {
        left: 14px !important;
        right: auto !important;
    }
    .vbox-next span {
        right: 14px !important;
        left: auto !important;
    }
    .vbox-close {
        top: 1rem !important;
        right: 1rem !important;
        width: 38px !important;
        height: 38px !important;
    }
}

/* Mobile responsive layout for header */
@media (max-width: 991px) {
    .p-head-wrapper {
        margin-bottom: 1rem !important;
    }
    
    .p-head {
        padding: 0.75rem 0 !important;
    }
    
    .header-logo-wrap img {
        max-height: 34px !important; /* Shrunk logo on mobile */
    }
    
    .header-action-btn {
        height: 38px !important;
        padding: 0 0.75rem !important;
    }
    
    .menu-handle {
        width: 38px !important;
        height: 38px !important;
    }
}

/* On mobile, turn WhatsApp phone button into a round icon button */
@media (max-width: 767px) {
    .phone-btn {
        padding: 0 !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(37, 211, 102, 0.1) !important;
    }
    
    .phone-btn:hover {
        background: rgba(37, 211, 102, 0.2) !important;
    }
}

/* Gallery More Overlay (+N indicator) */
.gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-more-overlay span {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.venobox:hover .gallery-more-overlay {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

/* Lightbox Navigation Improvements */
.vbox-prev:hover {
    transform: translateY(-50%) translateX(-4px) scale(1.05) !important;
}
.vbox-next:hover {
    transform: translateY(-50%) translateX(4px) scale(1.05) !important;
}

/* Carousel Slider Next/Prev Overhaul */
.carousel-control-prev, .carousel-control-next {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    border-radius: 50% !important;
    top: 180px !important; /* Centered on 360px desktop image */
    transform: translateY(-50%) !important;
    opacity: 0.8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 991px) {
    .carousel-control-prev, .carousel-control-next {
        top: 150px !important; /* Centered on 300px tablet/mobile image */
    }
}

@media (max-width: 576px) {
    .carousel-control-prev, .carousel-control-next {
        top: 120px !important; /* Centered on 240px mobile image */
    }
}

.carousel-control-prev {
    left: 20px !important;
}

.carousel-control-next {
    right: 20px !important;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary-color) !important;
    opacity: 1 !important;
    box-shadow: 0 8px 25px rgba(239, 162, 76, 0.3) !important;
}

.carousel-control-prev:hover {
    transform: translateY(-50%) translateX(-2px) scale(1.05) !important;
}

.carousel-control-next:hover {
    transform: translateY(-50%) translateX(2px) scale(1.05) !important;
}

/* Custom Carousel Arrow Icons */
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 18px !important;
    height: 18px !important;
    filter: invert(0.2) !important; /* Convert white arrow to dark */
    transition: filter 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1) !important; /* White arrow on hover */
}


/* Premium Carousel Slider Overhaul */
.carousel {
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    padding: 1rem 0;
}

/* Image alignment & fitting */
.carousel-img-col {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.carousel-item .img {
    display: block !important;
    margin: 0 !important;
    max-width: 100%;
    width: 480px !important;
    height: 360px !important;
    background-size: cover;
    background-position: center;
    border-radius: 16px !important;
    box-shadow: var(--shadow-premium);
    transition: transform 0.5s ease;
}

@media (max-width: 991px) {
    .carousel-item .img {
        --width: 100% !important;
        width: 100% !important;
        height: 300px !important; /* Elegant fit on tablet/mobile screens */
        background-size: cover;
        background-position: center;
    }
    .carousel-img-col {
        width: 100% !important;
    }
    .carousel-content-col {
        width: 100% !important;
        padding-left: 0.75rem !important;
        text-align: left !important;
    }
}

@media (max-width: 576px) {
    .carousel-item .img {
        height: 240px !important; /* Slightly more compact on phones */
    }
}

/* Carousel Indicators (Dots to Pill morph) */
.carousel-indicators {
    bottom: -5px !important;
    gap: 8px;
    margin-bottom: 0 !important;
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #cbd5e1 !important; /* Soft slate grey */
    opacity: 0.8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
}

.carousel-indicators .active {
    width: 28px !important;
    border-radius: 5px !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(239, 162, 76, 0.5) !important;
    opacity: 1 !important;
}

/* Premium Staggered Carousel Thumbnails Grid */
.carousel-thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
    width: 100%;
}

.carousel-thumb-col {
    flex: 0 0 auto;
}

.carousel-thumb-wrap {
    width: 54px;
    height: 54px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.carousel-thumb-wrap:hover {
    transform: scale(1.08);
    border-color: var(--primary-color);
}

/* Glassmorphism Overlays for remaining images count */
.carousel-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-thumb-overlay span {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.carousel-thumb-wrap:hover .carousel-thumb-overlay {
    background: rgba(15, 23, 42, 0.5);
}

/* Desktop limitations: show 6, overlay 6th, hide subsequent */
.carousel-thumb-col:nth-child(n+7) {
    display: none !important;
}
.carousel-thumb-overlay.mobile-only {
    display: none !important;
}
.carousel-thumb-overlay.desktop-only {
    display: flex;
}

/* Mobile limitations: show 3, overlay 3rd, hide subsequent */
@media (max-width: 768px) {
    .carousel-thumb-col:nth-child(n+4) {
        display: none !important;
    }
    .carousel-thumb-overlay.mobile-only {
        display: flex !important;
    }
    .carousel-thumb-overlay.desktop-only {
        display: none !important;
    }
    .carousel-thumb-wrap {
        width: 60px;
        height: 60px; /* Slightly larger targets on mobile touch screen */
    }
}

/* Carousel Titles & Descriptions */
.carousel-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.carousel-item-desc {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.carousel-item:hover .carousel-item-title {
    color: var(--primary-color);
}

/* Responsive Gutter Padding & Spacing breathing room */
@media (max-width: 991px) {
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .p-body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Breathing room below main page title */
    .book_name.header {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    /* Main layout body spacing */
    .p-body {
        margin-top: 0.5rem !important;
    }
    
    /* Content column padding-bottom to separate from footer */
    .col-md-18.col-24 {
        padding-bottom: 4rem !important;
    }
    
    /* Margin below gallery section on detail view page */
    .detail-gallery-row {
        margin-bottom: 3.5rem !important;
    }
    
    /* Breathing room inside sidebar category card items */
    .category {
        margin-top: 1.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* Mobile category card sizing modifications (2-columns fit) */
    .category .item, .category .hovered {
        border-radius: 12px !important;
        padding: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        width: 100% !important;
    }
    
    .category .item .img, .category .hovered .img {
        width: 100% !important;
        height: 130px !important; /* Shorter card height for 2-column landscape fit */
        border-radius: 8px !important;
    }
    
    .category .item .book_name, .category .hovered .book_name {
        font-size: 0.9rem !important;
        margin: 0.5rem 0 0.25rem 0 !important;
        font-weight: 600 !important;
    }
}

/* Other Projects sizing on detail page (smaller than detail gallery images) */
@media (min-width: 769px) {
    .category .item .other-project-img {
        height: 140px !important;
    }
}

/* Premium Detail Page Layout Enhancements */

.project-description-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 2.5rem;
}

.project-description-card p {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    margin-bottom: 1rem !important;
}

.project-description-card p:last-child {
    margin-bottom: 0 !important;
}

/* Breadcrumb Styling Override */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}
.breadcrumb a {
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: var(--primary-color) !important;
}




