/* Custom CSS for 3D Exosomes Website */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #20c997;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Navbar Customization */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

/* Hero Section */
.hero-section {
    background-color: var(--light-color);
    padding: 5rem 0;
    position: relative;
}

    .hero-section h1 {
        color: var(--dark-color);
        font-weight: 700;
    }

    .hero-section .lead {
        color: var(--secondary-color);
    }

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* Footer */
footer {
    background-color: var(--dark-color);
}

    footer h4 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    footer .social-icons a {
        transition: opacity 0.3s ease;
    }

        footer .social-icons a:hover {
            opacity: 0.8;
        }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }

    .navbar .nav-link {
        margin: 0.25rem 0;
    }

        .navbar .nav-link::after {
            display: none;
        }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        text-align: center;
    }

        .hero-section .btn-group {
            justify-content: center;
        }
}

/* Animation for page elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .hero-section h1, .hero-section p, .hero-section .btn {
    animation: fadeIn 0.8s ease forwards;
}

    .card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .card:nth-child(3) {
        animation-delay: 0.4s;
    }

/* Dropdown styling for consistency across pages */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 3px solid var(--primary-color);
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.2s ease;
    background-color: transparent;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(13, 110, 253, 0.1);
        color: var(--primary-color);
    }

    /* Current page indicator that doesn't affect hover behavior */
    .dropdown-item.current-page {
        color: var(--primary-color);
        font-weight: 600;
        background-color: transparent !important;
    }

        /* Ensure proper hover behavior */
        .dropdown-item.current-page:hover {
            background-color: rgba(13, 110, 253, 0.1) !important;
        }

/* Override any Bootstrap default styling for dropdown items */
.dropdown-item {
    background-color: transparent;
}

    .dropdown-item:hover {
        background-color: rgba(13, 110, 253, 0.1);
    }

    /* Remove any active styling that might be applied */
    .dropdown-item.active,
    .dropdown-item:active {
        background-color: transparent !important;
        color: inherit;
    }

        .dropdown-item.active:hover,
        .dropdown-item:active:hover {
            background-color: rgba(13, 110, 253, 0.1) !important;
        }

/* Ensure dropdown toggle doesn't have unwanted styling */
.nav-item .dropdown-toggle {
    background-color: transparent !important;
}

    .nav-item .dropdown-toggle:hover,
    .nav-item .dropdown-toggle:focus {
        background-color: transparent !important;
        color: var(--primary-color);
    }

/* Dropdown toggle arrow animation */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown-toggle:hover::after,
.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Ensure consistent styling when dropdown is open */
.dropdown.show .dropdown-toggle {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

/* Fix for navbar item active state */
.nav-item .nav-link.active,
.nav-item .dropdown-toggle.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Fix for unwanted underline on dropdown toggle */
.nav-item .dropdown-toggle::after {
    /* This is the Bootstrap dropdown arrow */
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Override the nav-link::after styling for dropdown toggles */
.nav-link.dropdown-toggle::after {
    /* This removes the underline effect */
    position: static;
    width: auto;
    height: auto;
    bottom: auto;
    left: auto;
    background-color: transparent;
    transition: transform 0.3s ease;
}

/* Only apply the underline effect to regular nav-links, not dropdown toggles */
.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

/* For dropdown items that are active */
.dropdown-toggle.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Remove pale blue box on dropdown hover */
.nav-item .dropdown-toggle:hover,
.nav-item .dropdown-toggle:focus {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Custom hover effect for dropdown toggle */
.nav-item .dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

/* Fix for focus state as well */
.dropdown-toggle:focus,
.dropdown-toggle:active {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* For mobile view */
@media (max-width: 992px) {
    .dropdown-item.active {
        border-left: none;
        padding-left: 1.5rem;
    }
}

/* Dropdown toggle arrow animation */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown-toggle:hover::after,
.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Ensure dropdown works well on mobile */
@media (max-width: 992px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        margin-top: 0;
        border-top: none;
        background-color: transparent;
        display: none;
    }

        .dropdown-menu.show {
            display: block;
        }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }

        .dropdown-item:hover {
            background-color: transparent;
        }

        .dropdown-item.active::before {
            width: 0; /* Remove the left border on mobile */
        }
}

/* Fix for navbar item active state */
.nav-item .nav-link.active,
.nav-item .dropdown-toggle.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Fix for unwanted underline on dropdown toggle */
.nav-item .dropdown-toggle::after {
    /* This is the Bootstrap dropdown arrow */
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Override the nav-link::after styling for dropdown toggles */
.nav-link.dropdown-toggle::after {
    /* This removes the underline effect */
    position: static;
    width: auto;
    height: auto;
    bottom: auto;
    left: auto;
    background-color: transparent;
    transition: transform 0.3s ease;
}

/* Only apply the underline effect to regular nav-links, not dropdown toggles */
.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

/* For dropdown items that are active */
.dropdown-toggle.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Remove pale blue box on dropdown hover */
.nav-item .dropdown-toggle:hover,
.nav-item .dropdown-toggle:focus {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Custom hover effect for dropdown toggle */
.nav-item .dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

/* Fix for focus state as well */
.dropdown-toggle:focus,
.dropdown-toggle:active {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ensure consistent styling when dropdown is open */
.dropdown.show .dropdown-toggle {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

/* For mobile view */
@media (max-width: 992px) {
    .dropdown-item.active::before {
        width: 0; /* Remove the left border on mobile */
    }
}

/* Gingival Augmentation Technique Page Styles */
.technique-section {
    margin-bottom: 30px;
}

    .technique-section h2 {
        color: var(--dark-color);
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .technique-section .bullet-list {
        list-style-type: none;
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

        .technique-section .bullet-list li {
            margin-bottom: 0.5rem;
            position: relative;
        }

            .technique-section .bullet-list li:before {
                content: "\2022"; /* Unicode for bullet point */
                position: absolute;
                left: -1.5rem;
                color: var(--primary-color);
                font-size: 1.2em;
                font-family: Arial, sans-serif; /* Use a font that definitely has the bullet character */
            }

    .technique-section .numbered-list {
        margin: 0;
        padding-left: 20px;
    }

        .technique-section .numbered-list li {
            margin-bottom: 15px;
        }

    .technique-section .note-box {
        background-color: var(--light-color);
        border-left: 4px solid var(--primary-color);
        padding: 15px;
        margin: 20px 0;
    }

    .technique-section .divider {
        border-top: 1px solid #dee2e6;
        margin: 30px 0;
    }

/* Summary Box Styles */
.summary-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .summary-box p {
        margin-bottom: 0;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #495057;
    }

/* News Index Styles */
.news-item h3 {
    margin-bottom: 0.5rem;
}

    .news-item h3 a {
        color: #0d6efd;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .news-item h3 a:hover {
            color: #0a58ca;
            text-decoration: underline;
        }

.news-item .text-muted {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.news-item p {
    color: #495057;
    line-height: 1.6;
}
