/* Lovable-inspired Design for St. Nicholas Monastery */

/* Color Variables */
:root {
    --primary-color: #8B4513;  /* Monastery brown */
    --secondary-color: #4A4A4A; /* Dark gray */
    --accent-color: #D4A574;   /* Light brown/gold */
    --text-primary: #2C2C2C;   /* Dark text */
    --text-secondary: #6C6C6C; /* Gray text */
    --bg-light: #F8F9FA;      /* Light background */
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Base Typography and Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body, * {
    font-family: 'Roboto', sans-serif !important;
}

/* Reduced line-height for better text density */
body {
    line-height: 1.4;
}

p {
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
}

.lead {
    line-height: 1.4 !important;
}

/* Father Markos Section Typography */
.father-markos-section p {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
}

.father-markos-section div {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
}

/* Compressed Biblical Quote */
.saint-quote {
    margin: 10px 0 !important;
    padding: 10px 0 !important;
}

.saint-quote .quote-text {
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
    padding: 0 !important;
}

.saint-quote .quote-author {
    font-size: 0.85rem !important;
    margin-top: 3px !important;
    display: block;
}

/* St. Nicholas Section Spacing - no gap */
#st-nicholas {
    margin-top: 0px !important;
}

/* Match Canonical Authority spacing with Official Documentation */
#authority-documentation .section-title {
    margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
    #st-nicholas {
        margin-top: 60px !important;
    }
    
    /* Force EXACT identical spacing for both titles on mobile */
    #authority-documentation h2[data-mobile-spacing="canonical"],
    #authority-documentation h2[data-mobile-spacing="documentation"] {
        margin-bottom: 0.7rem !important;
        font-size: 1.4rem !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    #authority-documentation .col-lg-6 p {
        margin-bottom: 1rem !important;
        font-size: 1rem !important;
    }
    
    #authority-documentation .col-lg-6 {
        margin-bottom: 2rem !important;
    }
    
    #authority-documentation .text-center.mt-4 {
        margin-top: 1.5rem !important;
    }
}

/* Gallery View More Functionality */
.hidden-gallery-item {
    display: none !important;
}

#viewMoreGallery {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

#viewMoreGallery:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Force visibility for debugging */
#viewMoreGallery {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 20px auto !important;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Hero Section - Clean & Elegant */
.hero-lovable {
    min-height: 80vh;
    background: url('../assets/monastery-hero.jpg') center center/cover no-repeat, linear-gradient(135deg, #2C3E50 0%, #34495E 50%, #4A4A4A 100%);
    background-attachment: scroll;
    color: white;
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-top: 25vh;
    padding-bottom: 8rem;
    will-change: transform;
    transform: translateZ(0);
}

.hero-lovable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-text-block {
    max-width: 600px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.btn-hero {
    background: #C0392B;
    color: white !important;
    border: 2px solid #C0392B;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none !important;
}

.btn-hero:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-1px);
}

/* Section Titles */
.section-title {
    font-size: 1.7rem;
    color: #2C3E50;
    margin-bottom: 3rem;
    font-weight: 400;
    text-align: center;
}

