/*
Theme Name: Odisha Explorer Free
Description: A custom theme for exploring Odisha.
Version: 1.0
Author: Your Name
*/



/* === General Body Background & Site Layout === */
body { /* Applying gradient to the whole body */
    background: linear-gradient(to right, #200122, #6f0000);/* Soft blue gradient */
    background-size: cover; /* Ensure it covers the whole viewport */
    background-position: center center; /* Center the background */
    background-repeat: no-repeat; /* Do not repeat the gradient */
    background-attachment: fixed; /* Keep background fixed when scrolling */
    background-color: #e0f7fa; /* Fallback color for older browsers/if gradient fails */
}


#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex-grow: 1;
    margin: 0 auto;
    padding: 5px;
    box-sizing: border-box;
}

/* --- Single Place Page Specific Styling --- */
.single-place-entry {
    background-color: transparent;
    border-radius: 8px;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 40px;
}

/* Place Title Section Styling - NOW WITH GLASS MORPHISM */
.place-title-section {
    background: linear-gradient(to right, #200122, #6f0000); /* Translucent dark blue/teal background (70% opacity) */
    color: #FFFFFF;
    padding: 30px 25px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
    z-index: 2;

    /* Glass Morphism Properties for Title */
    /*border: 1px solid rgba(255, 255, 255, 0.4);*/
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    margin-bottom: 0;
}

.place-title-section .place-title {
    font-size: 3em;
    margin: 0;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.place-hero {
    position: relative;
    width: 100%;
    max-height: none;
    overflow: hidden;
    background-color: #000;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.place-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-hero-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
}

.place-hero-video-wrapper iframe,
.place-hero-video-wrapper object,
.place-hero-video-wrapper embed,
.place-hero-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.place-hero-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: #f0f0f0;
    color: #666;
    text-align: center;
    font-style: italic;
    font-size: 1.1em;
    border-radius: 10px;
}

.place-content-wrapper {
    padding: 0;
}

/* Sections within the Place Page - GENERAL GLASS MORPHISM STYLE */
.place-content-wrapper section {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    z-index: 1;

    /* Glass Morphism Properties */
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    border-bottom: none !important;
    padding-bottom: 25px !important;
}

.place-content-wrapper section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 25px !important;
    border-bottom: none !important;
}

/* Section Headings (Default for light backgrounds) */
.place-content-wrapper h2 {
    font-size: 1.8em;
    color: #FFFCFB;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding-bottom: 5px;
}

/* Specific Sections - Removing solid backgrounds and adjusting text color for readability */
.place-quick-facts
.place-quick-facts dt,
.place-quick-facts dd {
    color: #F6F6F6;
}

.place-description 
.place-description p {
    color: #F6F6F6;
}

.place-things-to-do 
.place-things-to-do h2 {
    color: #F6F6F6;
    border-bottom-color: rgba(0, 0, 0, 0.2);
}
.place-things-to-do ul li {
    color: #F6F6F6;
}

.place-gallery 
.place-gallery h2 {
    color: #F6F6F6;
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

/* Quick Facts (Definition List) */
.place-quick-facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
}

.place-quick-facts dt {
    font-weight: bold;
    color: #F6F6F6;
    text-align: right;
}

.place-quick-facts dd {
    margin: 0;
    color: #F6F6F6;
}

/* Things to Do List */
.place-things-to-do ul {
    list-style: disc;
    margin-left: 25px;
    padding: 0;
}
.place-things-to-do li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Gallery Grid on Single Pages */
.place-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.place-gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}
.place-gallery-grid img:hover {
    transform: scale(1.03);
}

/* Associated People */
.place-associated-people /* Inherits general section styles now */
.place-associated-people ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.place-associated-people li {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #444;
}
.place-associated-people li a {
    text-decoration: none;
    color: #005f88;
    font-weight: bold;
}
.place-associated-people li a:hover {
    color: #00334d;
}


/* === Header & Footer Styling - Glass Morphism UI === */

