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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #F7F7F7;
}

.container {
    width: 85%;
    margin: 0 auto;
}

/* Header styles */
header {
    background: #FFFFFF;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img-main {
    width: 60px;
}

.logo i {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #24627b;
}

.social-networks {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-networks i {
    font-size: 24px;
    transition: transform 0.3s;
}

.social-networks i:hover {
    transform: scale(1.1);
}

/* Hero section */
.hero {
    padding-top: 80px;
    background: url('../image/header_bg.png') no-repeat center/cover;
}

.hero_container {
    width: 80%;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: -100px;
}

.hero_text {
    flex: 1;
}

.hero_button{
    background-color: #24627b;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
}

.hero_text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero_text span {
    color: #24627b;
}

.hero_text p {
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Technologies section */
.Technologies-h2 {
    font-size: 32px;
    color: #fff;
    text-align: center;
    background-color: #24627b;
    padding: 20px 0;
    margin: 0;
}

.Technologies-h2 span {
    color: #42a5f5;
}

.technologies {
    background-color: #24627b;
    padding: 50px;
}

.text-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.text-section-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.text-section-text-icon {
    color: #42a5f5;
    font-size: 10px;
}

.videoYoutube {
    width: 100%;
    height: 620px;
    border-radius: 8px;
}

/* Certificates section */
.certificates-section {
    background-color: #24627b;
    padding: 40px 20px;
}

.certificates-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.certificates-images img {
    max-width: 300px;
    border-radius: 8px;
    margin-top: 100px;
    transform: rotate(-90deg);
}


/* registration doctor */

  .registration-container {
      padding: 2rem;
      background: #24627b;
  }

  .registration-title {
      text-align: center;
      color: #ffffff;
      margin-bottom: 2rem;
      font-size: 24px;
  }

  .registration-form-row {
      display: flex;
      gap: 20px;
      margin-bottom: 1rem;
  }

  @media (max-width: 768px) {
      .registration-form-row {
          flex-direction: column;
          gap: 1rem;
      }
  }

  .registration-form-group {
      flex: 1;
      margin-bottom: 1rem;
  }

  .registration-label {
      display: block;
      margin-bottom: 0.5rem;
      color: #ffffff;
      font-weight: 500;
  }

  .registration-label.required::after {
      content: '*';
      color: #ff4444;
      margin-left: 4px;
  }

  .registration-input,
  .registration-select,
  .registration-textarea {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-size: 16px;
      transition: border-color 0.3s;
  }

  .registration-input:focus,
  .registration-select:focus,
  .registration-textarea:focus {
      outline: none;
      border-color: #4a90e2;
  }

  .registration-textarea {
      min-height: 100px;
      resize: vertical;
  }

  .registration-error {
      color: #ff4444;
      font-size: 14px;
      margin-top: 0.25rem;
      display: none;
  }

  .registration-button {
      display: block;
      width: 100%;
      padding: 1rem;
      background: #4a90e2;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.3s;
  }

  .registration-button:hover {
      background: #357abd;
  }

  .registration-button:disabled {
      background: #ccc;
      cursor: not-allowed;
  }

  .registration-button.loading {
      position: relative;
      color: transparent;
  }

  .registration-button.loading::after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      top: 50%;
      left: 50%;
      margin: -10px 0 0 -10px;
      border: 3px solid #ffffff;
      border-top-color: transparent;
      border-radius: 50%;
      animation: button-loading 0.8s linear infinite;
  }

  @keyframes button-loading {
      to {
          transform: rotate(360deg);
      }
  }

  .time-status {
      margin-top: 0.5rem;
      font-size: 14px;
  }

  /* Modal styles */
  .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      animation: fadeIn 0.3s ease-out;
  }

  .modal-content {
      position: relative;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 2rem;
      border-radius: 10px;
      max-width: 400px;
      width: 90%;
      text-align: center;
      animation: slideIn 0.3s ease-out;
  }

  .modal-icon {
      font-size: 48px;
      margin-bottom: 1rem;
  }

  .modal-title {
      font-size: 20px;
      margin-bottom: 1rem;
      color: #333;
  }

  .modal-message {
      color: #666;
      margin-bottom: 1.5rem;
      line-height: 1.5;
  }

  .modal-button {
      padding: 0.75rem 2rem;
      background: #4a90e2;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      transition: background-color 0.3s;
  }

  .modal-button:hover {
      background: #357abd;
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
      }

      to {
          opacity: 1;
      }
  }

  @keyframes slideIn {
      from {
          transform: translate(-50%, -60%);
          opacity: 0;
      }

      to {
          transform: translate(-50%, -50%);
          opacity: 1;
      }
  }

  .success-message,
  .error-message {
      padding: 1rem;
      border-radius: 5px;
      margin-bottom: 1rem;
      display: none;
  }

  .success-message {
      background: #e8f5e9;
      color: #2e7d32;
      border: 1px solid #c8e6c9;
  }

  .error-message {
      background: #ffebee;
      color: #c62828;
      border: 1px solid #ffcdd2;
  }

