/* ===== PROFESSIONAL WEBSITE STYLING - DISTINGUISHED UNION INSTITUTE ===== */

/* ===== MOBILE NAVIGATION - PROFESSIONAL REBUILD ===== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.mobile-menu-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.mobile-menu-toggle:hover::before {
  left: 100%;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent-gold);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent-gold);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Content */
.mobile-nav-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translate(-50%, -50%) scale(1);
}

.mobile-nav-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-content li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-content li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav-content li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-content li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-content li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-content li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-overlay.active .mobile-nav-content li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-overlay.active .mobile-nav-content li:nth-child(6) { transition-delay: 0.6s; }
.mobile-nav-overlay.active .mobile-nav-content li:nth-child(7) { transition-delay: 0.7s; }

.mobile-nav-content a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mobile-nav-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.mobile-nav-content a:hover::before {
  left: 100%;
}

.mobile-nav-content a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateX(10px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.mobile-nav-content a.active {
  background: var(--accent-gold);
  color: var(--dark-gray);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* Mobile Navigation Close Button */
.mobile-nav-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  z-index: 1002;
  overflow: hidden;
}

.mobile-nav-close::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.mobile-nav-close:hover::before {
  left: 100%;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}

/* Arabic Mobile Navigation */
.arabic .mobile-nav-content a {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* Mobile Responsive Design */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none !important;
  }
  
  .mobile-nav-overlay {
    display: block;
  }
}

