/* Custom styles for Rakhine Library */

/* Myanmar Language Font */
@import url('https://fonts.googleapis.com/css2?family=Padauk:wght@400;700&display=swap');

:root {
    --rakhine-primary: #8a3e20; /* Rakhine traditional color - earthy red */
    --rakhine-secondary: #cfb53b; /* Gold accent color for Rakhine cultural elements */
    --rakhine-dark: #2a2118; /* Dark brown for text */
    --rakhine-light: #f8f2e4; /* Light cream background */
}

body {
    font-family: 'Padauk', sans-serif;
    color: var(--rakhine-dark);
}

/* Custom styles for navbar */
.navbar-rakhine {
    background-color: var(--rakhine-primary) !important;
}

.navbar-rakhine .navbar-brand,
.navbar-rakhine .nav-link {
    color: white !important;
}

.navbar-rakhine .nav-link:hover {
    color: var(--rakhine-secondary) !important;
}

/* Hero section */
.hero-section {
    color: white;
    text-align: center;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
     text-shadow: 1px 0px 0px rgba(0, 17, 255, 1);
     color: blue;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Section headers */
.section-header {
    border-bottom: 3px solid var(--rakhine-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--rakhine-primary);
}

/* Book cards */
.book-card {
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.25rem;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-card .card-title {
    color: var(--rakhine-primary);
    font-weight: bold;
}

.book-card .badge-available {
    background-color: #28a745;
}

.book-card .badge-unavailable {
    background-color: #dc3545;
}

/* Event cards */
.event-card {
    border-left: 4px solid var(--rakhine-secondary);
}

.event-date {
    color: var(--rakhine-primary);
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: var(--rakhine-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer h5 {
    color: var(--rakhine-secondary);
    border-bottom: 2px solid var(--rakhine-secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: var(--rakhine-secondary);
    text-decoration: underline;
}

/* About page */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--rakhine-secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid var(--rakhine-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--rakhine-light);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--rakhine-light);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--rakhine-light);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--rakhine-light) transparent transparent;
}

.right::after {
    left: -13px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--rakhine-light);
    position: relative;
    border-radius: 6px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid var(--rakhine-light);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--rakhine-light) transparent transparent;
    }

    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }
}

/* Search box */
.search-box {
    margin-bottom: 2rem;
}

/* Book request form */
.request-form {
    background-color: var(--rakhine-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

/* Contact page */
.contact-info i {
    color: var(--rakhine-primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

.map-container {
    height: 400px;
    width: 100%;
    margin-top: 20px;
}

/* Custom buttons */
.btn-rakhine {
    background-color: var(--rakhine-primary);
    color: white;
}

.btn-rakhine:hover {
    background-color: #6d3118;
    color: white;
}

.btn-rakhine-outline {
    border: 2px solid var(--rakhine-primary);
    color: var(--rakhine-primary);
}

.btn-rakhine-outline:hover {
    background-color: var(--rakhine-primary);
    color: white;
}
