/* Basic Styles */
body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Sans", sans-serif;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
}

.header-box {
    position: absolute;
    top: 2rem;
    left: 9vw;
    width: 80vw;
    margin: 20px auto;
    background-color: #fff;
    z-index: 8;
}

.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.container {
    width: 84%;
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-color);
}

.logo {
    max-width: 16%;
    padding: 15px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--clr-1);
}

.direct-contacts {
    width: 40%;
    display: flex;
    justify-content: space-around;
}

.direct-contacts span {
    color: #333;
    font-size: 14px;
}

.social-media-icons {
    width: 40%;
    display: flex;
    justify-content: right;
    gap: 32px;
}

.social-media-icons a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.social-media-icons a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 48px;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

/* Pseudo-element for the underline effect */
.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Hover effect to animate the underline */
.navbar a:hover::after,
.navbar a:hover {
    width: 100%;
    color: var(--primary-color);
}


.service-link {
    position: relative;
}

.service-link:hover .subservices {
    display: flex;
}

.navbar-services:hover .subservices {
    display: flex;
}

.navbar .subservices {
    padding: 1rem 2rem;
    position: absolute;
    left: -14rem;
    top: 16px;
    display: none;
    gap: 4rem;
    border-top: 3px solid var(--primary-color);
    background-color: white;
    z-index: 33;
}

.subservices>div {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.subservices .subservice-title {
    background-color: var(--primary-color);
    padding: .2rem .4rem;
    color: white;
    min-width: max-content;
}

.subservice-title h5 {
    font-weight: 500;
    font-size: .9rem;
}

.subservices .subservice-item {
    width: max-content;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.subservice-item svg {
    width: .5rem;
    fill: var(--primary-light-color);
}

.subservice-item a {
    text-decoration: none;
    transition: all 200ms ease-in;
}

.navbar .subservices-class {

    left: -6rem;

}

.subservice-item a:hover {
    cursor: pointer;
    color: var(--primary-color);
    /* transform: scale(1.06); */
}

.navbar-services:hover .navbar-services+.subservices {
    display: flex;
    background-color: #333;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
}

.sidebar.open {
    right: 0;
    display: block;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    text-align: right;
    width: 100%;
    color: #333;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 32px;
}

.sidebar-nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

.service-link-mobile .section {
    width: max-content;
}

/* Responsive Styles */
@media screen and (max-width: 840px) {
    .contact-info {
        display: none;
    }

    .container {
        display: none;
    }

    .navbar {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .logo {
        max-width: 16%;
        padding: 15px;
        width: 122px;
        max-width: unset;
    }

    .header-box {
        position: unset;
        margin: 0;
        width: 100%;
    }
}

.sidebar {
    width: 100%;
    background-color: #f4f4f4;
    padding: 15px;
    position: fixed;
    height: 100%;

}

/* Hide subservices initially */
.subservices-mobile {
    display: none;
    margin-top: 10px;
}

.logo-mobile {
    position: absolute;
    width: 100px;
}

/* Show subservices when the services link is clicked */
.subservices-mobile.active {
    display: block;
}

/* Section Styling */
.section {
    margin-bottom: 15px;
}

.section-title {
    cursor: pointer;
    background-color: #ddd;
    padding: 5px;
    border-radius: 4px;
}

/* Hide links under each section initially */
.links {
    display: none;
    margin-left: 10px;
}

/* Show links when the section is hovered */
.section:hover .links {
    display: block;
}

/* Links Styling */
.links a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    color: #333;
}

.links a:hover {
    color: var(--primary-color) !important;
}

/* Class links styling */
.class-links {
    display: none;
    margin-left: 10px;
}

.class-links a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    color: #333;
}

.class-links a:hover {
    color: #C2649A !important;
}

/* Show class links when active */
.class-links.active {
    display: block;
}

.contact-info-mobile {
    position: absolute;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.direct-contacts-mobile {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.social-media-icons-mobile {
    margin: 10px;
    font-size: 27px;
}

.social-media-icons-mobile i,
.phone-number-mobile i,
.email-address-mobile i {
    color: rgba(82, 33, 87, 0.7);
    margin: 5px 15px;
}

.button {
    cursor: pointer;
    padding: 12px 0px;
    font-size: 1em;
    width: 7em;
    aspect-ratio: 1 / 0.25;
    color: white;
    background: linear-gradient(45deg, #984693, #edc7b4);
    background: radial-gradient(circle at bottom,
            984693 10%,
            #edc7b4 70%);
    background-size: cover;
    background-blend-mode: overlay;
    border-radius: 0.5em;
    border: 0;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.button:hover {
    transform: scale(1.1);


}

.direct-contacts a {
    text-decoration: none;
    color: #333;
}

.subservices-items.active {
    display: block;
}

.subservice-item a:hover {
    color: #C2649A !important;
}

/* Base styling for the subservice-item */
.subservice-item {

    transition: transform 0.3s ease, border-color 0.3s ease;
    /* Smooth hover effect */
}

/* Hover effect */
.subservice-item:hover {
    transform: translateX(10px);
    /* Moves the whole item to the right */
    border-color: var(--primary-color);
    /* Optional: Highlight border */
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button a {
    text-decoration: none;
    text-align: center;
}