/* PLDT Brand Colors and Navbar Styling */
.pldt-navbar {
    background: linear-gradient(135deg, #e31e24 0%, #c41e3a 50%, #a01e2e 100%) !important;
    border-bottom: 3px solid #a01e2e;
    box-shadow: 0 2px 10px rgba(227, 30, 36, 0.3);
}

.navbar-brand {
    font-weight: 700 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: #f8f9fa !important;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Custom styles for dropdown button to look like nav-link */
.nav-link.btn-link {
    color: rgba(255, 255, 255, 0.9) !important;
    background: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    text-align: left !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 4px;
}

.nav-link.btn-link:hover,
.nav-link.btn-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.nav-link.btn-link:focus {
    box-shadow: none !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(227, 30, 36, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.15);
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 12rem;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    color: #333333 !important;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #e31e24 !important;
}

.dropdown-divider {
    border-top: 1px solid rgba(227, 30, 36, 0.1);
    margin: 0.5rem 0;
}

/* Handle dropdown positioning */
.nav-item.dropdown {
    position: relative;
}

/* Navbar Toggler for Mobile */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Icons styling */
.bi {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 2px 0;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 6px;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}
