@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Noto+Serif+Sinhala:wght@400;500;600;700;800;900&family=Noto+Serif+Tamil:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   DEPARTMENT OF CHRISTIAN RELIGIOUS AFFAIRS - MASTER STYLESHEET (style.css)
   ==========================================================================
   DEVELOPER ARCHITECTURE GUIDE FOR FUTURE MAINTAINERS:
   --------------------------------------------------------------------------
   1. PRIMARY STYLING FRAMEWORK: TAILWIND CSS
      - All page layouts, grids, flex containers, paddings, and component styles
        are implemented directly using Tailwind CSS utility classes in the PHP templates.
      - DO NOT create separate per-page CSS files (e.g. contact.css, news.css). 
        Keeping styles inline with Tailwind makes pages modular, easy to refactor,
        and eliminates 404 missing stylesheet errors.

   2. ROLE OF THIS FILE (style.css):
      - Global CSS Variables & Design Tokens (Brand Colors, Fonts).
      - Multilingual Typography System (Automatic Sinhala/Tamil/English font switching).
      - Global Widescreen Container Scaling (Eliminating excessive whitespace).
      - Custom Scrollbar and global base elements (Smooth scroll, image constraints).
      - Rich Text Editor Output Styling (Quill editor article typography).

   3. HOW TO CHANGE BRAND COLORS GLOBALLY:
      - Ministry Maroon/Burgundy: edit `--primary`, `--color-maroon`, `--color-maroon-hover`.
      - Ministry Gold:            edit `--color-gold`, `--color-amber`.
      - Deep Navy Overlay:        edit `--navy-overlay`, `--color-navy`.

   4. HOW TO CHANGE FONTS GLOBALLY:
      - English / Default:  Inter (Body/UI) + Montserrat (Headings)
      - Sinhala (si):       Noto Serif Sinhala (Auto-applied when lang="si")
      - Tamil (ta):         Noto Serif Tamil   (Auto-applied when lang="ta")
   ========================================================================== */
:root {
    --primary: #721313;
    --navy-overlay: #1F2C47;
    --color-navy: #1F2C47;
    --color-maroon: #4E0911;
    --color-maroon-hover: #3b0000;
    --color-gold: #C09D59;
    --color-amber: #fbbf24;

    /* Base Font Family Variables (English / Default) */
    --font-body: 'Inter', 'Noto Serif Sinhala', 'Noto Serif Tamil', sans-serif;
    --font-heading: 'Montserrat', 'Noto Serif Sinhala', 'Noto Serif Tamil', sans-serif;
}

/* Sinhala Dynamic Typography Override */
html[lang="si"],
:root[lang="si"] {
    --font-body: 'Noto Serif Sinhala', serif;
    --font-heading: 'Noto Serif Sinhala', serif;
}

/* Tamil Dynamic Typography Override */
html[lang="ta"],
:root[lang="ta"] {
    --font-body: 'Noto Serif Tamil', serif;
    --font-heading: 'Noto Serif Tamil', serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 0, 0, 0.4) transparent;
}

/* Global Modern Custom Scrollbar (WebKit / Blink) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 0, 0, 0.35);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #4E0000;
}

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    overflow-x: clip;
    width: 100%;
}

img {
    max-width: 100%;
}

/* ==========================================================================
   GLOBAL RESPONSIVE CONTAINER & WIDE-SCREEN ALIGNMENT SYSTEM
   - Sets balanced container widths to provide comfortable margins from the sides
     across mobile, tablet, laptop, desktop, and 4K displays.
   - Standardizes vertical alignment guides across header, hero, content & footer.
   ========================================================================== */
.max-w-7xl {
    width: 100% !important;
    max-width: 94% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 640px) {
    .max-w-7xl {
        max-width: 92% !important;
    }
}

@media (min-width: 1024px) {
    .max-w-7xl {
        max-width: 90% !important;
    }
}

@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 88% !important;
    }
}

@media (min-width: 1440px) {
    .max-w-7xl {
        max-width: 88% !important;
    }
}

