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

:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo i {
    color: #007bff;
    font-size: 30px;
    font-weight: 700;
}

.logo h1 {
    color: #007bff;
    font-size: 30px;
    font-weight: 700;
}
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-login i {
    font-size: 16px;
}

.user-menu {
  position: relative;
}

.dropdown-btn {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.dropdown-btn:hover {
  background: linear-gradient(135deg, #0056b3, #0099cc);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.dropdown-content {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: white;
  min-width: 140px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 2000;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.user-menu:hover .dropdown-content {
  display: none;
}

#dropdownContent.show {
    display: block;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-small {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-small:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #343a40;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav .active a {
    color:#007bff;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color:#007bff;
    transition: width 0.3s;
}

.main-nav a:hover:after,
.main-nav .active a:after {
    width: 100%;
}

.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.quiz-filter {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.search-box {
    display: flex;
    max-width: 400px;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-box button {
    background-color:#007bff;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #0056b3;
}

.filter-dropdown select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    min-width: 180px;
}

.btn-create {
    display: inline-block;
    background-color:#007bff;
    color: white;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.quiz-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.quiz-category {
    background-color: #007bff;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.quiz-level {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.quiz-level.beginner {
    background-color: #d4edda;
    color: #155724;
}

.quiz-level.intermediate {
    background-color: #fff3cd;
    color: #856404;
}

.quiz-level.advanced {
    background-color: #f8d7da;
    color: #721c24;
}

.quiz-card-body {
    padding: 20px;
    flex: 1;
}

.quiz-card-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #343a40;
}

.quiz-card-body p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
    margin-top: 20px;
}

.quiz-meta i {
    margin-right: 5px;
    color: #007bff;
}

.quiz-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-small {
    display: inline-block;
    background-color:#007bff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-small:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.see-more-container {
    text-align: center;
    margin-top: 20px;
}

#seeMoreBtn {
    display: inline-block;
    background-color:#007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin: 0 auto;
}

.quiz-card {
    opacity: 1;
    transition: opacity 0.5s;
}

.quiz-card.hidden {
    opacity: 0;
    display: none !important;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #fff;
    color: #343a40;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.page-link:hover,
.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-link.next {
    width: auto;
    padding: 0 15px;
}

.quiz-types {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.quiz-types h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color:#343a40;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.type-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

.type-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color:#343a40;
}

.type-card p {
    color: #666;
    font-size: 16px;
}

.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px; 
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color:#007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color:#0056b3;
    transform: translateY(-2px);
}

.footer {
    background-color:#343a40;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color:#007bff;
}

.footer-section p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color:#007bff;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #bbb;
}