/* --- CSS Variables (Theme Definition) --- */
:root {
  --color-primary: #daa520; /* Gold from the boat */
  --color-secondary: #17a2b8; /* Blue from the water */
  --color-dark: #2c2c2c; /* Dark background for top-bar */
  --color-dark-text: #343a40; /* Main text color */
  --color-light-text: #e0e0e0; /* Light text on dark background */
  --color-muted-text: #777; /* Muted text color for footer */
  --color-border: #555; /* Border color for social icons */
  --background-light: #f8f9fa;
  --background-footer: #f4f4f4;
  --font-family-base: "Tajawal", sans-serif;
  --header-height: 80px; /* Control header height */
  --menu-transition-speed: 0.4s;
}

/* --- Global Styles --- */
body {
  font-family: var(--font-family-base);
  background-color: var(--background-light);
  color: var(--color-dark-text);
}
.body-no-scroll {
  overflow: hidden;
}
a {
  text-decoration: none;
}
.row {
  margin: 0;
  padding: 0;
}
/* --- Header --- */
/* Top Bar Styles */
.top-bar {
  background-color: var(--color-dark);
  color: var(--color-light-text);
  font-size: 0.9rem;
  padding: 8px 0;
}

.top-bar .social-links a {
  color: var(--color-light-text);
  margin: 0 5px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.top-bar .social-links span {
  margin-left: 15px;
  font-weight: bold;
}

.date-time {
  direction: ltr;
}

/* --- New Simplified Header --- */
.main-header .navbar {
  height: var(--header-height);
  background-color: var(--background-header);
  border-bottom: 1px solid #eaeaea;
}

.logo-img {
  max-height: 55px; /* Adjust size as needed */
  width: auto;
}

/* Desktop Menu links */
.main-header .nav-link {
  font-weight: 700;
  color: var(--color-dark-text);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
  color: var(--color-primary);
}

.main-header .nav-link.active {
  color: var(--color-primary);
}

/* Mobile Toggler Icon */
.navbar-toggler {
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark-text);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* --- Custom Mobile Menu Panel --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden; /* Use visibility instead of display for transitions */
  transition: opacity var(--menu-transition-speed) ease,
    visibility var(--menu-transition-speed) ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%; /* Start off-screen */
  width: 320px;
  max-width: 90%;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: right var(--menu-transition-speed)
    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px 0 0 20px; /* Rounded corners on the left */
  display: flex;
  flex-direction: column;
}

.mobile-menu-panel.show {
  right: 0; /* Slide in */
}

.mobile-menu-panel .close-btn {
  position: absolute;
  top: 15px;
  left: 20px; /* Switched to left for close button */
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-muted-text);
  cursor: pointer;
}

.mobile-menu-panel .menu-content {
  padding: 60px 25px 25px 25px;
  overflow-y: auto;
}

.mobile-menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-panel ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  text-decoration: none;
  color: var(--color-dark-text);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.mobile-menu-panel ul li a:hover {
  background-color: #f7f7f7;
}

.mobile-menu-panel ul li a.active-mobile-link {
  color: var(--color-primary);
}

.mobile-menu-panel .separator {
  height: 1px;
  background-color: #ddd;
  margin: 20px 0;
}
/* --- Footer --- */
.site-footer {
  background-color: var(--background-footer);
  padding: 50px 0 20px 0;
  color: var(--color-muted-text);
}

.site-footer h5 {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.site-footer .footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.site-footer ul {
  padding-right: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li a {
  color: var(--color-dark-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: var(--color-primary);
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.07);
  color: var(--color-dark-text);
  margin: 0 4px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--color-primary);
  color: white;
}

.site-footer hr {
  margin-top: 30px;
  margin-bottom: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright {
  color: var(--color-muted-text);
  font-size: 0.9rem;
}
/* --- Styling for Footer Icons --- */
.footer-links-with-icons li a i {
  margin-left: 8px; /* Adds space between icon and text */
  min-width: 20px; /* Ensures text alignment even with different icon widths */
  color: var(--color-primary); /* Give icons the primary color to stand out */
}

/* On hover, make the link text primary as well */
.footer-links-with-icons li a:hover {
  color: var(--color-primary);
}
.highlight {
  color: var(--color-primary);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.section-header .title-line {
  width: 6px;
  height: 60px;
  background-color: var(--color-primary);
  border-radius: 3px;
}
.section-header .title-container {
  text-align: right;
}
.section-header h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0 0 10px;
}
.section-header p {
  color: var(--color-dark-text);
  margin: 0;
}
