/* CleanTech Styles - Based on Growtech Template */

/* CSS Variables */
:root {
  /* Colors */
  --color-black: #03133d;
  --color-grey: #68718b;
  --color-light-grey: #cdd0d8;
  --color-lighter-grey: #e6e8ec;
  --color-white: #ffffff;
  
  --color-dark-purple: #7c2bb8;
  --color-purple: #ac5fe6;
  --color-light-purple: #c58df0;
  --color-lighter-purple: #e0bdfb;
  --color-extra-light-purple: #f7edfe;
  
  --color-dark-blue: #006fba;
  --color-blue: #0097fe;
  --color-light-blue: #66c1ff;
  --color-lighter-blue: #a8dbfe;
  --color-extra-light-blue: #ebf7ff;
  
  --color-dark-deep-blue: #14358a;
  --color-deep-blue: #1b45b4;
  --color-light-deep-blue: #6287e7;
  --color-lighter-deep-blue: #c4d2f6;
  --color-extra-light-deep-blue: #edf1fc;
  
  --color-dark-green: #009e42;
  --color-green: #00c150;
  --color-light-green: #40e986;
  --color-lighter-green: #9cf5c1;
  --color-extra-light-green: #e2fced;
  
  /* Gradients */
  --gradient-purple: linear-gradient(113deg, var(--color-blue), var(--color-green));
  --gradient-blue: linear-gradient(52deg, var(--color-blue), var(--color-dark-deep-blue));
  --gradient-background: linear-gradient(84deg, var(--color-deep-blue), #1c2792);
  
  /* Shadows */
  --shadow-sm: 8px 16px 52px rgba(126, 138, 253, 0.08);
  --shadow-md: 8px 24px 96px rgba(126, 138, 253, 0.08);
  --shadow-lg: 16px 32px 74px rgba(126, 138, 253, 0.08);
  
  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Cookie Popup */
  --cookie-popup-bg: rgba(255, 255, 255, 0.98);
  --cookie-popup-border: rgba(0, 151, 254, 0.1);
  --cookie-popup-shadow: 0 -8px 32px rgba(126, 138, 253, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
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(--color-grey);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: capitalize;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

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

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

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

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

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn--medium {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  box-shadow: var(--shadow-sm);
}

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

.navbar__brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar__logo {
  height: 2rem;
  width: auto;
}

.navbar.scrolled .navbar__brand {
  color: var(--color-white);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar__nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar.scrolled .navbar__nav a {
  color: var(--color-white);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: #0077B6;
}

.navbar.scrolled .navbar__nav a:hover,
.navbar.scrolled .navbar__nav a.active {
  color: #00B4D8;
}

/* Dropdown Navigation */
.navbar__nav .dropdown {
  position: relative;
}

.navbar__nav .dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar__nav .dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.navbar__nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 119, 182, 0.3);
  padding: 0.75rem 0;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transform: translateX(4px);
}

/* Mobile Dropdown */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-dropdown-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  padding-left: 1rem;
  list-style: none;
  background: rgba(0, 119, 182, 0.05);
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
}

.mobile-dropdown-menu a {
  padding: 0.5rem 0;
  color: var(--color-grey);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.mobile-dropdown-menu a:hover {
  color: #0077B6;
}

/* Hero Section */
.hero {
  padding: 0;
  background-image: url('/assets/media/images/hero-images/hero-bg-fallback.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--color-white);
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for text readability */
  z-index: 1;
}

.hero > .container {
  width: 100%;
  padding: 2rem;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  max-width: 400px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-left: 0;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--light {
  background-color: var(--color-extra-light-blue);
}

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

.section__header h2 {
  color: var(--color-black);
  margin-bottom: 1rem;
}

.section__header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Styled values text - for longer content with line breaks */
.section__header--styled p {
  max-width: 800px;
  text-align: left;
  background: var(--color-white);
  border-radius: 15px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-green);
  line-height: 1.9;
}

/* Grid */
.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));
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--color-lighter-grey);
}

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

.card__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-purple);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card__icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

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

