/* Program Category Template Styles */

/* Main program category container */
.program-category {
    background-color: #1e3a5f;
    background-image: url('../images/category.webp');
    background-repeat: repeat;
    background-size: 400px;
    min-height: 100vh;
    padding: 40px 0;
}

.program-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cloud decoration */
.program-cloud {
    width: 300px;
    height: 94px;
    background-image: url('../images/oblak.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    position: relative;
}

/* Main title */
.program-main-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Post content box - now orange to match design */
.program-post-content {
    color: white;
    max-width: 900px;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 400;
}

.program-post-content p {
    margin-bottom: 1rem;
    color: white;
}

.program-post-content p:last-child {
    margin-bottom: 0;
}

.program-post-content h1,
.program-post-content h2,
.program-post-content h3 {
    color: #E74C3C;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.program-post-content ul,
.program-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.program-post-content a {
    color: white;
    text-decoration: underline;
}

.program-post-content a:hover {
    color: #E74C3C;
}

/* Main description box */
.program-description {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.6;
    color: white;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Date box (orange like others) */
.program-date-box {
    background-color: #F7931E;
    color: white;
    text-align: center;
    padding: 40px 25px;
}

.program-date {
    font-size: 5rem;
    font-weight: 700;
    color: #E74C3C;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.program-date-details {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Box titles */
.program-box-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #E74C3C;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Box content */
.program-box-content {
    color: white;
    font-size: 1rem;
    line-height: 2;
    text-align: center;
    font-weight: 400;
}

/* Grid layout */
.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.program-left-column,
.program-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Schedule boxes */
.program-schedule .program-box-content {
    text-align: left;
    font-size: 0.95rem;
}

/* Category boxes */
.program-category-box .program-box-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 968px) {
    .program-main-title {
        font-size: 2.5rem;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .program-date {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .program-main-title {
        font-size: 2rem;
    }
    
    .program-post-content {
        font-size: 0.95rem;
        padding: 20px;
    }
    
    .program-description {
        font-size: 0.95rem;
        padding: 20px;
    }
    
    .program-date {
        font-size: 3.5rem;
    }
    
    .program-date-details {
        font-size: 0.95rem;
    }
    
    .program-box {
        padding: 20px;
    }
    
    .program-box-title {
        font-size: 1.1rem;
    }
    
    .program-box-content {
        font-size: 0.85rem;
    }
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.2rem;
}

/* ====================================
   MASONRY LAYOUT STYLES
   ==================================== */

/* Category header */
.program-header {
    text-align: center;
    margin-bottom: 50px;
}

.program-category-title {
    color: var(--secondary-color);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.program-category-description {
    color: white;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: #F7931E;
    padding: 25px;
    border-radius: 60px;
}

/* Masonry grid - shows full program posters in masonry layout */
.program-masonry-grid {
    column-count: 2;
    column-gap: 40px;
    margin-bottom: 50px;
}

/* Masonry item - full program poster */
.program-masonry-item {
    background-color: #F7931E;
    border-radius: 60px;
    padding: 25px;
    margin-bottom: 40px;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
}

/* Category event display at top of each masonry post */
.program-category-event-display {
    background: #fff;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
}

.program-category-event-display .program-date {
    margin-bottom: 10px;
    color:#E74C3C;
}

.program-category-event-display .program-date-details {
    line-height: 1.8;
    color:#E74C3C;
}

/* Smaller cloud for grid items */
.program-cloud-small {
    width: 60px;
    height: 60px;
    background-image: url('../images/oblak.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Smaller title for grid items */
.program-title-small {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Smaller date for grid items */
.program-date-small {
    font-size: 7.5rem;
}
.program-date-month {
    font-size: 1.5rem;
}

.program-date-details-small {
    font-size: 0.9rem;
}

/* Compact grid for masonry items */
.program-grid-compact {
    gap: 15px;
}

.program-grid-compact .program-box {
    margin-bottom: 15px;
    padding: 20px;
}

.program-grid-compact .program-box-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.program-grid-compact .program-box-content {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #F7931E;
    color: white;
    transform: translateY(-2px);
}

.pagination .dots {
    padding: 10px;
    color: white;
}

/* Responsive masonry */
@media (min-width: 1600px) {
    .program-masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 1200px) {
    .program-masonry-grid {
        column-gap: 30px;
    }
    
    .program-masonry-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .program-category-title {
        font-size: 2.5rem;
    }
    
    .program-masonry-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .program-title-small {
        font-size: 1.8rem;
    }
    
    .program-date-small {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .program-category-title {
        font-size: 2rem;
    }
    
    .program-title-small {
        font-size: 1.5rem;
    }
    
    .program-date-small {
        font-size: 2.5rem;
    }
    
    .program-grid-compact .program-box {
        padding: 15px;
    }
}