/* --- Header Styling --- */
#masthead {
    position: relative;
    z-index: 10;
    padding: 20px 0; /* Top/bottom padding for the entire header */
    width: 100%;
    box-sizing: border-box;

    /* Glass Morphism Properties (keep these) */
    background: linear-gradient(to right, #200122, #6f0000);
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.3);*/
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header inner wrapper for desktop: Logo left, Nav centered */
#masthead .header-inner {
    max-width: 1200px; /* Align with your site's content width */
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding for content inside */
    display: flex; /* Make it a flex container */
    justify-content: flex-start; /* Keep logo to the left */
    align-items: center; /* Vertically align items */
    flex-direction: row; /* Ensure row direction */
    position: relative; /* Needed for absolute positioning of navigation */
    min-height: 60px; /* Ensure enough height for vertical centering, adapt to logo height */
}

/* --- Logo Styling --- */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}
.custom-logo {
    max-height: 80px; /* Standard logo height for desktop */
    width: auto;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}
.custom-logo-link:hover .custom-logo {
    opacity: 0.8;
}

/* Hide site title/description if custom logo is present */
.custom-header-media .site-title,
.custom-header-media .site-description {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* --- Site Title & Description (Fallback if no logo) --- */
.site-title {
    margin: 0;
}
.site-title a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 2em; /* Reverted font size */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}
.site-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.site-description {
    color: #F0F0F0;
    margin-top: 5px;
    font-size: 0.9em; /* Reverted font size */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Mobile Menu Toggle (Hamburger Icon) - Hidden on Desktop */
.menu-toggle {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    color: #FFFFFF;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Main Navigation (Desktop - Centered) --- */
#site-navigation {
    position: absolute; /* Take nav out of normal flow */
    left: 50%; /* Start from 50% from left of its relative parent */
    transform: translateX(-50%); /* Move back by half its own width to truly center */
    width: auto; /* Let content define its width */
    z-index: 1; /* Ensure it's above other header elements if they overlap slightly */
    /* Remove any previous desktop-specific background or width here */
}
#site-navigation ul { /* Target the actual ul for menu items */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Arrange menu items horizontally */
    justify-content: center; /* Center menu items within the nav container */
    align-items: center; /* Vertically align menu items */
    flex-wrap: wrap; /* Allow items to wrap if screen is too narrow */
}

#site-navigation li {
    margin: 0 15px; /* Spacing between menu items (reduced for tighter look) */
}

#site-navigation li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
}

#site-navigation li a:hover,
#site-navigation li.current-menu-item a {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}


/* --- Footer Styling --- */
#colophon {
    position: relative;
    z-index: 5;
    padding: 30px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;

    /* Glass Morphism Properties */
    background: linear-gradient(to right, #200122, #6f0000);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(88px);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

#colophon .site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #F0F0F0;
    font-size: 0.9em;
}

#colophon .site-info a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s ease;
}
#colophon .site-info a:hover {
    text-decoration: underline;
}


