html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*Custom css*/
.hero-container {
    position: relative;
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%; /* center vertically */
    left: 50%; /* center horizontally */
    transform: translate(-50%, -50%); /* perfect centering */
    color: white; /* text color for contrast */
    font-size: 18px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* better readability */
}

.logo {
    width: 50px;  
    height: 50px;
    object-fit: contain; /* keeps aspect ratio */
    margin-right: 8px; /* space between icon and text */
    vertical-align: middle;
}

.aboutus {
    text-align:justify;
    padding:5px 5px 5px 5px;
}


/* Default (Large screens) */
.nav-font-size a {
    font-size: 1rem; /* 16px */
}

/* Medium screens (Tablets) */
@media (max-width: 992px) {
    .nav-font-size a {
        font-size: 0.95rem; /* ~15px */
    }
}

/* Small screens (Mobiles) */
@media (max-width: 576px) {
    .nav-font-size a {
        font-size: 0.85rem; /* ~14px */
    }
}

/* === Container Setup === */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center; /* center the entire grid */
    justify-items: center; /* center cards inside cells */
    margin-top: 20px;
    padding: 20px;
    /*border-radius: 15px;*/
    /*border: 2px solid #4a90e2;*/
    background: #ffffff;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);*/
}

/* === Individual Card === */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 260px;
}

    .product-card:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    /* === Product Image === */
    .product-card img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
        border-radius: 15px;
        transition: transform 0.6s ease;
    }

    .product-card:hover img {
        transform: scale(1.1);
        filter: brightness(70%);
    }

/* === Overlay (Hidden by Default) === */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    text-align: left;
    padding: 20px;
}

/* === Show Overlay on Hover === */
.product-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* === Text Inside Overlay === */
.overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ddd;
}

.edit-text {
    position: absolute;
    bottom: 8px;
    left: 15px;
    font-size: 13px;
    color: #f9f9f9;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .edit-text:hover {
        color: #dcdcdc;
        text-decoration: underline;
    }

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    max-width: 420px;
    margin: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Segoe UI", sans-serif;
}

/* Style each contact row */
.db-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

    /* Make icons uniform width so text aligns properly */
    .db-contact p::first-letter {
        font-size: 1.1rem;
        width: 25px;
    }

/* Style the social links */
.db-contact a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 6px;
}

    .db-contact a:hover {
        text-decoration: underline;
    }

/* If vertical stacked layout needed on small screen */
@media (max-width: 480px) {
    .contact-card {
        padding: 18px;
    }

    .db-contact p {
        font-size: 0.9rem;
    }

    .db-contact a {
        display: inline-block;
        margin: 4px 4px;
    }
}
