/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    scroll-behavior: smooth;
    padding-top: 90px; /* Accounts for fixed navbar */
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-background.jpg'), #1a1a1a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    opacity: 0.3;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    margin-bottom: 20px; /* Spacing for seven-card layout */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a58ca;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    padding: 10px 20px;
}

/* Accessibility */
.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.visually-hidden-focusable:focus {
    width: auto;
    height: auto;
    margin: 10px;
    clip: auto;
    background: #fff;
    color: #000;
    padding: 10px;
    z-index: 1000;
}

/* Footer Alignment */
.footer-links {
    padding-left: 0;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0d6efd;
}

.footer-links .bi {
    margin-right: 0px; /* Consistent spacing for icons */
    font-size: 1.1rem;
}

footer .row .col-md-3:nth-child(4) .footer-links a:not(:has(.bi)) {
    padding-left: 0px; /* Align non-icon links with icon-based links */
}

/* Table Responsiveness */
.table-responsive {
    overflow-x: auto;
}

.table-dark td,
.table-dark th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px; /* Increased for longer service names */
}

@media (max-width: 767px) {
    .table-dark td,
    .table-dark th {
        font-size: 0.8rem; /* Slightly smaller for mobile */
        max-width: 180px;
    }
}

/* Animate.css Support */
.animate__animated {
    animation-duration: 0.8s;
}

/* Media Queries */
@media (max-width: 767.98px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-background-mobile.jpg'), #1a1a1a;
        background-attachment: scroll;
    }

    .sticky-cta {
        bottom: 10px;
        right: 10px;
        font-size: 14px;
        padding: 8px 16px;
    }

    .card {
        margin-bottom: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row.g-4 .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%; /* Two cards per row for seven-card layout */
    }
}

/* Audio Player */
.audio-player {
    max-width: 500px;
    width: 100%;
}

@media (max-width: 767px) {
    .audio-player {
        max-width: 90%;
    }
    .container.my-5 {
        padding: 15px;
    }
}

/* Enforce HTTPS for Assets */
img[src^="http://"], link[href^="http://"] {
    content: url(https://$0); /* Prevent mixed content warnings */
}