/* Root Variables */
:root {
    --primary-red: #ed1b24;
    --red-800: #ed1b24;
    --red-900: #ed1b24;
    --red-700: #ed1b24;
    --yellow-600: #ca8a04;
    --yellow-500: #eab308;
    --red-50: #fef2f2;
    --yellow-50: #fefce8;
   
      --maroon: #6f1d1b;
      --antique-gold: #C8A951; /* chosen heritage gold */
      --cream: #fbf6ef;
      --muted: #6b6b6b;
      --card-bg: rgba(255,255,255,0.95);
    
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, var(--red-50), var(--yellow-50), var(--red-50));
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, var(--red-900) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* Header Section */
.header-section {
    background: white;
    border-bottom: 4px solid var(--maroon);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.logo-img, .logo-150 {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img, .logo-150 {
        width: 100px;
        height: 100px;
    }
}

.library-name-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ed1b24;
    margin: 0;
}

@media (min-width: 768px) {
    .library-name-hindi {
        font-size: 2rem;
    }
}

.library-name-english {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ed1b24;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

@media (min-width: 768px) {
    .library-name-english {
        font-size: 0.9rem;
    }
}

.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.decorative-line .line {
    height: 1px;
    width: 30px;
    background-color: var(--yellow-600);
}

@media (min-width: 576px) {
    .decorative-line .line {
        width: 60px;
    }
}

.decorative-line .tagline {
    font-size: 0.65rem;
    color: var(--yellow-600);
    font-style: italic;
}

@media (min-width: 576px) {
    .decorative-line .tagline {
        font-size: 0.75rem;
    }
}

/* Navigation Bar */
.navigation-bar {
    background: #6f1d1b !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.navigation-bar .nav-link {
    color: white !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navigation-bar .nav-link:hover,
.navigation-bar .nav-link:focus {
    background-color: #6f1d1b;
    border-bottom-color: var(--yellow-500);
}

.navigation-bar .dropdown-menu {
    background: white;
    border-top: 4px solid #6f1d1b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    margin-top: 0;
}

.navigation-bar .dropdown-item {
    color: #6f1d1b;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(185, 28, 28, 0.1);
    transition: all 0.3s ease;
}

.navigation-bar .dropdown-item:hover {
    background-color: var(--red-50);
    color: #ed1b24;
}

.navigation-bar .dropdown-item:last-child {
    border-bottom: none;
}

/* Hero Slider */
.hero-slider {
    height: 400px;
    position: relative;
    z-index: 1;
}

@media (min-width: 576px) {
    .hero-slider {
        height: 500px;
    }
}

@media (min-width: 992px) {
    .hero-slider {
        height: 600px;
    }
}

.hero-slider .carousel-item {
    height: 400px;
}

@media (min-width: 576px) {
    .hero-slider .carousel-item {
        height: 500px;
    }
}

@media (min-width: 992px) {
    .hero-slider .carousel-item {
        height: 600px;
    }
}

.hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    z-index: 10;
}

.carousel-caption h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .carousel-caption h2 {
        font-size: 3rem;
    }
}

.carousel-caption p {
    font-size: 1rem;
    color: var(--yellow-50);
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .carousel-caption p {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .carousel-caption p {
        font-size: 1.5rem;
    }
}

.decorative-border-top,
.decorative-border-bottom {
    height: 2px;
    width: 60px;
    background-color: var(--yellow-500);
    margin: 0 auto 1.5rem;
}

.decorative-border-bottom {
    margin: 1.5rem auto 0;
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border-color: rgba(234, 179, 8, 0.5);
    z-index: 5;
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
    border-top: 4px solid;
    border-left: 4px solid;
}

.corner-decoration.top-right {
    top: 0;
    right: 0;
    border-top: 4px solid;
    border-right: 4px solid;
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid;
    border-left: 4px solid;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid;
    border-right: 4px solid;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(127, 29, 29, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--red-700);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 40px;
    height: 12px;
    border-radius: 6px;
    background-color: var(--yellow-500);
}

/* Sections */
.section-title {
   color:var(--maroon); 
   font-weight:700;
    margin-bottom:12px; 
    font-family: 'Playfair Display', serif; 
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-text {
    font-size: 1rem;
    color: black;
    line-height: 1.8;
}

.section-divider {
    height: 2px;
    width: 100px;
    background-color: var(--red-700);
    margin: 0 auto;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-top: 4px solid var(--red-700);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.info-card.yellow-border {
    border-top-color: var(--yellow-600);
}

.info-icon {
    width: 64px;
    height: 64px;
    background-color: var(--red-50);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.yellow-border .info-icon {
    background-color: var(--yellow-50);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e3192;
    margin-bottom: 1rem;
}

.info-text {
    font-size: 0.95rem;
    color: black;
    line-height: 1.6;
}

/* Footer */
.footer-section {
    background: linear-gradient(to right, var(--maroon), #450a0a, var(--maroon));
    border-top: 4px solid var(--yellow-600);
    color: var(--maroon);
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fde68a;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #fde047;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-divider .line {
    height: 1px;
    width: 60px;
    background-color: var(--yellow-600);
}

.footer-divider .symbol {
    color: #facc15;
    font-size: 0.75rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #fde68a;
    margin: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(234, 179, 8, 0.5);
}

a:focus,
button:focus {
    outline: 2px solid var(--yellow-500);
    outline-offset: 2px;
}

.welcome-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s ease;
    height: 100%;
}

.welcome-card i {
    font-size: 36px;
    color: #0d6efd;
    margin-bottom: 10px;
}

.welcome-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}


.history-card {
    background: #ffffff;
    padding: 30px 22px;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    position: relative;
    transition: 0.35s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.history-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.history-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #5b9dff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-icon i {
    color: #ffffff;
    font-size: 30px;
}

.history-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.history-highlight {
    display: inline-block;
    background: #f1f6ff;
    padding: 18px 25px;
    border-radius: 12px;
    font-weight: 500;
    color: #333;
}

.facility-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    transition: 0.3s ease;
    box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.facility-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #5b9dff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-icon i {
    font-size: 28px;
    color: #ffffff;
}

.event-card-modern {
    background: #ffffff;
    padding: 30px 24px 35px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    height: 100%;
    transition: 0.35s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.event-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.event-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-icon i {
    font-size: 32px;
    color: #ffffff;
}

/* Glow styles */
.glow-blue { background: linear-gradient(135deg, #1e90ff, #5da9ff); }
.glow-green { background: linear-gradient(135deg, #2ecc71, #7df5a5); }
.glow-orange { background: linear-gradient(135deg, #ff9f43, #ffd36c); }
.glow-purple { background: linear-gradient(135deg, #6f42c1, #b593ff); }
.glow-red { background: linear-gradient(135deg, #ff4757, #ff7a8a); }
.glow-teal { background: linear-gradient(135deg, #20c997, #7cead3); }

.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f1f5ff;
    color: #0d6efd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    height: 100%;
    transition: 0.35s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.info-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.info-icon i {
    font-size: 28px;
    color: #ffffff;
}

.bg-blue { background: linear-gradient(135deg, #0d6efd, #5b9dff); }
.bg-purple { background: linear-gradient(135deg, #6f42c1, #b593ff); }

.small-text {
    font-size: 14px;
    color: #555;
}

.vision-box {
    background: linear-gradient(135deg, #f1f6ff, #ffffff);
    padding: 22px 30px;
    border-radius: 14px;
    font-weight: 500;
}