/* === Responsive Adjustments (Header & Footer) === */
@media (max-width: 768px) {
    /* Header inner wrapper for mobile: Logo left, Hamburger right, Nav drops below */
    #masthead .header-inner {
        flex-direction: row; /* Keep logo/toggle in a row */
        justify-content: space-between; /* Space them out (logo left, toggle right) */
        align-items: center;
        flex-wrap: wrap; /* Allow navigation UL to wrap below when opened */
        padding: 0 15px; /* Adjust padding for smaller screens */
        min-height: auto; /* Reset min-height for mobile */
    }

    /* Site Branding for mobile */
    .site-branding {
        flex-grow: 1; /* Allow branding to take available space */
        text-align: left; /* Align logo/title to the left */
    }
    .custom-logo {
        max-height: 50px; /* Smaller logo on mobile */
    }
    .site-title a {
        font-size: 1.5em; /* Smaller title on mobile */
        text-align: left;
    }
    .site-description {
        display: none; /* Hide description on mobile to save space */
    }

    /* Mobile Menu Toggle (Hamburger Icon) */
    .menu-toggle {
        display: block; /* Show hamburger icon on mobile */
        font-size: 2em; /* Ensure it's a good size */
        line-height: 1;
        color: #FFFFFF;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    .menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Main Navigation for Mobile (the container for the toggle AND the menu list) */
    #site-navigation {
        position: static; /* IMPORTANT: Override desktop absolute positioning for mobile */
        left: auto; /* Reset desktop positioning */
        transform: none; /* Reset desktop positioning */
        width: auto; /* IMPORTANT: Allow width to be determined by content (toggle button) */
        order: auto; /* IMPORTANT: Allow it to flow naturally inline with logo */
        margin-top: 0; /* IMPORTANT: No margin-top when inline with logo */
        background-color: transparent; /* No background on the nav container itself */
        border-top: none; /* No border when inline */
    }

    /* Styles for the actual dropdown menu (when toggled) */
    #site-navigation ul {
        display: none; /* Hidden by default */
        position: absolute; /* Position the dropdown relative to the #masthead */
        top: 100%; /* Position below the header bar */
        left: 0; /* Align to the left edge of the #masthead */
        width: 100%; /* Make the dropdown full width */
        flex-direction: column;
        padding: 10px 0;
        background: linear-gradient(to right, #200122, #6f0000); /* Darker, more opaque background for dropdown */
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        border-radius: 0 0 8px 8px; /* Rounded bottom corners for the dropdown */
        z-index: 9; /* Ensure it's above content but below header bar */
    }

    /* JavaScript added class to show mobile menu */
    #site-navigation.toggled ul {
        display: flex;
    }

    #site-navigation li {
        margin: 0; /* No horizontal margin on mobile list items */
        width: 100%; /* Each list item takes full width */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator between items */
    }
    #site-navigation li:last-child {
        border-bottom: none; /* No separator for the last item */
    }
    #site-navigation li a {
        padding: 12px 20px; /* Generous padding for easier tapping */
        text-align: left; /* Align text to left in mobile menu */
    }
    #site-navigation li a:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

    /* Footer adjustments for mobile */
    #colophon .site-info {
        padding: 0 15px;
    }
}

/* --- Single Person Page (Glass Morphism Sections) Styling --- */
.single-person-entry {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin: 30px auto;
    /* REMOVE this line: max-width: 800px; */
    width: 100%; /* Make the single person entry fill #content */
    padding: 0;
}
/* Glass Morphism for the Header Section */
.person-header-glass-section {
    background-color: rgba(255, 255, 255, 0.15); /* Translucent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light translucent border */
    backdrop-filter: blur(10px); /* The blur effect */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Consistent with other sections */
    border-radius: 10px; /* Rounded corners for the header glass section */
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px; /* Space below the header section */
    position: relative;
    z-index: 1; /* Ensure stacking context */
}

.person-featured-image-wrapper {
    width: 150px; /* Size of the circular image */
    height: 150px;
    overflow: hidden;
    border-radius: 50%; /* Makes the image perfectly round */
    margin: 0 auto 20px auto; /* Center image with spacing */
    border: 3px solid rgba(255, 255, 255, 0.7); /* White border around the circle */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.person-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circle without distortion */
    display: block;
}

.person-title {
    font-size: 2.8em;
    margin: 15px 0 5px 0;
    color: #F6F6F6; /* Dark blue/teal for headings */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.person-designation { /* This now styles the p containing profession & dates */
    font-size: 1.3em;
    color: #F6F6F6;
    margin-bottom: 20px;
    font-weight: 500;
}

