/* ==========================================================================
   STASIS BRANDED CORE LAYOUT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Reddit Sans', sans-serif; 
}

body {
    background-color: #FFFFFF;
}

/* SIDEBAR LAYOUT FRAMEWORK */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    min-height: 100vh;
    width: 92px;
    background-color: #5848CB;
    padding: .4rem .8rem;
    transition: all 0.5s ease;
    z-index: 999;
}

.sidebar.active {
    width: 250px;
}

.sidebar.active ~ .main-content {
    left: 250px;
    width: calc(100% - 250px);
}

.main-content {
    position: relative;
    background-color: white;
    min-height: 100vh;
    top: 0;
    left: 92px;
    transition: all 0.5s ease;
    width: calc(100% - 92px);
    padding: 2rem;
}

/* SIDEBAR INTERNAL NAVIGATION UTILITIES */
.sidebar #btn {
    position: absolute;
    color: #fff;
    top: 0.8rem;
    left: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.sidebar .top .logo {
    width: 100%;
    margin-top: 70px;
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-link img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sidebar.active .logo-link img {
    width: 65px;
    height: 65px;
}

.logo-link span {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar:not(.active) .logo-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-list {
    margin-top: 35px;
}

.sidebar ul li {
    position: relative;
    list-style: none;
    margin: 12px 0;
    line-height: 50px;
    display: flex;
    justify-content: center;
}

.sidebar ul li a {
    color: #fff;
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    border-radius: 0.8rem;
    padding-left: 10px;
}

.sidebar ul li a:hover, .sidebar ul li a.active-nav {
    background-color: #fff;
    color: #5848CB;
}

.sidebar ul li a i {
    min-width: 50px;
    text-align: center;
    height: 50px;
    line-height: 50px;
    font-size: 1.4rem;
}

.sidebar .nav-item {
    opacity: 0;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.sidebar.active .nav-item {
    opacity: 1;
}

.sidebar ul li .tooltip {
    position: absolute;
    left: 125px;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.1);
    border-radius: .6rem;
    padding: .4rem 1.2rem;
    line-height: 1.8rem;
    z-index: 20;
    opacity: 0;
    background: white;
    pointer-events: none;
    transition: opacity 0.2s;
}

.sidebar:not(.active) ul li:hover .tooltip {
    opacity: 1;
}

.sidebar.active ul li .tooltip {
    display: none;
}

/* ==========================================================================
   RESOURCES TOP NAVIGATION MODULE
   ========================================================================== */
.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #ECE9FF;
    padding: 0.7rem 1.4rem;
    border-radius: 40px;
    width: 55%;
}

.search-box i {
    font-size: 1.3rem;
    color: #5848CB;
    margin-right: 12px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: #444;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions button {
    background: #ECE9FF;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    color: #5848CB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 6px;
}

/* ==========================================================================
   GRID LAYOUTS & INTERACTIVE COMPONENT SHAPES
   ========================================================================== */

.resources-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.content-panel {
    background: #FFFFFF;
    border: 2px solid #EAE6FF;
    border-radius: 28px;
    padding: 1.6rem;
}

.content-panel h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #5848CB;
}

/* TOP HEADERS IN CONTENT PANELS */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pill-filters {
    display: flex;
    gap: 6px;
    background: #F4F1FF;
    padding: 4px;
    border-radius: 24px;
}

.pill {
    background: none;
    border: none;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    color: #8886A5;
    cursor: pointer;
}

.pill.active {
    background: #FFFFFF;
    color: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.sub-tab-navigation {
    display: flex;
    gap: 24px;
    border-bottom: 2px solid #F4F1FF;
    padding-bottom: 6px;
    margin-bottom: 1.5rem;
}

.sub-tab {
    font-size: 0.95rem;
    font-weight: 600;
    color: #C0BBED;
    cursor: pointer;
    position: relative;
}

.sub-tab.active {
    color: #5848CB;
}

.sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #5848CB;
    border-radius: 4px;
}

/* RESOURCE ANCHORS & GRID ALIGNMENTS */
.resource-anchor-card, .list-row-anchor, .video-item-wrapper, .feature-banner-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* BOOKS LAYOUT ARCHITECTURE */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.book-thumbnail-box {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    background: #F8F7FF;
    margin-bottom: 0.7rem;
    box-shadow: 0 4px 12px rgba(88, 72, 203, 0.06);
}

.book-thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-anchor-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.resource-anchor-card p {
    font-size: 0.78rem;
    color: #8A88A1;
}

/* VERTICAL LIST CARD ARRAYS (FLASHCARDS & BLOGS) */
.flashcards-vertical-list, .blogs-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-row-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid #F0EDFF;
    border-radius: 16px;
    padding: 8px;
    transition: background 0.2s, transform 0.2s;
}

.list-row-card:hover {
    background: #F9F8FF;
    transform: translateX(2px);
}

.list-row-card img {
    width: 75px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
}

.row-card-details h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.row-card-details p {
    font-size: 0.75rem;
    color: #9A98B3;
}

/* SOFTWARE TUTORIAL PANEL SLIDER RACK */
.software-suite-panel {
    margin-bottom: 2.5rem;
}

.software-tab-rack {
    display: flex;
    gap: 8px;
    background: #EAE6FF;
    padding: 6px;
    border-radius: 18px;
    width: fit-content;
    margin: 1.5rem 0;
}

.sw-tab {
    background: none;
    border: none;
    padding: 8px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6C66A3;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sw-tab.active {
    background: #FFFFFF;
    color: #5848CB;
    box-shadow: 0 4px 12px rgba(88, 72, 203, 0.12);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.video-card {
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin-bottom: 3px;
}

.video-card p {
    font-size: 0.8rem;
    color: #888;
}

/* ADDITIONAL RESOURCES MULTIMEDIA LAYOUTS */
.feature-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.feature-banner-card {
    display: flex;
    align-items: center;
    gap: 22px;
}

.feature-banner-card img {
    width: 160px;
    height: 105px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.banner-card-text h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #5848CB;
    letter-spacing: 0.5px;
    text-decoration: underline;
    margin-bottom: 5px;
}

.banner-card-text p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.4;
    
}   
    /* ==========================================================================
   MMA REVIEW CENTER CTA BANNER
   ========================================================================== */
.review-center-cta {
    text-decoration: none;
    display: block;
    margin-bottom: 6px; /* May maliit na gap bago mag-flashcards */
}

.cta-gradient-box {
    background: linear-gradient(135deg, #6E5DE7 0%, #5848CB 100%);
    border-radius: 18px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 16px rgba(88, 72, 203, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

/* Mga subtle background circles para magmukhang premium dashboard element */
.cta-gradient-box::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -30px;
    right: -20px;
}

.cta-gradient-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 72, 203, 0.25);
}

.cta-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 6px;
}

.cta-info h3 {
    color: #FFFFFF !important; /* Para hindi maoverride ng default list colors */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cta-info p {
    color: #E2DDFF !important;
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 85%;
}

.cta-action-arrow {
    background: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5848CB;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cta-gradient-box:hover .cta-action-arrow {
    transform: translateX(4px);

}