/* Basic Reset and Font */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Container for Centering */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  width: 2px;
  height: 2px;
  color: #e65c00;
}

.main-logo {
  height: 30px;
  margin-left: -40px;
  align-items: center;
}

.nav-links {
  display: inline-flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #e65c00;
}



/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.smart {
  color: #e65c00;
}
.hero-section h1 {
  font-size: 3em;
  color: #222;
  margin-bottom: 30px;
  font-weight: 700;
}

.hero-image-wrapper {
  max-width: 800px;
  margin: 0 auto 30px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-image-caption {
  font-size: 0.9em;
  color: #777;
  margin-top: 10px;
}

.get-started-btn {
  background-color: #ff6600; /* Orange */
  color: white;
  padding: 15px 35px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; 
  display: inline-block; 
  margin-top: 1px;
  margin-bottom: 37px;
}

.get-started-btn > a {
  color: #f0f2f5;
  text-decoration: none;
  color: #f0f2f5;
  
}

.get-started-btn:hover {
  background-color: #e65c00; 
  transform: translateY(-2px);
}

/* Why Learn Section */
.why-learn-section {
  padding: 80px 20px ;
  text-align: center;
  background-color: #f0f2f5;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.why-learn-section h2 {
  font-size: 2.5em;
  color: #222;
  margin-bottom: 10px;
  font-weight: 700;
}

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

.feature-item {
  flex-basis: calc(50% - 40px); 
  max-width: 400px;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-icon {
  font-size: 2em;
  color: #007bff; 
  margin-right: 15px;
}

.feature-text p {
  margin: 0;
  font-size: 1.1em;
  color: #444;
}


/* Recommended Curriculum */
.recommended-curriculum {
  text-align: center;
  padding: 60px 20px;
}

.recommended-curriculum h2 {
  font-size: 2.2em;
  color: #222;
  margin-bottom: 40px;
  font-weight: 600;
}

.recommended-curriculum a {
  color: #f0f2f5;
  text-decoration: none;
  color: #f0f2f5;
  
}

.course-card {
  background-color: #222; 
  color: white;
  padding: 25px 40px;
  border-radius: 10px;
  display: inline-block; 
  font-size: 1.4em;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  background-color: #333;
}

/* Course Page Specific Styles */
.course-header-section {
  text-align: center;
  padding: 6px 20px 30px;
  background-color: #fff;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.course-header-section h1 {
  font-size: 2.8em;
  color: #222;
  margin-bottom: 25px;
  font-weight: 700;
}

.course-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  color: #555;
  line-height: 1.8;
  text-align: left;
}

.course-topics-section {
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
  background-color: #f0f2f5;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.course-topics-section h2 {
  font-size: 2.5em;
  color: #222;
  margin-bottom: 40px;
  font-weight: 700;
}

.topics-grid {
  display: flex;
  flex-direction: column; 
  gap: 20px;
  align-items: center; 
}

/* New styles for dropdown */
.topic-dropdown {
  position: relative;
  width: 100%;
  max-width: 600px; 
  text-align: center; 
}

.topic-dropdown-btn {
  width: 100%;
  background-color: #222; /* Dark background */
  color: white;
  padding: 20px 40px; /* Match course-card padding */
  font-size: 1.4em; /* Match course-card font-size */
  font-weight: 600; /* Match course-card font-weight */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Match course-card shadow */
  cursor: pointer;
  display: flex;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.topic-dropdown-btn:hover {
  background-color: #333; /* Darker background on hover */
  transform: translateY(-3px); /* Lift effect on hover */
}

.dropdown-arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.dropdown-content {
  display: none; /* Hidden by default */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden; /* Ensures rounded corners on children */
}

.dropdown-content a {
  color: #444;
  padding: 15px 30px;
  text-decoration: none;
  display: block;
  font-size: 1.1em;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid #eee; /* Separator for items */
}

.dropdown-content a:last-child {
  border-bottom: none; /* No border for the last item */
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: #007bff;
}

/* Existing topic-card style for other topics (if any) */
.topic-card {
  max-width: 600px; /* Limit width for readability */
  background-color: #222; /* Dark background */
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  background-color: #333;
}

.quiz-section {
  padding: 50px 20px;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 40px;
}

.quiz-card {
  background-color: #222; 
  color: white;
  padding: 20px 30px;
  margin-top: 30px;
  border-radius: 10px;
  display: inline-flex; 
  align-items: center;
  gap: 15px;
  font-size: 1.4em;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.quiz-card:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.quiz-icon {
  background-color: #ff0000; 
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.8em; 
  font-weight: bold;
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #333;
  color: #eee;
  margin-top: 50px;
  border-radius: 12px 12px 0 0;
}


/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section h1,
  .course-header-section h1 {
    font-size: 2.2em;
  }

  .feature-item {
    flex-basis: 90%; /* Single column on small screens */
    max-width: none;
  }

  .course-description {
    font-size: 1em;
  }

  .course-topics-section h2 {
    font-size: 2em;
  }

  .topic-card,
  .topic-dropdown-btn,
  .dropdown-content a,
  .quiz-card {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .quiz-icon {
    padding: 6px 12px;
    font-size: 0.7em;
  }
}

@media (max-width: 480px) {
  .hero-section h1,
  .course-header-section h1 {
    font-size: 1.8em;
  }

  .get-started-btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .why-learn-section h2,
  .course-topics-section h2 {
    font-size: 1.8em;
  }

  .feature-item {
    padding: 20px;
  }

  .feature-icon {
    font-size: 1.8em;
  }

  .feature-text p {
    font-size: 1em;
  }

  .course-card {
    font-size: 1.2em;
    padding: 20px 30px;
  }

  .topic-card,
  .topic-dropdown-btn,
  .dropdown-content a,
  .quiz-card {
    font-size: 1em;
    padding: 12px 15px;
  }
}


/* Content Section for about page */

.smartEd-Discription {
  text-align: left;
  padding: 0, 10px, 20px, 40px;
}

.content-section {
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 40px; 
}


.text-block, .highlight-box {
    flex: 1; 
    min-width: 300px; 
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.text-block {
    background-color: #fff; 
    
}

.highlight-box {
    background-color: #FF5722; 
    color: #fff; 
    font-size: 1.5em;
    font-weight: 700; 
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center; 
    min-height: 120px; 
    line-height: 1.3;
}

/** for Courses Section **/

/* Basic Reset and Font */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Container for Centering */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 2px;
    height: 2px;
    color: #e65c00;
}

.main-logo {
    height: 30px;
    margin-left: -40px; /* Adjust as needed */
    align-items: center;
}

.nav-links {
    display: inline-flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e65c00;
}

/* Hero Section (Re-purposed for course header) */
.course-header-section {
    text-align: center;
    padding: 30px 20px 30px; 
    background-color: #fff;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.course-header-section h1 {
    font-size: 2.8em;
    color: #222;
    margin-top: 3px;
    margin-bottom: 25px;
    font-weight: 700;
}

.course-description {
    max-width: 800px;
    margin: 0 auto 30px auto; /* Added bottom margin */
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Transcript Section */
.transcript-section {
    margin-top: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.transcript-dropdown-btn {
    width: 100%;
    background-color: #f0f2f5;
    color: #333;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.transcript-dropdown-btn:hover {
    background-color: #e0e0e0;
}

.transcript-content {
    display: none; /* Hidden by default */
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.transcript-content p {
    margin-bottom: 10px;
}

.transcript-content p:last-child {
    margin-bottom: 0;
}

/* Questions Section */
.questions-section {
    margin-top: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.questions-section h2 {
    text-align: center;
    font-size: 2.2em;
    color: #222;
    margin-bottom: 30px;
    font-weight: 700;
}

.question-block {
    margin-bottom: 30px;
}

.question-block h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

.options label {
    display: block;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.options label:hover {
    background-color: #f0f0f0;
    border-color: #c0c0c0;
}

.options input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2); /* Make radio buttons slightly larger */
    vertical-align: middle;
}

.quiz-actions {
    text-align: center;
    margin-top: 40px;
}

.check-answer-btn,
.get-help-btn {
    background-color: #e65c00; /* Orange */
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin: 0 10px;
}

.check-answer-btn:hover,
.get-help-btn:hover {
    background-color: #cc5200; /* Darker orange */
    transform: translateY(-2px);
}

.get-help-btn {
    background-color: #333; /* Darker color for Get Help */
}

.get-help-btn:hover {
    background-color: #555;
}


/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #333;
    color: #eee;
    margin-top: 50px;
    border-radius: 12px 12px 0 0;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.modal-content h2 {
    color: #e65c00;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .course-header-section h1 {
        font-size: 2.2em;
    }

    .course-description {
        font-size: 1em;
    }

    .questions-section h2 {
        font-size: 2em;
    }

    .question-block h3 {
        font-size: 1.1em;
    }

    .options label {
        padding: 12px;
        font-size: 0.9em;
    }

    .check-answer-btn,
    .get-help-btn {
        padding: 12px 25px;
        font-size: 1em;
        margin: 10px 0;
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .course-header-section h1 {
        font-size: 1.8em;
    }

    .options label {
        font-size: 0.85em;
    }
}



/* CSS for the Floating Action Buttons for About page*/
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.fab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.fab:hover {
  transform: scale(1.1);
}

.fab.x {
  background-color: #000000; /* X (Twitter) black */
}

.fab.youtube {
  background-color: #ff0000; /* YouTube red */
}

.fab img {
  width: 24px;
  height: 24px;
}