/* 
  Global CSS for therookeysaint.org Redesign
  Style: Clean Christian/Ministry, Modern, Responsive
*/

:root {
    /* Colors */
    --color-primary: #1F4E79;
    /* Classic Navy Blue from reference */
    --color-primary-light: #2D6A9F;
    --color-primary-dark: #153856;
    --color-secondary: #C00000;
    /* Red from the "Click here" text */
    --color-accent: #DAA520;
    /* Gold */

    --color-bg-body: #ffffff;
    --color-bg-light: #F0F8FF;
    /* Alice Blue for Hero Background */
    --color-bg-white: #ffffff;

    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-text-light: #f4f6f8;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PT Sans", sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h6 {
    font-family: "PT Sans", sans-serif;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }


    .site-nav {
        font-family: "Oswald", sans-serif;
        background-color: var(--color-primary);
        color: white;
        padding: 5px !important;
    }

    .seal-img {
        height: 53px !important;
        width: auto;
        margin-left: 26px;
    }

    .petition-link {
        color: #ff0000;
        font-weight: bold;
        font-style: italic;
        text-decoration: none;
        font-size: 0.70rem !important;
        display: inline-block;
        margin-top: -7px;
        margin-right: 10px;
    }


}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-secondary);
}

.text-white {
    color: var(--color-text-light);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin: var(--spacing-xs) auto 0;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 var(--spacing-sm); */
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.flex {
    display: flex;
    gap: var(--spacing-sm);
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

/* Header & Nav */
.header {
    background: var(--color-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "PT Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: none;
    /* Mobile default */
}

@media (min-width: 100px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        /* gap: var(--spacing-md); */
    }
}

.nav-link {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-group {
    position: relative;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 4px;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #c8c8d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    display: none;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    z-index: 1000;
    /* border: 2px solid #8b0000; */
}

@media (min-width: 1024px) {
    .nav-dropdown:hover .dropdown-menu {
        display: flex;
    }
}

@media (min-width: 381px) and (max-width: 522px) {

    .brand-content-wrapper {
        display: -webkit-box !important;
    }

    .brand-seal .seal-img {
        height: 100% !important;
        width: 75% !important;
        margin: 0;
    }

    .header-branding-area {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 0px !important;
    }
}

@media (min-width: 769px) and (max-width: 831px) {

    .brand-content-wrapper {
        display: -webkit-box !important;
    }

    .brand-seal .seal-img {
        height: 100% !important;
        width: 75% !important;
        margin: 0;
    }

    .header-branding-area {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 0px !important;
    }
}

.dropdown-menu a {
    padding: 7px 9px !important;
    font-size: 0.9rem !important;
    color: #333 !important;
    background: #8f9dbe;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #fff;
    font-family: "PT Sans", sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #1a4b7e !important;
    color: #fff !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none !important;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none !important;
    }
}

/* Mobile Menu Styles (Active) */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a4b7e;
    /* Navy Blue background */
    padding: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    /* Ensure it's on top */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu.active .nav-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.nav-menu.active a {
    display: block;
    padding: 10px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Dropdown Support */
.nav-dropdown.active .dropdown-menu {
    display: flex;
    position: static;
    /* Relative to flow in mobile */
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-left: 0;
    padding-left: 20px;
    border-left: 4px solid var(--color-secondary);
}

.nav-menu.active .nav-dropdown {
    width: 100%;
    display: block;
}

.nav-menu.active .dropdown-menu a {
    color: white !important;
    background: transparent !important;
    font-size: 0.95rem !important;
    padding: 10px 0 !important;
    text-align: left;
    white-space: normal;
    /* Allow text wrapping on mobile */
}

/* Ensure the toggle itself is styled right in mobile */
.nav-menu.active .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu.active .dropdown-toggle i {
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--color-primary);
}

.btn-secondary {
    background: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-primary-light);
}

/* Top Banner Area */
.top-header-wrapper {
    background: #fff;
    border-top: 3px solid #000;
}

.banner-collage-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 100% !important;
}

