/* css/components.css */

/* --- Buttons --- */
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
}

.button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: scale(1.05);
}

.back-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
.back-button:hover{
     background-color: #003d82;
     color: #fff;
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #003d82;
    color: #fff;
}

/* --- Language Switcher --- */
.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--primary-color);
}

/* --- Cards and Boxes --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    height: 100%;
    box-sizing: border-box; /* Ensures padding doesn't add to the height */
    display: flex;
    flex-direction: column;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.service h3 {
    margin-bottom: 15px;
}

.service p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: block;
}

.branches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.branch-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.branch-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.branch-box h3 {
    margin-top: 0;
}

.advantage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.advantage-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.advantage-box p {
    font-size: 0.95rem;
    color: var(--text-color-light);
}

/* --- Other Components --- */
.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.about-image-container {
    flex: 1 1 400px;
}
.about-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2 1 500px;
    text-align: left;
}

.about-text p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-item i {
    margin-right: 10px;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1.6;
    vertical-align: top;
}

#contact .contact-item i {
    line-height: 1.8;
}

.contact-item p {
    margin: 0;
}

.contact-item span {
    font-weight: bold;
    color: var(--text-color-light);
    margin-right: 5px;
}

/* Animation Styles */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between the flag and the text */
}

.flag-icon {
    width: 24px;   /* Set a consistent width */
    height: auto;  /* Maintain aspect ratio */
    border-radius: 3px; /* Optional: adds slightly rounded corners */
}