.ace-header {
    background: #0a4a6d;
    padding: 10px 0;
    margin-bottom: 15px;
}

.ace-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0 20px;
}

.ace-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 10px;
}

.ace-nav .dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #0d5f85;
    padding: 10px 0;
    min-width: 240px;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 6px 15px;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.ace-footer {
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background: #f2f2f2;
    color: #666;
    border-top: 1px solid #ccc;
}
.view-toggle {
    margin-bottom: 15px;
}

.toggle-btn {
    background: #ddd;
    border: 1px solid #aaa;
    padding: 6px 14px;
    margin-right: 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-btn.active {
    background: #4b8cf7;
    color: white;
    border-color: #1a5be2;
}

/* GRID MODE */
.grid-mode .lecture-item {
    width: 180px;
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    text-align: center;
}

.grid-mode .lecture-title {
    display: block;
    font-weight: bold;
    margin-top: 6px;
    font-size: 14px;
}

.grid-mode .lecture-thumb {
    width: 150px;
    height: auto;
    display: block;
    margin: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* LIST MODE */
.list-mode .lecture-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.list-mode .lecture-thumb {
    width: 70px;
    margin-right: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.list-mode .lecture-title {
    font-size: 15px;
    font-weight: bold;
}
/* ============================================================
   ACE — Grid/List View Toggle (Tajweed, Dictionary, etc.)
   ============================================================ */
.view-toggle {
    margin-bottom: 15px;
}

.toggle-btn {
    background: #ddd;
    border: 1px solid #aaa;
    padding: 6px 14px;
    margin-right: 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-btn.active {
    background: #4b8cf7;
    color: white;
    border-color: #1a5be2;
}

/* GRID MODE */
.grid-mode .lecture-item {
    width: 180px;
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    text-align: center;
}

.grid-mode .lecture-title {
    display: block;
    font-weight: bold;
    margin-top: 6px;
    font-size: 14px;
}

.grid-mode .lecture-thumb {
    width: 150px;
    height: auto;
    display: block;
    margin: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* LIST MODE */
.list-mode .lecture-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.list-mode .lecture-thumb {
    width: 70px;
    margin-right: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.list-mode .lecture-title {
    font-size: 15px;
    font-weight: bold;
}