/* Footer styles */

footer {
    background-color: #000;
    color: #fff;
    padding: 50px 0 20px;
    border-top: 15px solid #24627b;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #B0C7D1;
    margin-bottom: 20px;
}

.footer-contact h4,
.footer-address h4 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.qr-code-placeholder img {
    width: 100px;
    margin: 20px 0;
}

.map-placeholder iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 14px;
    color: #B0C7D1;
}

.footer-bottom p a {
    text-decoration: none;
    color: #B0C7D1;
}

.footer-bottom p a:hover {
    color: #24627b;
}

/* Optional: Adjust font size on smaller screens */
/* Tablet and smaller screens */
@media (max-width: 900px) {
    .container {
        width: 90%;
        padding: 0 10px;
    }

    /* Header styles */
    .header-container {
        flex-direction: column;
        text-align: start;
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 25px;
    }

    .logo i {
        display: inline;
    }

    .icons_div {
        width: 70px;
        display: flex;
        justify-content: space-between;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
        text-align: start;
    }

    nav ul li {
        margin: 5px 0;
    }

    /* Hero section */
    .hero {
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
    }

    .hero_text {
        text-align: center;
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero_container {
        display: block;
    }

    .hero-image {
        width: 100%;
        margin-top: 20px;
    }

    .hero-image img {
        width: 80%;
    }

    /* Technologies section */
    .technologies .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .videoYoutube {
        width: 100%;
        height: 400px;
        margin-top: 10px;
    }

    .text-section h2 {
        font-size: 28px;
    }

    .text-section p {
        font-size: 16px;
        margin: 10px 0;
    }

    .tech-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tech,
    .search-more {
        padding: 8px 16px;
        font-size: 14px;
        margin: 5px;
    }

    /* Agencies section */
    .agencies .agency-list {
        grid-template-columns: 1fr;
    }

    .agency {
        margin-bottom: 20px;
    }

    .Discounts {
        margin: 15px 0;
    }

    .certificates-images img {
        margin-top: 100px;
    }

    /* World map section */
    .world-map-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .text-content {
        margin: 0 auto 20px;
        max-width: 100%;
    }

    .text-content h2 {
        text-align: center;
    }

    .map-image {
        max-width: 100%;
    }

    .map-image img {
        width: 100%;
        margin-top: 10px;
    }

    /* Footer styles */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo img {
        height: 200px;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-info,
    .footer-address {
        margin-bottom: 20px;
    }

    .social-networks {
        width: 100%;
        text-align: start !important;
        display: flex;
        justify-content: space-between;
    }


    .footer-newsletter {
        h3 {
            font-size: 20px;
        }

        p {
            font-size: 14px;
        }
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;

        input {
            width: 100%;
            margin-bottom: 10px;
        }

        button {
            width: 100%;
            padding: 10px;
        }
    }

    .footer-contact h4,
    .footer-address h4 {
        font-size: 20px;
    }

    .map-placeholder iframe {
        height: 180px;
    }

    .footer-bottom {
        padding-top: 15px;
        margin-top: 20px;

        p {
            font-size: 12px;
        }
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .text-content h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .certificates-images img {
        max-width: 100%;
        margin-top: 170px;
        margin-bottom: 20px;
    }

    footer {
        padding: 30px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo img {
        height: 200px;
    }

    .social-networks {
        display: flex;
        justify-content: space-between;
    }

    .footer-contact h4,
    .footer-address h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .qr-code-placeholder {
        text-align: center;

        img {
            width: 80px;
            margin: 15px 0;
        }
    }

    .map-placeholder iframe {
        height: 160px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .footer-container {
        gap: 25px;
    }

    .footer-logo img {
        height: 160px;
    }

    .footer-contact h4,
    .footer-address h4 {
        font-size: 16px;
    }

    .social-networks {
        display: flex;
        justify-content: space-between;
    }

    .qr-code-placeholder img {
        width: 70px;
    }

    .map-placeholder iframe {
        height: 140px;
    }
}