/* 
 * Professional Mock Test Website
 * Custom CSS Styles
 */

/* Global Styles */
:root {
    --primary-color: #2563eb;
    /* Blue-600 */
    --primary-dark: #1d4ed8;
    /* Blue-700 */
    --secondary-color: #4f46e5;
    /* Indigo-600 */
    --text-color: #1f2937;
    /* Gray-800 */
    --light-text: #6b7280;
    /* Gray-500 */
    --light-bg: #f9fafb;
    /* Gray-50 */
    --white: #ffffff;
    --success: #10b981;
    /* Green-500 */
    --warning: #f59e0b;
    /* Amber-500 */
    --danger: #ef4444;
    /* Red-500 */
    --info: #3b82f6;
    /* Blue-500 */
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Blog Content Styles */
.prose {
    line-height: 1.6;
    color: var(--text-color);
}

.prose h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.prose h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--secondary-color);
}

.prose p {
    margin-bottom: 1rem;
}

.prose strong {
    font-weight: 700;
    color: var(--text-color);
}

.prose em {
    font-style: italic;
}

/* Slider Styles */
.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #e5e7eb;
    background: white;
    padding: 8px;
}

/* Responsive slider improvements */
@media (max-width: 768px) {
    .slider-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .slider-wrapper {
        border-radius: 8px;
        padding: 4px;
        border-width: 1px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 5px;
    }
    
    .slider-nav.next {
        right: 5px;
    }
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 1.2rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Container for Blog Page */
/* .cont {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-gap: 20px;
} */

/* Card styling for blog posts */

/* Single post view card - completely separate from card2 */
.card1 {
    /* Structure */
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;

    /* Styling */
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;

    /* Effects */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card1:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* List view card - completely separate from card1 */
.card2 {
    /* Structure */
    display: flex;
    flex-direction: column;
    height: auto;
    width: 325px;

    /* Styling */
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;

    /* Effects */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn3 {
    /* Blue color (similar to Tailwind's blue-600) */
    color: white;
    /* White text */
    font-weight: 600;
    /* Semi-bold text */
    padding: 10px 20px;
    /* Vertical and horizontal padding */
    border: none;
    /* Remove default border */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    /* Light shadow */
    cursor: pointer;
    /* Pointer on hover */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn3:hover {
    background-color: rgba(37, 99, 235, 0.1);
    /* Darker blue on hover (blue-700) */
    transform: scale(1.02);
    /* Slight zoom on hover */
}

.text_cont {
    display: flex;

    justify-content: center;
    flex-direction: column;
    align-items: center;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn {
    /* display: inline-block; */
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    /* background-color: #f0f0f0; */
    /* color: var(--text-color); */
    font-size: 16px;
    transition: all 0.3s ease;
    /* margin-top: 15px; */

}


.btn:hover {
    background-color: #1976D2;
    color: white;
}

.btn2 .button {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn2 .button:hover {
    background-color: #1976D2;
    color: white;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}


.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Quiz Styles */
.quiz-option {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
}

/* Timer Styles */
.exam-timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.exam-timer.warning {
    color: var(--warning);
}

.exam-timer.danger {
    color: var(--danger);
    animation: pulse 1s infinite;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Question Navigation */
.question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.question-nav-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: var(--text-color);
    font-weight: medium;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-nav-item:hover {
    background-color: #d1d5db;
}

.question-nav-item.current {
    background-color: var(--primary-color);
    color: var(--white);
}

.question-nav-item.answered {
    background-color: var(--success);
    color: var(--white);
}

.question-nav-item.marked {
    background-color: var(--warning);
    color: var(--white);
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Enhanced Form Input Styles */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
textarea,
select {
    background-color: #f0f7ff !important;
    border: 1px solid #bbd6fe !important;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    background-color: #e6f0ff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

input:required,
select:required,
textarea:required {
    border-left: 3px solid #4f46e5 !important;
}

input[type="date"],
input[type="time"] {
    background-color: #f0fff4 !important;
    border: 1px solid #bce3cb !important;
}

textarea {
    background-color: #fff0f7 !important;
    border: 1px solid #fbbdd0 !important;
}

select {
    background-color: #faf5ff !important;
    border: 1px solid #e2d2f4 !important;
}

::placeholder {
    color: #a1a1aa !important;
    opacity: 0.7;
}

/* Dashboard Cards */
.dashboard-stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Header */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    background: var(--white) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Segoe UI";
    background: transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: auto;
}

.logo h2 {
    padding: 0 15px;
    color: #2563eb;
    font-weight: 600;
}

.right ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.right ul li {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.right ul li a {
    color: rgba(37, 99, 235, 0.9);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.right ul li a:hover {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
}

.right ul li a.active {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.2);
}

.right ul li span {
    padding: 0 5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }
    
    .logo h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .logo img {
        width: 35px;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .right {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        display: none; /* Hidden by default on mobile */
    }
    
    .right.active {
        display: block;
    }
    
    .right ul {
        flex-direction: column;
        gap: 0;
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    .right ul li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.5rem 0;
    }
    
    .right ul li:last-child {
        border-bottom: none;
    }
    
    .right ul li a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    width: 30%;
}

.search-input {
    padding: 12px 20px;
    width: 300px;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

.search-btn {
    padding: 12px 20px;
    background-color: #4a90e2;
    border: none;
    border-radius: 0 50px 50px 0;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #357ABD;
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .search-container {
        width: 90%;
        margin: 15px auto;
    }
    
    .search-input {
        width: 100%;
        max-width: 250px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        border-radius: 25px;
        max-width: 200px;
    }
    
    .search-btn {
        border-radius: 25px;
        width: 100px;
    }
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Grid Layout */
.con_Grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Responsive Grid Improvements */
@media (max-width: 1024px) {
    .con_Grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .con_Grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .con_Grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

/* Download Section */
.download {
    display: flex;
    font-family: sans-serif;
    gap: 10px;
    align-items: center;
}

.download :nth-child(2) {
    font-size: 23px;
}

.download img {
    padding: 0 12px;
}

/* Item Styles */
.item {
    width: 220px;
    height: 130px;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin: 40px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.item-lang {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.item-lang a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.item-lang a:hover {
    color: #2196F3;
}

.item-lang .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.item:hover .item-link {
    color: #2196F3;
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

section p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
}

/* Second Container */
.Second_container {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Box Styles */
.box {
    width: 90%;
    max-width: 100%;
    min-height: 440px;
    height: auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    padding: 0;
    text-align: justify;
    box-sizing: border-box;
}

.box-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    overflow: auto;
    cursor: pointer;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* .box:hover .btn {
    background-color: #2196F3;
    color: white;
} */

/* Footer */
.footer {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 50px 0 0;
    margin-top: 60px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #d1d5db;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #d1d5db;
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-bottom p {
    margin: 5px 0;
    color: #9ca3af;
}

.footer-bottom a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}



.social-links a:hover {
    text-decoration: underline;
}

/* Exam Item */
.exam-item {
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
    border-radius: 8px;
}

.exam-item a:hover {
    background-color: #f9fafb;
}

.exam-icon {
    color: #4f46e5;
}

.exam-details {
    flex: 1;
}

.exam-details h3 {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #111827;
}

.price {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
}

.paid {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

.free {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Admin Panel */
.admin-panel .container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Exam display styles */
.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Exam Search Styles */
.exam-search-container {
    margin: 20px auto 30px;
    max-width: 600px;
}

.exam-search-form {
    display: flex;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    width: 95vw;
}

.exam-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.exam-search-input:focus {
    border-color: #3498db;
}

.exam-search-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 0 50px 50px 0;
    transition: background-color 0.3s ease;
}

.exam-search-button:hover {
    background-color: #2980b9;
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.clear-search {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.clear-search:hover {
    text-decoration: underline;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.exam-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.exam-header {
    background-color: #3498db;
    color: white;
    padding: 15px;
}

.exam-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.exam-category {
    display: inline-block;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

.exam-details {
    padding: 15px;
}

.exam-details p {
    margin: 8px 0;
    font-size: 14px;
}

.exam-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.exam-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.exam-button:hover {
    background-color: #2980b9;
}

.no-exams {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 1145px) {
    .con_Grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .search-container {
        width: 100%!important;

    }
}


@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .box {
        width: auto;
    }
    .search-container {
        width: 60%;
    }

    .hello {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
        color: #2563eb;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 0.375rem;
        transition: background-color 0.3s ease;
    }

    .menu-toggle:hover {
        background-color: rgba(37, 99, 235, 0.1);
    }

    .right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 40;
    }

    .right.active {
        display: block;
    }

    .right ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .right ul li {
        width: 100%;
    }

    .right ul li a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }

    /* Mobile menu animation */
    #mobile-menu {
        transition: all 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
    }

    #mobile-menu.active {
        max-height: 100vh;
    }

    .search-input {
        width: 200px;
    }

    .con_Grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .container {
        flex-direction: column;
    }

    .head_line {
        display: flex;
        justify-content: center;
    }

    .head_line h1 {
        font-size: 24px;
        padding: 10px;
    }

    .item {
        width: 85%;
        margin: 10px auto;
    }

    .dashboard-stat-card {
        margin-bottom: 1rem;
    }

    .question-nav-item {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

/* Comprehensive Responsive Design Improvements */

/* Button Responsive Styles */
@media (max-width: 768px) {
    .btn, .btn-primary, .btn3, .exam-button {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly size */
        width: 100%;
        margin: 5px 0;
    }
    
    /* Form improvements */
    .form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Table responsive */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 500px;
    }
    
    /* Card improvements */
    .card1, .card2, .dashboard-stat-card {
        margin: 10px 5px;
        padding: 1rem;
    }
    
    /* Typography adjustments */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Footer responsive improvements */
    .footer {
        padding: 30px 0 0;
        margin-top: 40px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Navigation improvements for small screens */
    nav {
        padding: 0.5rem;
    }
    
    .logo h2 {
        font-size: 1.25rem;
        padding: 0 5px;
    }
    
    /* Button stack on very small screens */
    .btn, .btn-primary, .btn3 {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
    
    /* Input improvements */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom */
        padding: 12px !important;
    }
    
    /* Card full width on small screens */
    .card1, .card2 {
        width: 100%;
        margin: 10px 0;
    }
    
    /* Typography for small screens */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .con_Grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* Tablet landscape optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    .con_Grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .search-container {
        width: 50%;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: var(--white);
        margin: 0;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .result-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    /* Hide navigation and other non-essential elements when printing */
    nav, .menu-toggle, .search-container, .footer {
        display: none !important;
    }
}