.person-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    color: #F6F6F6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Content Sections (About, Associated Places, etc.) --- */
/* Apply Glass UI to each section inside the person content wrapper */
.person-content-wrapper section {
    margin-bottom: 30px; /* Spacing between each separate glass card section */
    padding: 25px 20px; /* Internal padding for each section */
    border-radius: 10px; /* Rounded corners for each section */
    position: relative;
    z-index: 1; /* Ensure stacking context */

    /* Glass Morphism Properties for each section */
    background-color: rgba(255, 255, 255, 0.15); /* Translucent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light translucent border */
    backdrop-filter: blur(10px); /* The blur effect */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Ensure the last section doesn't have extra bottom margin */
.person-content-wrapper section:last-of-type {
    margin-bottom: 0;
}

/* Section Headings within content sections */
.person-content-wrapper h2 {
    font-size: 2em;
    color: #F6F6F6; /* Dark blue/teal for section headings */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15); /* Underline for heading */
    display: inline-block; /* Make underline only as wide as text */
    padding-bottom: 5px;
}

.person-bio-section p {
    font-size: 1.09em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #F6F6F6;
}

/* Styling for Associated Places (re-using common "related items" style) */
.person-associated-places.related-items ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.person-associated-places.related-items li {
    background-color: rgba(255, 255, 255, 0.8); /* Lighter translucent background for items */
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #444;
}
.person-associated-places.related-items li a {
    text-decoration: none;
    color: #005f88;
    font-weight: bold;
}
.person-associated-places.related-items li a:hover {
    color: #00334d;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    

    /* --- Existing single-person/place mobile adjustments (keep these as they are specific to content) --- */
    /* Adjustments for the main entry container */
    .single-person-entry {
        margin: 20px 15px; /* Adjust margins for mobile */
        padding: 0; /* No padding on main entry, sections will have it */
    }

    /* Adjust header glass section on mobile */
    .person-header-glass-section {
        padding: 20px; /* Smaller padding on mobile */
        margin-bottom: 20px;
    }

    .person-featured-image-wrapper {
        width: 120px; /* Smaller photo on mobile */
        height: 120px;
        margin-bottom: 15px;
    }

    .person-title {
        font-size: 2em; /* Smaller title on mobile */
    }

    .person-designation {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .person-excerpt {
        font-size: 0.95em;
    }

    /* Adjust content glass sections on mobile */
    .person-content-wrapper section {
        margin-bottom: 20px; /* Slightly less space between sections on mobile */
        padding: 20px; /* Smaller padding inside sections on mobile */
    }

    .person-content-wrapper h2 {
        font-size: 1.6em; /* Smaller section headings on mobile */
    }

    .person-bio-section p {
        font-size: 0.95em; /* Smaller text on mobile */
        line-height: 1.6;
    }
}

/* === Archive Place Page Styling (archive-place.php) === */

/* Overall Page Header for Archive */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(to right, #200122, #6f0000); /* Consistent with header and title sections */
    border-radius: 10px;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /*border: 1px solid rgba(255, 255, 255, 0.4);*/
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-header .page-title {
    font-size: 3.2em; /* Larger title for archive page */
    margin: 0;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}


/* Grid Container for Place Items */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between grid items */
    margin-bottom: 40px;
}

/* Individual Grid Item (Place Card) - Glass Morphism */
.grid-item {
    background-color: rgba(255, 255, 255, 0.15); /* Translucent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light translucent border */
    backdrop-filter: blur(10px); /* The blur effect */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* More prominent shadow for cards */
    border-radius: 15px; /* More rounded corners */
    overflow: hidden; /* Ensures image corners match card corners */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
    justify-content: start; /* <--- THIS IS THE KEY CHANGE for left alignment of cards */
}

.grid-item:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25); /* Enhanced shadow on hover */
}

/* Thumbnail Image in Grid Item */
.grid-item-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-item-thumbnail img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

/* Header and Content within Grid Item */
.grid-item .entry-header,
.grid-item .entry-summary {
    padding: 15px 20px; /* Padding for text content */
}

.grid-item .entry-header {
    flex-grow: 0; /* Don't let it grow */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator */
    margin-bottom: 0;
    padding-bottom: 10px;
}

.grid-item .entry-title {
    font-size: 1.8em; /* Slightly smaller title than single page */
    margin: 0 0 5px 0;
}

.grid-item .entry-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-item .entry-title a:hover {
    color: #005f88; /* Lighter blue on hover */
}

.grid-item .entry-summary {
    flex-grow: 1; /* Allow content to grow and push read-more to bottom */
    padding-top: 15px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #FFFFFF; /* Body text color */
}

.grid-item .entry-summary p:last-of-type {
    margin-bottom: 0; /* Remove margin from last paragraph if it's the read-more */
}

