/* Core Layout and Header */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-content {
    padding-top: 120px;
}

.main-content-wrapper {
    flex: 1 0 auto;
    padding-top: 120px;
}

/* Top Bar & Navigation */
.top-bar {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.top-bar .social-icons a {
    color: #6c757d;
    transition: color 0.3s ease;
}

.top-bar .social-icons a:hover {
    color: #007bff;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

#notificationDropdown {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-width: 200px;
}

#notificationButton:hover + #notificationDropdown,
#notificationDropdown:hover {
    display: block;
}

.notification-badge,
.badge {
    color: white;
    background-color: red;
    font-size: 0.7em;
    padding: .3em .6em;
    line-height: 1;
    border-radius: .25rem;
}


/* Sections and General Content */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-section {
    padding: 100px 0;
    color: #fff;
    background-size: cover;
    text-align: center;
}

.about-section,
.services-section,
.contact-section {
    padding: 60px 0;
}

.section-title {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.service-box {
    margin: 20px 0;
}

/* Images */
.about-company-img {
    max-width: 90%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.why-choose-us-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.why-choose-us-img {
    max-width: 80%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

section img.rounded {
    border-radius: 0.75rem !important;
}

/* Carousel Specific Styles (#serviceCarousel) */
#serviceCarousel .carousel-inner .carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

#serviceCarousel .carousel-caption {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 0.5rem;
    text-align: center;
}

#serviceCarousel .carousel-caption h5 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
}

#serviceCarousel .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #f8f9fa;
}

#serviceCarousel .carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

#serviceCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 0;
    margin: 0 5px;
    opacity: 0.7;
    transition: background-color 0.6s ease, transform 0.3s ease;
}

#serviceCarousel .carousel-indicators .active {
    opacity: 1;
    background-color: #007bff;
    transform: scale(1.2);
}

/* Multi-item Carousel Custom Styles */
.carousel-multi-item-wrapper .carousel-inner {
    padding: 1em;
}

.carousel-multi-item-wrapper .card {
    margin: 0 0.5em;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel-multi-item-wrapper .carousel-control-prev,
.carousel-multi-item-wrapper .carousel-control-next {
    width: 5%;
    background-color: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
}

.carousel-multi-item-wrapper .carousel-inner .carousel-item-next,
.carousel-multi-item-wrapper .carousel-inner .carousel-item-prev,
.carousel-multi-item-wrapper .carousel-inner .carousel-item.active {
    display: flex;
}

.carousel-multi-item-wrapper .carousel-inner .carousel-item-next.carousel-item-left,
.carousel-multi-item-wrapper .carousel-inner .carousel-item-prev.carousel-item-right {
    transform: translateX(0);
}

/* Section with Background Image */
.section-with-bg {
    background-image: url('uploads/images/section_background_texture.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.section-with-bg > *,
.section-with-bg .container {
    position: relative;
    z-index: 2;
}

.section-with-bg .card {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
}

/* Horizontal Scrolling Services */
.services-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.service-card-wrapper {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
    scroll-snap-align: start;
}

/* Blinking Icon */
.blinking-container {
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border: 2px solid rgba(60, 5, 188, 0.741);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
}

.blinking {
    animation: blink 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
    color: #28a745;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* Social Icons */
.social-icons a {
    color: #28a745;
    transition: color 0.3s;
}

/* Footer Styles */
.footer {
    padding: 20px;
    color: #fff;
    background-color: #333;
}

.social-icons-footer a {
    color: #ffffff;
    transition: color 0.3s;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #ffc107;
    text-decoration: underline;
}

footer i {
    font-size: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    display: inline;
    margin: 0 10px;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
}

/* Resource Card */
.resource-card iframe {
    height: 300px;
    border: none;
    width: 100%;
}

.resource-card img {
    max-height: 250px;
    object-fit: cover;
    width: 100%;
    border-radius: 5px;
}

/* Responsive Overrides */
@media (max-width: 991.98px) { /* Adjusts padding for headers on screens smaller than large desktop */
    .page-content,
    .main-content-wrapper {
        padding-top: 100px;
    }
}

@media (max-width: 768px) { /* Adjusts services scroll for tablet and smaller */
    .services-scroll-container {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        justify-content: center;
    }

    .service-card-wrapper {
        width: calc(33.333% - 20px);
        margin-right: 10px;
        margin-left: 10px;
    }

    .carousel-multi-item-wrapper .carousel-inner .carousel-item-right.active,
    .carousel-multi-item-wrapper .carousel-inner .carousel-item-next {
        transform: translateX(33.333%);
    }

    .carousel-multi-item-wrapper .carousel-inner .carousel-item-left.active,
    .carousel-multi-item-wrapper .carousel-inner .carousel-item-prev {
        transform: translateX(-33.333%);
    }
}

@media (min-width: 992px) { /* Multi-item carousel for larger desktops */
    .carousel-multi-item-wrapper .carousel-inner .carousel-item-right.active,
    .carousel-multi-item-wrapper .carousel-inner .carousel-item-next {
        transform: translateX(33.333%);
    }
    .carousel-multi-item-wrapper .carousel-inner .carousel-item-left.active,
    .carousel-multi-item-wrapper .carousel-inner .carousel-item-prev {
        transform: translateX(-33.333%);
    }
}

@media (max-width: 767.98px) { /* For devices smaller than md (768px) */
    .carousel-item img {
        height: 250px;
        object-fit: cover;
    }
    .carousel-caption {
        font-size: 0.8rem;
        padding: 0.8rem;
        bottom: 5px;
    }
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        display: none;
    }
    .carousel-caption .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .carousel-multi-item-wrapper .carousel-inner .carousel-item > div {
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) { /* For very small screens */
    .navbar-text {
        font-size: 0.85rem;
    }
    .social-icons i {
        font-size: 1rem;
        margin-right: 0.3rem;
    }
    .blinking {
        animation: blink-sm 1.5s infinite; /* Different animation for small screens */
    }
    @keyframes blink-sm { /* New keyframe for small screens */
        0%, 100% { opacity: 1; }
        50% { opacity: 0.4; }
    }
}
.container {
    padding-top: 60px;
}
.container-footer {
    padding: 20px;
    padding-top: 0px;
    padding-left: 50px;
}
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 ratio */
  position: relative;
  height: 0;
}
.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}