.banner-collage-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Branding Area */
.header-branding-area {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
}

.brand-content-wrapper {
    /* display: flex; */
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.brand-text {
    text-align: center;
    margin-right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servite-title {
    font-family: var(--font-heading);
    font-style: italic;
    color: #8da4c3;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 2px;
}

.friar-name-title {
    font-family: var(--font-heading);
    color: #1F4E79;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    margin-bottom: 5px;
}

.cta-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-link {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    line-height: 1.3;
}

.cta-link:hover {
    text-decoration: none;
}

.red-link {
    color: #f00;
}

.blue-link {
    color: #1F4E79;
}

.brand-seal .seal-img {
    height: 100% !important;
    width: 100%;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .friar-name-title {
        font-size: 2rem;
    }

    .servite-title {
        font-size: 1.3rem;
    }

    .header-branding-area {
        margin-bottom: -3px;
        margin-top: 5px;
    }

    .cta-link {
        font-family: var(--font-body);
        font-style: italic;
        font-weight: 700;
        font-size: 11px;
        text-decoration: none;
        line-height: 1.3;
    }

}

/* @media (max-width: 414px) {
    .brand-content-wrapper {
        display: -webkit-box !important;
    }

    .brand-seal .seal-img {
        height: 100% !important;
        width: 75% !important;
        margin: 0;
    }

    .header-branding-area {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 0px !important;
    }
} */

@media (max-width: 380px) {
    .brand-content-wrapper {
        display: -webkit-box !important;
    }

    .brand-seal .seal-img {
        height: 100% !important;
        width: 75% !important;
        margin: 0;
    }

    .header-branding-area {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 0px !important;
    }
}

@media (max-width: 768px) {
    .header-branding-area {
        flex-direction: column;
        text-align: center;
    }

    .brand-content-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        display: flex;
    }

    .banner-collage-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .responsive {
        display: contents !important;
        /* margin-bottom: -18px; */
    }

    .brand-text {
        margin-right: 15px;
        width: auto;
        margin-bottom: 0;
        align-items: flex-end;
        /* Align closer to seal? Or Center? */
        align-items: center;
    }

    .friar-name-title {
        font-size: 1.5rem;
        white-space: normal;
    }

    .servite-title {
        font-size: 1.1rem;
    }

    .cta-link {
        font-size: 12px;
        margin-left: 20px;
    }

    .brand-seal .seal-img {
        height: 60px !important;
        margin-top: -15px;
    }
}

@media (max-width: 480px) {

    /* Stack on very small screens */
    .brand-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .brand-text {
        margin-right: 0;
        margin-bottom: 15px;
        margin-left: -60px;
    }

}

.site-nav {
    font-family: "Oswald", sans-serif;
    background-color: #1a4b7e;
    color: white;
    padding: 20px 0 !important;
    position: relative;
}

.site-nav .container {
    /* max-width: 100%; */
    padding: 0 20px;
    display: block;
    /* Allow rows to wrap naturally */

}


.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 20px;
    padding: 5px 0;
    width: 100%;
}

.nav-row.secondary {
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
    font-family: "Oswald", sans-serif;
    font-size: 0.9em;
}

