body, div, section, article, header, footer, h1, h2, h3, h4, h5, h6, p, span, img, svg {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a, button, [role="button"], .btn, input[type="submit"] {
    cursor: pointer !important;
}

input[type="text"], input[type="email"], input[type="password"], 
input[type="search"], textarea, [contenteditable="true"] {
    cursor: text !important;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
 :root {
            --bg-color: #0f172a;
            --card-bg: #1e293b;
            --text-main: #000;
            --text-muted: #424850;
            --accent: #C9B458;
            --accent-hover: #7dd3fc;
            --gap: 2rem;
            --light-grey:#97a2b0;
            --color-white:#ffffff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Merriweather", serif;
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
        }

        a,p, li, button, span, label, input, textarea {font-family: "Lato", sans-serif; font-style: normal;}
        p {font-size: 1.1rem;}

        container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
            display: block;
        }

        section {
            padding: 5rem 0;
            border-bottom: 1px solid #334155;
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--text-main);
            position: relative;
            font-weight: normal;
        }

        h2::after {
            content: '';
            display: block;
            width: 50px;
            height: 4px;
            background: var(--accent);
            margin-top: 0.5rem;
            border-radius: 2px;
        }

        /* --- Header & Navigation --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
            border-bottom:1px solid #334155
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            max-width:100%; 
            padding:0 4%
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-white);
            text-decoration: none;
        }

        .logo span {
            color: var(--accent);
        }

        /* nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav a {
            text-decoration: none;
            color: var(--color-white);
            font-weight: 500;
            transition: color 0.3s;
        } */

        nav a:hover {
            color: var(--accent);
        }

        /* --- Hero Banner Section --- */
        .hero {
            padding-top: 10rem;
            padding-bottom: 6rem;
           /* background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);*/
           background: linear-gradient(135deg, #ffffff 0%, #e5e3ff 100%);
        }

        .hero .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--gap);
        }

        .hero-content {
            flex: 2;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        .hero-content h1 span {
            color: var(--accent);
        }

        .hero-content p {
            font-size: 1.25rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            max-width: 500px;
        }

        .btn {
            display: inline-block;
            background-color: var(--accent);
            color: #0f172a;
            padding: 0.8rem 2rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: transform 0.2s, background-color 0.2s;
        }

        .btn:hover {
            background-color: var(--accent-hover);
            transform: translateY(-2px);
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: right;
        }

        .hero-image img {
            width: 350px;
            height: 350px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--accent);
            box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
        }

        /* --- Section 1: About Me --- */
        .about-grid {
            display: flex;
            gap: 3rem;
            align-items: center;
        }

        .about-text p {
            color: var(--light-grey);
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        /* --- Section 2: Experience / Services --- */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--gap);
            
        }

        .service-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            transition: transform 0.3s;
            border: 1px solid #334155;
        }

        .service-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
        }

        .service-card h3 {
            margin-bottom: 1rem;
            font-size: 1.4rem;
            color:#fff;
        }

        .service-card p {
            color: var(--light-grey);
        }

        /* --- Section 3: Featured Work --- */
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--gap);
        }

        .portfolio-item {
            background-color: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #334155;
        }

        .portfolio-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .portfolio-info {
            padding: 1.5rem;
        }

        .portfolio-info h3 {
            margin-bottom: 0.5rem;
        }

    
        /* --- Section 4: Contact --- */
        .contact-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-content p {
            color: var(--text-muted);
            font-size: 1.2rem;
            margin-bottom: 2rem;
        }

        /* --- Footer --- */
        footer {
            background-color: #0b0f19;
           
            padding: 2rem 0;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

/* --- Recent Books Section Styling Layout --- */

h1,h2,h3,h4,h5 {font-weight: normal!important;}

.book-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 cover display, 2/3 info metadata display */
    gap: 3.5rem;
    margin-top: 3rem;
    align-items: flex-start;
}

/* Left Column: Image formatting rules */
.book-cover-col {
    display: flex;
    justify-content: center;
}

