/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white-color: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--gray-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white-color);
}

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

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 40px;
    margin-right: 15px;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--white-color);
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 500px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--white-color);
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

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

.feature-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Subjects Section */
.subjects {
    padding: 60px 5%;
    text-align: center;
    background-color: #f5f7fa;
}

.subjects h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.subject-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.subject-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-10px);
}

.subject-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.subject-card h3 {
    padding: 20px;
    color: var(--dark-color);
}

.subject-card p {
    padding: 0 20px 20px;
    color: #555;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 40px 5% 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Auth Pages */
.auth-container {
    display: flex;
    min-height: calc(100vh - 150px);
    padding: 40px 5%;
}

.auth-form {
    flex: 1;
    max-width: 500px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.auth-form h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.auth-image img {
    max-width: 500px;
}

/* Exam Page Styles */
.exam-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: var(--dark-color);
    color: var(--white-color);
    height: 50px;
}

.timer {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.timer i {
    margin-right: 10px;
}

.subject-name {
    font-weight: bold;
}

.exam-container {
    display: flex;
    min-height: calc(100vh - 200px);
}

.exam-sidebar {
    width: 250px;
    background-color: var(--white-color);
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;
}

.question-nav h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.question-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.question-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-number:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.question-number.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.question-number.answered {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.exam-controls {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-content {
    flex: 1;
    padding: 30px;
    background-color: #f9f9f9;
    overflow-y: auto;
}

.question-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.question-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.options-container {
    margin-bottom: 30px;
}

.option {
    display: block;
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background-color: #d6eaf8;
}

.option.selected {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.option input {
    margin-right: 10px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
}

.modal h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.modal p {
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-form {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .exam-container {
        flex-direction: column;
    }
    
    .exam-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .question-numbers {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width: 480px) {
    .question-numbers {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .question-navigation button {
        width: 100%;
    }
}


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #004aad;
  color: white;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #004aad, #0077ff);
  color: white;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ffcc00;
  color: #004aad;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
}

.features {
  padding: 60px 20px;
  text-align: center;
}

.feature-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature {
  max-width: 250px;
}

.feature i {
  font-size: 2em;
  color: #004aad;
}

.login-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #eef2f7;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #004aad;
  color: white;
}

.social-icons a {
  margin: 0 10px;
  color: white;
  font-size: 1.2em;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: white;
}
.slideshow-section {
  margin: 40px auto;
  max-width: 800px;
  position: relative;
}

.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 700px;
  height: 300px;
  display: block;
  border-radius: 10px;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.timer{
    margin-right: 50px;
}