.site-nav a {
    font-family: "Oswald", sans-serif;
    color: white;
    text-decoration: none;
    font-size: 19px;
    padding: 7px 3px !important;
    border-radius: 3px;
    transition: background 0.2s;
    font-weight: 400;
    line-height: 18px;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.home-icon {
    background: transparent;
    /* Blue-grey like in image */
    padding: 5px 12px !important;
    border-radius: 4px;
    /* match other links */
}

.home-icon i {
    color: #fff;
}

/* Hero Split Layout */
.hero-split-section {
    background: linear-gradient(180deg, #ddeefe 0%, #ddeefe 100%);
    /* padding: 40px 0; */
    /* border-bottom: 1px solid #ddd; */
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1fr 350px 1fr;
    }
}

.hero-text-side {
    text-align: center;
    font-family: "PT Sans", sans-serif;
    font-style: italic;
    color: var(--color-primary);
}

.hero-text-main {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-text-sub {
    font-size: 1.4rem;
    color: #555;
}

.hero-center-img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Action Bars */
.action-bars-container {
    display: flex;
    flex-wrap: wrap;
    padding: 7px 0;
    gap: 20px;
    margin-top: 10px;
}

.action-bar-btn {
    display: block;
    flex: 1;
    background: var(--color-primary);
    /* Use primary for better harmony, image looks like a gradient or darker blue */
    /* background: linear-gradient(to bottom, #2D6A9F, #1F4E79); */
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: 500;
    font-size: 0.98rem;
    width: 100%;
    /* Fallback */
    min-width: 300px;
    border: 1px solid #1a4b7e;
    line-height: 20px;
}

.action-bar-btn:hover {
    background-color: #fff;
    color: #1a4b7e;
}

/* Updated Card Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.article-item img {
    width: 100%;
    border: 2px solid #ddd;
    padding: 5px;
    padding-bottom: 55px;
    margin-bottom: 20px;
}

.article-img-wrapper {
    position: relative;
}

.click-read-overlay {
    position: absolute;
    bottom: 0;
    right: 10px;
    /* width: 100%; */
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-content {
    padding: 15px 0;
}

.article-title:hover {
    color: #1a4b7e;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    min-height: 29px !important;
}

.article-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 400;
}

.read-more-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    float: right;
    border-radius: 2px;
}

.read-more-btn:hover {
    background: #ddeefe;
    color: #000;
    border: 1px solid #1a4b7e;
}

/* Sections */
.section {
    /* padding: var(--spacing-lg) 0; */
    padding-bottom: 10px;
}

.section-alt {
    background: var(--color-bg-light);
}

/* Cards */
.card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer a {
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================
   Hero Slider Styles
   ============================ */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0;
    overflow: hidden;
    user-select: none;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px !important;
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        min-height: 150px;
    }

    .hero-slider {
        min-height: 150px !important;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-prev,
    .slider-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: #858f98;
        /* Primary color semi-transparent */
        color: white;
        border: none;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        /* Hidden by default */
    }

    .site-nav {
        font-family: "Oswald", sans-serif;
        background-color: #1a4b7e;
        color: white;
        padding: 0px 0 !important;
        position: relative;
    }

    .section-content p {
        font-size: 16px;
        margin-bottom: 20px;
        /* text-align: center; */
        margin-top: 0px !important;

    }

}



.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #858f98;
    /* Primary color semi-transparent */
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Hidden by default */
}

/* Show arrows on hover (desktop) */
.hero-slider-wrapper:hover .slider-prev,
.hero-slider-wrapper:hover .slider-next {
    opacity: 1;
}