@media (min-width: 1600px) {
    .max-w-7xl {
        max-width: 86% !important;
    }
}

@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 1600px !important;
    }
}

@media (min-width: 2560px) {
    .max-w-7xl {
        max-width: 2000px !important;
    }
}

/* ==========================================================================
   UNIFIED SECTION HEADER DESIGN SYSTEM
   - Maroon Eyebrow + Dark Navy Title + Gold Pill Underline Bar
   ========================================================================== */
.section-header-block {
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-header-block {
        margin-bottom: 2rem;
    }
}

.section-eyebrow {
    color: #4E0000;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.375rem;
}

@media (min-width: 640px) {
    .section-eyebrow {
        font-size: 0.8125rem;
    }
}

.section-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.5rem;
    height: 4px;
    background-color: #C8A468;
    border-radius: 9999px;
}

.text-center .section-title-bar,
.is-centered .section-title-bar {
    left: 50%;
    transform: translateX(-50%);
}

/* Scroll reveal animation shared by homepage and inner pages */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

[x-cloak] {
    display: none !important;
}

.font-heading {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
}

.font-sans,
[class*="font-sans"] {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
}

/* ==========================================================================
   MULTI-LANGUAGE TYPOGRAPHY ENFORCEMENT
   - Default: Inter (Body) & Montserrat (Headings)
   - Sinhala (si): Noto Serif Sinhala across all UI components
   - Tamil (ta): Noto Serif Tamil across all UI components
   ========================================================================== */

/* Sinhala (si) Typography Enforcement */
html[lang="si"],
html[lang="si"] body,
html[lang="si"] p,
html[lang="si"] span,
html[lang="si"] a,
html[lang="si"] li,
html[lang="si"] td,
html[lang="si"] input,
html[lang="si"] select,
html[lang="si"] textarea,
html[lang="si"] button,
html[lang="si"] label,
html[lang="si"] .font-sans {
    font-family: 'Noto Serif Sinhala', 'Inter', serif !important;
}

html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3,
html[lang="si"] h4,
html[lang="si"] h5,
html[lang="si"] h6,
html[lang="si"] .font-heading,
html[lang="si"] .section-title,
html[lang="si"] .section-eyebrow,
html[lang="si"] th,
html[lang="si"] .data-table th,
html[lang="si"] .downloads-table th,
html[lang="si"] .visa-table th,
html[lang="si"] .churches-download-table th,
html[lang="si"] .pilgrim-table th,
html[lang="si"] .publications-table th,
html[lang="si"] .others-table th,
html[lang="si"] .rates-table th,
html[lang="si"] .contact-info-label {
    font-family: 'Noto Serif Sinhala', 'Montserrat', serif !important;
}

:lang(si):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
    font-family: 'Noto Serif Sinhala', serif !important;
}

/* Tamil (ta) Typography Enforcement */
html[lang="ta"],
html[lang="ta"] body,
html[lang="ta"] p,
html[lang="ta"] span,
html[lang="ta"] a,
html[lang="ta"] li,
html[lang="ta"] td,
html[lang="ta"] input,
html[lang="ta"] select,
html[lang="ta"] textarea,
html[lang="ta"] button,
html[lang="ta"] label,
html[lang="ta"] .font-sans {
    font-family: 'Noto Serif Tamil', 'Inter', serif !important;
}

html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] h4,
html[lang="ta"] h5,
html[lang="ta"] h6,
html[lang="ta"] .font-heading,
html[lang="ta"] .section-title,
html[lang="ta"] .section-eyebrow,
html[lang="ta"] th,
html[lang="ta"] .data-table th,
html[lang="ta"] .downloads-table th,
html[lang="ta"] .visa-table th,
html[lang="ta"] .churches-download-table th,
html[lang="ta"] .pilgrim-table th,
html[lang="ta"] .publications-table th,
html[lang="ta"] .others-table th,
html[lang="ta"] .rates-table th,
html[lang="ta"] .contact-info-label {
    font-family: 'Noto Serif Tamil', 'Montserrat', serif !important;
}

