/* ==========================================
   UPMIND ENGLISH - MAIN STYLES
   ========================================== */

/* CSS Variables */
:root {
  --color-primary: #220E5B;
  --color-secondary: #CFF47F;
  --color-bg-white: #fff;
  --color-bg-cream: #FFEECC;
  --color-bg-lavender: #E1DBFD;
  --color-bg-lime: #F1FFC7;
  --color-text-dark: #1a1a1a;
  --color-text-gray: #555555;
  --font-main: "Mulish", sans-serif;
  --font-heading: "Mulish", sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(34, 14, 91, 0.08);
  --shadow-md: 0 4px 16px rgba(34, 14, 91, 0.12);
  --shadow-lg: 0 8px 24px rgba(34, 14, 91, 0.16);
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

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

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Header Styles */
.header {
  background: var(--color-primary);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--color-secondary);
}

.header-top a {
  color: var(--color-secondary);
  margin-left: 1rem;
}

.header-top a:hover {
  color: #fff;
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary) !important;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: #fff !important;
  margin: 0 0.75rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-secondary) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border-color: var(--color-secondary);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23CFF47F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Button Styles */
.btn-primary-custom {
  background: var(--color-primary);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--color-primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-bg-lime) 0%, var(--color-bg-white) 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Card Styles */
.card-custom {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: none;
  /* height: 100%; */
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg-lavender);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon .material-icons {
  font-size: 32px;
  color: var(--color-primary);
}

/* List Styles */
.list-custom {
  list-style: none;
  padding: 0;
}

.list-custom li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(34, 14, 91, 0.1);
}

.list-custom li:last-child {
  border-bottom: none;
}

.list-custom li::before {
  content: '\e5ca';
  font-family: 'Material Icons';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary);
  font-size: 24px;
  font-weight: bold;
}

/* Background Variations */
.bg-cream {
  background: var(--color-bg-cream);
}

.bg-lavender {
  background: var(--color-bg-lavender);
}

.bg-lime {
  background: var(--color-bg-lime);
}

.bg-primary {
  background: var(--color-primary);
  color: #fff;
}

.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary p {
  color: #fff;
}

/* Image Styles */
.img-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.img-bordered {
  border: 8px solid var(--color-bg-lavender);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Testimonial Styles */
.testimonial-card {
  background: var(--color-bg-lime);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 4rem;
  color: var(--color-secondary);
  line-height: 0;
  margin-bottom: 1rem;
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-secondary);
  margin-bottom: 1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--color-text-gray);
}

/* Footer Styles */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.footer a {
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-buttons .btn {
  flex: 1;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

/* Form Styles */
.form-custom .form-label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-custom .form-control {
  border: 2px solid var(--color-bg-lavender);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  transition: all 0.3s ease;
}

.form-custom .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(34, 14, 91, 0.1);
}

.form-custom .form-control.is-invalid {
  border-color: #dc3545;
}

.form-custom .invalid-feedback {
  font-size: 0.875rem;
}

/* Page Header (for secondary pages) */
.page-header {
  background: var(--color-bg-white);
  padding: 4rem 0 3rem;
}

.page-header h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
}

/* Course Card (for catalog) */
.course-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 5px solid var(--color-secondary);
}

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

.course-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.course-benefits {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.course-benefits li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-text-gray);
}

.course-benefits li::before {
  content: '\e876';
  font-family: 'Material Icons';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-size: 18px;
}

/* Map Container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thank You Page */
.thankyou-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  margin: 0 auto;
}

.thankyou-icon {
  width: 100px;
  height: 100px;
  background: var(--color-bg-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thankyou-icon .material-icons {
  font-size: 60px;
  color: var(--color-primary);
}

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

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

.rounded-custom {
  border-radius: var(--radius-lg);
}

.rounded-custom-xl {
  border-radius: var(--radius-xl);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 4rem 0 3rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .card-custom {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Carousel Custom Styles */
.carousel-custom .carousel-item {
  padding: 1rem;
}

.carousel-custom .carousel-control-prev,
.carousel-custom .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-custom .carousel-control-prev:hover,
.carousel-custom .carousel-control-next:hover {
  opacity: 1;
}

.carousel-custom .carousel-control-prev {
  left: -60px;
}

.carousel-custom .carousel-control-next {
  right: -60px;
}

@media (max-width: 992px) {
  .carousel-custom .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-custom .carousel-control-next {
    right: 10px;
  }
}