.card p {
  color: var(--color-grey);
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

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

.footer__section h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__section p,
.footer__section a {
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer__section a:hover {
  color: #00B4D8;
}

.footer__bottom {
  border-top: 1px solid #ffffff;
  padding-top: 1rem;
  text-align: center;
  color: #ffffff !important;
}

.footer__bottom p {
  color: #ffffff !important;
}

/* Navigation Extensions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-form {
  display: inline-block;
}

.language-select {
  background: transparent;
  border: 1px solid var(--color-white);
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--color-white);
}

.navbar.scrolled .language-select {
  border-color: rgb(255, 255, 255);
  color: var(--color-white);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--color-black);
  transition: all 0.3s ease;
}

.navbar.scrolled .mobile-menu-btn span {
  background: var(--color-white);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-lighter-grey);
  box-shadow: var(--shadow-md);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu__nav {
  list-style: none;
  padding: 1rem;
}

.mobile-menu__nav li {
  margin-bottom: 0.5rem;
}

.mobile-menu__nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-black);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-lighter-grey);
}

.mobile-menu__nav a:hover {
  color: var(--color-green);
}

/* Mobile Language Selector */
.mobile-language-selector {
  padding: 1rem 0;
  border-top: 1px solid var(--color-lighter-grey);
  margin-top: 1rem;
}

.mobile-language-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-language-form label {
  font-weight: 500;
  color: var(--color-black);
  font-size: 0.875rem;
}

.mobile-language-select {
  background: var(--color-white);
  border: 1px solid var(--color-lighter-grey);
  border-radius: 5px;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-black);
  cursor: pointer;
  min-width: 100px;
}

.mobile-language-select:focus {
  outline: none;
  border-color: var(--color-green);
}

/* Mobile Dropdown Styles */
.mobile-dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
}

.mobile-dropdown-menu a {
  border-bottom: none;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--color-dark-grey);
}

.mobile-dropdown-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

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

.social-links a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #00B4D8;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-black);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-lighter-grey);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-purple);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-red);
}

/* Responsive Background Images */
@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/media/images/hero-images/hero-bg-mobile.webp');
    background-attachment: fixed; /* Same as tablet/desktop */
    min-height: 100vh; /* Same as desktop */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero {
    background-image: url('/assets/media/images/hero-images/hero-bg-fallback.jpg');
    background-attachment: scroll; /* Better performance on very small screens */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    background-image: url('/assets/media/images/hero-images/hero-bg-tablet.webp');
    background-attachment: fixed;
    min-height: 90vh;
  }
}

