/* ============================================
   Obsequy Funeral Services Theme
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #f1ad48;
    --secondary-color: #d89a3a;
    --accent-color: #f4b85c;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #f1ad48;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --font-primary: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Navigation ===== */
.main-header {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

/* ===== Bootstrap Navbar Contrast Fixes ===== */
/* Fix contrast ratio for navbar with warning background */
.navbar-dark.bg-warning .nav-link {
    color: #1a1a1a !important; /* Dark text for WCAG AA compliance on yellow background */
    font-weight: 500;
}

.navbar-dark.bg-warning .nav-link:hover {
    color: #000000 !important; /* Even darker on hover for better contrast */
    opacity: 1;
}

.navbar-dark.bg-warning .nav-link.active {
    color: #000000 !important; /* Dark text for active state */
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.1) !important; /* Subtle background for active state */
    border-radius: 4px;
}

.navbar-dark.bg-warning .navbar-brand {
    color: #1a1a1a !important; /* Dark text for brand */
}

.navbar-dark.bg-warning .navbar-brand span {
    color: #1a1a1a !important; /* Dark text for brand text */
}

/* Fix contrast for buttons in warning navbar */
.navbar-dark.bg-warning .btn-outline-light {
    color: #1a1a1a !important;
    border-color: rgba(26, 26, 26, 0.3) !important;
}

.navbar-dark.bg-warning .btn-outline-light:hover {
    background-color: rgba(26, 26, 26, 0.1) !important;
    border-color: rgba(26, 26, 26, 0.5) !important;
    color: #000000 !important;
}

.navbar-dark.bg-warning .btn-light {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffc107 !important; /* Yellow text on dark background */
}

.navbar-dark.bg-warning .btn-light:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffc107 !important;
}

/* Fix contrast for form controls in warning navbar */
.navbar-dark.bg-warning .form-control {
    color: #1a1a1a !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(26, 26, 26, 0.2) !important;
}

.navbar-dark.bg-warning .form-control::placeholder {
    color: rgba(26, 26, 26, 0.6) !important;
}

.navbar-dark.bg-warning .form-control:focus {
    color: #1a1a1a !important;
    background-color: #ffffff !important;
    border-color: rgba(26, 26, 26, 0.4) !important;
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25) !important;
}

/* Fix contrast for dropdown toggle in warning navbar */
.navbar-dark.bg-warning .dropdown-toggle::after {
    border-top-color: #1a1a1a !important;
}

/* Fix contrast for navbar toggler icon */
.navbar-dark.bg-warning .navbar-toggler {
    border-color: rgba(26, 26, 26, 0.3) !important;
}

.navbar-dark.bg-warning .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--bg-white);
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bg-white);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--bg-white);
    background: transparent;
    opacity: 0.9;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--bg-white);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    transition: var(--transition);
}

.lang-dropdown.active .lang-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.lang-option.active:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.lang-native {
    font-weight: 600;
    font-size: 1rem;
}

.lang-name {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.lang-option.active .lang-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Settings Button */
.btn-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: var(--bg-white);
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form input {
    border: none;
    background: transparent;
    padding: 0.3rem;
    width: 200px;
    outline: none;
    color: var(--bg-white);
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form button {
    border: none;
    background: transparent;
    color: var(--bg-white);
    cursor: pointer;
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bg-white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hide mobile-only items on desktop */
.mobile-only {
    display: none;
}

.mobile-lang-switcher {
    display: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--bg-white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-create {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-create:hover {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-login,
.btn-register {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
}

.btn-login {
    background: transparent;
    color: var(--bg-white);
}

.btn-logout {
    color: var(--danger-color) !important;
}

/* ===== Hero Section / Carousel ===== */
.hero {
    position: relative;
    background: linear-gradient(rgba(241, 173, 72, 0.9), rgba(216, 154, 58, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f1ad48" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: none;
    animation: fadeIn 1s ease-in-out;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(241, 173, 72, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== Sections ===== */
section {
    padding: 4rem 0;
}

.welcome-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.welcome-section .section-title strong {
    color: var(--primary-color);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== Features Section ===== */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--bg-white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Memorial Cards ===== */
.featured-memorials,
.recent-memorials {
    background: var(--bg-light);
}

.memorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.memorial-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.memorial-card.memorial-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.memorial-card.memorial-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.memorial-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--primary-color);
}

.memorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memorial-card:hover .memorial-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memorial-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    margin-right: 0.5rem;
}

.memorial-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 5rem;
}

.memorial-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.memorial-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.memorial-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.memorial-dates {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.memorial-bio {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.memorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.memorial-footer .btn-view {
    pointer-events: none; /* Disable since card is clickable */
    text-decoration: none;
    color: inherit;
}

.memorial-views {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
    border-top: 3px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.7rem;
}

.contact-info i {
    color: var(--bg-white);
    width: 20px;
    font-size: 1.1rem;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--bg-white);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom i {
    color: var(--bg-white);
}

/* ===== Carousel Controls ===== */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--bg-white);
    border-color: var(--bg-white);
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card .btn-view {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: var(--font-heading);
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.testimonial-author-relation {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== Blog Section ===== */
.blog-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: var(--primary-color);
    overflow: hidden;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        z-index: 1001;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        pointer-events: none;
    }

    .nav-menu.active {
        left: 0;
        pointer-events: auto;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
        pointer-events: auto;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        color: var(--text-dark);
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 1;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-color);
        color: var(--bg-white);
        opacity: 1;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-actions {
        display: none; /* Hide search and create button on mobile in navbar */
    }
    
    .language-switcher {
        display: none; /* Hide language switcher on mobile in navbar */
    }
    
    .mobile-lang-switcher {
        display: block;
        padding: 1rem 2rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }
    
    .mobile-lang-switcher .lang-dropdown {
        width: 100%;
    }
    
    .mobile-lang-switcher .lang-toggle {
        width: 100%;
        justify-content: space-between;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        color: var(--text-dark);
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .mobile-lang-switcher .lang-toggle:hover {
        background: var(--primary-color);
        color: var(--bg-white);
        border-color: var(--primary-color);
    }
    
    .mobile-lang-switcher .lang-toggle i {
        color: inherit;
    }
    
    .mobile-lang-switcher .lang-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-white);
        margin-top: 0.5rem;
        display: none;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem 0;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .mobile-lang-switcher .lang-dropdown.active .lang-menu {
        display: block;
    }
    
    .mobile-lang-switcher .lang-option {
        color: var(--text-dark);
        border-color: transparent;
        padding: 0.75rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-lang-switcher .lang-option:hover,
    .mobile-lang-switcher .lang-option.active {
        background: var(--primary-color);
        color: var(--bg-white);
    }
    
    .mobile-lang-switcher .lang-option .lang-native {
        font-weight: 600;
    }
    
    .mobile-lang-switcher .lang-option .lang-name {
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .mobile-only {
        display: block !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .memorials-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Hide CodeIgniter Debug Toolbar Logo */
#debug-icon,
#debug-icon-link {
    display: none !important;
}