:lang(ta):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
    font-family: 'Noto Serif Tamil', serif !important;
}

/* Protect Font Awesome Icons from any typography override */
[class*="fa-"], .fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", fontAwesome !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.hover\:bg-red-950:hover {
    background-color: #3b0000;
}

.bg-navyOverlay {
    background-color: var(--navy-overlay);
}

/* Custom Background & Text Helpers */
.bg-navy {
  background-color: var(--color-navy);
}

.bg-maroon {
  background-color: var(--color-maroon);
}

.text-navy {
  color: var(--color-navy);
}

.text-maroon {
  color: var(--color-maroon);
}

/* News Image Zoom Hover Effect */
.news-card-img {
  transition: transform 0.3s ease-in-out;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

/* Digital Magazine Banner Gradient */
.magazine-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d1116 50%, #630000 100%);
}

/* Line Clamping for Multi-line Summaries */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service Card Transitions */
.service-card {
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(78, 0, 0, 0.08);
}

/* Pilgrim House Image Overlay */
.pilgrim-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
}

/*home page  Media Gallery*/
.gallery-card-img {
  transition: transform 0.4s ease-in-out;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.05);
}

.gallery-caption-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}
/* CTA Banner */
.cta-banner-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.82) 0%, rgba(31, 44, 71, 0.85) 50%, rgba(78, 0, 0, 0.8) 100%);
}

/* Footer Background Color */
.bg-footer {
  background-color: #13273F;
}

/* Subscription Field Focus Effects */
footer input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}


/*About us page*/
.about-img-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.about-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
}


/*Vision, Mission & Organizational Chart Section*/

/* Left Navy Block Styling */
.vision-mission-bg {
  background-color: #13273F;
}

/* Right Off-White Card Container */
.org-chart-bg {
  background-color: #FAFAF8;
}

/* Image Frame Shadow Effects */
.org-chart-frame {
  background-color: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease-in-out;
}

.org-chart-frame:hover {
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}


/* Our Officials Section Styles */

/* Card hover animation */
.official-card {
  transition: transform 0.25s ease-in-out;
}

.official-card:hover {
  transform: translateY(-4px);
}

.official-img-wrapper {
  background-color: #c8a468; /* Golden tan backdrop matching the screenshot */
  transition: shadow 0.25s ease-in-out;
}

.official-card:hover .official-img-wrapper {
  box-shadow: 0 10px 20px -5px rgba(78, 0, 0, 0.15);
}

/* Maroon Outlined Social/Contact Action Buttons */
.official-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #4E0000;
  border-radius: 4px;
  color: #4E0000;
  font-size: 11px;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.official-social-btn:hover {
  background-color: #4E0000;
  color: #ffffff;
}

