/*
* THEDI - Tanzania Health Environment and Development Initiatives
* Responsive Stylesheet
*/

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 32px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px 0;
        --section-padding-sm: 40px 0;
    }
    
    .navbar-nav {
        margin: 15px 0;
    }
    
    .header-cta {
        margin-top: 15px;
        text-align: center;
    }
    
    .header-cta .btn {
        margin-left: 0;
        display: block;
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
    
    /* Hero Section */
    .hero-slide {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 50px 0;
        --section-padding-sm: 30px 0;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .contact-info,
    .top-bar .top-actions {
        justify-content: center !important;
    }
    
    .top-bar .contact-info {
        margin-bottom: 10px;
    }
    
    .top-bar .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 10px;
        text-align: center !important;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
    
    #back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Hero Section */
    .hero-slide {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
    }
    
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: none;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .site-name {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .footer-logo h4 {
        font-size: 16px;
    }
    
    .widget-title {
        font-size: 18px;
    }
    
    /* Hero Section */
    .hero-slide {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
}