@media (min-width: 1025px) {
  .hero {
    background-image: url('/assets/media/images/hero-images/hero-bg-desktop.webp');
    background-attachment: fixed;
    min-height: 100vh;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero p {
    font-size: 0.95rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar__nav {
    display: none;
  }
  
  .navbar__actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

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

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

/* 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; }

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--cookie-popup-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cookie-popup-border);
  box-shadow: var(--cookie-popup-shadow);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-popup__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-popup__content {
  flex: 1;
  min-width: 300px;
}

.cookie-popup__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-popup__title::before {
  content: "🍪";
  font-size: 1.25rem;
}

.cookie-popup__message {
  font-size: 0.875rem;
  color: var(--color-grey);
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-popup__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-family);
  white-space: nowrap;
}

.cookie-popup__btn--primary {
  background: var(--gradient-purple);
  color: var(--color-white);
}

.cookie-popup__btn--primary:hover {
  background: var(--color-green);
  transform: translateY(-1px);
}

.cookie-popup__btn--secondary {
  background: transparent;
  color: var(--color-grey);
  border: 1px solid var(--color-lighter-grey);
}

.cookie-popup__btn--secondary:hover {
  background: var(--color-lighter-grey);
  color: var(--color-black);
}

.cookie-popup__btn--link {
  background: transparent;
  color: var(--color-blue);
  padding: 0.5rem;
  text-decoration: underline;
}

/* ===== Notification Modal ===== */
.notification-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.notification-modal.show {
  opacity: 1;
  visibility: visible;
}

.notification-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.notification-modal__card {
  position: relative;
  background: var(--cookie-popup-bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.notification-modal.show .notification-modal__card {
  transform: translateY(0) scale(1);
}

.notification-modal__icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.notification-modal--success .notification-modal__icon::before {
  content: "✅";
}

.notification-modal--error .notification-modal__icon::before {
  content: "❌";
}

.notification-modal__message {
  font-size: 1.0625rem;
  color: var(--color-black);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.notification-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  background: var(--gradient-purple);
  color: var(--color-white);
  transition: all 0.2s ease;
}

.notification-modal__close:hover {
  background: var(--color-green);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .notification-modal__card {
    padding: 2rem 1.25rem 1.5rem;
  }
}

.cookie-popup__btn--link:hover {
  color: var(--color-dark-blue);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-popup__container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .cookie-popup__content {
    min-width: auto;
  }

  .cookie-popup__actions {
    justify-content: center;
    gap: 0.75rem;
  }

  .cookie-popup__btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .cookie-popup__btn--link {
    flex: none;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .cookie-popup__actions {
    flex-direction: column;
  }

  .cookie-popup__btn {
    width: 100%;
  }

  .cookie-popup__btn--link {
    width: auto;
    align-self: center;
  }
}

/* Quill Editor Classes for Frontend Content */

/* Text Alignment */
.ql-align-center {
    text-align: center !important;
}

.ql-align-right {
    text-align: right !important;
}

.ql-align-justify {
    text-align: justify !important;
}

.ql-align-left {
    text-align: left !important;
}

/* Text Formatting */
.ql-bold {
    font-weight: bold !important;
}

.ql-italic {
    font-style: italic !important;
}

.ql-underline {
    text-decoration: underline !important;
}

/* Font Sizes */
.ql-size-small {
    font-size: 0.75em !important;
}

.ql-size-large {
    font-size: 1.5em !important;
}

.ql-size-huge {
    font-size: 2.5em !important;
}

/* Headers */
.ql-header-1 {
    font-size: 2em !important;
    font-weight: bold !important;
    margin: 0.67em 0 !important;
}

.ql-header-2 {
    font-size: 1.5em !important;
    font-weight: bold !important;
    margin: 0.83em 0 !important;
}

.ql-header-3 {
    font-size: 1.17em !important;
    font-weight: bold !important;
    margin: 1em 0 !important;
}

/* Lists */
.ql-list {
    margin: 1em 0 !important;
    padding-left: 1.5em !important;
}

.ql-list[data-list="ordered"] {
    list-style-type: decimal !important;
}

.ql-list[data-list="bullet"] {
    list-style-type: disc !important;
}

/* List items */
li[data-list="ordered"] {
    list-style-type: decimal !important;
}

li[data-list="bullet"] {
    list-style-type: disc !important;
}

/* List Item Alignment - Quill applies alignment classes directly to <li> elements */
li.ql-align-center {
    text-align: center !important;
    list-style-position: inside !important;
}

li.ql-align-right {
    text-align: right !important;
    list-style-position: inside !important;
}

li.ql-align-justify {
    text-align: justify !important;
    list-style-position: inside !important;
}

li.ql-align-left {
    text-align: left !important;
    list-style-position: inside !important;
}

/* Also handle cases where alignment is on the ul/ol container */
.ql-align-center ul,
.ql-align-center ol {
    list-style-position: inside !important;
    text-align: center !important;
    padding-left: 0 !important;
}

.ql-align-right ul,
.ql-align-right ol {
    list-style-position: inside !important;
    text-align: right !important;
    padding-left: 0 !important;
}

.ql-align-justify ul,
.ql-align-justify ol {
    list-style-position: inside !important;
    text-align: justify !important;
    padding-left: 0 !important;
}

/* Direct list alignment classes */
ul.ql-align-center,
ol.ql-align-center {
    list-style-position: inside !important;
    text-align: center !important;
    padding-left: 0 !important;
}

ul.ql-align-right,
ol.ql-align-right {
    list-style-position: inside !important;
    text-align: right !important;
    padding-left: 0 !important;
}

ul.ql-align-justify,
ol.ql-align-justify {
    list-style-position: inside !important;
    text-align: justify !important;
    padding-left: 0 !important;
}

/* Indentation */
.ql-indent-1 {
    padding-left: 3em !important;
}

.ql-indent-2 {
    padding-left: 6em !important;
}

.ql-indent-3 {
    padding-left: 9em !important;
}

.ql-indent-4 {
    padding-left: 12em !important;
}

.ql-indent-5 {
    padding-left: 15em !important;
}

.ql-indent-6 {
    padding-left: 18em !important;
}

.ql-indent-7 {
    padding-left: 21em !important;
}

.ql-indent-8 {
    padding-left: 24em !important;
}

/* Text Direction */
.ql-direction-rtl {
    direction: rtl !important;
    text-align: right !important;
}

/* Links */
.ql-link {
    color: #0066cc !important;
    text-decoration: underline !important;
}

.ql-link:hover {
    color: #0052a3 !important;
}

/* Images */
.ql-image {
    max-width: 100% !important;
    height: auto !important;
}

/* Code blocks */
.ql-code-block {
    background-color: #f4f4f4 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 1em !important;
    font-family: 'Courier New', Courier, monospace !important;
    white-space: pre-wrap !important;
    margin: 1em 0 !important;
}

/* Inline code */
.ql-code {
    background-color: #f4f4f4 !important;
    padding: 0.2em 0.4em !important;
    border-radius: 3px !important;
    font-family: 'Courier New', Courier, monospace !important;
}

/* Blockquotes */
.ql-blockquote {
    border-left: 4px solid #ccc !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    font-style: italic !important;
    color: #666 !important;
}

/* Video */
.ql-video {
    max-width: 100% !important;
    height: auto !important;
}