/* St. Nicholas Title */
.saint-title {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Uniform text sizing for all descriptive content */
section p:not(.hero-subtitle):not(.hero-description):not(.btn):not(.alert):not(.card-text),
.about-content p,
.monastery-content p,
.content-text,
.description-text {
    font-size: 1.25rem !important;
    line-height: 1.6;
    font-weight: 400;
}

/* Quote Boxes */
.quote-box {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 40px 30px;
    border-left: 5px solid var(--primary-color);
    margin: 2rem 0;
    position: relative;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-author {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Inline Quote - Smaller Version */
.quote-box-inline {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 3px solid #2C3E50;
    margin: 1.5rem 0;
    max-width: 400px;
    display: inline-block;
    text-align: left;
}

.quote-icon-small {
    color: #2C3E50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.quote-text-small {
    font-size: 1rem;
    font-style: italic;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.quote-author-small {
    color: #6C6C6C;
    font-size: 0.9rem;
    font-weight: 500;
}

.saint-quote {
    text-align: center;
    margin-bottom: 2rem;
}

.saint-quote .quote-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-style: italic;
}

/* Saint Icon */
.saint-icon {
    max-width: 400px;
    border-radius: 20px;
    /* Ramă groasă cu incrustații 3D */
    border: 20px solid #8B4513;
    box-shadow: 
        /* Umbra principală profundă */
        0 12px 35px rgba(0, 0, 0, 0.35),
        /* Prima incrustație - auriu interior */
        inset 0 0 0 8px #D4A574,
        inset 0 0 0 10px #654321,
        /* A doua incrustație - relief mediu */
        inset 0 0 0 15px #A0522D,
        inset 0 0 0 17px #CD853F,
        /* Incrustații 3D cu efecte de relief */
        inset 4px 4px 8px rgba(0, 0, 0, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.15),
        /* Contur exterior final */
        0 0 0 3px #4A2C17,
        /* Efectul de relief al ramei */
        0 4px 12px rgba(139, 69, 19, 0.4);
    position: relative;
}

.saint-icon::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 20px;
    background: 
        /* Pattern de incrustații pe ramă */
        repeating-conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg, 
            rgba(212, 165, 116, 0.1) 10deg,
            transparent 20deg,
            rgba(139, 69, 19, 0.1) 30deg,
            transparent 40deg);
    pointer-events: none;
    z-index: -1;
}

/* Video Placeholders */
.video-placeholder, .video-section {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 2px solid #E0E0E0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-placeholder i {
    color: #2C3E50;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.video-section h4 {
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 500;
}

.video-section p {
    color: #5A5A5A;
    opacity: 1;
}

/* Large Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* YouTube Video Wrapper */
.youtube-video-wrapper {
    min-height: 315px;
}

.youtube-video-wrapper iframe {
    border: 0;
    display: block;
}

.video-frame {
    position: relative;
    width: 75%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.video-placeholder-large {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder-large:hover {
    background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
    transform: scale(1.02);
}

.video-placeholder-large i {
    color: #C0392B;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-placeholder-large:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.video-placeholder-large h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.video-placeholder-large p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Hero Jerusalem Text - Large on Desktop */
.hero-jerusalem-text {
    color: #D4A574;
    font-size: 3.5rem !important;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-jerusalem-text {
        font-size: 2rem !important;
    }
    
    /* Center donation form labels and text on mobile */
    #donations .form-group label {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    #donations .form-control::placeholder {
        text-align: center !important;
    }
    
    #donations .form-title {
        text-align: center !important;
    }
    
    #donations .donation-form-container p {
        text-align: center !important;
    }
}

/* Father Markos Photo Container - clean, bigger with hover effect */
.father-photo-container {
    display: inline-block;
    margin: 1rem auto;
    transition: transform 0.3s ease;
}

.father-photo-container:hover {
    transform: translateY(-5px);
}

.father-photo-container img {
    display: block;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.father-photo-container:hover img {
    transform: scale(1.02);
}

/* Gallery */
.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 438px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hidden-gallery-item {
    display: none !important;
}

/* Mobile gallery image height adjustment - make images much taller on mobile */
@media (max-width: 768px) {
    .gallery-item img {
        height: 625px !important;
        min-height: 625px !important;
    }
    
    /* St. Nicholas section almost no gap on mobile */
    #st-nicholas {
        margin-top: 0px !important;
    }
    
    #st-nicholas .container {
        padding: 2rem 1.5rem !important;
        margin: 1rem !important;
        min-height: 350px !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    #st-nicholas .saint-icon,
    #st-nicholas .img-fluid {
        margin: 1rem auto 2.5rem auto !important;
        order: 2;
    }
    
    #st-nicholas .col-lg-6:nth-child(1) {
        order: 1;
    }
    
    #st-nicholas .col-lg-6:nth-child(2) {
        order: 2;
    }
    
    #st-nicholas .row {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-text-first {
        order: 1 !important;
    }
    
    .desktop-text-section {
        order: 2 !important;
    }
    
    .mobile-header {
        margin-bottom: 1rem !important;
    }
    
    /* Force mobile layout reorganization */
    .st-nicholas-mobile-v2 .mobile-text-first {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .st-nicholas-mobile-v2 .mobile-header {
        order: 1 !important;
    }
    
    .st-nicholas-mobile-v2 .saint-icon {
        order: 2 !important;
        margin-bottom: 3rem !important;
    }
    
    /* Additional spacing for mobile icons */
    .st-nicholas-mobile-v2 .mobile-text-first .saint-icon {
        margin: 1rem auto 3rem auto !important;
    }
    
    .st-nicholas-mobile-v2 .mobile-text-first .img-fluid {
        margin: 1rem auto 3rem auto !important;
    }
}

