:root {
    --color-saffron: #F4C430;
    --color-charcoal: #333333;
    --color-bone: #F9F6EE;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--color-bone);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-charcoal);
}

/* Navbar */
.navbar {
    background-color: var(--color-bone);
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-charcoal) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 75px;
    width: auto;
    mix-blend-mode: multiply;
    transition: height 0.3s ease;
}

@media (max-width: 991px) {
    .logo-img {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 45px;
    }
}

.nav-link {
    color: var(--color-charcoal) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-saffron) !important;
}

/* Mega Menu */
.dropdown-menu.mega-menu {
    width: 100%;
    border: none;
    border-radius: 0;
    background-color: var(--color-bone);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    margin-top: 0;
}

.mega-menu h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--color-saffron);
}

.mega-menu a {
    display: block;
    color: var(--color-charcoal);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: padding-left 0.2s ease;
}

.mega-menu a:hover {
    padding-left: 5px;
    color: var(--color-saffron);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-item {
    height: 80vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.8);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-caption h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary-custom {
    background-color: var(--color-saffron);
    border: 2px solid var(--color-saffron);
    color: var(--color-charcoal);
    padding: 10px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* Encyclopedia Grid */
.encyclopedia-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title span {
    color: var(--color-saffron);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.card-biriyani {
    border: none;
    background: transparent;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.card-biriyani:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.card-img-wrapper img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.card-biriyani:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-biriyani h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-biriyani p {
    color: #666;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-charcoal);
    text-decoration: none;
    border-bottom: 1px solid var(--color-saffron);
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--color-saffron);
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-bone);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--color-saffron);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: rgba(249, 246, 238, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-saffron);
}

.newsletter-form .form-control {
    background: transparent;
    border: 1px solid rgba(249, 246, 238, 0.2);
    border-radius: 0;
    color: var(--color-bone);
    padding: 10px;
}

.newsletter-form .btn {
    border-radius: 0;
    background-color: var(--color-saffron);
    color: var(--color-charcoal);
    font-weight: 600;
    padding: 10px 20px;
}

/* Popup */
.modal-content {
    border-radius: 0;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-body {
    padding: 2rem 3rem 3rem;
    text-align: center;
}

.modal-body h3 {
    color: var(--color-charcoal);
    margin-bottom: 1rem;
}

.modal-body p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .mega-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* Mega Menu Enhancements */
.menu-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.region-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-saffron);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(244, 196, 48, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.mega-menu .list-group-item {
    border: none;
    padding: 0.5rem 0;
    background: transparent;
}

.mega-menu .list-group-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.mega-menu .list-group-item:hover span {
    color: var(--color-saffron);
}

/* Variety Page Styles */
.variety-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 90px;
    /* Offset fixed navbar */
}

.decorative-divider {
    height: 3px;
    width: 60px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-charcoal);
}

.recipe-card {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-saffron);
}

.recipe-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.img-frame {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.place-card {
    background: white;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.place-card:hover {
    transform: translateY(-5px);
}

.place-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-saffron);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal);
    flex-shrink: 0;
}

.place-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.place-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Full Screen Mega Menu */
.navbar .dropdown-menu.mega-menu {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 100px;
    /* Clears the navbar */
    border: none;
    border-radius: 0;
    background-color: rgba(249, 246, 238, 0.98);
    /* Var bone with opacity */
    backdrop-filter: blur(5px);
    overflow-y: auto;
    z-index: -1;
    /* Behind the navbar strip but covering content */
    display: none;
    /* Bootstrap toggles display block */
    margin-top: 0;
}

.navbar .dropdown-menu.mega-menu.show {
    display: block;
}

/* Ensure navbar gets a high z-index and background to sit on top of the menu */
.navbar {
    z-index: 1050;
    background-color: var(--color-bone);
}

/* Enhance Mega Menu Content */
.mega-menu h6.region-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom-width: 3px;
}

.mega-menu .list-group-item {
    padding: 1rem 0;
}

.mega-menu .list-group-item .fw-bold {
    font-size: 1.1rem;
}

.mega-menu .menu-thumb {
    width: 70px;
    height: 70px;
}

/* History Page Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-saffron);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-content {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 45%;
    margin-left: auto;
    border-left: 4px solid var(--color-charcoal);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    border-left: none;
    border-right: 4px solid var(--color-charcoal);
    text-align: right;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--color-saffron);
    color: var(--color-charcoal);
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 20px;
}

/* Journal Styles */
.journal-hero {
    height: 50vh;
    background-color: #222;
    /* Fallback */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blog-card {
    border: none;
    margin-bottom: 3rem;
    background: transparent;
}

.blog-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--color-saffron);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.blog-title a {
    text-decoration: none;
    color: var(--color-charcoal);
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--color-saffron);
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
}

.contact-info-box {
    padding: 3rem;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.form-control-custom {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s;
}

.form-control-custom:focus {
    box-shadow: none;
    border-color: var(--color-saffron);
    background: transparent;
}