.book-cover-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    transition: transform 0.3s ease;
}

.book-cover-img:hover {
    transform: translateY(-5px);
}

/* Right Column: Detailed Text Layouts */
.book-details-col {
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 2.2rem;
    color: var(--text-main, #f8fafc);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.book-authors {
    font-size: 1.1rem;
    color: var(--accent, #38bdf8);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.book-description {
   
    margin-bottom: 1.5rem;
   
}

/* Metadata matrix settings */
.book-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1.5rem;
}

.meta-item {
    font-size: 1rem;
}

.book-meta-grid span {
    font-weight: 700;
    font-family: "Lato", sans-serif;
}



/* Review Highlight Panel formatting */
.book-reviews-box {
    background-color: var(--card-bg, #1e293b);
    border-left: 4px solid var(--accent, #38bdf8);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    border-top: 1px solid rgba(51, 65, 85, 0.4);
    border-right: 1px solid rgba(51, 65, 85, 0.4);
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.book-reviews-box h4 {
    color: var(--color-white, #f8fafc);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-quote {
    font-style: italic;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.5;
     font-family: "Lato", sans-serif;

}

.review-author {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--accent, #38bdf8);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Dual Call-to-action Action Buttons grid wrapper */
.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-purchase {
    background-color: var(--accent, #38bdf8);
    color: #0f172a !important;
}

.btn-secondary {
    background-color: #334155;
    color: var(--text-main, #f8fafc) !important;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background-color: #475569;
}


.site-footer {
    background-color: #0b0f19;
    padding: 5rem 0 1rem 0;
    border-top: 1px solid #334155;
    color: var(--color-white);
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 4rem;
    padding:0 4%
}

.footer-container .map-container {
    height:200px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col ul, ul.contact-list {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

/* Profile specific column layout */
.profile-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    margin-bottom: 1rem;
}

.profile-col h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.profile-col .tagline {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-list strong {
    color: var(--text-main);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: #1e293b;
    max-width: 94%;
    margin: 1rem auto;
}

/* Newsletter and Bottom Row */
.footer-bottom-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.newsletter-box {
    max-width: 450px;
    margin: 0 auto 2.5rem auto;
}

.newsletter-box h5 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.newsletter-form, .contact-content form {
    display: flex!important;
    gap: 0.5rem;
}

.tnp-field-email {flex:1}

.newsletter-form input[type="email"], .contact-content .tnp-subscription .tnp-email  {
    width:100%;
    padding: 0.75rem 1.2rem!important;
    border-radius: 25px;
    border: 1px solid #334155!important;
    background-color: #1e293b!important;
    color: var(--text-main)!important;
    outline: none;
    color:var(--light-grey);
}



.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
}

.newsletter-form .tnp-submit, .tnp-subscription .tnp-field-button .tnp-submit {
    background-color: var(--accent)!important;
    color: #0f172a!important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: "Lato", sans-serif;
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

.copyright {
    font-size: 0.85rem;
    color: var(--light-grey);
}

/* --- Desktop Settings (1024px and wider) --- */
.menu-checkbox, .hamburger {
    display: none; /* Hidden on desktop viewports */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu > li {
    position: relative;
    padding: 1.8rem 0; /* Clear, invisible padding chain directly to submenu */
}

.nav-menu a {
    text-decoration: none;
    color: var(--light-grey, #94a3b8);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > .dropdown-toggle {
    color: var(--accent, #38bdf8);
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8rem;
    display: inline-block;
    transition: transform 0.2s;
}

.nav-menu > li:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* --- FIXED: Hidden Dropdown Area (Ghost Hitbox Fix) --- */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background-color: var(--card-bg, #1e293b);
    border: 1px solid #334155;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    
    /* CRITICAL FIX: Ghost hovering disappears completely until deliberately triggered */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1100;
}

.submenu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--light-grey, #94a3b8);
    font-size: 0.95rem;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #334155;
    color: var(--accent, #38bdf8);
}

/* Activate dropdown interaction ONLY on hover */
.nav-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


.sub-title {color:var(--accent)!important; font-size: 1.5rem!important; font-family: "Merriweather", serif;}
ul.sub-title li {list-style: none;}
.banner-btns {display:flex; column-gap: 10px;}
.secondary {background:var(--bg-color); color:#fff}
.single-btn {margin-top:40px;}
/* .white-bg {background:#fff} */
.white-text {color:var(--color-white)!important}
.two-column .single-btn {text-align: center;}
.service-card a {text-decoration:none; padding:1.2rem; display:block;}
.grey-text {color:var(--light-grey)!important}
.dark-text {color:var(--text-muted)}
a.page-link {color:var(--accent); font-size: 0.95rem; text-decoration: none;}
a.page-link:hover {color:var(--color-white)!important}
.center-align {text-align: center;}
.gold-title {color:var(--accent)!important}
.center-align h2::after, h2.center-align::after {margin:0 auto;}
.text-left {text-align:left}
.recent-books .books-catalog-grid {padding-top:30px;}

/* --- Gallery Section Specific Styling --- */
.white-bg {
    background-color: #ffffff;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.white-bg h2 {
    color: #0f172a;
}


.white-bg h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* 2/3 and 1/3 Grid Allocation mapping */
.outer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.dark-text {
    color: #334155;
}

/* Left side: Photo Grid (2x2 Display) */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .gallery-thumb {
    transform: scale(1.05);
}

/* Right side: Video column stack */
.video-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}


.video-wrapper {
    position: relative;
    padding-bottom: 47.26%; 
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-btn {
    text-align: center;
    margin-top: 3.5rem;
}

/* --- Photo Viewer Lightbox Modal Overlay --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

/* Navigation Arrow Overlays */
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s;
    user-select: none;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); color: #38bdf8; }
.prev { left: 2rem; }
.next { right: 2rem; }

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #94a3b8;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.lightbox-close:hover { color: white; }

.white-bg .dark-text h3 {color:var(--card-bg)}

.filter {margin-bottom:3rem;}
.inner-banner container {padding:0}


/*inner pages */

.inner-banner {
            padding-top: 6.3rem;
            padding-bottom: 2rem;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border-bottom: 1px solid #334155;
            text-align: center;
        }

        .inner-banner .page-title {
            font-size: 2rem;
           
            margin-bottom: 1.4rem;
        }

        .breadcrumbs {
            color: var(--light-grey);
            font-size: 0.9rem;
        }

        .breadcrumbs a {
            color: var(--accent);
            text-decoration: none;
        }

/* .inner-main{
            padding: 5rem 0;
            background:#fff
        } */

        .about-layout {
            display: flex;
            gap: var(--gap);
            align-items: flex-start;
        }

         /* Narrative Columns */
        .biography-text {
            flex: 1.8;
        }

        .biography-text h2 {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 1.5rem;
        }

        .inner-main p {
            color: var(--text-main);
            margin-bottom: 1.5rem;
           
        }

        /* Sticky Profile Sidebar */
        .biography-sidebar {
            flex: 1.2;
            position: sticky;
            top: 100px; /* Locks sidebar position during scrolling */
            background-color: var(--card-bg);
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }

        .biography-sidebar img {
            width: 100%;
            max-width: 280px;
            height: auto;
            border-radius: 8px;
            border: 3px solid #334155;
            margin-bottom: 1.5rem;
            object-fit: cover;
        }

        .sidebar-meta h3 {
            font-size: 1.4rem;
            color: var(--text-main);
            margin-bottom: 0.3rem;
        }

        .sidebar-meta .designation {
            color: var(--accent);
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

.biography-text p {margin-bottom:1.6rem}

body span.highlight {background:red; color:#fff}

.header-right {display:flex; justify-content: flex-end; align-items: center;}

.search-section {
    position: relative;
    display: inline-block;
    margin-left:15px;
}

.search-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: var(--accent);
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    transition: all 0.3s ease;
    color: rgba(15, 23, 42, 0.9);
}

.search-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.search-form-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding:7px 10px 10px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 450px;
    align-items: center;
    gap: 10px;
}

.search-form-popup input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-form-popup input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.bg-primary {
    background:var(--bg-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.bg-primary:hover {
    background: var(--accent-hover);
}

.close-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--accent);
    position:absolute;
    right:-6px;
    top:-6px;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}
.search-count-result {display:flex; }
.search-count-display {height:20px;margin-bottom:3px;}
.search-count-result span {font-size:12px; color:var(--card-bg)}
.clear-highlights-btn {color:var(--card-bg); text-decoration: underline; background:none; border:none; margin-left:10px;}
.search-count-result span strong {font-family: "Lato", sans-serif;}

.search-input-wrapper {display:flex; justify-content: space-between; gap:10px;}

/* blog page */

 .filter-container {
            padding: 1rem 0 1rem 0;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .filter-btn {
            background-color: var(--card-bg);
            color: var(--light-grey);
            border: 1px solid #334155;
            padding: 0.6rem 1.5rem;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
        }

        .filter-btn:hover, .filter-btn.active {
            background-color: var(--accent);
            color: #0f172a;
            border-color: var(--accent);
        }
 /* --- Responsive Blog Grid System --- */
        .blog-section, .gallery-section {
            padding-bottom: 2rem;
        }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: var(--gap);
            margin-top: 2rem;
        }

        /* Blog Card Component */
        .blog-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #334155;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, border-color 0.3s ease;
            
            /* Animation handling for dynamic filtering triggers */
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
        }

        /* Hidden state triggered by filter script */
        .blog-card.hidden {
            display: none;
            opacity: 0;
            transform: scale(0.9);
        }

        .blog-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
        }

        .blog-img-wrapper {
            position: relative;
            width: 100%;
            height: 210px;
            overflow: hidden;
        }

        .blog-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .blog-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background-color: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(5px);
            color: var(--accent);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            border: 1px solid #334155;
        }

        .blog-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .blog-date {
            font-size: 0.85rem;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }

h3.blog-title {
            font-size: 1.1rem;
            color: var(--color-white);
            margin-bottom: 0.8rem;
            line-height: 1.7;
        }

        .blog-excerpt {
            color: var(--light-grey);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .read-more {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .read-more:hover {
            color: var(--accent-hover);
        }

/* blog detail */

 .article-layout {
            display: grid;
            grid-template-columns: 2.2fr 1fr; /* 70/30 split layout */
            gap: var(--gap);
            margin-top: 2rem;
        }

        /* --- Left Column: Main Article Canvas --- */
        .article-header {
            margin-bottom: 2rem;
        }

        .article-meta {
            display: flex;
            gap: 1.5rem;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .article-meta span strong {
            color: var(--text-main);
        }

        .category-badge {
            display: inline-block;
            background-color: var(--accent);
            color: var(--text-main);
            padding: 0.2rem 0.8rem;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 1rem;
            border: 1px solid rgba(56, 189, 248, 0.2);
        }

        h1.article-title {
            font-size: 1.8rem;
            line-height: 1.3;
            color: var(--text-main);
            margin-bottom: 1rem;
        }

        .featured-image-container {
            width: 100%;
            height: 400px;
            overflow: hidden;
            border-radius: 12px;
            margin-bottom: 2.5rem;
            border: 1px solid #334155;
        }

        .featured-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

       
        .article-content p {
            color: var(--text-main); 
            margin-bottom: 1.8rem;
           
        }

       
        .article-content h3 {
            font-size: 1.6rem;
            color: var(--text-main);
            margin: 2.5rem 0 1rem 0;
        }

        /* --- Right Column: Sidebar Panels --- */
        .sidebar {
            display: flex;
            flex-direction: column;
            background:#f1f1f1;
            align-items: start;
            padding:20px;
            border-radius:10px;
        }

        .latest-blogs-list {
            list-style: none;
        
        }
    
        .blog-link-item {
   
    display: flex;
    align-items: start;
}

        .latest-blogs-list li a {
             font-family: "Merriweather", serif;
             font-size:1rem;
             color:var(--accent);
             text-decoration: none;
             padding-top:15px;
             display:block;
        }


    .blog-link-item::before {
    content: "\203A"; /* This is the CSS hex code for the rightwards arrow (→) */
    margin-right: 10px;
    color: var(--accent); /* Change to your brand color */
    font-weight: bold;
    font-size:30px;
}

/* Optional: Make the arrow color change on hover */
.blog-link-item:hover::before {
    color: #000; 
}
    

    .white-bg h3.sidebar-title{
        margin-bottom:0.1rem;
        color:var(--text-main)
    }

        .sidebar-widget {
            background-color: var(--card-bg);
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 1.8rem;
        }

        .sidebar-widget h4 {
            font-size: 1.4rem;
            color: var(--accent);
            margin-bottom: 1.2rem;
            position: relative;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #334155;
        }

        /* Recent Posts Stack List */
        .recent-posts-list {
            list-style: none;
        }

        .recent-posts-list li {
            margin-bottom: 1.2rem;
            padding-bottom: 1.2rem;
            border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        }

        .recent-posts-list li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .recent-posts-list a {
            color: var(--color-white);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            display: block;
            line-height: 1.4;
            transition: color 0.2s;
        }

        .recent-posts-list a:hover {
            color: var(--accent);
        }

        .recent-post-date {
            font-size: 0.8rem;
            color: var(--light-grey);
            margin-top: 0.4rem;
        }

.content p {font-size:1.2rem; line-height: 2;}

/* contact us page */

 

        .contact-layout-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr; 
            gap: var(--gap);
            align-items: flex-start;
        }

        /* Left Column: Form Wrapper Component */
        .contact-form-wrapper {
            background-color: var(--card-bg);
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .contact-form-wrapper h2 {
            font-size: 1.8rem;
            color: var(--color-white);
            margin-bottom: 0.5rem;
        }

    
        .contact-form-wrapper form {
            margin-top:1.5rem;
        }
        .form-group-row {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }

        .form-field {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .form-field.full-width {
            margin-bottom: 0.5rem;
        }

        .form-field label {
            color: var(--color-white);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .form-field input, .form-field textarea {
            background-color: #0f172a;
            color: var(--text-main);
            border: 1px solid var(--input-border);
            padding: 0.8rem 1.2rem;
            border-radius: 6px;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.25s ease;
        }

        .form-field input:focus, .form-field textarea:focus {
            border-color: var(--accent);
        }

        .form-field textarea {
            resize: vertical;
            min-height: 150px;
        }

        .submit-btn {
            background-color: var(--accent);
            color: #0f172a;
            border: none;
            padding: 1rem 2rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.2s;
            width: 100%;
        }

        .submit-btn:hover {
            background-color: var(--accent-hover);
        }

        /* Right Column: Information Data & Map Elements */
        .contact-details-sidebar {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .info-card {
            background-color: var(--card-bg);
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 1.5rem;
        }

        .info-card h3 {
            border-bottom: 1px solid #334155;
            padding-bottom: 0.5rem;
        }

        .info-item {
            margin-bottom: 1rem;
            font-size: 1rem;
            color: var(--light-grey);
            font-family: "Lato", sans-serif; 

        }

        .info-item:last-child { margin-bottom: 0; }

        .info-item strong {
            color: var(--color-white);
            display: block;
            margin-bottom: 0.2rem;
        }

        /* Embedded Google Map Component Map canvas container */
        .map-container {
            width: 100%;
            height: 320px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #334155;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        .map-container iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }

    .map-container img{width:100%; height:auto; display:block; object-fit: cover;}

    /* gallery page */

     

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: var(--gap);
            margin-top: 2rem;
        }

        /* Gallery Item Component */
        .gallery-item {
            position: relative;
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #334155;
            aspect-ratio: 4 / 3;
            cursor: pointer;
            
            /* Filtering transitions setup */
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
        }

        /* Hidden filtering state modifier */
        .gallery-item.hidden {
            display: none;
            opacity: 0;
            transform: scale(0.9);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        /* Hover Overlay Graphic Effect */
        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.2rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.08);
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

     .gallery-overlay .gallery-title {
            color: var(--color-white)!important;
            font-size: 1rem!important;
            font-weight: 600!important;
            transform: translateY(10px);
            transition: transform 0.3s ease;
            margin-bottom:0.5rem!important
            
        }

        .gallery-item:hover .gallery-title {
            transform: translateY(0);
        }

        .gallery-tag {
            color: var(--accent);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.2rem;
        }

        /* --- Photo Viewer Lightbox Modal Overlay --- */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 5000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.95);
            align-items: center;
            justify-content: center;
        }

        .lightbox-content {
            max-width: 85%;
            max-height: 80%;
        }

        .lightbox-content img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 4px;
            box-shadow: 0 5px 30px rgba(0,0,0,0.5);
            object-fit: contain;
        }


       
        .prev { left: 2rem; }
        .next { right: 2rem; }

        .lightbox-close {
            position: absolute;
            top: 2rem;
            right: 3rem;
            color: #94a3b8;
            font-size: 3rem;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s;
        }
        .lightbox-close:hover { color: white; }

        /* Update navigation buttons default behavior */
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    user-select: none;
}

/* Clear hover highlights only when button state is enabled */
.lightbox-nav:not(:disabled):hover { 
    background: rgba(255, 255, 255, 0.25); 
    color: var(--accent); 
}

/* --- NEW: Style adjustments for disabled state boundaries --- */
.lightbox-nav:disabled {
    opacity: 0.15;             
    cursor: not-allowed;        
    background: transparent;    }

/* book page */

        .books-catalog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
            gap: var(--gap);
        }

        /* Single Book Card Layout Container */
        .book-list-card {
            background-color: var(--card-bg);
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 1.8rem;
            display: grid!important;
            grid-template-columns: 1fr 1.8fr; /* Splits card into cover zone and details canvas */
            gap: 1.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .book-list-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
        }

        /* Left Side: Cover Frame Rules */
        .book-cover-frame {
            width: 100%;
        }

        .book-cover-frame img {
            width: 100%;
            height: auto;
            border-radius: 6px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
            border: 1px solid #475569;
            display:block
        }

        /* Right Side: Informative Text Details Column */
        .book-info-frame {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .book-title {
            font-size: 1.1rem!important;
            color: var(--color-white)!important;
            line-height: 1.6;
            margin-bottom: 0.4rem!important;
        }

        .book-meta-data {
            font-size: 0.85rem;
            color: var(--color-white);
            margin-bottom: 0.8rem;
            line-height: 1.5;
        }

        .book-meta-data span {
            display: block;
            margin-top:4px;
        }

        .book-meta-data strong {
            color: var(--accent);
           font-family: "Lato", sans-serif; font-style: normal; ;
        }

        .book-desc-text {
            color: var(--light-grey);
            font-size: 0.92rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 4; /* Automatically cuts off long descriptions at 4 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Review Excerpt Layout */
        .book-review-snippet {
            border-left: 2px solid var(--accent);
            padding-left: 0.8rem;
            margin-bottom: 1.2rem;
            font-style: italic;
            font-size: 0.85rem;
            color: var(--light-grey);
            line-height: 1.4;
        }

        .review-source {
            display: block;
            font-weight: 600;
            color: var(--accent);
            font-style: normal;
            margin-top: 0.2rem;
            font-size: 0.8rem;
        }

        /* Action Buttons Wrapper Layout */
        .book-link-actions {
            display: flex;
            gap: 5px;
        }

        .book-btn {
            display: inline-block;
            text-decoration: none;
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            font-weight: 600;
            border-radius: 6px;
            text-align: center;
            flex: 1;
            transition: background 0.2s;
        }

        .book-btn.primary {
            background-color: var(--accent);
            color: #0f172a;
            padding:0.5rem 2rem;
        }

        .book-btn.primary:hover { background-color: var(--accent-hover); }

        .book-btn.secondary {
            background-color: #334155;
            color: var(--color-white);
            border: 1px solid #475569;
        }

        .book-btn.secondary:hover { background-color: #475569; }



       .video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); /* Limits max width to 300px per item */
    gap: 5px; 
    justify-content: center; 
}

.video-item { 
    cursor: pointer; 
    position: relative; 
    max-width: 300px; /* Forces the item to stay compact */
}
.video-item img { width: 100%; height: auto; border-radius: 8px; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; color: white; }

/* Modal styles */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 800px; }
.modal-content iframe { width: 100%; height: 450px; }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }

.video-wrapper img {width:100%}

.full-width input {width:100%}

.wpcf7-form {
    width: 100%;
    max-width: 100%;
}


.wpcf7-form-control {
    width: 100%;
    box-sizing: border-box; 
}


.form-group-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;       
}


.form-group-row .form-field {
    flex: 1;       
    min-width: 250px; 
}


.form-field.full-width {
    width: 100%;
}

.wpcf7-not-valid-tip {color:var(--accent)!important; line-height: 1; font-size:0.8rem!important; margin-top:10px;}



/* ----------------------- audio player-----------------------------*/


.audio-upload-wrap { max-width: 1100px; margin: 0 auto 40px; padding: 0 20px; }
.audio-upload-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 25px 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.audio-upload-title { margin: 0 0 18px; font-size: 1.25rem; color: #1e293b; }
.audio-upload-notice { color: #b91c1c; background: #fef2f2; padding: 12px 16px; border-radius: 6px; margin: 0; }
.audio-field { margin-bottom: 14px; }
.audio-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: #334155; }
.audio-field input[type="text"],
.audio-field textarea,
.audio-field input[type="file"] {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px;
    font-size: 0.95rem; box-sizing: border-box; background: #fff;
}
.audio-field input:focus, .audio-field textarea:focus { outline: none; border-color: #2563eb; }
.audio-submit-row { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.audio-submit-btn {
    background: #2563eb; color: #fff; border: none; padding: 11px 26px;
    border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.audio-submit-btn:hover { background: #1d4ed8; }
.audio-submit-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.audio-upload-status { font-size: 0.9rem; }
.audio-upload-status.success { color: #15803d; }
.audio-upload-status.error { color: #b91c1c; }
.audio-progress { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 12px; }
.audio-progress-bar { height: 100%; width: 0%; background: #2563eb; transition: width 0.2s ease; }

/* ============ AUDIO GRID ============ */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
.audio-card {
    background: #1e293b; border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column; color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.audio-cover { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #0f172a; overflow: hidden; }
.audio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audio-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #475569; background: linear-gradient(135deg, #0f172a, #1e293b);
}
.audio-play-btn {
    position: absolute; bottom: 12px; right: 12px; width: 46px; height: 46px;
    border-radius: 50%; background: #2563eb; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35); transition: transform 0.2s ease, background 0.2s ease;
}
.audio-play-btn:hover { transform: scale(1.08); background: #1d4ed8; }
.audio-info { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.audio-title { font-size: 1.05rem; margin: 0 0 4px; color: #f1f5f9; line-height: 1.3; }
.audio-artist { font-size: 0.85rem; color: #94a3b8; margin: 0 0 8px; }
.audio-caption { font-size: 0.85rem; color: #cbd5e1; margin: 0 0 12px; line-height: 1.4; }
.audio-meta-row { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 0.75rem; color: #94a3b8; }
.audio-seek { flex: 1; height: 4px; background: #334155; border-radius: 2px; cursor: pointer; position: relative; }
.audio-seek-filled { height: 100%; width: 0%; background: #2563eb; border-radius: 2px; }
.audio-empty { grid-column: 1/-1; text-align: center; color: #64748b; padding: 40px 0; }



/*------------------------------*/
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    color: #fff;
}



.social-link i {
    line-height: 1;
}

.social-label {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
}

.contact-list li a {
    color: var(--accent);
}

    







