:root {
  --brand: #2d6df6;
  --brand-2: #2dc8f6;
  --dark: #0f172a;
  --muted: #64748b;
  --bg: #0b1022;
  --card: #0f1530;
  --radius: 1.25rem;
  --radius-full: 999px;
  --transition: all 1s ease;
}

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

body {
  font-family: "Arial", "Tahoma", sans-serif;
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 0px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky !important;
  top: 0;
  right: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(35, 155, 182, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

/* Logo */
.navbar img {
  position: relative;
  top: 5px;
  right: 210px;
  width: 60px;
  height: auto;
}
@media (max-width: 992px) {
  .navbar img {
    display: block;
    position: absolute;
    top: -10px;
    right: 180px;
    margin-inline-end: 0.75rem;
  }
}

/* Brand text */
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
  margin-inline-end: 4.5rem;
}

/* Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #f0f4f8 !important;
  transition: var(--transition);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: #f9b43a !important;
}

/* Dropdown */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.dropdown-item {
  font-weight: 500;
  color: #222;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff !important;
}

/* Submenu RTL fix */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  left: auto;
  margin-top: -0.25rem;
}
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* Navbar when scrolled */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.285) !important;
}

/* Toggler */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Header */
header {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

.logo {
  font-size: 4rem;
  font-weight: bold;
  color: #7c320c;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 3px 3px 6px rgba(124, 50, 12, 0.3),
      0 0 20px rgba(249, 180, 58, 0.2);
  }
  to {
    text-shadow: 3px 3px 6px rgba(124, 50, 12, 0.3),
      0 0 35px rgba(249, 180, 58, 0.4);
  }
}

.page-title {
  font-size: 2.2rem;
  color: #239cb6;
  font-weight: 700;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.1rem;
  color: #7c320c;
  opacity: 0.9;
}

/* Section Cards */
.section-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  margin: 30px 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  animation: slideUp 1s ease-out;
}

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

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f9b43a, #239cb6, #7c320c);
  border-radius: 25px 25px 0 0;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(124, 50, 12, 0.1);
}

.section-icon {
  font-size: 3rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.section-title {
  font-size: 2rem;
  color: #7c320c;
  font-weight: 700;
}

/* Section Content */
.section-content {
  line-height: 1.8;
}

.intro-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  text-align: justify;
  background: rgba(249, 180, 58, 0.1);
  padding: 20px;
  border-radius: 15px;
  border-right: 4px solid #f9b43a;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.principle-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f9b43a, #239cb6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.principle-card:hover::before {
  transform: scaleX(1);
}

.principle-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.principle-card h3 {
  font-size: 1.3rem;
  color: #7c320c;
  margin-bottom: 15px;
  font-weight: 600;
}

.principle-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Law Articles */
.law-articles {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.law-article {
  background: rgba(35, 156, 182, 0.05);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  border-right: 5px solid #239cb6;
  transition: all 0.3s ease;
}

.law-article:hover {
  background: rgba(35, 156, 182, 0.1);
  transform: translateX(-5px);
  box-shadow: 0 10px 30px rgba(35, 156, 182, 0.1);
}

.article-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.article-number {
  background: linear-gradient(45deg, #239cb6, #f9b43a);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(35, 156, 182, 0.3);
}

.article-title {
  font-size: 1.5rem;
  color: #7c320c;
  font-weight: 600;
}

.article-content {
  margin-right: 60px;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  padding: 12px 0;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  position: relative;
  padding-right: 25px;
}

.article-list li::before {
  content: "◆";
  position: absolute;
  right: 0;
  color: #f9b43a;
  font-size: 1.2rem;
}

.article-list li:hover {
  color: #333;
  background: rgba(249, 180, 58, 0.1);
  padding: 12px 15px;
  border-radius: 10px;
  margin: 5px 0;
}

/* Highlight Effects */
.highlight-1 {
  color: #f9b43a;
  font-weight: 600;
  position: relative;
}

.highlight-2 {
  color: #7c320c;
  font-weight: 600;
  position: relative;
}

.highlight-3 {
  color: #239cb6;
  font-weight: 600;
  position: relative;
}

/* Note Section */
.note-section {
  margin: 40px 20px;
}

.note-card {
  background: rgba(249, 180, 58, 0.15);
  border: 2px solid #f9b43a;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  animation: slideUpNote 1s ease-out 0.5s both;
}

@keyframes slideUpNote {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.note-icon {
  font-size: 2.5rem;
  animation: shake 2s infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.note-content h3 {
  font-size: 1.5rem;
  color: #7c320c;
  margin-bottom: 10px;
}

.note-content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  margin: 50px 20px;
  text-align: center;
  animation: slideUpCTA 1s ease-out 1s both;
}

@keyframes slideUpCTA {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cta-content {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-content h3 {
  font-size: 2rem;
  color: #7c320c;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(45deg, #f9b43a, #239cb6);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
  background: transparent;
  color: #7c320c;
  border: 2px solid #7c320c;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.cta-button.primary:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
  background: #7c320c;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .section-card {
    margin: 20px 10px;
    padding: 25px 20px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-content {
    margin-right: 0;
  }

  .article-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .article-list li {
    margin-right: 0;
    padding-right: 20px;
  }

  .note-card {
    flex-direction: column;
    text-align: center;
  }
}

.section-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #f7cc49);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-icon i {
  color: #fff;
  font-size: 28px;
}

.principle-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #ffc107);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.principle-icon i {
  color: #fff;
  font-size: 28px;
}
