/* Institutional Pages - Frontend Styles */

.institutional-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.featured-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.featured-image {
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.page-content h1, 
.page-content h2, 
.page-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.2rem;
}

/* Block Styles */
.page-blocks {
    margin-top: 2rem;
}

.block {
    margin-bottom: 2.5rem;
}

.block-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

.block-wysiwyg {
    font-size: 1.1rem;
    line-height: 1.7;
}

.block-wysiwyg h1,
.block-wysiwyg h2,
.block-wysiwyg h3,
.block-wysiwyg h4,
.block-wysiwyg h5,
.block-wysiwyg h6 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.block-wysiwyg p {
    margin-bottom: 1.2rem;
}

.block-wysiwyg ul,
.block-wysiwyg ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.block-wysiwyg a {
    color: #007bff;
    text-decoration: underline;
}

.block-wysiwyg a:hover {
    color: #0056b3;
    text-decoration: none;
}

.block-wysiwyg blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    font-style: italic;
}

.block-wysiwyg strong,
.block-wysiwyg b {
    font-weight: 600;
}

.block-wysiwyg table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.block-wysiwyg table th,
.block-wysiwyg table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.block-wysiwyg table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.block-image {
    text-align: center;
}

.block-image img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.block-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    font-style: italic;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.block-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.block-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.block-hero > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.block-columns .row {
    --bs-gutter-x: 2rem;
}

.block-columns .col-md-6,
.block-columns .col-md-4,
.block-columns .col-md-3 {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
}

.block-gallery .row {
    --bs-gutter-x: 1rem;
}

.block-gallery img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.block-gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .block-hero {
        padding: 40px 15px !important;
    }
    
    .block-columns .col-md-6,
    .block-columns .col-md-4,
    .block-columns .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .featured-image {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .page-content {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .block-hero {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd;
    }
    
    .block-image img,
    .block-gallery img {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .featured-image {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}