.main-page-title {
    font-family: 'Montserrat', sans-serif;
    color: #212684;
    margin: 15px auto 5px;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 90%;
    padding: 10px 0;
    border-bottom: 2px solid #009688;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: #212684;
    margin: 15px 0 10px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 5px 0;
    border-left: 4px solid #009688;
    padding-left: 10px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .main-page-title {
        font-size: 1.3rem;
        margin: 8px auto 5px;
        max-width: 95%;
        padding: 8px 0;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin: 8px 0 6px;
        padding: 4px 0;
        padding-left: 8px;
    }
    
    /* Adjust container padding for small screens */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .main-page-title {
        font-size: 1.4rem;
        margin: 10px auto 5px;
        max-width: 90%;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin: 10px 0 8px;
    }
    
    /* Improve readability on tablets */
    .ticker-tape-scroll {
        max-height: 60px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .main-page-title {
        font-size: 1.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .main-page-title {
        font-size: 2rem;
        max-width: 80%;
    }
}
