:root {
    --primary-color: #6a3db3;
    /* Primary Purple */
    --secondary-color: #4a3078;
    /* Darker Purple */
    --accent-color: #9d7fde;
    /* Lighter Purple / Highlight */
    --light-color: #ffffff;
    --dark-color: #333333;
    --bg-color: #f8f7fc;
    /* Light Grayish Purple Background */
    --text-color: #2c2c2c;
    --border-color: #e0e0e5;
}

body {
    background-color: var(--bg-color);
    font-family: 'Lora', serif;
    margin: 0;
    padding-top: 70px;
    /* Space for fixed navbar */
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

/* Preloader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.loader-wrapper--loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(106, 61, 179, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Material Icons general styling */
.material-icons,
.material-icons-outlined {
    font-family: 'Material Icons', 'Material Icons Outlined';
    /* Combined to ensure both styles can be used */
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Default size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Navbar Component */
.navbar-component {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-component__brand-logo {
    height: 40px;
    padding-right: 15px;
    transition: transform 0.3s ease;
}

.navbar-component__brand:hover .navbar-component__brand-logo {
    transform: scale(1.05);
}

.navbar-component__nav-link {
    color: var(--dark-color);
    /* Removed !important for desktop */
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 15px;
    /* Removed !important for desktop */
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
}

.navbar-component__nav-link .material-icons {
    font-size: 1.1em;
    margin-right: 4px;
}

.navbar-component__nav-link:hover,
.navbar-component__nav-link:focus,
.navbar-component__dropdown-item:hover,
.navbar-component__dropdown-item:focus {
    color: var(--primary-color) !important;
    background-color: rgba(106, 61, 179, 0.05) !important;
}

.navbar-component__nav-link--active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Dropdown specific styles */
.navbar-component__nav-item--dropdown .navbar-component__nav-link {
    padding-right: 20px;
    /* Removed !important, allowing Bootstrap's default or other rules */
}

.navbar-component__dropdown-menu {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    /* Removed !important */
}

.navbar-component__dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    padding: 0.5rem 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-component__dropdown-item .material-icons {
    font-size: 1.1rem;
    margin-right: 8px;
    color: var(--primary-color);
}

.navbar-component__dropdown-item:active {
    background-color: var(--primary-color) !important;
    color: var(--light-color) !important;
}

.navbar-component__dropdown-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 0.5rem 1.2rem;
    margin-top: 0.5rem;
}

.navbar-component__dropdown-header:first-child {
    margin-top: 0;
}

.navbar-component__dropdown-divider {
    margin: 0.5rem 0;
}


.navbar-component__button {
    color: var(--light-color) !important;
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 8px 18px;
    font-family: 'Montserrat', sans-serif;
}

.navbar-component__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 61, 179, 0.3);
    background: var(--secondary-color);
}

.navbar-component__toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-component__toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-component__toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(106, 61, 179, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Home link styling */
.home-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 500;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.home-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.home-link__icon {
    margin-right: 6px;
    font-size: 18px;
    /* Adjusted Material Icon size */
}

/* Footer Component */
.footer-component {
    background-color: var(--light-color);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: var(--dark-color);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}

.footer-component__paragraph {
    margin-bottom: 10px;
}

.footer-component__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-component__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-component__social-links {
    margin: 15px 0;
}

.footer-component__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(106, 61, 179, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-component__social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.footer-component__social-link .material-icons-outlined {
    /* Target Material Icons here */
    font-size: 18px;
    /* Standard size for social icons */
}

/* Button styles (general Bootstrap overrides/enhancements) */
.btn {
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 61, 179, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 61, 179, 0.2);
}

.btn-touch-active {
    transform: scale(0.98) !important;
    opacity: 0.9;
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(106, 61, 179, 0.3);
    outline-offset: 2px;
}

/* Breadcrumb Component */
.breadcrumb-component {
    background-color: rgba(106, 61, 179, 0.05);
    padding: 10px 0;
    margin-bottom: 30px;
}

.breadcrumb-component__list {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-component__item {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.breadcrumb-component__link {
    color: var(--primary-color);
}

.breadcrumb-component__item--active {
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-component {
        padding: 10px;
    }

    .navbar-component__collapse {
        background-color: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        max-height: 70vh;
        /* Limit height for mobile dropdown */
        overflow-y: auto;
        /* Allow scrolling for long dropdowns */
    }

    .navbar-component__nav-item .navbar-component__nav-link {
        padding: 12px 15px !important;
        /* Retain important for mobile stacked links */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-component__nav-item:last-child .navbar-component__nav-link {
        border-bottom: none;
    }

    .navbar-component__dropdown-menu {
        box-shadow: none;
        border: none;
        margin-top: 0 !important;
        /* Retain important for mobile dropdown menu position */
    }

    .navbar-component__dropdown-item {
        padding: 0.8rem 1rem;
        /* Adjust padding for mobile dropdown items */
    }

    .navbar-component__dropdown-header {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
        font-size: 15px;
    }

    .navbar-component__brand-logo {
        height: 35px;
    }

    .footer-component {
        padding: 20px 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}