/* Homepage Styles - Св. Георгиј Старо Нагоричане */

/* Importing base variables */
/* Root vars & font-face moved to base.css */

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    position: relative;
}

/* Shared header/nav/button/dropdown/burger styles removed (now in base.css) */

/* CONTENT NAVIGATION BAR */
.content-nav-bar {
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    position: relative;
    z-index: 9;
    padding: 0 40px;
}

.content-nav-section {
    background: #F5F5DC;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    font-size: 16px;
    color: #333;
    border-right: 1px solid rgba(139, 69, 19, 0.2);
    position: relative;
}

.content-nav-section:last-child {
    border-right: none;
}

.content-nav-section:hover {
    background: #EBE8D1;
    cursor: pointer;
}

.content-nav-section.active {
    background: #8B4513;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.content-nav-section.active:hover {
    background: #8B4513;
    cursor: default;
}

.content-nav-section span {
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* MAIN CONTENT SECTION */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 500px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 560.84px;
    overflow: visible;
}

.content-grid .blog-card-wrapper {
    display: flex;
    position: relative;
    height: 560.84px;
    min-height: 560.84px;
    max-height: 560.84px;
    flex-direction: column;
}

/* Messages and States */
.loading-message {
    text-align: center;
    padding: 60px 30px;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(249, 245, 235, 0.08) 0%, rgba(188, 108, 37, 0.05) 100%);
    border: 2px solid rgba(188, 108, 37, 0.2);
    border-radius: 20px;
    margin: 20px 0;
    backdrop-filter: blur(8px);
    position: relative;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    color: var(--text-color);
}

.loading-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.6;
}

/* Blog Card Styles - exactly from blogpage.css */
.blog-card {
    background: #F5F5DC;
    border: 2px solid #D2B48C;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    height: 560.84px;
    min-height: 560.84px;
    max-height: 560.84px;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Cards 1 and 3 - Large image areas */
.blog-card.card-type-1 .card-image,
.blog-card.card-type-3 .card-image {
    height: 55%;
    min-height: 286px;
}

.blog-card.card-type-1 .card-content,
.blog-card.card-type-3 .card-content {
    height: 45%;
    min-height: 154px;
    padding: 18px 16px 9px 16px;
}

/* Cards 2 and 4 - Smaller image areas, larger text areas */
.blog-card.card-type-2 .card-image,
.blog-card.card-type-4 .card-image {
    height: 45%;
    min-height: 176px;
}

.blog-card.card-type-2 .card-content,
.blog-card.card-type-4 .card-content {
    height: 55%;
    min-height: 264px;
    padding: 18px 16px 9px 16px;
}

.card-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    border-bottom: 2px solid #D2B48C;
    transition: all 0.3s ease;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            transparent 100%);
}

