/* ==========================================================================
   DESKTOP VIEW: STYLING FOR DROPDOWNS
   ========================================================================== */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .pg-dropdown {
        position: relative;
    }

    .pg-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        min-width: 200px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 4px;
        padding: 10px 0;
        list-style: none;
        display: none; /* Hide by default */
        z-index: 1000;
    }

    .pg-dropdown-menu li {
        position: relative;
    }

    .pg-dropdown-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        color: #333333;
        text-decoration: none;
        transition: background 0.2s;
    }

    .pg-dropdown-menu a:hover {
        background: #f5f5f5;
        color: #000000;
    }

    /* Submenu (Nested Level) styling */
    .pg-submenu {
        position: absolute;
        top: 0;
        left: 100%;
        background: #ffffff;
        min-width: 180px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 4px;
        padding: 5px 0;
        list-style: none;
        display: none;
    }

    /* Hover States to trigger dropdowns */
    .pg-dropdown:hover > .pg-dropdown-menu {
        display: block;
    }

    .pg-has-submenu:hover > .pg-submenu {
        display: block;
    }
    
    .pg-arrow { font-size: 9px; margin-left: 4px; }
    .pg-arrow-right { font-size: 9px; }
}

/* ==========================================================================
   MOBILE VIEW: RECONFIGURED ACCORDION DROPDOWN SYSTEM
   ========================================================================== */
.bca-logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bca-logo-box {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px 0;
}

.bca-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .bca-logo-box img {
        width: 100px;
        height: auto;
    }

    /* Mobile Drawer setup hidden defaults */
    .mob-pg-links, 
    .mob-grad-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.04);
        padding-left: 15px;
    }

    /* Active states triggers */
    .mob-pg-section.active > .mob-pg-links {
        display: flex;
    }

    .mob-grad-section.active > .mob-grad-links {
        display: block;
    }

    /* Arrow Rotations */
    .mob-arrow {
        float: right;
        transition: transform 0.3s ease;
    }

    .mob-pg-section.active > .mob-pg-main .mob-arrow,
    .mob-grad-section.active > .mob-grad-main .mob-arrow {
        transform: rotate(180deg);
    }
    
    .mob-diploma-link {
        padding-left: 15px !important;
    }
}