/* ==========================================================================
   Eparhija Bačka - Main Stylesheet
   Responsive Bootstrap-based Design
   ========================================================================== */

/* Custom Font - MonahOCS */
@font-face {
    font-family: 'MonahOCS';
    src: url('fonts/MonahOCS.otf') format('opentype'),
         url('fonts/MonahOCS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-purple: #461B7E;
    --primary-dark: #3A1568;
    --primary-light: #6B3FA0;
    --accent-gold: #c9a227;
    --accent-red: #8b2323;
    --bg-cream: rgba(247, 247, 247, 0.44);
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    /* Legacy alias for compatibility */
    --primary-blue: #461B7E;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif', Georgia, serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.top-header {
    background: var(--primary-purple);
    border-bottom: 3px solid var(--accent-gold);
    position: relative;
    padding: 8px 0;
    width: 100%;
    overflow: visible;
}

.vine-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 50px;
    width: auto;
    opacity: 0.9;
    z-index: 10;
}

.top-header .container,
.top-header .container-fluid {
    width: 100%;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-purple), var(--accent-gold));
}

.top-header .py-1 {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

.top-header .py-2 {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.top-header .py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.logo-container {
    text-align: center;
}

.logo-img {
    max-height: 180px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(85%) sepia(100%) saturate(1000%) hue-rotate(15deg) brightness(1.1);
    opacity: 0.9;
}

.header-title {
    padding: 5px 0;
}

.header-title .subtitle {
    font-size: 0.65rem;
    color: var(--primary-purple);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-title .main-title {
    font-family: 'MonahOCS', 'Old Standard TT', 'EB Garamond', 'Cormorant Garamond', 'Cinzel', serif;
    font-size: 2.163rem;
    font-weight: normal;
    color: #f4d03f;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(244, 208, 63, 0.4);
    margin: 3px 0;
    letter-spacing: 1px;
}


.header-title .main-title a {
    background: linear-gradient(135deg, #f4d03f 0%, #ffd700 50%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.header-title .main-title a:hover {
    opacity: 0.8;
}

.ornament-img {
    max-height: 100px;
    opacity: 0.9;
    margin-right: 30px;
}

.header-ornament {
    padding-right: 20px;
}

/* Quote Bar */
.quote-bar {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.quote-bar .container,
.quote-bar .container-fluid {
    background: var(--primary-purple);
    color: var(--text-light);
    padding: 8px 20px;
    font-size: 0.8rem;
    border-radius: 0;
    width: 100%;
    max-width: 1320px;
    width: 100%;
    margin: 0;
}

.quote-label {
    font-weight: 600;
    color: var(--accent-gold);
}

.quote-text {
    font-style: italic;
}

.quote-date {
    font-size: 0.75rem;
    color: var(--accent-gold);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-nav {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav .container,
.main-nav .container-fluid {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
    border-radius: 0 0 5px 5px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    padding: 0 15px;
}

.vinovaloza-banner {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: var(--bg-cream);
}

.vinovaloza-banner img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.main-nav .navbar-toggler {
    border: 1px solid var(--accent-gold);
    color: var(--text-light);
    padding: 6px 10px;
    margin: 8px 0;
}

.main-nav .navbar-toggler i {
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.main-nav .navbar-nav {
    width: 100%;
    justify-content: center;
}

.main-nav .nav-link {
    color: var(--text-light) !important;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 12px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-gold);
}

.main-nav .dropdown-menu {
    background-color: var(--primary-dark);
    border: none;
    border-radius: 0;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
}

.main-nav .dropdown-item {
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.main-nav .dropdown-item:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.search-form {
    margin-left: auto;
}

.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    font-size: 0.8rem;
    padding: 6px 12px;
    width: 140px;
}

.search-form .btn-search {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 0 20px 20px 0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 15px;
    transition: all 0.3s ease;
}

.search-form .btn-search:hover {
    background-color: #b8941f;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.main-content {
    background-color: var(--bg-cream);
}

/* Left Sidebar */
.sidebar-left {
    position: sticky;
    top: 20px;
}

/* Founder Card */
.founder-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent-gold);
    text-align: center;
}

.founder-image {
    width: 100%;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.05);
}

.founder-info {
    padding: 15px 10px;
    background: var(--primary-purple);
}

.founder-name {
    color: var(--accent-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.founder-year {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 2px;
}

/* Konkurs Links */
.konkurs-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.konkurs-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--primary-purple);
    transition: all 0.3s ease;
    text-decoration: none;
}

.konkurs-link i {
    color: #dc3545;
    font-size: 1.1rem;
}

.konkurs-link:hover {
    background-color: var(--primary-purple);
    color: var(--text-light);
    border-color: var(--primary-purple);
}

.konkurs-link:hover i {
    color: var(--accent-gold);
}


.konkurs-preview-trigger {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.konkurs-preview-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-btn {
    display: block;
    background: var(--primary-purple);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-light);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-gold);
}

.sidebar-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sidebar-btn-content i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.sidebar-btn .btn-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-btn .btn-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
}

.media-btn {
    display: block;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 15px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.media-btn:hover {
    background-color: var(--primary-purple);
    color: var(--text-light);
}

.youtube-placeholder {
    background: linear-gradient(135deg, #cc0000, #990000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    height: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.youtube-placeholder:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.youtube-placeholder i {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Featured News Section */
.featured-news-section {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-news-section .section-header {
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

#featuredCarousel {
    padding: 10px;
    position: relative;
}

#featuredCarousel .carousel-item {
    padding: 0 5px;
}

.featured-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 140px;
    cursor: pointer;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 30px 8px 8px;
}

.featured-overlay p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#featuredCarousel .carousel-control-prev,
#featuredCarousel .carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-purple);
    border-radius: 50%;
    opacity: 1;
}

#featuredCarousel .carousel-control-prev {
    left: -5px;
}

#featuredCarousel .carousel-control-next {
    right: -5px;
}

#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
    width: 12px;
    height: 12px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 200px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(70, 27, 126, 0.9));
    padding: 40px 20px 20px;
    text-align: center;
}

