/* ============================================
   Website Giáo Xứ Đền Thánh Tâm - Custom CSS
   ============================================ */

:root {
    --primary-color: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e3a5c;
    --accent-color: #c0392b;
    --gold-color: #f1c40f;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
}

/* ---- Navbar ---- */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand span {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(255, 255, 255, 0.12);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    min-height: 420px;
    padding: 80px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero-section .lead {
    font-style: italic;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    position: relative;
}

.hero-section .btn {
    position: relative;
}

/* ---- Section Titles ---- */
.section-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* ---- News Cards ---- */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-title {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.news-card .card-title:hover {
    color: var(--primary-light);
}

/* ---- Gallery ---- */
.album-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.album-card img {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.album-card:hover img {
    transform: scale(1.08);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    padding: 25px 15px 15px;
}

.album-overlay h5 {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Hội đoàn card */
.hoidoan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.hoidoan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.hoidoan-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.hoidoan-content img {
    max-width: 100%;
    height: auto;
}

/* ---- Schedule ---- */
.schedule-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.schedule-card:hover {
    transform: translateX(5px);
}

.schedule-day-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Merriweather', serif;
}

.schedule-compact-table td,
.schedule-compact-table th {
    vertical-align: middle;
    padding: 14px 18px;
    font-size: 1.05rem;
}

.schedule-compact-table thead th {
    font-size: 1.1rem;
}

.schedule-compact-table td:first-child {
    font-size: 1.1rem;
    white-space: nowrap;
}

.schedule-time-badge {
    font-size: 1rem;
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 700;
    cursor: default;
}

/* ---- Contact ---- */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    padding: 30px;
}

.contact-info-card i {
    font-size: 1.3rem;
    margin-right: 10px;
}

/* ---- Page Header (Breadcrumb) ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    padding: 40px 0;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* ---- Footer ---- */
footer {
    background-color: var(--primary-dark) !important;
}

footer h5 {
    color: var(--gold-color);
    font-size: 1rem;
}

footer a:hover {
    color: var(--gold-color) !important;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ---- Pagination ---- */
.page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ---- Buttons ---- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ---- Badge ---- */
.badge.bg-primary {
    background-color: var(--primary-light) !important;
}

/* ---- Tables ---- */
.table-primary {
    --bs-table-bg: var(--primary-color);
    --bs-table-color: white;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* ---- About Page ---- */
.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---- Article Detail ---- */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-meta {
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 15px 0;
    }
    .nav-link {
        padding: 8px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 320px;
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 1.7rem;
    }
    .hero-section .lead {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .page-header h1 {
        font-size: 1.4rem;
    }
    footer .row > div {
        text-align: center;
    }
    .news-card .card-img-top {
        height: 180px;
    }
    .album-card img {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 260px;
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 1.4rem;
    }
    .navbar-brand span {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
}