/* How We Operate / Institutional Framework Tab Styles */
.tab-btn {
  cursor: pointer;
  outline: none;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tab-btn:focus-visible {
  outline: 2px solid #C8A468;
  outline-offset: 2px;
}

.tab-btn.active {
  background-color: #13273F !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px -2px rgba(19, 39, 63, 0.22);
}

.tab-btn:not(.active) {
  background-color: transparent;
  color: #4b5563;
}

.tab-btn:not(.active):hover {
  background-color: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

/* Tab Content Smooth Entrance Animation */
@keyframes tabContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content:not(.hidden) {
  animation: tabContentFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Table Styles */
.data-table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.data-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 16px;
    text-align: left;
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* PDF Download Icon */
.pdf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626; /* Red PDF Icon */
    font-size: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pdf-icon-btn:hover {
    transform: scale(1.15);
    color: #b91c1c;
}

/*Pasam Lathoni Page*/

/* Sidebar Component - Videos */
.pasam-video-card {
    transition: transform 0.2s ease-in-out;
}

.pasam-video-card:hover {
    transform: translateX(4px);
}

.pasam-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.pasam-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.pasam-video-card:hover .pasam-thumbnail::after {
    background: rgba(0, 0, 0, 0.0);
}

/* Sidebar Component - Books */
.pasam-book-card {
    transition: transform 0.2s ease;
}

.pasam-book-card:hover {
    transform: translateY(-2px);
}

/* Sidebar Component - Accordion / Group List */
.pasam-group-item {
    transition: all 0.2s ease-in-out;
}

.pasam-group-item.active {
    background-color: #13273F;
    color: #ffffff;
}

.pasam-group-item:not(.active) {
    background-color: #ffffff;
    color: #1f2937;
    border-color: #f3f4f6;
}

.pasam-group-item:not(.active):hover {
    background-color: #f9fafb;
    color: #4E0000;
}


/*-----------------Pasam Lathoni Competition Page-----------------------------*/
/* Notice / Application Box Styles */
.deadline-card {
    border: 1px solid rgba(229, 231, 235, 0.8);
    background-color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

.deadline-header {
    background-color: #4E0000;
}

/* Chevron Bullet Styling */
.competition-rules-list li {
    position: relative;
    padding-left: 1.5rem;
}

.competition-rules-list li::before {
    content: "\f054"; /* FontAwesome chevron-right icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.65rem;
    color: #4E0000;
}

/* Sidebar Video Card Hover Effects */
.pasam-video-card {
    transition: transform 0.2s ease-in-out;
}

.pasam-video-card:hover {
    transform: translateX(4px);
}

.pasam-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Sidebar Book Card Hover Effects */
.pasam-book-card {
    transition: transform 0.2s ease;
}

.pasam-book-card:hover {
    transform: translateY(-2px);
}

/*-----------News Page----------*/
/* News Grid Card Styles */
.news-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.news-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.news-card-img-wrapper img {
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img-wrapper img {
    transform: scale(1.05);
}

/* Featured Banner Box (Digital Easter Edition) */
.easter-edition-card {
    background: linear-gradient(135deg, #3B0000 0%, #1A0000 100%);
    position: relative;
    overflow: hidden;
}

/* Official Notices Widget Styles */
.notices-widget-header {
    background-color: #13273F;
}

.notice-date-badge {
    background-color: #F8F4EC;
    color: #927238;
}

.notice-item {
    transition: background-color 0.2s ease;
}

.notice-item:hover {
    background-color: #FAFAF8;
}

/*-------------------Downloads Page--------------------*/
/* Document Table Container */
.downloads-table-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Table Header */
.downloads-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 16px 20px;
}

/* Table Rows & Cells */
.downloads-table td {
    padding: 18px 20px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.downloads-table tbody tr {
    transition: background-color 0.2s ease;
}

.downloads-table tbody tr:hover {
    background-color: #f9fafb;
}

.downloads-table tbody tr:last-child td {
    border-bottom: none;
}

/* PDF Action Icon */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pdf-download-btn:hover {
    transform: scale(1.15);
    color: #b91c1c;
}

/* Filter Input Custom Focus */
.downloads-input:focus {
    border-color: #4E0000;
    box-shadow: 0 0 0 3px rgba(78, 0, 0, 0.08);
}

/*-------------Visa.php--------------------*/
/* Document Table Container */
.visa-table-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Table Header */
.visa-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 16px 20px;
}

/* Table Rows & Cells */
.visa-table td {
    padding: 18px 20px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.visa-table tbody tr {
    transition: background-color 0.2s ease;
}

.visa-table tbody tr:hover {
    background-color: #f9fafb;
}

.visa-table tbody tr:last-child td {
    border-bottom: none;
}



/*----------Catholic and Christian Churches download page-------------*/

/* Document Table Container */
.churches-download-table-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Table Header */
.churches-download-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 16px 20px;
}

/* Table Rows & Cells */
.churches-download-table td {
    padding: 18px 20px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.churches-download-table tbody tr {
    transition: background-color 0.2s ease;
}

.churches-download-table tbody tr:hover {
    background-color: #f9fafb;
}

.churches-download-table tbody tr:last-child td {
    border-bottom: none;
}



/*-----------Gallery-------------*/
/* Gallery Card Hover Effects */
.gallery-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-img-wrapper img {
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

/* Search Bar Focus Custom Styling */
.gallery-search-input:focus {
    border-color: #4E0000;
    box-shadow: 0 0 0 3px rgba(78, 0, 0, 0.08);
}

/* Pagination Control Button Styles */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 8px;
    background-color: #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-btn.active {
    background-color: #927238;
    color: #ffffff;
}

.pagination-btn:hover:not(.active) {
    background-color: #d1d5db;
    color: #111827;
}



/*--------------Gallery Videos-------------------*/

/* Video Card Hover & Thumbnail Overlay Styles */
.video-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.video-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.video-img-wrapper img {
    transition: transform 0.4s ease;
}

.video-card:hover .video-img-wrapper img {
    transform: scale(1.05);
}

/* Play Button Overlay on Hover */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4E0000;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.video-card:hover .play-icon-circle {
    transform: scale(1.1);
}

/* Search Bar Focus Custom Styling */
.video-search-input:focus {
    border-color: #4E0000;
    box-shadow: 0 0 0 3px rgba(78, 0, 0, 0.08);
}




/*--------------Contact Us-------------------*/

/* Contact Details Info Styling */
.contact-info-label {
    color: #927238;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

/* Form Container Card */
.contact-form-card {
    background-color: #FAFAF8;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

/* Form Input Focus States */
.contact-input {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.contact-input:focus {
    border-color: #4E0000;
    box-shadow: 0 0 0 3px rgba(78, 0, 0, 0.08);
    outline: none;
}

/* Submit Button Hover State */
.submit-btn {
    background-color: #4E0000;
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    background-color: #3b0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 0, 0, 0.2);
}

/*---------------Pilgrim House Downloads Page----------------*/
/* Document Table Container Card */
.pilgrim-table-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Table Header */
.pilgrim-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 16px 20px;
}

/* Table Rows & Cells */
.pilgrim-table td {
    padding: 18px 20px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.pilgrim-table tbody tr {
    transition: background-color 0.2s ease;
}

.pilgrim-table tbody tr:hover {
    background-color: #f9fafb;
}

.pilgrim-table tbody tr:last-child td {
    border-bottom: none;
}


/*------------Publications Downloads Page-------------*/
/* Document Table Container Card */
.publications-table-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Table Header */
.publications-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 16px 20px;
}

/* Table Rows & Cells */
.publications-table td {
    padding: 18px 20px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.publications-table tbody tr {
    transition: background-color 0.2s ease;
}

.publications-table tbody tr:hover {
    background-color: #f9fafb;
}

.publications-table tbody tr:last-child td {
    border-bottom: none;
}

/*--------------All Downloads Pages (Consistent Styling)----------------*/
/* Document Table Container Card */
.downloads-table-card,
.others-table-card,
.visa-table-card,
.churches-download-table-card,
.publications-table-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

/* Table Header */
.downloads-table th,
.others-table th,
.visa-table th,
.churches-download-table th,
.publications-table th {
    background-color: #1F2C47;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 13px;
    padding: 16px 20px;
    letter-spacing: 0.02em;
}

/* Table Rows & Cells */
.downloads-table td,
.others-table td,
.visa-table td,
.churches-download-table td,
.publications-table td {
    padding: 16px 20px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.downloads-table tbody tr,
.others-table tbody tr,
.visa-table tbody tr,
.churches-download-table tbody tr,
.publications-table tbody tr {
    transition: background-color 0.2s ease;
}

.downloads-table tbody tr:hover,
.others-table tbody tr:hover,
.visa-table tbody tr:hover,
.churches-download-table tbody tr:hover,
.publications-table tbody tr:hover {
    background-color: #fafbfc;
}

.downloads-table tbody tr:last-child td,
.others-table tbody tr:last-child td,
.visa-table tbody tr:last-child td,
.churches-download-table tbody tr:last-child td,
.publications-table tbody tr:last-child td {
    border-bottom: none;
}

/* Standardized PDF Download Button */
.doc-download-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.doc-download-pill:hover {
    background-color: #4E0000;
    color: #ffffff;
    border-color: #4E0000;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(78, 0, 0, 0.18);
}

.doc-download-pill i {
    font-size: 13px;
    color: #dc2626;
    transition: color 0.2s ease, transform 0.2s ease;
}

.doc-download-pill:hover i {
    color: #ffffff;
    transform: scale(1.1);
}



/*----------------------Thalawila Pilgrim House Page---------------------*/
/* Section Container Cards */
.resort-card {
    background-color: #FAFAF8;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Sidebar Booking Widget */
.booking-widget-card {
    background-color: #FAFAF8;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 24px;
}

/* Availability Badge */
.badge-available {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-ac {
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-free {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Buttons */
.btn-check-avail {
    border: 1px solid #4E0000;
    color: #4E0000;
    background-color: transparent;
    transition: all 0.2s ease;
}

.btn-check-avail:hover {
    background-color: #4E0000;
    color: #ffffff;
}

.btn-reserve {
    background-color: #4E0000;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.btn-reserve:hover {
    background-color: #3b0000;
}

/* Facilities Pills */
.facility-pill {
    background-color: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
}

/* Table Styles */
.rates-table-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.rates-table th {
    background-color: #13273F;
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 12px;
    padding: 12px 16px;
}

.rates-table td {
    padding: 14px 16px;
    font-size: 12px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

/* Payment Radio Options */
.payment-box {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

/*--------------Navbar Active--------------*/
[x-cloak] {
    display: none !important;
}

.hero-slides {
    min-height: clamp(430px, 68svh, 640px);
}

.hero-carousel h1 {
    text-wrap: balance;
}

@media (max-width: 639px) {
    .hero-carousel .hero-slides > div > div:nth-child(2) {
        padding-top: 3.5rem;
        padding-bottom: 4.5rem;
    }

    .hero-carousel .hero-slides > div[style] {
        background-position: 58% center;
    }
}

/*--------------Navbar Active--------------*/
/* Active style for top-level menu items */
.nav-active {
    color: #721313 !important;
    font-weight: 700 !important;
    position: relative;
}

/* Optional subtle underline indicator for desktop active item */
.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #721313;
    border-radius: 2px;
}

/* Active style for dropdown menu items */
.dropdown-active {
    color: #721313 !important;
    background-color: #F9FAFB !important;
    font-weight: 700 !important;
}

/* Active style for mobile menu items */
.mobile-active {
    color: #721313 !important;
    font-weight: 700 !important;
}

@media (max-width: 639px) {
  .about-img-card {
    height: 180px;
  }
}

/* Sub-Footer Link Divider Styling for Mobile */
@media (max-width: 639px) {
  .sub-footer-links {
    justify-content: center;
    text-align: center;
  }
}


/* Mobile Adjustments for Small Screens */
@media (max-width: 639px) {
  .news-card-img-container {
    height: 180px;
  }
}

/* ==========================================================================
   UNIFIED SECTION HEADER DESIGN SYSTEM
   Matches standard: Maroon Eyebrow + Dark Heading + Golden Pill Underline
   ========================================================================== */
.section-eyebrow {
  color: #4E0000;
  font-family: var(--font-heading, inherit);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.375rem;
}

.section-title {
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-eyebrow {
    font-size: 0.875rem;
  }
  .section-title {
    font-size: 1.875rem;
  }
}

.section-title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3.5rem;
  height: 0.25rem;
  background-color: #C8A468;
  border-radius: 9999px;
}

.section-title-bar.center {
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   HERO FULLSCREEN VIEWPORT WRAPPER
   Ensures Header + Slideshow + Bottom Statistics Bar perfectly fits 100vh
   ========================================================================== */
:root {
  --site-header-height: 114px;
}

.hero-fullscreen-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  height: calc(100vh - var(--site-header-height, 114px));
  height: calc(100dvh - var(--site-header-height, 114px));
  background-color: #1F2C47 !important;
  position: relative;
}

.hero-fullscreen-wrapper > div:last-child {
  box-shadow: 0 6px 0 0 #1F2C47 !important;
  margin-bottom: -1px !important;
  position: relative;
  z-index: 20;
}

@media (max-width: 639px) {
  .hero-fullscreen-wrapper {
    min-height: 500px;
    height: calc(100svh - var(--site-header-height, 110px));
  }
}

/* ==========================================================================
   CONSOLIDATED MODULE STYLES (News, Articles, Gallery, Contact, Competition)
   All modules use Tailwind CSS; these provide enhanced rich typography fallbacks
   ========================================================================== */

/* Article & News Content Body */
.article-body-content p {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    line-height: 1.75;
    color: #4b5563;
    font-weight: 300;
    text-align: justify;
    margin-bottom: 1.25rem;
}

.article-body-content blockquote {
    border-left: 4px solid #4E0000;
    background-color: #FAFAF8;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #1f2937;
    font-size: 13px;
}

/* Article Gallery Cards */
.article-gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border: 1px solid #f1f1ef;
    border-radius: 16px;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background-color: #f3f4f6;
    border: 1px solid #f3f4f6;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

/* Recent Posts & Share Pill Effects */
.recent-post-card {
    transition: transform 0.2s ease-in-out;
}

.recent-post-card:hover {
    transform: translateX(4px);
}

.recent-post-card:hover h4 {
    color: #4E0000;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/*----------------------Subhero Section Styling---------------------*/
.subhero-section {
    position: relative;
    background-size: cover;
    background-position: center 36%;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .subhero-section {
        min-height: 220px;
    }
}

@media (min-width: 1024px) {
    .subhero-section {
        min-height: 250px;
    }
}

.subhero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 95% 85% at 50% 46%, rgba(20, 32, 54, 0.22) 0%, rgba(16, 25, 42, 0.65) 75%, rgba(13, 21, 35, 0.85) 100%),
        linear-gradient(180deg, rgba(16, 26, 44, 0.86) 0%, rgba(20, 34, 58, 0.32) 44%, rgba(18, 28, 48, 0.45) 62%, rgba(14, 22, 36, 0.84) 100%);
    pointer-events: none;
}

.subhero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .subhero-content {
        padding: 3.25rem 1.5rem;
    }
}

.subhero-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.subhero-nav {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.subhero-nav a {
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}

.subhero-nav a:visited {
    color: #d1d5db !important;
    text-decoration: none !important;
}

.subhero-nav a:hover,
.subhero-nav a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

.subhero-nav span {
    text-decoration: none !important;
}

/* Universal subhero styling targeting the banner image */
section[style*="herosection.png"] {
    background-size: cover !important;
    background-position: center 36% !important;
    background-repeat: no-repeat !important;
    min-height: 190px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 640px) {
    section[style*="herosection.png"] {
        min-height: 230px !important;
    }
}

@media (min-width: 1024px) {
    section[style*="herosection.png"] {
        min-height: 260px !important;
    }
}

section[style*="herosection.png"] > div[class*="bg-[#1F2C47]"],
section[style*="herosection.png"] > div.subhero-overlay {
    background: 
        radial-gradient(ellipse 95% 85% at 50% 46%, rgba(20, 32, 54, 0.22) 0%, rgba(16, 25, 42, 0.65) 75%, rgba(13, 21, 35, 0.85) 100%),
        linear-gradient(180deg, rgba(16, 26, 44, 0.86) 0%, rgba(20, 34, 58, 0.32) 44%, rgba(18, 28, 48, 0.45) 62%, rgba(14, 22, 36, 0.84) 100%) !important;
}

section[style*="herosection.png"] h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

section[style*="herosection.png"] nav {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75) !important;
}


