@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap');

html,
body {
    overflow-x: hidden;
}


/* General Styling */
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #ed1c24 #f1f1f1;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #ed1c24;
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    z-index: 10;
    position: fixed;
    width: 100%;
    background-color: white;
    transition: border-bottom 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


.navbar.scrolled {
    border-bottom: 2px solid #ed1c24;
}

.navbar-toggler {
    border: none;
}

.navbar .nav-link {
    color: #ed1c24 !important;
    font-weight: bold;
    margin: 10px;
    text-decoration: none;
    transition: color 0.3s, font-size 0.3s;
}


.navbar li:hover {
    background-color: rgba(185, 187, 189, 0.308);
    border-bottom: 2px solid #ed1c24;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.caption-overlay {
    width: 100%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background-color: rgba(24, 23, 23, 0.6);
}

.carousel-item img {
    width: 100%;
    height: 85vh;
}

.caption-overlay h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.btn-service {
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #ed1c24;
    text-transform: uppercase;
    background: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.btn-service:hover {
    background-color: #ed1c24;
    color: white;
}

/* Services Section */
#services .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    border: 1px solid #f1f1f1;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

#services .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#services .icon i {
    color: #dc3545;
    font-size: 3rem;
    transition: color 0.3s ease;
}

#services .service-card:hover .icon i {
    color: #ff6b6b;
}

#services h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

#services p {
    font-size: 0.9rem;
    color: #555;
}

/* Company Stats Section */
.company {
    background-color: #ed1c24;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.company .icon {
    font-size: 3rem;
}

.company h3 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

/* Start Branch */

#branch {
    padding: 50px 0;
}

#branch h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 40px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease-in-out;
}

/* Card Styling */
#branch .card {
    border: none;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 400px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#branch .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#branch .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eaeaea;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#branch .card:hover .card-img-top {
    transform: scale(1.1);
    opacity: 0.8;
}

#branch .card-body {
    text-align: left;
    padding: 20px;
    position: relative;
}

#branch .card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

#branch .card-text {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.5;
}

#branch .card-text .highlight {
    font-weight: bold;
    color: #dc3545;
}

#branch .btn {
    background: #dc3545;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 0;
    border: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
    transition: background 0.3s, transform 0.3s;
}

#branch .btn:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End Branch */

/* Start Team */
#team .team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

#team .team-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#team .team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team .team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

#team .team-card:hover .team-overlay {
    opacity: 1;
}

#team .team-overlay h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

#team .team-overlay p {
    margin: 0;
    font-size: 1rem;
}

#team .social-icons a {
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
}

#team .social-icons a:hover {
    color: #ffdd57;
}

/* End Team */

/* Services */
#services .service-card {
    background-color: #ffffff;
    border: 1px solid #f1f1f1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

#services .icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#services .icon-circle i{
    color: white;
}

#services h5 {
    font-size: 1.3rem;
    margin-top: 10px;
    color: #333;
}

#services p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

#services .btn-danger {
    background-color: #dc3545;
    border: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#services .btn-danger:hover {
    background-color: #ff6b6b;
    transform: scale(1.05);
}

/* End Serives */


/* Horizontal Line Styling */
.footer hr {
    border-color: rgba(255, 255, 255, 0.25);
    /* margin: 20px 0; */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
}

/* Why Choose RAF Section */
#why-choose-raf {
    background-color: #ffffff;
}

#why-choose-raf h3 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

#why-choose-raf .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#why-choose-raf .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#why-choose-raf .icon i {
    color: #dc3545;
    transition: color 0.3s ease;
}

#why-choose-raf .card:hover .icon i {
    color: #ff6b6b;
}

#why-choose-raf h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

#why-choose-raf p {
    font-size: 0.9rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    #why-choose-raf h3 {
        font-size: 1.5rem;
    }
}


/* Map Location Section */
#raf-location {
    padding: 60px 0;
}

#raf-location h3 {
    font-weight: bold;
    margin-bottom: 30px;
    color: #dc3545;
    letter-spacing: 1px;
}

/* Map Container */
#raf-location .map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#raf-location .map-container iframe {
    border: 0;
    width: 100%;
    height: 450px;
}

/* Location Cards */
.location-card {
    background: #fff;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-card h5 {
    font-weight: bold;
}

.location-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Icons */
.location-card i {
    font-size: 1.2rem;
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    #raf-location .map-container iframe {
        height: 350px;
    }

    .location-card {
        margin-bottom: 20px;
    }
}

/* Footer */
.footer {
    background-color: #ed1c24;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-bottom: -24px !important;
}

.footer hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Services Detail */

#services-detail {
    margin-top: 50px;
    padding: 50px 0;
}

#services-detail h2 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#services-detail h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

#services-detail p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

#services-detail ul li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

#services-detail ul li i {
    font-size: 1.2rem;
    color: #dc3545;
    margin-right: 10px;
}

/* Image Styling */
#services-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    #services-detail ul li {
        font-size: 0.9rem;
    }

    #services-detail h2 {
        font-size: 1.8rem;
    }
}

/* End Services Details */


/* Branch */

.sidebar .nav-link {
    margin-bottom: 10px;
    text-align: left;
    font-weight: bold;
}

.sidebar .nav-link {
    background-color: #007bff;
    color: white;
}

.sidebar .nav-link:hover {
    background-color: #dc3545;
}

.sidebar .nav-link.active {
    background-color: #dc3545;
    color: white;
}

.content {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid  #dc3545;
}

.content h5 {
    border-bottom: 2px solid  #dc3545;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* End Branch */


/* Media Queries */
@media (max-width: 768px) {
    .caption-overlay {
        height: 60vh;
    }

    .carousel-item img {
        width: 100%;
        height: 60vh;
    }

    .caption-overlay h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .btn-service {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 600px) {
    .caption-overlay {
        height: 35vh;
    }

    .carousel-item img {
        width: 100%;
        height: 35vh;
    }

    .caption-overlay h1 {
        font-size: 1rem;
        margin-bottom: 10px;
        margin-top: 60px;
        line-height: 30px;
    }

    .carousel-control-next{
        margin-top: 50px;
    }

    .carousel-control-prev{
        margin-top: 50px;
    }

    .btn-service {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}