﻿/*=======================
CSS
==========================*/
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #007BFF, #00BFA6);
    
    padding: 0;
    min-height: 100vh;
    justify-content: center;
    align-items: center;



    margin: 50px 0 0 0; /* Enough space for fixed navbar */
    overflow: auto; 
    display: flex;
}

.body-content {
    width: 100%;
    min-height: 500px;
    background-color: cornsilk;
    background-image: url("../images/background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 0 !important;
    overflow: auto
}

.main_page_img_display {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: row
}

.box {
    height: 220px;
    position: relative;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .box .text-overlay {
        background: rgba(0, 0, 0, 0.3);
        padding: 15px 20px;
        border-radius: 10px;
        width: 90%;
        color: white;
    }

.box-heading {
    height: 50px;
    background-color: #00A8D0
}

    .box-heading span {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 2.0rem;
        font-weight: bold;
        color: red;
    }

.my-box {
    height: 350px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

    .my-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease-in-out;
        mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    }

    .my-box:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 25px rgba(255, 255, 255, 0.4);
        z-index: 10;
    }

        .my-box:hover img {
            transform: scale(1.1);
        }

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.4s ease-in-out;
}

.my-box:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 1.7rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.my-box:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop borders */
@media (min-width: 768px) {
    .col-md-3:not(:first-child) .box {
        border-left: 4px solid #000000;
    }

    .col-md-3 .box-heading {
        border-bottom: 4px solid #042930;
    }
}

/* ============================
   MOBILE HEADINGS
============================= */
/* MOBILE HEADING (hidden by default) */
.mobile-heading {
    display: none;
    height: 50px;
    background: #00ff90;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

    .mobile-heading span {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.7rem;
        font-weight: bold;
        color: red;
    }


/* Show above each box in mobile */
@media (max-width: 767px) {
    .mobile-heading {
        display: flex;
        margin-bottom: 5px;
    }
}

/* Hide desktop headings in mobile */
@media (max-width: 767px) {
    .box-heading {
        display: none !important;
    }
}