.hero-title {
    color: var(--accent-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bishop Section - kept for sidebar */
.bishop-section {
    background: var(--primary-purple);
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: var(--shadow-lg);
}

.bishop-title {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bishop-quote {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

/* News Section */
.section-header {
    background: var(--primary-purple);
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px 5px 0 0;
}

.section-title {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-card .col-md-4 {
    overflow: hidden;
}

.news-body {
    padding: 15px;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-title a {
    color: var(--primary-purple);
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-gold);
}

.news-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-read-more {
    background-color: var(--primary-purple);
    color: var(--text-light);
    font-size: 0.7rem;
    padding: 6px 15px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Announcement Cards */
.announcement-card {
    background: var(--text-light);
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow);
}

.announcement-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.announcement-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Pagination */
.pagination-nav {
    text-align: left;
}

.pagination-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-purple);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* ==========================================================================
   Right Sidebar
   ========================================================================== */

.sidebar-right {
    position: sticky;
    top: 20px;
}

.bishop-card {
    background: var(--primary-purple);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.bishop-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.bishop-info {
    padding: 15px;
    text-align: center;
}

.bishop-position {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Sidebar Sections */
.sidebar-section-header {
    background: linear-gradient(90deg, var(--accent-gold), #d4af37);
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px 5px 0 0;
}

.sidebar-section-header.secondary {
    background: linear-gradient(90deg, var(--accent-red), #a02d2d);
}

.sidebar-section-header.tertiary {
    background: linear-gradient(90deg, #2e7d32, #388e3c);
}

.sidebar-section-header h4 {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.sidebar-list a:hover {
    color: var(--accent-gold);
}

/* Sidebar Tabs */
.sidebar-tabs .nav-tabs {
    border: none;
    background-color: var(--primary-purple);
    border-radius: 5px 5px 0 0;
}

.sidebar-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px 15px;
    text-transform: uppercase;
}

.sidebar-tabs .nav-link.active {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.sidebar-tabs .tab-content {
    background-color: var(--text-light);
    padding: 15px;
    border-radius: 0 0 5px 5px;
    box-shadow: var(--shadow);
}

/* Sidebar Articles */
.sidebar-article {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-article img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.sidebar-article-content a {
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
    display: block;
}

.sidebar-article-content a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
}

.contact-card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent-gold);
}

.contact-header {
    margin-bottom: 30px;
}

.contact-cross {
    color: var(--accent-gold);
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-purple);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.contact-form .form-label {
    color: var(--primary-purple);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(70, 27, 126, 0.1);
}

.contact-form .form-control::placeholder {
    color: #aaa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact {
    background: var(--primary-purple);
    color: var(--text-light);
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--accent-gold), #d4af37);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background: var(--primary-purple);
    color: var(--text-light);
    padding: 30px 0;
    margin-top: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-purple);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .header-title .main-title {
        font-size: 2.644rem;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991px) {
    .header-title .main-title {
        font-size: 1.682rem;
    }
    
    .logo-img {
        max-height: 140px;
    }
    
    .ornament-img {
        max-height: 85px;
        margin-right: 20px;
    }
    
    .header-ornament {
        padding-right: 15px;
    }
    
    .vine-overlay {
        top: 0;
        max-height: 45px;
    }
    
    .main-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        border-left-color: var(--accent-gold);
        border-bottom-color: transparent;
    }
    
    .search-form {
        margin-top: 15px;
        margin-left: 0;
        padding: 0 15px;
        width: 100%;
    }
    
    .search-form .form-control {
        flex: 1;
        width: auto;
    }
    
    .sidebar-left {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        position: static;
    }
    
    .sidebar-left .sidebar-btn {
        flex: 1;
        min-width: 150px;
    }
    
    .sidebar-left .sidebar-media,
    .sidebar-left .youtube-embed {
        width: 100%;
    }
    
    .sidebar-media {
        display: flex;
        gap: 10px;
    }
    
    .sidebar-media .media-btn {
        flex: 1;
    }
}

/* Small Devices (Phones, 576px to 767px) */
@media (max-width: 767px) {
    .top-header {
        padding: 5px 0;
    }
    
    .header-title .main-title {
        font-size: 1.322rem;
    }
    
    .header-title .subtitle {
        font-size: 0.55rem;
    }
    
    .logo-img {
        max-height: 110px;
    }
    
    .ornament-img {
        max-height: 70px;
        margin-right: 15px;
    }
    
    .header-ornament {
        padding-right: 10px;
    }
    
    .vine-overlay {
        top: 0;
        max-height: 35px;
    }
    
    .quote-bar .container {
        font-size: 0.7rem;
        padding: 6px 15px;
    }
    
    .quote-label {
        display: none;
    }
    
    .cross-pattern {
        height: 20px;
        padding: 0;
    }
    
    #featuredCarousel .carousel-item img {
        height: 180px;
    }
    
    #featuredCarousel .carousel-caption {
        padding: 15px 10px 10px;
    }
    
    #featuredCarousel .carousel-caption p {
        font-size: 0.8rem;
    }
    
    .bishop-section {
        padding: 20px 15px;
    }
    
    .bishop-title {
        font-size: 1.2rem;
    }
    
    .bishop-quote {
        font-size: 1rem;
    }
    
    .news-card .row {
        flex-direction: column;
    }
    
    .news-card .col-md-4,
    .news-card .col-md-8 {
        width: 100%;
    }
    
    .news-img {
        height: 200px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .featured-card {
        height: 120px;
    }
    
    .featured-overlay p {
        font-size: 0.6rem;
    }
    
    .hero-banner {
        height: 160px;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .contact-card {
        padding: 30px 25px;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .sidebar-left {
        flex-direction: column;
    }
    
    .sidebar-left .sidebar-btn {
        min-width: 100%;
    }
    
    .sidebar-media {
        flex-direction: column;
    }
}

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .header-title .main-title {
        font-size: 1.322rem;
    }
    
    .header-title .subtitle {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
    
    .logo-img {
        max-height: 90px;
    }
    
    .ornament-img {
        max-height: 60px;
        margin-right: 10px;
    }
    
    .header-ornament {
        padding-right: 5px;
    }
    
    .vine-overlay {
        top: 0;
        max-height: 30px;
    }
    
    .main-nav .navbar-toggler {
        padding: 4px 8px;
    }
    
    .main-nav .nav-link {
        font-size: 0.7rem;
        padding: 8px 12px !important;
    }
    
    #featuredCarousel .carousel-item img {
        height: 150px;
    }
    
    .section-header {
        padding: 10px 15px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .news-body {
        padding: 12px;
    }
    
    .news-title {
        font-size: 0.9rem;
    }
    
    .news-excerpt {
        font-size: 0.8rem;
    }
    
    .announcement-card {
        padding: 15px;
    }
    
    .announcement-title {
        font-size: 0.9rem;
    }
    
    .featured-card {
        height: 100px;
    }
    
    .featured-overlay {
        padding: 20px 5px 5px;
    }
    
    .featured-overlay p {
        font-size: 0.55rem;
        -webkit-line-clamp: 2;
    }
    
    #featuredCarousel .carousel-control-prev,
    #featuredCarousel .carousel-control-next {
        width: 25px;
        height: 25px;
    }
    
    .hero-banner {
        height: 140px;
    }
    
    .hero-title {
        font-size: 1rem;
    }
    
    .hero-overlay {
        padding: 30px 15px 15px;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-cross {
        font-size: 1.5rem;
    }
    
    .btn-contact {
        width: 100%;
        padding: 12px 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .sidebar-left,
    .sidebar-right,
    .back-to-top,
    .social-links,
    #featuredCarousel {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .news-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.5s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000066;
        --accent-gold: #ffcc00;
    }
    
    .news-card,
    .announcement-card,
    .sidebar-btn {
        border: 2px solid var(--text-dark);
    }
}

/* ==========================================================================
   Cross Banner
   ========================================================================== */

.cross-banner {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.cross-pattern {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-purple), var(--primary-dark));
    padding: 0;
    border-radius: 5px 5px 0 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 20px;
}

.cross-pattern-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scrollCrosses {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Cross Divider */
.cross-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.cross-divider::before,
.cross-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.cross-divider::before {
    left: 0;
}

.cross-divider::after {
    right: 0;
}

.cross-divider .cross {
    color: var(--accent-gold);
    font-size: 1.5rem;
    background-color: var(--bg-cream);
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Footer Cross */
.footer-cross {
    color: var(--accent-gold);
    font-size: 2rem;
    opacity: 0.8;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb-bar {
    background-color: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary-purple);
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: #888;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--accent-gold);
}

/* ==========================================================================
   Article Page Styles
   ========================================================================== */

.article-full {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Article Header */
.article-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-category {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--accent-gold);
}

/* Featured Image */
.article-featured-image {
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.image-caption {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
}

/* Article Body */
.article-body {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.8;
}

.article-body .lead {
    font-size: 1.15rem;
    color: var(--primary-purple);
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold);
}

.article-body h3 {
    color: var(--primary-purple);
    font-size: 1.4rem;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-gold);
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body ul, 
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Article Quote */
.article-quote {
    background: linear-gradient(135deg, var(--bg-cream), #efe9dc);
    border-left: 4px solid var(--accent-gold);
    padding: 25px 30px;
    margin: 30px 0;
    position: relative;
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.5;
    font-family: Georgia, serif;
    line-height: 1;
}

.article-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-purple);
    margin-bottom: 10px;
    padding-left: 30px;
}

.article-quote cite {
    display: block;
    font-size: 0.9rem;
    color: #888;
    padding-left: 30px;
}

/* Article Gallery */
.article-gallery img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.article-gallery img:hover {
    transform: scale(1.02);
}

/* Article Footer */
.article-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tags-label {
    color: #888;
    font-size: 0.85rem;
}

.tag {
    display: inline-block;
    background-color: var(--primary-purple);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    color: #888;
    font-size: 0.85rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.email {
    background-color: var(--accent-red);
}

.share-btn.print {
    background-color: #888;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: var(--text-light);
    opacity: 0.9;
}

/* ==========================================================================
   Related Articles
   ========================================================================== */

.related-title {
    color: var(--primary-purple);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
}

.related-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-body {
    padding: 15px;
}

.related-body h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.related-body h5 a {
    color: var(--primary-purple);
}

.related-body h5 a:hover {
    color: var(--accent-gold);
}

.related-date {
    font-size: 0.75rem;
    color: #888;
}

/* ==========================================================================
   Article Navigation
   ========================================================================== */

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.article-navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-purple);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.article-navigation a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.nav-home {
    flex-direction: column;
    gap: 3px !important;
}

/* ==========================================================================
   Sidebar Enhancements for Article Page
   ========================================================================== */

.sidebar-date {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.category-list a i {
    color: var(--accent-gold);
    margin-right: 10px;
}

.category-list a .count {
    margin-left: auto;
    color: #888;
    font-size: 0.75rem;
}

.category-list a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

/* Archive List */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    border-bottom: 1px solid var(--border-color);
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.archive-list a .count {
    color: #888;
    font-size: 0.75rem;
}

.archive-list a:hover {
    color: var(--accent-gold);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: var(--bg-light);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.quick-link i {
    color: var(--accent-gold);
}

.quick-link:hover {
    background-color: var(--primary-purple);
    color: var(--text-light);
}

.quick-link:hover i {
    color: var(--accent-gold);
}

/* ==========================================================================
   Article Page Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-body {
        padding: 20px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-navigation a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .cross-pattern {
        height: 20px;
        padding: 0;
    }
    
    .article-header {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-body {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .article-body .lead {
        font-size: 1.05rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-quote {
        padding: 20px;
    }
    
    .article-quote p {
        font-size: 1rem;
        padding-left: 20px;
    }
    
    .article-footer {
        padding: 20px;
    }
    
    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    .related-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-featured-image img {
        max-height: 250px;
    }
    
    .image-caption {
        font-size: 0.7rem;
        padding: 8px 15px;
    }
    
    .article-body {
        padding: 12px;
    }
    
    .article-gallery .col-md-6 {
        margin-bottom: 10px;
    }
}

/* Print styles for article */
@media print {
    .cross-banner,
    .breadcrumb-bar,
    .article-share,
    .related-articles,
    .article-navigation,
    .sidebar-right {
        display: none !important;
    }
    
    .article-full {
        box-shadow: none;
    }
    
    .article-body {
        padding: 0;
    }
}

/* Sidebar Social Links */
.sidebar-social-links {
    margin-top: 20px;
}

.sidebar-social-link {
    background-color: var(--primary-purple) !important;
    color: var(--text-light) !important;
}

.sidebar-social-link:hover {
    background-color: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
}

