/*
Theme Name: Georgios
Author: YURA (for Saso Fajon)
Description: Minimalistic theme for MePZ Georgios.
Version: 1.0
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2c5282;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #1a365d;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #222;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

.section-banner {
    background-color: #f7f7f7;
    border-left: 5px solid #333;
    padding: 12px 20px;
    margin-top: 8rem;
    margin-bottom: 3rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #222;
}

.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 0;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-header-flex .page-title {
    margin-bottom: 0;
}

.page-header-flex .page-nav-anchors {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .page-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}



.logo-hero {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.main-nav {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 20px 20px;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    text-align: center;
    position: relative;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 2px;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    width: 25px;
    height: 2px;
    background: #333;
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    #primary-menu-container {
        display: none;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    #primary-menu-container.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: none;
    }

    .main-nav ul ul {
        position: static;
        display: block;
        transform: none;
        background: #fdfdfd;
        border: none;
        min-width: 100%;
        padding-left: 20px;
    }
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Reduced gap to accommodate buttons */
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    min-width: 150px;
    z-index: 100;
}

.main-nav li:hover > ul {
    display: block;
}

.main-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    color: #444;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Active/Current page styling */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

/* Hero photo — container width */
.wp-block-image.georgios-hero-photo,
figure.georgios-hero-photo {
    display: block !important;
    margin: 0 0 3rem 0 !important;
}

.wp-block-image.georgios-hero-photo a,
figure.georgios-hero-photo a {
    display: block !important;
    width: 100% !important;
}

.wp-block-image.georgios-hero-photo img,
figure.georgios-hero-photo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.content-area {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
}

/* Normalize ALL paragraphs — including WP block-generated ones */
.page-content p,
.page-content .wp-block-paragraph,
.page-content .wp-block-group p,
.page-content [style] {
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #333 !important;
    text-align: justify !important;
    margin-bottom: 1.8rem !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
}

html {
    scroll-behavior: smooth;
}

.page-nav-anchors {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.anchor-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.anchor-link:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

.back-to-top-wrapper {
    text-align: right;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.back-to-top {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: #0056b3;
    text-decoration: none;
}

.page-content ul {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    padding-left: 20px;
}

.page-content ul li {
    margin-bottom: 0.5rem;
}

.page-content ul li a {
    color: #444;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-content ul li a:hover {
    color: #000;
}

/* Strip WP block group wrappers of any padding/margin */
.page-content .wp-block-group,
.page-content .wp-block-group__inner-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Language separator — clean thin rule */
.page-content .wp-block-separator,
.page-content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 1.2rem 0;
    width: 100%;
}

/* Language flag label */
.page-content .lang-flag {
    font-size: 2rem !important;
    margin-bottom: 0.4rem !important;
    margin-top: 0 !important;
    text-align: left !important;
    line-height: 1 !important;
}

/* Page title */
.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

hr.wp-block-separator.is-style-wide {
    border: none;
    border-bottom: 1px solid #f2f2f2;
    opacity: 1;
}

.page-content {
    line-height: 1.8;
}

/* Blog listing */
.post-list {
    margin-top: 1rem;
}

.post-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
}

.post-item .post-title {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.3rem;
    border: none;
    padding: 0;
}

.post-item .post-title a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s ease;
}

.post-item .post-title a:hover {
    color: #555;
}

.post-meta {
    font-size: 13px;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.post-excerpt p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.read-more:hover {
    color: #999;
    border-color: #999;
}

.post-pagination {
    margin-top: 2rem;
    text-align: center;
}

.drive-embed {
    margin-top: 0;
    margin-bottom: 3rem;
}

.social-link-block {
    margin-bottom: 2rem;
}


.whatsapp-link:hover {
    background-color: #1ebe5d;
    transform: translateY(-1px);
}

/* -----------------------------------------
   Pesmi (Songs) Hub Styling
----------------------------------------- */

/* Collections Accordion */
.pesem-collection {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.collection-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.collection-title::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari */
}

.collection-title:hover {
    background-color: #e5e5e5;
}

.pesem-collection[open] .collection-icon::before {
    content: '−'; /* Proper minus sign */
}

.collection-icon {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    color: #888;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.collection-icon::before {
    content: '+';
}

.pesem-collection[open] .collection-title {
    border-bottom: 1px solid #e0e0e0;
}

/* Archive List */
.pesmi-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.pesem-item {
    background-color: #f7f7f7;
    border-left: 4px solid #0056b3; /* Vibrant blue border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pesem-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pesem-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.pesem-title {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

.pesem-arrow {
    font-size: 1.2rem;
    color: #0056b3;
    transition: transform 0.2s ease;
}

.pesem-item:hover .pesem-arrow {
    transform: translateX(5px);
}

/* Single View */
.pesem-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.back-link:hover {
    color: #0056b3;
    border-color: #0056b3;
}

.pesem-pdf {
    margin-bottom: 3rem;
    border: 1px solid #ddd;
    background: #fafafa;
}

.pesem-audio-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.audio-track {
    background: #f7f7f7;
    padding: 1.5rem;
    border-left: 4px solid #0056b3;
}

.audio-track h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    text-transform: uppercase;
}

.audio-track audio {
    width: 100%;
}

/* Google Calendar embed */
.calendar-embed {
    width: 100%;
    margin-top: 1rem;
}

.calendar-embed iframe {
    width: 100%;
    height: 680px;
    border: none;
}

@media (max-width: 768px) {
    .calendar-embed iframe {
        height: 480px;
    }
}

footer {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f2f2f2;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}


.social-join-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.social-join-link:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    color: #fff;
    text-decoration: none;
}

.social-join-link svg {
    width: 14px;
    height: 14px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-label {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-social-link:hover {
    color: #444;
}

.footer-social-link:hover {
    color: #1877f2; /* Facebook blue */
}

.footer-social-link[href^="mailto"]:hover {
    color: #c0392b; /* Gmail red */
}

/* -----------------------------------------
   Gallery & Lightbox
----------------------------------------- */
.gallery-section {
    margin-bottom: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

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

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    user-select: none;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

#lightbox-caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    text-decoration: none;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }


/* Partner Logos */
.partner-link img:hover {
    transform: scale(1.05);
}

.partner-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.partner-row:hover img {
    transform: scale(1.1);
}

.partner-row:hover span {
    color: #0056b3;
}