/* Read More Button Styling */
.grid-item .read-more {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 25px; /* Pill-shaped button */
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px; /* Space above button */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.grid-item .read-more:hover {
    background: linear-gradient(to right, #200122, #6f0000);
    transform: translateY(-2px); /* Slight lift on hover */
}


/* Pagination Styling */
.navigation.pagination {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.nav-links {
    display: inline-flex; /* Use flexbox for pagination links */
    gap: 10px; /* Space between page numbers */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.15); /* Glass morphism background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.page-numbers {
    display: block; /* Make each number a block for padding */
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: rgba(0, 95, 136, 0.8); /* Highlight current/hover page */
    color: #FFFFFF;
}

.page-numbers.current {
    cursor: default; /* No pointer for current page */
}

/* Hide screen reader text for pagination arrows if desired */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}


/* Responsive Adjustments for Archive Page */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Slightly smaller items on medium screens */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 30px;
        padding: 20px 15px;
    }

    .page-header .page-title {
        font-size: 2.5em;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Stack items vertically on small screens */
        gap: 20px;
        padding: 0 15px; /* Add some padding to the sides */
    }

    .grid-item {
        margin-bottom: 0; /* No extra margin when stacked */
    }

    .grid-item-thumbnail {
        height: 180px; /* Smaller image height on mobile */
    }

    .grid-item .entry-title {
        font-size: 1.5em;
    }

    .grid-item .entry-summary {
        font-size: 0.9em;
    }

    .grid-item .read-more {
        padding: 6px 15px;
        font-size: 0.85em;
    }

    .nav-links {
        flex-wrap: wrap; /* Allow pagination links to wrap */
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }

    .page-numbers {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {

    #content {
        padding-left: 5px;  /* Reduce global padding on the left */
        padding-right: 5px; /* Reduce global padding on the right */
        /* You can try 0px if you want content to go right to the edge of the viewport */
    }
    .page-header .page-title {
        font-size: 2em;
    }
    .grid-item-thumbnail {
        height: 160px; /* Even smaller image height on very small screens */
    }
}



/* --- Custom Layout Overrides for Controlled Width Sections --- */
/* This ensures main content wrappers have consistent left/right gaps */

#primary,
.content-area,
#main,
.site-main,
#content {
    /* Allow full width for backgrounds, but introduce padding for content */
    width: 100%;
    box-sizing: border-box; /* Include padding in the element's total width */
    padding-left: 5px;   /* Add desired padding on left */
    padding-right: 5px;  /* Add desired padding on right */
    /* Remove any forced margins that might be preventing full stretch */
    margin-left: auto;
    margin-right: auto;
}

/* If your theme uses a specific .container or .wrap for the main content area
   and you want these to also respect the gaps */
.site-content .container,
.site-content .site-inner,
.site-content .wrap {
    /* If these elements already have a fixed max-width, adjust or remove it.
       For gaps, ensure they also have padding or a contained max-width. */
    max-width: 1400px; /* Example: set a max width for the overall content area */
    margin-left: auto; /* Center the container */
    margin-right: auto;
    padding-left: 20px; /* Add padding inside for smaller screens */
    padding-right: 20px;
    box-sizing: border-box;
}


/* --- End Custom Layout Overrides --- */

/* Example: Style for the wrapper around the Google Translate widget in the footer */
.google-translate-footer-wrapper {
    text-align: center; /* Center the dropdown if it's in its own line */
    margin-top: 20px; /* Add space above it */
    
    /* Add other styles like padding, background, etc. */
}

/* Styles for the widget itself (from previous instructions) */
#google_translate_element {
    font-family: 'Your Theme Font', sans-serif;
    /* Remove or adjust any float/positioning that was set for header placement */
}

/* Styles for the select dropdown */
#google_translate_element .goog-te-gadget-simple {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 5px !important;
    background-color: rgb(255, 255, 255) !important;
    color: #fff !important;
    padding: 5px 10px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* For the text inside the dropdown */
#google_translate_element .goog-te-gadget-simple span.text {
    color: #fff !important;
}

/* Google Translate banner at the top of the page */
.goog-te-banner-box {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.goog-te-banner-box a, .goog-te-banner-box button {
    color: #f6f6f6 !important;
}