/* Powered by NXDPRO Solutions | https://www.nxdpro.com/ */

:root {
    --primary-color: #004A99;   /* Deep Corporate Blue */
    --accent-color: #c79c5d;    /* Sophisticated Gold */
    --light-gray: #f8f9fa;
    --dark-color: #2c3e50;      /* Dark Slate */
    --text-color: #333;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

html[dir="rtl"] #header .navbar a, 
html[dir="rtl"] #header .navbar a:focus {
    padding: 10px 24px 10px 0;
}

html[dir="rtl"] .navbar .dropdown ul {
    left: auto;
    right: 14px;
}

html[dir="rtl"] .section-title.text-start {
    text-align: right !important;
}

html[dir="rtl"] .contact-info i {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .footer-links ul i {
    padding-right: 0;
    padding-left: 5px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    padding-top: 70px; /* Adjusted for new navbar height */
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header#header {
  background: #062e59;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  transition: all 0.3s ease;
  padding: 20px 0;
  background: transparent;
}

#header.header-scrolled {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .navbar-brand,
#header .navbar a,
#header .mobile-nav-toggle {
    color: #fff;
    transition: color 0.3s ease;
}

#header.header-scrolled .navbar-brand,
#header.header-scrolled .navbar a,
#header.header-scrolled .mobile-nav-toggle {
    color: var(--text-color);
}

#header.header-scrolled .navbar a:hover,
#header .navbar a:hover,
#header .navbar .active {
    color: var(--accent-color);
}

#header .navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}
.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 24px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s ease;
  border-radius: 4px;
}
.navbar .dropdown ul li {
  min-width: 180px;
}
#navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-color);
}
#navbar .dropdown ul a:hover {
  color: var(--accent-color);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}


.mobile-nav-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

body.mobile-nav-active {
  overflow: hidden;
}

body.mobile-nav-active #header {
    background: rgba(20, 28, 36, 0.95);
}

body.mobile-nav-active .navbar-brand {
    color: #fff;
}

body.mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

body.mobile-nav-active .navbar ul {
    display: block;
    position: fixed;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
}

body.mobile-nav-active #header .navbar a,
body.mobile-nav-active #header .navbar a:focus {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--text-color);
}

body.mobile-nav-active .navbar a:hover,
body.mobile-nav-active .navbar .active,
body.mobile-nav-active .navbar li:hover > a {
    color: var(--accent-color);
}

body.mobile-nav-active .navbar .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

body.mobile-nav-active .navbar .dropdown > .dropdown-active {
    display: block;
}

body.mobile-nav-active .navbar .dropdown ul a {
    color: var(--text-color);
    padding: 10px 20px;
}


/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 74, 153, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1589998059171-988d887df646?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: white;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .container {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}

#hero h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1em;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2em;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero h2 {
        font-size: 1.3rem;
    }
    #hero {
        min-height: 500px;
    }
    .service-card {
        padding: 30px 20px;
    }
}

#hero .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

#hero .btn-primary:hover {
    background-color: #005cb3;
    border-color: #005cb3;
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-accent:hover {
    background-color: #b38b50;
    color: #fff;
    border-color: #b38b50;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* Sections */
section {
    padding: 80px 0;
}

/* About Section */
#about .about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* Services Section */
#services {
    background-color: var(--light-gray);
}

.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    border-radius: .375rem;
    overflow: hidden;
}

.accordion-button {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    z-index: 3;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-button i {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) i {
    color: #fff;
}

.accordion-body .list-group-item {
    background-color: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.accordion-body strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.accordion-body span, .accordion-body p {
    color: var(--secondary-color);
}

.service-card {
    background: #fff;
    border: 1px solid #eef0f2;
    padding: 40px 30px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
    border-color: var(--accent-color);
}

.service-card .service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
}

.service-card .card-text {
    color: #555;
    line-height: 1.7;
}

.feature-icon-container i {
    color: var(--accent-color);
    opacity: 0.15;
}


/* Apostille & Translations */
#apostille, #translations {
    text-align: left;
}

/* Contact Section */
#contact {
     background-color: var(--light-gray);
}

#contact .contact-info i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

#contact .contact-info li {
    margin-bottom: 15px;
}

#contact .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px;
}

#contact .form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

#contact button.btn-accent {
    padding: 12px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#qrModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#qrModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

#qrModal .modal-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--dark-color);
}

#qrModal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

#qrModal .modal-body img {
    border-radius: 8px;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--dark-color);
  color: #fff;
  font-size: 14px;
  padding: 0;
}

#footer .footer-top {
  padding: 60px 0 30px 0;
  background: #2c3e50; /* Fallback for older browsers */
  background: linear-gradient(to right, #2c3e50, #34495e);
}

#footer .footer-top .footer-info h3 {
  font-size: 24px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-color);
}

#footer .footer-top .footer-info p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.8);
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 5px;
  color: var(--accent-color);
  font-size: 12px;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: var(--accent-color);
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

#footer .credits {
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #fff;
}

#year {
    display: inline;
} 