﻿/* For data Grid */

.grid-header {
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 8px;
    border-bottom: 2px solid #dee2e6;
}

.grid-cell {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

/* ✅ Correct: no @ here */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-header {
        display: none;
    }
}



/* Make pager links look like Bootstrap buttons */
.pagination .page-item > a,
.pagination .page-item > span {
    display: inline-block;
    padding: .375rem .75rem;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    background-color: transparent;
    border-radius: .375rem;
    text-decoration: none;
    line-height: 1.5;
}

/* spacing between items */
.pagination .page-item {
    margin: 0 .125rem;
}

    /* active page styling */
    .pagination .page-item.active > a,
    .pagination .page-item.active > span {
        color: #fff;
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

    /* disabled previous/next */
    .pagination .page-item.disabled > a,
    .pagination .page-item.disabled > span {
        color: #6c757d;
        border-color: #6c757d;
        pointer-events: none;
        background-color: transparent;
    }

    /* hover state */
    .pagination .page-item > a:hover {
        color: #fff;
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

/* Animation + Theme Styling */

/* Announcement Bar */
/* Promo Bar - Matched to Carousel Theme */
body .promo-bar {
    background: linear-gradient(90deg, #000428, #004e92) !important;
    color: #fff !important;
    border-left: 6px solid #ffc107 !important;
    border-radius: 6px;
    animation: slideDown 0.8s ease-out !important;
}

/* Button */
body .promo-btn {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 600;
}

    .promo-btn:hover {
        background-color: #e0a800;
        border-color: #d39e00;
        color: #000;
    }

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body .promo-bar {
    animation: slideDown 0.8s ease-out !important;
}

/* ---------------------------------------------------
   FIX: Prevent card clipping in horizontal scroll
--------------------------------------------------- */

/* The scroll container must NOT clip vertical content */
.auto-scroll-container {
    overflow-x: auto;
    overflow-y: visible !important;
    white-space: nowrap;
    scroll-behavior: smooth;
}

    /* Hide scrollbar (optional) */
    .auto-scroll-container::-webkit-scrollbar {
        display: none;
    }

/* ---------------------------------------------------
   SERVICE CARD (Homepage Only)
   Equal Height + Wrapping + Hover + Auto-scroll Safe
--------------------------------------------------- */

.servicecard {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px; /* Adjust if needed */
    width: 250px;
    white-space: normal !important;
    overflow: visible !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover lift */
    .servicecard:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    }

    /* Image */
    .servicecard .card-img-top {
        width: 100%;
        height: 160px;
        object-fit: cover;
        flex-shrink: 0;
        transition: transform 0.4s ease;
    }

    /* Image zoom on hover */
    .servicecard:hover .card-img-top {
        transform: scale(1.03);
    }

    /* Body grows naturally */
    .servicecard .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

/* Text wrapping */
.text-justify {
    text-align: justify;
    white-space: normal !important;
}

/* Footer stays at bottom */
.servicecard .card-footer {
    margin-top: auto;
    background: transparent;
}
.servicecard-footer {
    margin-top: auto;
    background: transparent;
}

/* ---------------------------------------------------
   AUTO-SCROLL CONTAINER FIX
--------------------------------------------------- */

.auto-scroll-container {
    overflow-x: auto;
    overflow-y: visible !important;
    white-space: nowrap;
    scroll-behavior: smooth;
}

    .auto-scroll-container::-webkit-scrollbar {
        display: none;
    }

/*[data-aos] {
    overflow: visible !important;
}*/