@media (max-width: 767px) {
  .mobile-nav-content {
    padding: 1.5rem;
    max-width: 350px;
  }
  
  .mobile-nav-content a {
    font-size: 1.3rem;
    padding: 0.8rem 1.5rem;
  }
  
  .mobile-nav-close {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 575px) {
  .mobile-nav-content {
    padding: 1rem;
    max-width: 300px;
  }
  
  .mobile-nav-content a {
    font-size: 1.2rem;
    padding: 0.7rem 1.2rem;
  }
  
  .mobile-nav-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 374px) {
  .mobile-nav-content {
    padding: 0.8rem;
    max-width: 280px;
  }
  
  .mobile-nav-content a {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }
  
  .mobile-nav-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE IMPROVEMENTS ===== */

/* Mobile Navigation Display Rules - TO BE REBUILT */

/* Mobile Navigation Content - TO BE REBUILT */

/* ===== GLOBAL VARIABLES ===== */
:root {
  /* Primary Colors from Logo */
  --primary-blue: #0066cc;
  --primary-blue-dark: #004499;
  --primary-blue-light: #3399ff;
  --primary-blue-lighter: #e6f3ff;
  
  /* Secondary Colors */
  --white: #ffffff;
  --black: #1a1a1a;
  --dark-gray: #333333;
  --light-gray: #f8f9fa;
  --border-gray: #e9ecef;
  
  /* Accent Colors */
  --accent-gold: #ffcc00;
  --accent-green: #28a745;
  --accent-red: #dc3545;
  --accent-orange: #fd7e14;
  
  /* Typography */
  --font-primary: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-arabic: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
  --box-shadow-hover: 0 8px 30px rgba(0, 102, 204, 0.2);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 90px; /* Adjusted for thinner header */
}

/* Arabic Font Support */
[lang="ar"], .arabic {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* ===== COURSES PAGE STYLES ===== */
.courses-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  min-height: 400px;
}

.featured-courses-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.all-courses-section {
  padding: 80px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 1rem;
}

.section-header h2 i {
  color: var(--accent-gold);
  margin-right: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

.featured-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-course-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.featured-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.course-content {
  padding: 1.5rem;
}

.course-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 1rem;
}

.course-content p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.course-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.course-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-blue);
  background: var(--primary-blue-lighter);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.course-features i {
  color: var(--accent-gold);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.course-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-level {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-body {
  padding: 1.5rem;
}

.course-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 1rem;
}

.course-body p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.course-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.detail-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.detail-item strong {
  color: var(--primary-blue-dark);
  font-weight: 600;
}

.detail-item ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
}

.detail-item li {
  color: var(--dark-gray);
  margin-bottom: 0.3rem;
}

.detail-item span {
  color: var(--dark-gray);
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== COURSES PAGE RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .featured-courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
  
  .cta-content h2 {
    font-size: 3rem;
  }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .featured-courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header h2 {
    font-size: 2.8rem;
  }
  
  .cta-content h2 {
    font-size: 2.8rem;
  }
}

/* Small Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .featured-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .cta-content h2 {
    font-size: 2.5rem;
  }
}

/* Tablet (768px to 991px) - DUPLICATE REMOVED */

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Mobile navigation - TO BE REBUILT */
  
  .banner-slider {
    height: 300px;
  }
  
  .banner-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-courses,
  .profile-certificates {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .header-content {
    padding: 1rem 0;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .auth-buttons a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile Small (375px to 575px) */
@media (max-width: 575px) and (min-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Mobile navigation - TO BE REBUILT */
  
  .banner-slider {
    height: 250px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-courses,
  .profile-certificates {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .header-content {
    padding: 0.8rem 0;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .auth-buttons a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Mobile Extra Small (up to 374px) */
@media (max-width: 374px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Mobile navigation - TO BE REBUILT */
  
  .banner-slider {
    height: 200px;
  }
  
  .banner-title {
    font-size: 1.3rem;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-courses,
  .profile-certificates {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .header-content {
    padding: 0.6rem 0;
  }
  
  .logo-text {
    font-size: 0.9rem;
  }
  
  .auth-buttons a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .container {
    padding: 0 10px;
  }
}

/* ===== LOGIN & REGISTER PAGE STYLES ===== */
.login-hero,
.register-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.login-hero::before,
.register-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.login-section,
.register-section {
  padding: 80px 0;
  background: var(--light-gray);
  min-height: calc(100vh - 300px);
}

.login-card,
.register-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.login-card::before,
.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
}

.login-header,
.register-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2,
.register-header h2 {
  color: var(--primary-blue-dark);
  font-size: 2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-header p,
.register-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
}

.login-form,
.register-form {
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: var(--primary-blue);
  width: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.btn-full {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-footer,
.register-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-gray);
}

.login-footer p,
.register-footer p {
  color: var(--dark-gray);
  margin: 0;
}

.login-footer a,
.register-footer a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover,
.register-footer a:hover {
  text-decoration: underline;
}

.message-box {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.message-box.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.message-box.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Responsive adjustments for login/register */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .login-card,
  .register-card {
    margin: 0 20px;
    padding: 30px 20px;
  }
  
  .login-header h2,
  .register-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-section,
  .register-section {
    padding: 40px 0;
  }
  
  .login-card,
  .register-card {
    padding: 25px 15px;
  }
  
  .login-header h2,
  .register-header h2 {
    font-size: 1.5rem;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-blue-dark);
}

/* Hero section text should be white */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p {
  color: var(--white);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

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

a:hover {
  color: var(--primary-blue-dark);
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding: var(--container-padding);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 70px;
  position: relative;
}

/* Mobile header layout improvements */
@media (max-width: 991px) {
  .header-content {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    min-height: 60px;
  }
  
  .header-content .logo {
    flex: 1;
    min-width: 0;
  }
  
  .header-content .logo img {
    width: 35px;
    height: 35px;
  }
  
  .header-content .logo-text {
    font-size: 1.1rem;
  }
  
  .header-content .lang-toggle {
    order: 2;
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  
  .header-content .auth-buttons {
    order: 3;
    display: flex;
    gap: 0.3rem;
  }
  
  .header-content .auth-buttons a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* Mobile navigation - TO BE REBUILT */
}

@media (max-width: 767px) {
  .header-content {
    padding: 0.4rem 0;
    min-height: 55px;
  }
  
  .header-content .logo img {
    width: 30px;
    height: 30px;
  }
  
  .header-content .logo-text {
    font-size: 1rem;
  }
  
  .header-content .lang-toggle {
    font-size: 0.8rem;
    margin: 0 0.3rem;
  }
  
  .header-content .auth-buttons a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .header-content {
    padding: 0.3rem 0;
    min-height: 50px;
  }
  
  .header-content .logo img {
    width: 28px;
    height: 28px;
  }
  
  .header-content .logo-text {
    font-size: 0.9rem;
  }
  
  .header-content .lang-toggle {
    font-size: 0.75rem;
    margin: 0 0.2rem;
  }
  
  .header-content .auth-buttons a {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
  
  /* Mobile navigation - TO BE REBUILT */
}

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

.logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.logo-text {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.logo:hover .logo-text {
  color: var(--accent-gold);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
}

.lang-link {
  color: var(--accent-gold) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.lang-link:hover {
  background: rgba(255, 204, 0, 0.2);
  color: var(--accent-gold) !important;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.auth-buttons a,
.auth-buttons button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.auth-buttons a:first-child {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.auth-buttons a:first-child:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.auth-buttons a:last-child,
.auth-buttons button {
  background: var(--accent-gold);
  color: var(--black);
}

.auth-buttons a:last-child:hover,
.auth-buttons button:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--black);
}

.btn-primary:hover {
  background: #e6b800;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* ===== BANNER/SLIDESHOW ===== */
.banner-section {
  background: var(--light-gray);
  padding: 60px 0;
  position: relative;
}

.banner-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 600px;
  padding: 2rem;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.banner-slide-1 {
  background-image: url('/images/banners/banner-1.jpg');
}

.banner-slide-2 {
  background-image: url('/images/banners/banner-2.jpg');
}

.banner-slide-3 {
  background-image: url('/images/banners/banner-3.jpg');
}

.banner-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border-gray);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-blue-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-blue-dark);
}

.card-text {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--light-gray);
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
  box-shadow: var(--box-shadow);
}

/* ===== COURSES SECTION ===== */
.courses-section {
  background: var(--white);
}

.course-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.course-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.course-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.course-content {
  padding: 1.5rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-blue-dark);
}

.course-description {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.course-duration {
  background: var(--primary-blue-lighter);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.course-level {
  background: var(--accent-gold);
  color: var(--black);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--light-gray);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-blue-dark);
}

.testimonial-position {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--white);
}

.contact-info {
  background: var(--primary-blue-lighter);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-blue);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-section h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ===== PROFESSIONAL PROFILE PAGE STYLING ===== */
.profile-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="profile-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23profile-grain)"/></svg>');
  opacity: 0.3;
}

.profile-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #e6b800 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid var(--white);
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.profile-stat {
  text-align: center;
}

.profile-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: block;
}

.profile-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-content {
  padding: 60px 0;
  background: var(--light-gray);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.profile-sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: fit-content;
}

.profile-main {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-section-title i {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.profile-info-item {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-blue);
  transition: var(--transition);
}

.profile-info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.profile-info-label {
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-value {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.profile-courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.profile-course-badge {
  background: var(--primary-blue-lighter);
  color: var(--primary-blue);
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--primary-blue);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.profile-course-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.profile-course-badge:hover::before {
  left: 100%;
}

.profile-course-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.profile-certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.profile-certificate {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.profile-certificate:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.profile-certificate-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.profile-certificate-content {
  padding: 1rem;
}

.profile-certificate-name {
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-bottom: 0.5rem;
}

.profile-certificate-date {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.profile-progress {
  margin-top: 1rem;
}

.profile-progress-item {
  margin-bottom: 1rem;
}

.profile-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
}

.profile-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-gray);
  border-radius: 4px;
  overflow: hidden;
}

.profile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.profile-action-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

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

.profile-action-btn.primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.profile-action-btn.secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.bg-primary { background: var(--primary-blue); }
.bg-secondary { background: var(--light-gray); }
.bg-dark { background: var(--black); }
.bg-white { background: var(--white); }

.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--dark-gray); }
.text-white { color: var(--white); }
.text-gold { color: var(--accent-gold); }

.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--box-shadow); }

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .banner-slider {
    height: 500px;
  }
  
  .banner-title {
    font-size: 3rem;
  }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .banner-slider {
    height: 450px;
  }
  
  .banner-title {
    font-size: 2.8rem;
  }
}

/* Small Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .banner-slider {
    height: 400px;
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
  
  .main-nav ul {
    gap: 1.5rem;
  }
}

/* Tablet (768px to 991px) - DUPLICATE REMOVED */

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Mobile navigation - TO BE REBUILT */
  
  .banner-slider {
    height: 300px;
  }
  
  .banner-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-courses,
  .profile-certificates {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .header-content {
    padding: 1rem 0;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .auth-buttons a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile Small (375px to 575px) */
@media (max-width: 575px) and (min-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Mobile navigation - TO BE REBUILT */
  
  .banner-slider {
    height: 250px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-courses,
  .profile-certificates {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .header-content {
    padding: 0.8rem 0;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .auth-buttons a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Mobile Extra Small (up to 374px) */
@media (max-width: 374px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Mobile navigation - TO BE REBUILT */
  
  .banner-slider {
    height: 200px;
  }
  
  .banner-title {
    font-size: 1.3rem;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-courses,
  .profile-certificates {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .header-content {
    padding: 0.6rem 0;
  }
  
  .logo-text {
    font-size: 0.9rem;
  }
  
  .auth-buttons a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .container {
    padding: 0 10px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue-dark);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-gray);
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== NETWORK ACCESS PAGE STYLES ===== */

.network-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.network-info h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.network-info p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.access-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid #667eea;
}

.access-card h3 {
  color: #667eea;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.url-display {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  font-family: monospace;
  font-size: 1.1rem;
  word-break: break-all;
}

.copy-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #5a6fd8;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.device-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.device-item:hover {
  transform: translateY(-5px);
}

.device-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 15px;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-online { 
  background: #28a745; 
}

.status-offline { 
  background: #dc3545; 
}

.instructions {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.instructions h4 {
  color: #1976d2;
  margin-top: 0;
}

.instructions ol {
  margin: 10px 0;
  padding-left: 20px;
}

.instructions li {
  margin: 8px 0;
}

/* ===== RESPONSIVE DESIGN FOR NETWORK ACCESS PAGE ===== */

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .network-info h1 {
    font-size: 2.2rem;
  }
  
  .network-info p {
    font-size: 1.1rem;
  }
  
  .access-card {
    padding: 20px;
    margin: 15px 0;
  }
  
  .device-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .url-display {
    font-size: 1rem;
    padding: 12px;
  }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .network-info {
    padding: 30px 15px;
  }
  
  .network-info h1 {
    font-size: 2rem;
  }
  
  .network-info p {
    font-size: 1rem;
  }
  
  .access-card {
    padding: 18px;
    margin: 12px 0;
  }
  
  .device-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .device-item {
    padding: 15px;
  }
  
  .device-icon {
    font-size: 2.5rem;
  }
  
  .url-display {
    font-size: 0.9rem;
    padding: 10px;
  }
  
  .copy-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* Mobile Small (375px to 575px) */
@media (max-width: 575px) and (min-width: 375px) {
  .network-info {
    padding: 25px 10px;
  }
  
  .network-info h1 {
    font-size: 1.8rem;
  }
  
  .network-info p {
    font-size: 0.9rem;
  }
  
  .access-card {
    padding: 15px;
    margin: 10px 0;
  }
  
  .device-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .device-item {
    padding: 12px;
  }
  
  .device-icon {
    font-size: 2rem;
  }
  
  .url-display {
    font-size: 0.8rem;
    padding: 8px;
    margin: 10px 0;
  }
  
  .copy-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-left: 5px;
  }
  
  .instructions {
    padding: 15px;
  }
  
  .instructions h4 {
    font-size: 1rem;
  }
  
  .instructions ol {
    padding-left: 15px;
  }
}

/* Mobile Extra Small (up to 374px) */
@media (max-width: 374px) {
  .network-info {
    padding: 20px 8px;
  }
  
  .network-info h1 {
    font-size: 1.5rem;
  }
  
  .network-info p {
    font-size: 0.8rem;
  }
  
  .access-card {
    padding: 12px;
    margin: 8px 0;
  }
  
  .device-list {
    gap: 8px;
  }
  
  .device-item {
    padding: 10px;
  }
  
  .device-icon {
    font-size: 1.8rem;
  }
  
  .url-display {
    font-size: 0.75rem;
    padding: 6px;
    margin: 8px 0;
  }
  
  .copy-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-left: 3px;
  }
  
  .instructions {
    padding: 12px;
  }
  
  .instructions h4 {
    font-size: 0.9rem;
  }
  
  .instructions ol {
    padding-left: 12px;
  }
}