/* Block Styles */
#block-top-a {
    position: relative;
    height: 320px;
    background: url('../images/blackboard_img.jpg') center top no-repeat;
    background-color: #2b2b2b;
}

/* Title spacing adjustment */
#content .title {
    margin-top: 5px;  /* Reduced from default */
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
    color: #777 !important;  /* Grey color, important to override Swiper defaults */
}

/* Footer Height Override */
#block-footer {
    padding: 5px 0;  /* Reduced from default padding */
}

#footer {
    line-height: 20px;  /* Tighter line height */
}

#block-top-a .top-a-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 1;
}

#block-top-a .wrapper {
    position: relative;
    z-index: 2;
    height: 320px;
}

/* Image Caption Styles */
.image-caption {
    margin-bottom: 20px;
    padding: 5px;
    background: #f7f7f7;
    border: 1px solid #ddd;
}

.image-caption img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.caption-text {
    text-align: center;
    padding: 5px 0;
    margin: 0;
    font-style: italic;
    color: #666;
}

/* Check List Style */
.checklist {
    list-style: none;
    padding-left: 25px;
}

.checklist li {
    position: relative;
    margin-bottom: 10px;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: -25px;
    color: #48b;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.case-study-item {
    display: flex;
    flex-direction: column;
}

.case-study-item img {
    width: 100%;
    height: auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 20px 0;
}

.news-item {
    display: flex;
    flex-direction: column;
}

.news-item .image-caption {
    background: none;
    border: none;
    padding: 0;
}

.news-item .news-text {
    padding: 10px 0;
    color: #646464;
    margin: 0;
    font-style: normal;
}

/* Center Image */
.center-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
/* ------------------------------------------------------------------ */
/* Responsive overrides (added 2026): the theme is a fixed 980px       */
/* desktop layout; these rules make it usable on phones and tablets.   */
/* !important is needed where page-level <style> blocks set fixed      */
/* heights/widths after this stylesheet is loaded.                     */
/* ------------------------------------------------------------------ */
@media (max-width: 1023px) {
    body {
        min-width: 0;
    }
    .wrapper,
    #maininner {
        width: auto;
        max-width: 100%;
    }
    img,
    video {
        max-width: 100%;
        height: auto;
    }
    #banner {
        display: none;
    }

    /* Header: logo on top, menu below it in a wrapping row */
    #header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 10px;
    }
    #logo {
        float: none;
    }
    #menu {
        position: static;
        float: none;
        margin-top: 10px;
        text-align: center;
    }
    #menu ul.menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* Hover dropdowns don't work on touch; parent links lead to the
       same content, so hide the dropdown panels on small screens. */
    #menu .dropdown {
        display: none !important;
    }
}

@media (max-width: 700px) {
    /* Home page slider: stack image above text */
    .swiper {
        height: auto !important;
    }
    .swiper-slide {
        flex-direction: column !important;
        height: auto !important;
        padding: 0 30px;
    }
    .slide-image,
    .slide-content {
        width: 100% !important;
        padding: 0 !important;
        justify-content: center !important;
    }
    .slide-content {
        margin-top: 15px;
        padding-bottom: 30px !important;
    }

    /* TecMod slider: release the fixed height */
    .tecmod-slider {
        height: auto !important;
        padding: 0 35px !important;
    }
    .tecmod-slider .swiper-slide {
        padding: 0 !important;
    }

    /* Blackboard banner (home page only) is oversized on phones;
       inner pages set their own 30px bar which stays untouched. */
    body.home #block-top-a,
    body.home #block-top-a .wrapper {
        height: 200px !important;
        background-size: cover;
    }
}
