/* ==========================================================
   Digital Library Management System - Custom Stylesheet
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-navy: #0f2547;
    --secondary-blue: #1e40af;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --soft-bg: #f8fafc;
    --card-border: #e2e8f0;
}

body {
    font-family: 'Noto Sans Gujarati', 'Poppins', sans-serif;
    background-color: var(--soft-bg);
    color: #1e293b;
    scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar-library {
    background: linear-gradient(135deg, #0f2547 0%, #1e3a8a 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.3px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fbbf24 !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, rgba(15, 37, 71, 0.94) 0%, rgba(30, 58, 138, 0.88) 100%),
                url('https://images.unsplash.com/photo-1507842229356-51c61504d3ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 5rem 0 4.5rem;
    position: relative;
    border-bottom: 5px solid var(--accent-gold);
}

.hero-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fcd34d;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1.2rem;
}

/* Section Headers */
.section-title {
    font-weight: 800;
    color: var(--primary-navy);
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 65%;
    height: 4px;
    background: var(--accent-gold);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Cards & Law Boxes */
.library-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 37, 71, 0.1);
}

.law-card {
    border-top: 4px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.law-number-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2547, #1e40af);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.ranganathan-profile-box {
    background: linear-gradient(135deg, #0f2547 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #0f2547;
    font-weight: 700;
    border: none;
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    color: #ffffff;
}

/* Footer */
.footer-library {
    background: #0b1930;
    color: #cbd5e1;
    padding: 3.5rem 0 1.5rem;
    border-top: 4px solid var(--accent-gold);
}


/* ==========================================================
   Multi-Language Popup Modal & Google Translate Clean UI
   ========================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

.lang-option-card {
    cursor: pointer;
    transition: all 0.22s ease;
    border: 2px solid #e2e8f0 !important;
}
.lang-option-card:hover,
.lang-option-card.active-lang-card {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2) !important;
}

.lang-floating-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1050;
    border-radius: 50px;
    padding: 10px 18px;
    border: 2px solid #0f2547;
}