.card-content {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #F5F5DC;
    overflow: visible;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-category {
    background: #8B4513;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.blog-card:hover .card-category {
    background: #A0522D;
    transform: translateY(-1px);
}

.card-date {
    color: #8B4513;
    font-size: 0.8rem;
    background: rgba(139, 69, 19, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.blog-card:hover .card-date {
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.3);
}

.card-title {
    font-size: 1.25rem;
    color: #2F1B14;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    display: block;
    overflow: visible;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-card:hover .card-title {
    color: #1A0F0A;
}

.card-excerpt {
    color: #5D4037;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.9rem;
    flex: 1;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

.blog-card:hover .card-excerpt {
    color: #4A2C20;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #D2B48C;
    margin-top: auto;
    position: relative;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.blog-card:hover .card-author {
    border-top-color: #C8A882;
}

.card-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B4513;
    transition: width 0.3s ease;
}

.blog-card:hover .card-author::before {
    width: 100%;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8B4513;
    padding: 2px;
    border: 1px solid #D2B48C;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover .author-avatar {
    transform: scale(1.05);
    border-color: #8B4513;
}

.author-name {
    color: #8B4513;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.blog-card:hover .author-name {
    color: #5D4037;
}

/* HERO SECTION */
.hero {
    background-image: url('../assets/homepage-hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    height: 100vh;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    padding-top: 250px;
}

.hero-top-title {
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 20px 30px;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
    background: rgba(40, 61, 59, 0.25);
    backdrop-filter: blur(3px);
    border-radius: 16px;
    border: 1px solid rgba(188, 108, 37, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-top-title::before,
.hero-top-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(188, 108, 37, 0.6) 50%,
        transparent 100%
    );
}

.hero-top-title::before {
    top: 8px;
}

.hero-top-title::after {
    bottom: 8px;
}

.hero-line-1,
.hero-line-2 {
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    color: var(--text-color);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 1);
    line-height: 1.4;
}

.hero-line-1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #f9f5eb;
    letter-spacing: 0.5px;
}

.hero-line-2 {
    font-size: 22px;
    font-weight: 500;
    /* color: var(--primary-color); */
    letter-spacing: 0.8px;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 40px;
    width: 90%;
    position: relative;
    z-index: 1;
}

.hero-text {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 30px 0;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    background: rgba(188, 108, 37, 0.2);
    border: 2px solid #BC6C25;
    color: var(--text-color);
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-btn:hover {
    background: rgba(188, 108, 37, 0.35);
    border-color: #D4953A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 108, 37, 0.3);
    color: #F9F5EB;
}

/* CHURCH SECTION */
.church-section {
    margin: 80px 0 0 0;
    padding: 0;
    /* background: linear-gradient(135deg, var(--background-color) 0%, #1e2d2b 100%); */
    position: relative;
    min-height: 700px;
    overflow: hidden;
    
}

.church-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Two-column church layout */
.church-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 700px;
    padding: 80px 40px;
    position: relative;
}

/* Left: Church Information Section */
.church-info-section {
    flex: 0 0 45%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.church-header {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(188, 108, 37, 0.3);
}

.church-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

.church-subtitle {
    font-size: 18px;
    color: #BC6C25;
    font-weight: 400;
    opacity: 0.9;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

/* Church Content */
.church-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.church-description {
    font-size: 18px;
    color: rgba(249, 245, 235, 0.9);
    line-height: 1.7;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

/* Church Features - Ultra Thin Design */
.church-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(188, 108, 37, 0.15);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-bottom-color: rgba(188, 108, 37, 0.4);
    transform: translateX(5px);
}

.feature-number {
    font-size: 32px;
    font-weight: 100;
    color: var(--primary-color);
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    min-width: 80px;
    text-align: center;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 4px;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

.feature-desc {
    font-size: 14px;
    color: rgba(249, 245, 235, 0.6);
    font-weight: 300;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

/* Church Services */
.church-services {
    background: rgba(188, 108, 37, 0.05);
    border: 1px solid rgba(188, 108, 37, 0.2);
    border-radius: 8px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.services-title {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(188, 108, 37, 0.1);
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

.service-item:last-child {
    border-bottom: none;
}

.service-day {
    font-size: 16px;
    color: rgba(245, 67, 67, 0.753);
    font-weight: 600;
}

.service-time {
    font-size: 16px;
    color: rgba(245, 67, 67, 0.753);
    font-weight: 600;
}


/* Right: Calendar Section */
.calendar-section {
    flex: 0 0 45%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-background {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.orthodox-calendar {
    border: none;
    border-radius: 0;
    padding: 100px 40px 80px 40px;
    max-width: 480px;
    width: 480px;
    min-height: 880px;
    position: relative;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Calendar background positioned behind content but visible */
.orthodox-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/Calendar-background-new.png');
    background-size: 101% 104%;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 1;
}

/* Calendar content above background */
.orthodox-calendar > * {
    position: relative;
    z-index: 2;
}

/* Position calendar content centered within background image */
.orthodox-calendar .liturgical-info-header,
.orthodox-calendar .saints-section,
.orthodox-calendar .fasting-section,
.orthodox-calendar .scripture-section {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.orthodox-calendar .saints-title,
.orthodox-calendar .scripture-title {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.orthodox-calendar .saint-item {
    width: 93%;
    margin-left: auto;
    margin-right: auto;
}

.orthodox-calendar .calendar-header {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.orthodox-calendar .calendar-navigation {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}


.calendar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.calendar-header h2 {
    font-size: 26px;
    color: #5D4037;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.current-date {
    font-size: 16px;
    color: #5D4037;
    font-weight: 600;
    background: rgba(93, 64, 55, 0.1);
    padding: 6px 14px;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgba(93, 64, 55, 0.2);
}

.saint-of-day {
    margin-bottom: 25px;
    padding: 18px;
    background: rgba(93, 64, 55, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(93, 64, 55, 0.15);
    transition: all 0.3s ease;
}

.saint-of-day:hover {
    background: rgba(93, 64, 55, 0.12);
    border-color: rgba(93, 64, 55, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.saint-title {
    font-size: 14px;
    color: #5D4037;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.saint-name {
    font-size: 20px;
    color: #3E2723;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.saint-description {
    font-size: 14px;
    color: #5D4037;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.9;
}

.liturgical-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fasting-period,
.liturgical-color {
    padding: 12px;
    background: rgba(93, 64, 55, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(93, 64, 55, 0.15);
    transition: all 0.3s ease;
}

.fasting-period:hover,
.liturgical-color:hover {
    background: rgba(93, 64, 55, 0.12);
    border-color: rgba(93, 64, 55, 0.25);
    transform: translateY(-1px);
}

.fasting-label,
.color-label {
    display: block;
    font-size: 12px;
    color: #5D4037;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fasting-status,
.color-value {
    display: block;
    font-size: 14px;
    color: #3E2723;
    font-weight: 600;
}

/* Liturgical color indicator */
.liturgical-color {
    position: relative;
}

.liturgical-color::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    border: 2px solid #5D4037;
}

.liturgical-color[data-color="white"]::before {
    background: white;
}

.liturgical-color[data-color="red"]::before {
    background: #DC143C;
}

.liturgical-color[data-color="green"]::before {
    background: #228B22;
}

.liturgical-color[data-color="purple"]::before {
    background: #800080;
}

.liturgical-color[data-color="gold"]::before {
    background: #FFD700;
}

/* FOOTER STYLES - Copied from blogpage.css */
.footer {
    margin-top: 0;
    background: linear-gradient(135deg, var(--background-color) 0%, #1e2d2b 100%);
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.2);
}

.map {
    width: 100vw;
    height: 350px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.map iframe {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.map-border {
    position: absolute;
    inset: 0px;
    border: 15px solid #97501E;
    box-shadow: 0px 6px 4px 0px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 2;
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 60px 50px;
    margin: 32px auto 0;
    background: rgba(249, 245, 235, 0.02);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
}

.footer-section {
    position: relative;
    min-height: 220px;
    padding: 30px 25px 25px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(249, 245, 235, 0.03);
    border: 1px solid rgba(188, 108, 37, 0.1);
}

.footer-section:hover {
    background: rgba(249, 245, 235, 0.06);
    border-color: rgba(188, 108, 37, 0.2);
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 24px;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 12px;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
    border-radius: 2px;
}

.footer-section:hover h3::before {
    height: 100%;
}

.footer-column-stacked {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
    justify-content: space-between;
}

.footer-column-stacked .footer-section {
    min-height: 170px;
    flex: 1;
}

.footer-section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.66;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 6px;
    font-size: 18px;
    line-height: normal;
    opacity: 0.66;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    border-radius: 4px;
    position: relative;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--primary-color);
    text-decoration-color: var(--text-color);
    transform: translateX(8px);
}

.footer-nav a::before {
    content: '▶';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 14px;
}

.footer-nav a:hover::before {
    opacity: 1;
    left: -15px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-icons img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(30%);
    border-radius: 10px;
    padding: 8px;
    background: rgba(188, 108, 37, 0.1);
}

.social-icons img:hover {
    transform: translateY(-4px) scale(1.05);
    filter: grayscale(0%);
    background: rgba(188, 108, 37, 0.2);
    box-shadow: 0px 8px 20px rgba(188, 108, 37, 0.3);
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    transition: none !important;
}

.logo-section:hover {
    background: none !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.footer-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0px 4px 15px rgba(188, 108, 37, 0.2));
}

.footer-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0px 8px 25px rgba(188, 108, 37, 0.4));
}

.footer-section.logo-section a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.footer-section.logo-section a:hover {
    transform: translateY(-2px);
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 0 40px;
    }
}

@media (max-width: 900px) {
    .main-content {
        padding: 0 30px;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .hero {
        padding-top: 170px;
    }

    .hero-top-title {
        width: 92%;
        margin-bottom: 25px;
        padding: 15px 20px;
        border-radius: 12px;
    }

    .hero-line-1 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .hero-line-2 {
        font-size: 17px;
    }

    .hero-content {
        width: 95%;
        max-width: 900px;
        padding: 30px 20px;
    }

    .hero-text {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 16px;
    }

    .nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: linear-gradient(135deg, var(--background-color) 0%, #1e2d2b 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(188, 108, 37, 0.2);
        margin: 20px 0;
    }

    .header .btn-primary {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        font-size: 20px;
        height: 45px;
        padding: 0 20px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Location button is now hidden when mobile nav is active (controlled in base.css) */
    /* body.menu-open .header .btn-primary {
        opacity: 1;
        pointer-events: auto;
    } */

    .nav-link {
        font-size: 28px;
        text-align: center;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(188, 108, 37, 0.2);
        margin: 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(249, 245, 235, 0.1);
        box-shadow: none;
        border-radius: 8px;
        margin-top: 10px;
        width: 100%;
        max-height: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 15px 20px;
        font-size: 24px;
        border-bottom: 1px solid rgba(188, 108, 37, 0.1);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Dropdown arrow animation */
    .dropdown-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 20px;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .header .nav {
        display: none;
    }

    .header .nav.active {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Content Navigation Bar Mobile */
    .content-nav-bar {
        height: 50px;
        flex-wrap: wrap;
        padding: 0 25px;
    }

    .content-nav-section {
        font-size: 14px;
        padding: 12px 8px;
        min-width: calc(50% - 1px);
        flex: none;
    }

    .content-nav-section:nth-child(1),
    .content-nav-section:nth-child(2) {
        border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    }

    .content-nav-section:nth-child(2),
    .content-nav-section:nth-child(4),
    .content-nav-section:nth-child(6) {
        border-right: none;
    }

    /* Main Content Mobile */
    .main-content {
        padding: 0 25px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        min-height: 560.84px;
        margin-top: 90px;
    }

    .blog-card {
        height: 560.84px;
        min-height: 560.84px;
        max-height: 560.84px;
        box-sizing: border-box;
    }

    .blog-card.card-type-1 .card-image,
    .blog-card.card-type-3 .card-image {
        height: 60%;
        min-height: 234px;
    }

    .blog-card.card-type-1 .card-content,
    .blog-card.card-type-3 .card-content {
        height: 40%;
        min-height: 156px;
        padding: 14px 16px;
    }

    .blog-card.card-type-2 .card-image,
    .blog-card.card-type-4 .card-image {
        height: 35%;
        min-height: 136px;
    }

    .blog-card.card-type-2 .card-content,
    .blog-card.card-type-4 .card-content {
        height: 65%;
        min-height: 254px;
        padding: 18px 16px;
    }

    /* Church Section Mobile */
    .church-section {
        margin: 40px 0 0 0;
        min-height: 600px;
    }
    
    .church-container {
        padding: 0 25px;
    }
    
    /* Stack columns vertically on mobile */
    .church-layout {
        flex-direction: column;
        justify-content: flex-start;
        gap: 50px;
        padding: 60px 25px 40px 25px;
        min-height: auto;
    }
    
    .church-info-section {
        flex: none;
        max-width: 100%;
        order: 1;
        gap: 30px;
    }
    
    .church-header h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .church-subtitle {
        font-size: 16px;
        text-align: center;
    }
    
    .church-description {
        font-size: 16px;
        text-align: center;
    }
    
    .feature-item {
        padding: 15px 0;
    }
    
    .feature-number {
        font-size: 28px;
        min-width: 70px;
    }
    
    .feature-title {
        font-size: 15px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .church-services {
        padding: 16px;
    }
    
    .services-title {
        font-size: 18px;
        text-align: center;
    }
    
    .calendar-section {
        flex: none;
        max-width: 100%;
        justify-content: center;
        order: 2;
    }
    
    .calendar-background {
        max-width: 100%;
        min-height: 400px;
        justify-content: center;
        align-items: flex-start;
    }
    
    .orthodox-calendar {
        max-width: 430px;
        width: 430px;
        min-height: 750px;
        padding: 70px 25px 70px 25px;
    }
    
    .orthodox-calendar::before {
        background-size: 100% 120%;
        background-position: center center;
        z-index: 1;
    }
    
    .orthodox-calendar > * {
        position: relative;
        z-index: 2;
    }
    
    /* Mobile content width adjustments */
    .orthodox-calendar .liturgical-info-header,
    .orthodox-calendar .saints-section,
    .orthodox-calendar .fasting-section,
    .orthodox-calendar .scripture-section {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .orthodox-calendar .saints-title,
    .orthodox-calendar .scripture-title {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .orthodox-calendar .saint-item {
        width: 93%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .orthodox-calendar .calendar-header {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .orthodox-calendar .calendar-navigation {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .calendar-header h2 {
        font-size: 24px;
    }
    
    .current-date {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .saint-name {
        font-size: 20px;
    }
    
    .liturgical-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .footer-column-stacked {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .dropdown-arrow {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-top-title {
        width: 95%;
        margin-bottom: 20px;
        padding: 12px 15px;
        border-radius: 10px;
    }

    .hero-top-title::before,
    .hero-top-title::after {
        width: 70%;
    }

    .hero-line-1 {
        font-size: 12px;
        margin-bottom: 4px;
        letter-spacing: 0.3px;
    }

    .hero-line-2 {
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .hero-content {
        width: 98%;
        max-width: 800px;
        padding: 25px 15px;
    }

    .hero-text {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* Content Navigation Bar Small Mobile */
    .content-nav-bar {
        height: auto;
    }

    .content-nav-section {
        font-size: 12px;
        padding: 10px 6px;
        min-width: calc(33.333% - 1px);
    }

    .content-nav-section:nth-child(1),
    .content-nav-section:nth-child(2),
    .content-nav-section:nth-child(3) {
        border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    }

    .content-nav-section:nth-child(3),
    .content-nav-section:nth-child(6) {
        border-right: none;
    }

    /* Main Content Small Mobile */
    .main-content {
        padding: 0 25px;

    }

    .content-grid {
        grid-template-columns: 1fr;
        min-height: 560.84px;
        margin-top: 0px;
    }

    .blog-card {
        height: 560.84px;
        min-height: 560.84px;
        max-height: 560.84px;
        box-sizing: border-box;
    }

    .blog-card.card-type-1 .card-image,
    .blog-card.card-type-3 .card-image {
        height: 55%;
        min-height: 204px;
    }

    .blog-card.card-type-1 .card-content,
    .blog-card.card-type-3 .card-content {
        height: 45%;
        min-height: 166px;
        padding: 14px 16px;
    }

    .blog-card.card-type-2 .card-image,
    .blog-card.card-type-4 .card-image {
        height: 30%;
        min-height: 111px;
    }

    .blog-card.card-type-2 .card-content,
    .blog-card.card-type-4 .card-content {
        height: 70%;
        min-height: 259px;
        padding: 16px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-excerpt {
        font-size: 0.85rem;
    }

    .card-author {
        padding: 10px 0;
    }

    /* Very Small Mobile */
    .blog-card {
        height: 560.84px;
        min-height: 560.84px;
        max-height: 560.84px;
        box-sizing: border-box;
    }

    .blog-card.card-type-1 .card-image,
    .blog-card.card-type-3 .card-image {
        height: 50%;
        min-height: 175px;
    }

    .blog-card.card-type-1 .card-content,
    .blog-card.card-type-3 .card-content {
        height: 50%;
        min-height: 175px;
        padding: 12px;
    }

    .blog-card.card-type-2 .card-image,
    .blog-card.card-type-4 .card-image {
        height: 25%;
        min-height: 88px;
    }

    .blog-card.card-type-2 .card-content,
    .blog-card.card-type-4 .card-content {
        height: 75%;
        min-height: 262px;
        padding: 14px 12px;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .card-excerpt {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .card-category {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* Church Section Small Mobile */
    .church-section {
        margin: 20px 0 0 0;
        min-height: 500px;
    }
    
    .church-container {
        padding: 0 20px;
    }
    
    .church-layout {
        gap: 40px;
        padding: 40px 20px 30px 20px;
        justify-content: flex-start;
    }
    
    .church-info-section {
        flex: none;
        gap: 25px;
    }
    
    .church-header h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .church-subtitle {
        font-size: 15px;
    }
    
    .church-description {
        font-size: 15px;
    }
    
    .feature-item {
        gap: 20px;
        padding: 12px 0;
    }
    
    .feature-number {
        font-size: 24px;
        min-width: 60px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-desc {
        font-size: 12px;
    }
    
    .church-services {
        padding: 14px;
    }
    
    .services-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .service-item {
        font-size: 14px;
    }
    
    .calendar-background {
        min-height: 350px;
        padding: 0;
    }
    
    .orthodox-calendar {
        max-width: 370px;
        width: 370px;
        min-height: 650px;
        padding: 60px 20px 60px 20px;
    }
    
    .orthodox-calendar::before {
        background-size: 100% 106%;
        background-position: center center;
        z-index: 1;
    }
    
    .orthodox-calendar > * {
        position: relative;
        z-index: 2;
    }
    
    /* Small mobile content width adjustments */
    .orthodox-calendar .liturgical-info-header,
    .orthodox-calendar .saints-section,
    .orthodox-calendar .fasting-section,
    .orthodox-calendar .scripture-section {
        width: 88%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .orthodox-calendar .saints-title,
    .orthodox-calendar .scripture-title {
        width: 88%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .orthodox-calendar .saint-item {
        width: 91%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .orthodox-calendar .calendar-header {
        width: 88%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .orthodox-calendar .calendar-navigation {
        width: 88%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .calendar-section {
        flex: none;
        justify-content: center;
    }
    
    .calendar-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .calendar-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .current-date {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .saint-of-day {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .saint-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .saint-name {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .saint-description {
        font-size: 14px;
    }
    
    .fasting-period,
    .liturgical-color {
        padding: 12px;
    }
    
    .fasting-label,
    .color-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .fasting-status,
    .color-value {
        font-size: 14px;
    }
}

/* Inline styles extracted from index.html */
.logo {
    background-image: url('../assets/new-logo.png');
}

.google-map-iframe {
    border: 0;
}

/* Gallery card styles for index.html - matching galerija.html */
.gallery-card {
    cursor: default;
    transition: none;
}

.gallery-card:hover {
    transform: none !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
}

.gallery-card .card-image,
.gallery-card .gallery-second-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.gallery-card .card-image .card-image-img,
.gallery-card .gallery-second-image .card-image-img {
    transition: transform 0.35s ease, filter 0.35s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card .card-image:hover .card-image-img,
.gallery-card .gallery-second-image:hover .card-image-img {
    transform: scale(1.05);
    filter: brightness(0.95) contrast(1.05);
}

.gallery-second-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative;
    display: block !important;
    background: transparent !important;
}

.gallery-card.single-image .card-image {
    height: 100% !important;
    min-height: 100% !important;
    border-bottom: none !important;
}

/* Gallery cards - uniform height matching galerija.html */
.gallery-card:not(.add-new-post-card) {
    height: 560.84px !important;
    min-height: 560.84px !important;
}

/* Card type variations for gallery cards */
.gallery-card.card-type-1 .card-image,
.gallery-card.card-type-3 .card-image {
    height: 55%;
    min-height: 286px;
}

.gallery-card.card-type-1 .card-content,
.gallery-card.card-type-3 .card-content {
    height: 45%;
    min-height: 154px;
    padding: 18px 16px 9px 16px;
}

.gallery-card.card-type-2 .card-image,
.gallery-card.card-type-4 .card-image {
    height: 45%;
    min-height: 176px;
}

.gallery-card.card-type-2 .card-content,
.gallery-card.card-type-4 .card-content {
    height: 55%;
    min-height: 264px;
    padding: 18px 16px 9px 16px;
}

/* Responsive gallery card styles */
@media (max-width: 900px) {
    .gallery-card:not(.add-new-post-card) {
        height: 560.84px !important;
        min-height: 560.84px !important;
    }

    .gallery-card.card-type-1 .card-image,
    .gallery-card.card-type-2 .card-image,
    .gallery-card.card-type-3 .card-image,
    .gallery-card.card-type-4 .card-image {
        height: 280.42px !important;
        min-height: 280.42px !important;
    }

    .gallery-card.card-type-1 .card-content,
    .gallery-card.card-type-2 .card-content,
    .gallery-card.card-type-3 .card-content,
    .gallery-card.card-type-4 .card-content {
        height: 280.42px !important;
        min-height: 280.42px !important;
    }
}

@media (max-width: 768px) {
    .gallery-card:not(.add-new-post-card) {
        height: 560.84px !important;
        min-height: 560.84px !important;
    }

    .gallery-card.card-type-1 .card-image,
    .gallery-card.card-type-2 .card-image,
    .gallery-card.card-type-3 .card-image,
    .gallery-card.card-type-4 .card-image {
        height: 280.42px !important;
        min-height: 280.42px !important;
    }

    .gallery-card.card-type-1 .card-content,
    .gallery-card.card-type-2 .card-content,
    .gallery-card.card-type-3 .card-content,
    .gallery-card.card-type-4 .card-content {
        height: 280.42px !important;
        min-height: 280.42px !important;
    }
}

@media (max-width: 480px) {
    .gallery-card:not(.add-new-post-card) {
        height: 560.84px !important;
        min-height: 560.84px !important;
    }

    .gallery-card.card-type-1 .card-image,
    .gallery-card.card-type-2 .card-image,
    .gallery-card.card-type-3 .card-image,
    .gallery-card.card-type-4 .card-image {
        height: 280.42px !important;
        min-height: 280.42px !important;
    }

    .gallery-card.card-type-1 .card-content,
    .gallery-card.card-type-2 .card-content,
    .gallery-card.card-type-3 .card-content,
    .gallery-card.card-type-4 .card-content {
        height: 280.42px !important;
        min-height: 280.42px !important;
    }
}

/* Modal styles for gallery images */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20001;
}

.modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 36px;
    line-height: 1;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20002;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Body modal open state */
body.modal-open {
    overflow: hidden;
}

/* While modal is open, disable header interactions */
body.modal-open .header {
    pointer-events: none;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-close {
        top: -50px;
        font-size: 28px;
        padding: 6px 12px;
    }

    .modal-image {
        max-height: calc(95vh - 100px);
    }

    .modal-nav-btn {
        font-size: 20px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .modal-nav {
        padding: 0 10px;
    }

    .modal-nav-btn {
        font-size: 18px;
        padding: 8px 10px;
    }
}