/* Classic Dropdown Styles */
.custom-dropdown .nav-item {
    position: relative;
}

/* Classic Dropdown Link (Appearance) */
.custom-dropdown .nav-link {
    color: #fff6 !important;
    padding: 10px 15px;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: normal;
    display: block;
    background: transparent;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-dropdown .nav-link:hover {
    background-color:rgb(60, 60, 74); /* Accent color for hover */
    color: white;
}

/* 2. Dropdown Menu Styling */
.custom-dropdown .dropdown-menu {
    display: none; /* Initially hidden */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
}

/* Show dropdown menu on hover */
.custom-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

/* 3. Dropdown Submenu (Classifications) */
.custom-dropdown .dropdown-submenu {
    position: relative;
}

/* 4. Nested (Submenu) Dropdown Styles */
.custom-dropdown .dropdown-submenu .dropdown-menu {
    left: 100%; /* Position it to the right of the parent menu */
    top: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show the nested submenu when hovering over the parent */
.custom-dropdown .dropdown-submenu:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

/* 5. Dropdown Items Styling */
.custom-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.3s ease;
}

.custom-dropdown .dropdown-item:hover {
    background-color:rgb(111, 129, 168);
    color: white;
}

/* 6. Additional Custom Styling */
.custom-dropdown .dropdown-item:focus, .custom-dropdown .dropdown-item:active {
    background-color:rgb(125, 136, 177);
    color: white;
}

/* 7. Responsive Design */
@media (max-width: 767px) {
    .custom-dropdown .dropdown-menu {
        position: static; /* Make dropdown work on mobile */
        width: 100%;
        box-shadow: none;
    }
}



/* Professional gradient dropdown */
#classificationSelect, #mobileCategorySelect {
    background: linear-gradient(145deg, #f3f4f6, #ffffff);
    color: #333;
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

#classificationSelect:focus, #mobileCategorySelect:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

/* Sidebar pills - subtle gradient, clean layout */
.nav-pills .nav-link {
    background: linear-gradient(to right, #eef1f6, #ffffff);
    color: #333;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 16px;
    margin-bottom: 10px;
    transition: all 0.25s ease-in-out;
}

.nav-pills .nav-link:hover {
    background: linear-gradient(to right, #f9f9f9, #f1f3f5);
    color: #5a5a5a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-pills .nav-link.active {
    background: linear-gradient(to right, #6c63ff, #3f3dff);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

/* Flat icon spacing */
.nav-link i {
    margin-right: 8px;
    opacity: 0.7;
} 
.edit-icon {
    position: absolute;
    bottom: 8px;
    right: 10px; /* 👈 THIS is bottom-right */
    ...
}
.nav-item .fa-pen {
    font-size: 0.8rem;
    color: #6c757d;
    transition: color 0.2s ease-in-out;
}

.nav-item .fa-pen:hover {
    color: #343a40;
}        
.edit-icon {
    font-size: 0.85rem;
    color: #6c757d; /* subtle gray */
    transition: color 0.2s ease-in-out;
}

.edit-icon:hover {
    color: #343a40; /* darker gray on hover */
    cursor: pointer;
}
.rainbow-pen {
    background: linear-gradient(45deg,rgb(114, 114, 113),rgb(97, 97, 94),rgb(119, 119, 118),rgb(94, 94, 93),rgb(114, 114, 113));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.85rem;
    transition: transform 0.2s ease-in-out;
}

.rainbow-pen:hover {
    transform: scale(1.1);
}



/*  For Newpaper Viewing Options  */
/* Thumbnail view behaves like a Bootstrap row */
#newspaper.thumbnail-view {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

/* Make columns in thumbnail view responsive like Bootstrap */
#newspaper.thumbnail-view .video-card {
    padding-left: 12px;
    padding-right: 12px;
    flex: 0 0 100%;
}

@media (min-width: 576px) {
    #newspaper.thumbnail-view .video-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    #newspaper.thumbnail-view .video-card {
        flex: 0 0 33.3333%;
    }
}

/* Hide the thumbnail in list view */
#newspaper.list-view .hide-in-list-view {
    display: none;
}

/* List view layout */
#newspaper.list-view .video-card {
    display: block;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 12px 8px;
    margin: 0;
    font-size: 0.9rem;
}

#newspaper.list-view .blog-content {
    margin-left: 0;
}

#newspaper.list-view .post-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 4px;
}

#newspaper.list-view .post-title:hover {
    text-decoration: underline;
}

#newspaper.list-view .post-description {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}

#newspaper.list-view .post-date {
    font-size: 0.75rem;
    color: #888;
}
.view-toggle-buttons .btn.active {
    background-color: #6c63ff;
    color: white;
    border-color: #6c63ff;
}
.post-title {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}