/* ======================= */
/* Theme: Royal Brahmins
   Author: Wimraw
   Version: 1.0
   Made By: Jyotiarjun Dev
   */
/* ============================== */


/* ======================== */
/* Basic Theming */
/* ========================= */
:root {
    --royal-blue: #002347;
    /* Deep academic blue */
    --gold-accent: #b89146;
    /* Sophisticated gold */
    --light-gold: #e2d1a8;
    --background-paper: #fcfaf5;
    --border-color: rgba(184, 145, 70, 0.3);
}

body {
    font-family: 'Lora', serif;
    background-color: var(--background-paper);
    color: #2c2c2c;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
.nav-link {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}



/* ================================ */
/* Top Utility Bar */
/* ================================= */
.utility-nav {
    background: var(--royal-blue);
    color: white;
    padding: 5px 0;
    font-size: 0.75rem;
    border-bottom: 2px solid var(--gold-accent);
}

.utility-nav a {
    color: var(--light-gold);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.utility-nav a:hover {
    color: white;
}




/* ============================ */
/* Main Header & Logo */
/* =============================== */
.site-header {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-box {
    display: inline-block;
    margin-bottom: 10px;
}

.logo-box img {
    max-width: 180px;
    height: auto;
}

.site-title {
    color: var(--royal-blue);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0;
}

.site-tagline {
    color: var(--gold-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 5px;
    font-weight: 700;
}


/* ================================= */
/* Professional Navigation */
/* ================================= */
.main-nav {
    background: #fff;
    border-bottom: 2px solid var(--royal-blue);
    padding: 0;
}

.main-nav .nav-link {
    color: var(--royal-blue);
    font-weight: 600;
    padding: 15px 20px !important;
    font-size: 0.9rem;
}

.main-nav .nav-link:hover {
    background: var(--royal-blue);
    color: var(--gold-accent);
}

/* ============================= */
/* Hero & Search (Integrated) */
/* ============================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?q=80&w=2071&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--gold-accent);
}

.search-container {
    background: rgba(0, 35, 71, 0.85);
    border: 1px solid var(--gold-accent);
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-accent);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gold-accent);
    padding-bottom: 10px;
}

/* 3-Column Content Portal */
.portal-section {
    padding: 60px 0;
}

.portal-column {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0;
    height: 100%;
    transition: transform 0.3s;
}

.portal-column:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.column-header {
    background: var(--royal-blue);
    color: var(--gold-accent);
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.portal-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.portal-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.portal-list li i {
    color: var(--gold-accent);
    margin-right: 15px;
    margin-top: 5px;
}

/* Quote Box */
.historical-quote {
    text-align: center;
    padding: 80px 20px;
    font-style: italic;
    font-size: 1.5rem;
    color: #444;
    background: #fff;
    position: relative;
}

.historical-quote::before {
    content: "“";
    font-size: 5rem;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-accent);
    opacity: 0.3;
}

/* Media Grids */
.section-header-bar {
    background: var(--royal-blue);
    color: var(--gold-accent);
    padding: 10px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-grid-item {
    margin-bottom: 25px;
}

.media-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.media-thumb:hover {
    border-color: var(--gold-accent);
}

.media-caption {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: var(--royal-blue);
}

/* Social Section */
.social-cta {
    background: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.social-btn {
    width: 80px;
    height: 80px;
    line-height: 80px;
    display: inline-block;
    background: white;
    color: var(--royal-blue);
    font-size: 2rem;
    margin: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--royal-blue);
    color: var(--gold-accent);
    transform: translateY(-5px);
}


/* ========================= */
/* Footer */
/* ========================= */
footer {
    background: #0d1b2a;
    color: #d1d1d1;
    padding: 80px 0 30px;
    border-top: 5px solid var(--gold-accent);
}

.footer-heading {
    color: var(--gold-accent);
    font-size: 1.1rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(184, 145, 70, 0.3);
    padding-bottom: 10px;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--royal-blue);
}

/* Notification Helper */
#alert-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}


/* Provinces */
.province-hero {
    background: linear-gradient(rgba(0, 35, 71, 0.8), rgba(0, 35, 71, 0.8)), url('../img/history_banner.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--gold-accent);
}

.filter-section {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

.search-box {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
}

/* Province Cards */
.province-card {
    background: white;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.province-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.province-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--gold-accent);
}

.province-body {
    padding: 25px;
    flex-grow: 1;
}

.province-title {
    color: var(--royal-blue);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.province-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold-accent);
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.province-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.btn-province {
    background: var(--royal-blue);
    color: var(--gold-accent);
    border: none;
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    width: 100%;
    transition: 0.3s;
}

.btn-province:hover {
    background: var(--gold-accent);
    color: var(--royal-blue);
}

/* Map Section Mockup */
.map-section {
    background-color: white;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.map-placeholder {
    width: 100%;
    height: 450px;
    background: #f0ede5;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Provinces */


/* History */
/* History Hero */
.history-hero {
    background: linear-gradient(rgba(0, 35, 71, 0.8), rgba(0, 35, 71, 0.8)), url('../img/history_banner.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--gold-accent);
    min-height:60vh;
}

/* Vertical Timeline */
.timeline-section {
    padding: 80px 0;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gold-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--background-paper);
    border: 4px solid var(--royal-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    font-family: 'Cinzel', serif;
    color: var(--gold-accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Sage Profiles */
.sage-section {
    background-color: white;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sage-card {
    text-align: center;
    padding: 30px;
    transition: 0.3s;
}

.sage-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    margin-bottom: 20px;
    object-fit: cover;
}

/* Infographic Section */
.info-strip {
    background: var(--royal-blue);
    color: var(--light-gold);
    padding: 40px 0;
    text-align: center;
}

/* Mobile Adjustments */
@media screen and (max-width: 600px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }
}

/* End History */

/* Contact */
/* Contact Hero */
.contact-hero {
    background: linear-gradient(rgba(0, 35, 71, 0.8), rgba(0, 35, 71, 0.8)), url('../img/history_banner.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--gold-accent);
}

/* Contact Section */
.contact-card-wrapper {
    margin-top: -50px;
    margin-bottom: 60px;
}

.contact-form-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-sidebar {
    background: var(--royal-blue);
    color: white;
    padding: 50px;
    height: 100%;
}

.sidebar-title {
    color: var(--gold-accent);
    border-bottom: 1px solid var(--gold-accent);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.info-block {
    display: flex;
    margin-bottom: 30px;
}

.info-block i {
    color: var(--gold-accent);
    font-size: 1.4rem;
    margin-right: 20px;
    margin-top: 5px;
}

.info-block h6 {
    color: var(--gold-accent);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.info-block p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Form Styling */
.form-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--royal-blue);
    text-transform: uppercase;
}

.form-control,
.form-select {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 12px;
    font-family: 'Lora', serif;
}

.form-control:focus {
    border-color: var(--gold-accent);
    box-shadow: none;
}

.btn-submit {
    background: var(--royal-blue);
    color: var(--gold-accent);
    border: none;
    padding: 15px 30px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    width: 100%;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--gold-accent);
    color: var(--royal-blue);
}

/* Map Placeholder */
.map-frame {
    background: #eee;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
    position: relative;
}

.map-overlay-text {
    text-align: center;
    color: #777;
}

/* Social Section */
.social-cta {
    background: #fff;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.social-btn {
    width: 60px;
    height: 60px;
    line-height: 60px;
    display: inline-block;
    background: var(--royal-blue);
    color: var(--gold-accent);
    font-size: 1.5rem;
    margin: 0 10px;
    border-radius: 0;
    transition: 0.3s;
}

.social-btn:hover {
    transform: translateY(-5px);
    color: white;
}

/* Notification Box */
#msg-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}