/* Always show arrows on touch devices if needed, but hover logic works for now */
@media (hover: none) {

    .slider-prev,
    .slider-next {
        opacity: 1;
        background: rgba(31, 78, 121, 0.4);
    }
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: #858f98;
    transform: translateY(-50%) scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.blog-title {
    font-size: 30px;
    font-weight: 600;
    color: #1a4b7e !important;
    padding: 25px 0;
    border-bottom: 1px solid #8a98ba !important;
    margin-bottom: 30px !important;
    font-family: "PT Sans", sans-serif;
}

.section-content p {
    font-size: 16px;
    margin-bottom: 20px;
    /* text-align: center; */
}

.poem {
    margin-bottom: 10px;
    background-color: #f2f7fb;
    padding-top: 10px;
    padding-bottom: 10px;
}

.poem p {
    text-align: center;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media(min-width: 576px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 992px) {
    .album-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.album-item {
    text-align: center;
}

.album-item a {
    display: block;
    overflow: hidden;
    /* border: 1px solid #ddd;
    transition: all 0.3s ease; */
}

.album-item a:hover {
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px); */
}

.album-item img {
    width: 100%;
    height: auto;
    display: block;
}

.album-caption {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    color: #333;
    /* Darker than primary for text? Or primary? Image looks black/dark grey */
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.4;
}

.cover-photo-text {
    text-align: center;
}

.cover-photo-text h5 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 15px;
}

/* Relics Grid */
.relics-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

@media(min-width: 576px) {
    .relics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 992px) {
    .relics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.relic-item {
    text-align: center;
}

.relic-item a {
    display: block;
    overflow: hidden;
    /* border: 1px solid #ddd; */
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.relic-item a:hover {
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    /* transform: translateY(-2px); */
}

.relic-item img {
    /* width: 60% !important; */
    /* Back to small on page */
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* border: 1px solid #eee; */
    padding: 5px;
    background: #fff;
    transition: transform 0.3s ease;
}

.relic-item a:hover img {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.relic-caption {
    font-family: "PT Sans", sans-serif;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    text-align: center !important;
    padding: 0 10px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Newspaper Articles Grid */
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

@media(min-width: 576px) {
    .newspaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 768px) {
    .newspaper-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 992px) {
    .newspaper-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.newspaper-item {
    text-align: center;
}

.newspaper-item a {
    display: block;
    overflow: hidden;
    /* border: 1px solid #ddd; */
    transition: all 0.3s ease;
    background: #fff;
}

.newspaper-item a:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.newspaper-item img {
    width: 100%;
    height: auto;
    display: block;
}

.broadcast-item {
    /* margin-bottom: 60px; */
    padding-bottom: 40px;
    /* border-bottom: 1px solid #eee; */
}

.broadcast-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.broadcast-title {
    font-family: "PT Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.video-container {
    position: relative;
    padding-bottom: 35%;
    /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto 30px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.broadcast-desc {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.dropdown-menu a {
    padding-left: 10px !important;
}

.video-page-content {
    /* max-width: 900px; */
    margin: 0 auto;
}

.video-title-main {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.video-wrapper {
    margin-bottom: 30px;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
    border-radius: 8px;
    overflow: hidden;
}

.video-description {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    text-align: justify;
}

/* GLightbox Custom Styling */
.glightbox-container .ginner-container {
    background: #fff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: 60vw !important;
}

.glightbox-container .gslide-media {
    background: transparent !important;
    box-shadow: none !important;
    padding: 20px 20px 10px 20px !important;
}

.glightbox-container .gslide-image img {
    max-height: 75vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.glightbox-container .gslide-description {
    background: #fff !important;
    border-top: none !important;
    padding: 10px 25px 30px 25px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
}

.glightbox-container .gslide-title {
    display: none !important;
}

.glightbox-container .gslide-desc {
    font-size: 1.2rem !important;
    color: #111 !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    text-align: left !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.glightbox-container .gprev,
.glightbox-container .gnext {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
}

.glightbox-container .gclose {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
}

.seal-img {
    /* height: 90px !important; */
    width: auto;
    margin-top: 4px;
    margin-left: -20px;
}

.banner-collage img {
    height: 90%;
    width: 100%;
    /* object-fit: cover; */
}

.banner-collage {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: -16px !important;
}

.click-read-overlay:hover {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: #fff;
}

/* Active Menu Styles */
body .site-nav a.active,
body .site-nav .dropdown-toggle.active,
body .dropdown-menu a.active {
    background: #8f9dbe !important;
    color: #fff !important;
    padding: 5px 7px !important;
    border-radius: 4px;
    /* font-weight: 700 !important; */
    margin-bottom: 3px;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .petition-box {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

.responsive {
    display: flex;
    /* margin-bottom: -18px; */
}