/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main Header Styles */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e1e5e9;
    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Left Logo Container */
.logo-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-left img {
    height: auto;
    max-height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-left img:hover {
    transform: scale(1.05);
}

/* Page Title Styles */
.page-title {
    flex-grow: 1;
    margin-left: 2rem;
    margin-right: 2rem;
}

.page-title h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Logo Container */
.logo-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-right img {
    height: auto;
    max-height: 60px; /* Enlarged to match left logo visual size */
    width: auto;
    transition: transform 0.2s ease;
}

.logo-right img:hover {
    transform: scale(1.05);
}

/* Main Content Styles */
.main-content {
    padding: 0;
    margin: 0;
    width: 100%;
    height: calc(100vh - 120px); /* Full height minus header and footer */
}

.content-container {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #ffffff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

/* Iframe container that fills full space without double scrolling */
.iframe-container {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    flex: 1;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    overflow: hidden;
}

/* Footer Styles */
.main-footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 1rem 2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9rem;
    margin: 0;
    color: #ecf0f1;
}

.content-container h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-container p {
    margin-bottom: 1rem;
    color: #555;
}

.content-container ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-container li {
    margin-bottom: 0.5rem;
    color: #555;
}

.content-container ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-container ol li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .main-header {
        padding: 0.8rem 1.5rem;
        min-height: 60px;
    }
    
    .page-title {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .logo-left img {
        max-height: 35px;
    }
    
    .logo-right img {
        max-height: 50px;
    }
    
    .main-content {
        padding: 0;
        height: calc(100vh - 110px); /* Adjust for smaller header and footer */
    }
    
    .main-footer {
        padding: 0.8rem 1.5rem;
    }
    
    .content-container {
        padding: 0;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    .main-header {
        padding: 0.6rem 1rem;
        min-height: 55px;
        flex-wrap: nowrap;
    }
    
    .page-title {
        margin-left: 1rem;
        margin-right: 1rem;
        min-width: 0;
    }
    
    .page-title h1 {
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    .logo-left img {
        max-height: 30px;
    }
    
    .logo-right img {
        max-height: 40px;
    }
    
    .main-content {
        padding: 0;
        height: calc(100vh - 105px); /* Adjust for mobile header and footer */
    }
    
    .main-footer {
        padding: 0.6rem 1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .content-container {
        padding: 0;
    }
}

/* Extra Small Mobile Styles */
@media screen and (max-width: 320px) {
    .main-header {
        padding: 0.5rem 0.8rem;
        min-height: 50px;
    }
    
    .page-title {
        margin-left: 0.8rem;
        margin-right: 0.8rem;
    }
    
    .page-title h1 {
        font-size: 1rem;
    }
    
    .logo-left img {
        max-height: 25px;
    }
    
    .logo-right img {
        max-height: 35px;
    }
    
    .main-content {
        height: calc(100vh - 100px); /* Adjust for extra small header and footer */
    }
    
    .main-footer {
        padding: 0.5rem 0.8rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
    

}

/* High DPI Display Adjustments */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .main-header {
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    }
}

/* Focus and Accessibility */
.logo-left img:focus,
.logo-right img:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .main-header {
        box-shadow: none;
        border-bottom: 2px solid #333;
        background-color: transparent;
    }
    
    .logo-left img,
    .logo-right img {
        max-height: 30px;
    }
    
    .page-title h1 {
        color: #000;
    }
}
