/* Upseek Brand Guideline 2025 - Complete CSS Implementation */

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* Note: You'll need to include Satoshi font separately as it's not available on Google Fonts */

:root {
  /* Primary Colors */
  --primary-blue: #1472C2;
  --blue-light: #008AFD;
  --blue-dark: #042A44;
  --white: #FFFFFF;
  
  /* Secondary Colors */
  --yellow: #E0D35C;
  --green-light: #B6CC56;
  --teal: #02BFAE;
  --gray-lightest: #EDEDED;
  --gray-darkest: #1B2326;
  --gray-dark: #455259;
  --gray-medium: #9EAEB5;
  --blue-accent: #7890C0;
  
  /* Text Colors */
  --body-text: var(--gray-darkest);
  --light-text: var(--gray-dark);
  
  /* Gradients */
  --section-gradient: linear-gradient(135deg, var(--gray-lightest), var(--white));

  /* Theme Variables - Default Light Theme */
  --background-color: var(--white);
  --text-color: var(--body-text);
  --header-color: var(--blue-dark);
  --card-background: var(--gray-lightest);
  --card-text: var(--gray-darkest);
  --footer-background: var(--gray-lightest);
}

/* Base Typography */
body {
  font-family: 'Satoshi', 'Inter', sans-serif;
  color: var(--body-text);
  background-color: var(--white);
  line-height: 1.5;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700; /* Bold */
  color: var(--blue-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  line-height: 1.5;
}

p, li, span {
  font-family: 'Inter', sans-serif;
  font-weight: 400; /* Regular */
}

a {
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

.hero-section>div>h1{
  color: var(--gray-lightest);
}

.navbar {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), #003366), url('../assests/images/coursebackground.avif');
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section>.container>p{
  color: var(--gray-light);
}

.nav-pills .nav-link {
    color: var(--dark-color);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-pills:hover, .nav-link:hover {
  color: var(--primary-blue);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(20, 114, 194, 0.15);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(20, 114, 194, 0.25);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(20, 114, 194, 0.35);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.course-level {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instructor-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.instructor-badge i {
    margin-right: 5px;
}

.rating-badge {
    font-weight: 600;
    color: var(--accent-color);
}

#loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--primary-blue);
}

#no-results {
    color: var(--secondary-color);
}

.course-detail-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.course-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.course-detail-meta {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 1rem 0;
}

.course-detail-meta div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-detail-meta span:first-child {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.course-detail-meta span:last-child {
    font-weight: 600;
    font-size: 1.1rem;
}

.course-features {
    margin: 1.5rem 0;
}

.course-features li {
    margin-bottom: 0.5rem;
}

/* Search input styling */
#search-input {
  border-radius: 20px 0 0 20px;
  border: none;
  padding-left: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--primary-blue);
}

#search-button {
    border-radius: 0 20px 20px 0;
    border: none;
    padding-right: 1.2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer{
  background-color: var(--footer-background);
}

.footer-link {
  color: var(--gray-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-blue);
}

.social-icons a {
  color: var(--gray-dark);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-blue);
}

.brand-name {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* Animation for new cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.new-card {
  animation: fadeIn 0.5s ease forwards;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}
  
  /* Custom Button Styles */
  .custom-btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .custom-btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  
  .custom-btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .custom-btn-outline:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  
  /* Breadcrumb Styles */
  .breadcrumb-wrapper {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
  }
  
  .breadcrumb {
    margin-bottom: 0;
  }
  
  .breadcrumb-item a {
    color: var(--primary-blue);
  }
  
  .breadcrumb-item.active {
    color: var(--secondary-color);
  }
  
  /* Course Header Styles */
  .course-header {
    background-color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .course-meta {
    color: var(--secondary-color);
  }
  
  .course-preview-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
  }
  
  .course-preview-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  }
  
  .price-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
  }

  .price-tag>span{
    color: var(--white);
  }
  
  /* Course Content Styles */
  .course-content {
    padding: 2rem 0;
  }
  
  .content-section {
    margin-bottom: 2.5rem;
  }
  
  .custom-tabs .nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
  }
  
  .custom-tabs .nav-link.active {
    color: var(--primary-blue);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-blue);
  }
  
  .feature-list {
    list-style-type: none;
    padding-left: 0;
  }
  
  .feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
  }
  
  .feature-list li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
  }
  
  /* Syllabus Styles */
  .syllabus-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .syllabus-item:last-child {
    border-bottom: none;
  }
  
  /* Instructor Styles */
  .instructor-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
  }
  
  .instructor-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
  }
  
  /* Reviews Styles */
  .overall-rating h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .reviewer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .review-item:last-child {
    border-bottom: none;
  }
  
  /* Sidebar Styles */
  .course-sidebar {
    position: sticky;
    top: 100px;
  }
  
  .enrollment-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: none;
  }
  
  .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
  }
  
  .guarantee-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
  }
  
  .course-includes ul li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
  }
  
  .related-course-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .related-course-item:last-child {
    border-bottom: none;
  }
  
  .related-course-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  .related-course-item h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .related-course-item .price {
    font-size: 1rem;
    margin-bottom: 0;
    margin-top: 0.25rem;
  }

  .tab-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}
.tab-header-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.tab-header-item.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: bold;
}
.tab-content {
    padding: 20px 0;
}

/* Helper Classes */
.text-primary {
  color: var(--primary-blue) !important;
}

.text-secondary{
  color: var(--gray-dark) !important;
}

.bg-light-blue {
  background-color: var(--gray-lightest);
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* Typography Weight Classes */
.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

/* Custom Table Styles */
.syllabus-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.syllabus-table th,
.syllabus-table td {
  padding: 0.75rem;
  border: 1px solid var(--gray-lightest);
  text-align: left;
}

.syllabus-table th {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: bold;
}

.syllabus-table tr:nth-child(even) {
  background-color: var(--gray-lightest);
}

.syllabus-table tr:hover {
  background-color: var(--blue-light);
  color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-detail-header {
        flex-direction: column;
    }
    
    .course-detail-meta {
        flex-wrap: wrap;
    }
    
    .course-detail-meta div {
        width: 50%;
        margin-bottom: 1rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.4rem 0.8rem;
        margin: 0 0.15rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
  h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.75rem;
  }
  
  h3 {
      font-size: 1.5rem;
  }
  
  .hero-section {
      padding: 4rem 0;
  }
}