@media (max-width: 576px) {
    #gallery {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-grid {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .gallery-item {
        display: block !important;
        visibility: visible !important;
    }
    
    .gallery-item img {
        height: 688px !important;
        min-height: 688px !important;
        will-change: opacity, transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* St. Nicholas section no gap on small phones */
    #st-nicholas {
        margin-top: 0px !important;
    }
    
    #st-nicholas .container {
        padding: 1.8rem 1.2rem !important;
        margin: 1rem !important;
        min-height: 320px !important;
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    #st-nicholas .saint-icon,
    #st-nicholas .img-fluid {
        margin: 1rem auto 2.5rem auto !important;
        order: 2;
    }
    
    #st-nicholas .col-lg-6:nth-child(1) {
        order: 1;
    }
    
    #st-nicholas .col-lg-6:nth-child(2) {
        order: 2;
    }
    
    #st-nicholas .row {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 750px !important;
        min-height: 750px !important;
    }
    
    /* Father Markos image bigger on small phones - with hover effect */
    .father-photo-container img {
        max-width: 400px !important;
        width: 100% !important;
        display: block;
        border-radius: 15px;
    }
    
    /* Ensure text centering on small phones */
    .father-markos-section p {
        text-align: center !important;
    }
    
    /* St. Nicholas section no gap on extra small phones */
    #st-nicholas {
        margin-top: 0px !important;
    }
    
    #st-nicholas .container {
        padding: 1.5rem 1rem !important;
        margin: 0.8rem !important;
        min-height: 280px !important;
        width: calc(100% - 1.6rem) !important;
        max-width: calc(100% - 1.6rem) !important;
    }
    
    #st-nicholas .saint-icon,
    #st-nicholas .img-fluid {
        margin: 0.5rem auto 3.5rem auto !important;
        order: 2;
    }
    
    #st-nicholas .col-lg-6:nth-child(1) {
        order: 1;
    }
    
    #st-nicholas .col-lg-6:nth-child(2) {
        order: 2;
    }
    
    #st-nicholas .row {
        display: flex;
        flex-direction: column;
    }
    
    /* Center content inside St. Nicholas container on mobile */
    #st-nicholas .container {
        justify-content: center !important;
        align-items: center !important;
    }
    
    #st-nicholas .row {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    #st-nicholas .col-lg-6 {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #st-nicholas .saint-icon {
        margin: 2rem auto 0 auto !important;
        display: block !important;
        max-width: 280px !important;
        width: 100% !important;
        /* Ramă groasă adaptată pentru mobile */
        border: 15px solid #8B4513;
        border-radius: 15px;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.35),
            inset 0 0 0 5px #D4A574,
            inset 0 0 0 7px #654321,
            inset 0 0 0 10px #A0522D,
            inset 0 0 0 12px #CD853F,
            inset 3px 3px 6px rgba(0, 0, 0, 0.4),
            inset -3px -3px 6px rgba(255, 255, 255, 0.15),
            0 0 0 2px #4A2C17,
            0 3px 8px rgba(139, 69, 19, 0.4);
    }
    
    #st-nicholas .saint-icon::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border-radius: 15px;
    }
    
    #st-nicholas .text-content {
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Force all content to center on mobile */
    #st-nicholas * {
        text-align: center !important;
    }
    
    #st-nicholas .img-fluid {
        margin: 2rem auto 0 auto !important;
        display: block !important;
        max-width: 280px !important;
        width: 100% !important;
    }
    
    #st-nicholas .quote-text,
    #st-nicholas .quote-author,
    #st-nicholas p,
    #st-nicholas h4 {
        text-align: center !important;
    }
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Drag and Drop Styles */
.gallery-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.gallery-item.drag-over {
    border: 2px dashed #8B4513;
    background-color: rgba(139, 69, 19, 0.1);
    transform: scale(1.05);
}

