/* =========================================
   Adyayan Exam Portal - Frontend Styles
   EXACT MATCH with exam.html
   ========================================= */

/* =========================================
   THEME OVERRIDE - FORCE FULL WIDTH
   Break out of GeneratePress containers
   ========================================= */

.aep-exams-wrapper,
.aep-single-exam {
    background-color: #f8fafc !important;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Force full width breakout if theme constrains it */
.aep-full-width-page .site-content .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset base styles */
.aep-exams-wrapper *,
.aep-single-exam * {
    box-sizing: border-box;
}

/* 
 * Custom Styles from exam.html 
 */

/* Hide Scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Focus styles for accessibility */
.aep-exams-wrapper :focus-visible,
.aep-single-exam :focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Custom Card Styles matching reference image */
.exam-card-custom {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.exam-card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Light rose/pink circle for icon */
.icon-circle-rose {
    background: #fce8e8;
}

/* Animate fade in */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   GeneratePress Conflict Resolution
   ========================================= */

/* Remove default theme margin/padding from our containers */
.aep-exams-wrapper h1,
.aep-exams-wrapper h2,
.aep-exams-wrapper h3,
.aep-single-exam h1,
.aep-single-exam h2,
.aep-single-exam h3,
.aep-single-exam h4 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Ensure buttons don't have theme border unless specified */
button.aep-tab-btn,
button.aep-filter-btn {
    border: none;
    background-image: none;
    outline: none;
}

/* Fix active/focus color turning black - Enforce White */
.aep-tab-btn:active,
.aep-tab-btn:focus,
.aep-tab-btn:visited {
    color: inherit;
}

/* Enforce white text on active tab, even on hover */
a.aep-tab-btn.active,
a.aep-tab-btn.active:hover,
a.aep-tab-btn.active:focus,
a.aep-tab-btn.active:visited {
    background-color: #2563eb !important;
    /* bg-blue-600 */
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Hover state for inactive tabs only */
a.aep-tab-btn:not(.active):hover {
    color: #111827 !important;
    /* text-gray-900 */
    background-color: #e5e7eb !important;
    /* bg-gray-200 */
}

/* Fix header gap - Aggressive Theme Override */
.aep-full-width-page .site-content,
.aep-full-width-page .entry-content,
.aep-full-width-page .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.aep-single-exam,
.aep-exams-wrapper {
    margin-top: -2px;
    /* Micro-adjustment to ensure flush fit */
}

/* Fix for potential z-index issues with sticky nav */
.sticky {
    position: sticky !important;
}

/* Ensure links in our portal don't get theme link styles if we want to override */
.aep-single-exam a,
.aep-exams-wrapper a {
    text-decoration: none;
}