/* UALIGN Website - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container and Layout */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wp-block-group {
    width: 100%;
}

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

.has-global-padding {
    padding-left: 20px;
    padding-right: 20px;
}

.is-layout-constrained {
    max-width: 800px;
    margin: 0 auto;
}

.is-layout-flex {
    display: flex;
    align-items: center;
}

.is-content-justification-space-between {
    justify-content: space-between;
}

.is-content-justification-right {
    justify-content: flex-end;
}

/* Header Styles */
header {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.wp-block-site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.wp-block-site-title a {
    text-decoration: none;
    color: #333;
}

.wp-block-site-title a:hover {
    color: #007cba;
}

/* Navigation Styles */
.wp-block-navigation {
    position: relative;
}

.wp-block-navigation__responsive-container-open {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-navigation__responsive-container-open svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.wp-block-navigation__responsive-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-block-navigation__responsive-container.is-menu-open {
    display: flex;
    opacity: 1;
}

.wp-block-navigation__responsive-close {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-navigation__responsive-dialog {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.wp-block-navigation__responsive-container-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.wp-block-navigation__responsive-container-close svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.wp-block-navigation__container {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.wp-block-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-pages-list__item {
    margin-bottom: 15px;
}

.wp-block-pages-list__item__link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.wp-block-pages-list__item__link:hover,
.wp-block-pages-list__item.current-menu-item .wp-block-pages-list__item__link {
    color: #007cba;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

.wp-block-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.has-text-align-center {
    text-align: center;
}

/* Spacer */
.wp-block-spacer {
    clear: both;
}

/* Content Styles */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #333;
}

.entry-content strong {
    font-weight: 600;
}

.entry-content a {
    color: #007cba;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

/* Image Styles */
.wp-block-image {
    margin: 30px 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

.is-content-justification-right {
    justify-content: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-block-post-title {
        font-size: 2rem;
    }
    
    .alignwide {
        padding: 0 15px;
    }
    
    .has-global-padding {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .wp-block-navigation__responsive-dialog {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .wp-block-post-title {
        font-size: 1.8rem;
    }
    
    header {
        padding: 15px 0;
    }
    
    main {
        padding: 30px 0;
    }
}

/* Utility Classes */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Animation for smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