.drag-handle {
    display: inline-block;
    padding: 8px;
    cursor: grab;
    color: #6c757d;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.drag-handle:hover {
    background-color: rgba(139, 69, 19, 0.1);
    color: #8B4513;
}

.drag-handle:active {
    cursor: grabbing;
}

/* St Nicholas Byzantine Vine Background */
.st-nicholas-floral-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/assets/byzantine-vine-pattern.png');
    background-size: 250px 250px;
    background-repeat: repeat;
    background-position: 0 0;
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.st-nicholas-floral-bg > * {
    position: relative;
    z-index: 2;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* Promise Box */
.promise-box {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.promise-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Donation Form */
.donation-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #E9ECEF;
}

.form-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.amount-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.amount-btn:hover, .amount-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Donation Button */
.donation-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-lovable {
        min-height: 80vh;
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-text-block {
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .quote-box {
        padding: 25px 20px;
    }
    
    .donation-form-container {
        padding: 25px;
    }
    
    .quick-amounts {
        justify-content: center;
    }
    
    .amount-btn {
        flex: 1;
        min-width: calc(50% - 5px);
    }
    
    /* Introduction section mobile */
    #introduction {
        padding: 2rem 0;
    }
    
    #introduction .container {
        padding-top: 0;
        margin-top: 0;
    }
    
    .video-frame {
        height: 250px;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-lovable {
        min-height: 70vh;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem;
        white-space: normal;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        font-size: 0.9rem;
        padding: 10px 20px;
        z-index: 15 !important;
        color: white !important;
        background: #C0392B !important;
        display: inline-block !important;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .amount-btn {
        flex: 1;
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    /* Extra tight spacing for introduction */
    #introduction {
        padding: 1.5rem 0;
    }
    
    #introduction h2 {
        margin-bottom: 1rem;
        font-size: 1.8rem;
    }
    
    /* St. Nicholas section mobile */
    .section-title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
    }
    
    /* Mobile video fix */
    .youtube-video-wrapper {
        min-height: 200px !important;
    }
    
    .video-container {
        width: 100% !important;
    }
    
    .video-frame {
        height: 220px;
    }
    
    /* Force mobile title to show on mobile */
    .d-lg-none {
        display: block !important;
    }
    
    /* St Nicholas mobile title styling */
    #st-nicholas .d-lg-none h4 {
        color: white !important;
        font-weight: 600 !important;
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    /* Father Markos image bigger on tablets - with hover effect */
    .father-photo-container img {
        max-width: 380px !important;
        width: 100% !important;
        display: block;
        border-radius: 15px;
    }
    
    /* Center Father Markos section on mobile */
    .father-markos-section {
        text-align: center !important;
    }
    
    .father-markos-section .row {
        justify-content: center !important;
    }
    
    .father-markos-section h2 {
        text-align: center !important;
    }
}

/* Desktop styles - hide mobile title on desktop */
@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-none.d-lg-block {
        display: block !important;
    }
    
    /* St Nicholas section with gradient styling */
    #st-nicholas h4 {
        color: white !important;
    }
    
    #st-nicholas p {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-lovable,
    .gallery-grid,
    .video-placeholder,
    .video-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    .section-title,
    .quote-text {
        color: black;
    }
}