* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
}

.top-headline {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  background-color: rgb(255, 255, 255);
  padding: 0 15px;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.the-text h1 {
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.info-and-languages-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: black;
  text-decoration: none;
  font-size: 14px;
}

.info a p {
  margin: 0;
}

.info img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.media {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media img {
  width: 25px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.media img:hover {
  transform: scale(1.1);
}

.separator {
  width: 1px;
  height: 30px;
  background-color: gray;
}

.language-selector {
  position: relative;
  display: inline-block;
  color: red;
  font-size: 14px;
}

.custom-select {
  position: relative;
  width: 100px;
  cursor: pointer;
  user-select: none;
}

.custom-select .selected {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  gap: 8px;
}

.custom-select .selected img.flag {
  width: 22px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}

.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  margin-top: 2px;
  padding: 0;
  list-style: none;
}

.custom-select .options li {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  gap: 8px;
}

.custom-select .options li img.flag {
  width: 22px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}

.custom-select .options li:hover {
  background: #f0f0f0;
  color: rgb(255, 72, 0);
}

header {
  position: sticky;
  top: 0;
  height: 60px;
  line-height: 60px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 0 30px;
}

header img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ff0000;
}

@media (max-width: 992px) {
  .the-text h1 {
    display: flex;
  }

  .the-text > :not(h1) {
    display: none;
  }

  .info-and-languages-options .info {
    display: none;
  }

  .info-and-languages-options .language,
  .info-and-languages-options .media {
    display: flex;
  }
}

@media (min-width: 993px) {
  .the-text,
  .info-and-languages-options .info,
  .info-and-languages-options .language,
  .info-and-languages-options .media {
    display: flex;
  }
}

nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 0;
  border-radius: 6px;
  z-index: 1000;
}

nav ul li ul li a {
  color: #222;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #ccc;
  line-height: normal;
  transition: background 0.3s, color 0.3s;
}

nav ul li ul li:last-child a {
  border-bottom: none;
}

nav ul li:hover ul {
  display: flex;
}

.hamburger {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.drop-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(54, 54, 54, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  z-index: 2000;
  overflow-y: auto;
  transition: top 0.5s ease;
  overflow: hidden;
}

.drop-menu.active {
  top: 0;
}

.drop-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
}

.drop-menu .close-btn span {
  background: #000;
}

.drop-menu > div.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  margin-bottom: 20px;
}

.drop-menu > div.logo-box img {
  height: 60px;
}

.drop-menu h1 {
  font-size: 28px;
  font-weight: bold;
  color: #ff0000;
  padding-top: 20px;
}

.drop-menu .separator {
  width: 100%;
  height: 2px;
  background: #e8e8e8;
  margin: 20px 0;
}

.capitalcites-and-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.capitalcites-and-options section h2 {
  font-size: 18px;
  font-weight: bold;
  color: #ff0000;
  margin-bottom: 10px;
}

.capitalcites-and-options section a {
  display: block;
  margin: 4px 0;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.capitalcites-and-options section a:hover {
  color: rgb(255, 72, 0);
}

.drop-menu-contact-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  transition: gap 0.3s ease;
  cursor: pointer;
  color: white;
}

.contact-item img {
  width: 24px;
  height: 24px;
}

.contact-item span {
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease;
}

.contact-item:hover {
  gap: 10px;
}

.contact-item:hover span {
  max-width: 300px;
  opacity: 1;
  margin-left: 5px;
}

@media (max-width: 992px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 993px) {
  nav {
    display: flex;
  }
}

footer {
  background-color: #222;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  justify-content: space-around;
}

.footer-contents {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 20px;
  justify-content: space-around;
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

footer a {
  text-decoration: none;
}

.arrow-list {
  list-style: none;
  padding-left: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.arrow-list li {
  position: relative;
  padding-left: 25px;
  margin: 5px 0;
  padding-top: 5px;
}

.arrow-list li a {
  color: white;
  transition: 0.3s;
}

.arrow-list li a:hover {
  color: rgb(255, 140, 0);
}

.arrow-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #ff0000;
  font-size: 16px;
}

.showall {
  background-color: red;
  border: none;
  border-radius: 10px;
  padding: 10px;
  color: white;
  font-size: 15px;
  margin-top: 15px;
  transition: 0.4s;
}

.showall:hover {
  background-color: rgb(193, 0, 0);
}

.showall:active {
  background-color: rgb(255, 53, 53);
}

footer .media {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-media p {
  color: white;
  text-align: center;
  font-size: 10px;
}

.title-of-page {
  background-image: linear-gradient(to bottom, red, rgb(185, 0, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 200px;
  padding: 20px;
  gap: 15px;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);
}

.title-of-page-h1,
.title-of-page-p {
  color: rgb(255, 255, 255);
}

.title-of-page-p a {
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.grid-section {
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

.grid-card {
  position: relative;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  text-align: start;
  border-radius: 0;
  opacity: 1;
  transform: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.grid-card:hover {
  transform: scale(1.03);
  background-color: rgb(245, 245, 245);
}

.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 48px solid #e63619;
  border-left: 48px solid transparent;
}

.title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ff0000;
  margin-bottom: .5rem;
  animation: wiggle 1s ease-in-out;
}

.card-text {
  color: #333;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.card-btn {
  background-color: #e63619;
  color: #fff;
  border: none;
  padding: 12px 10px 10px 13px;
  cursor: pointer;
  font-size: .95rem;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  background: #e10613;
  border-radius: 100%;
  -webkit-box-shadow: 0px 10px 10px rgba(225, 6, 19, 0.3);
  box-shadow: 0px 10px 10px rgba(225, 6, 19, 0.3);
  display: inline-block;
  -webkit-transition: 0.34s;
  transition: 0.34s;
}

.card-btn img {
  width: 25px;
}

.card-btn:hover {
  transform: translateX(5px);
  background-color: #c70510;
  box-shadow: 0px 6px 10px rgba(199, 5, 16, 0.4);
}

@keyframes wiggle {
  0%, 100% { transform: rotateZ(0); }
  25% { transform: rotateZ(3deg); }
  50% { transform: rotateZ(-3deg); }
  75% { transform: rotateZ(2deg); }
}

@media (max-width: 900px) {
  .grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-container { grid-template-columns: 1fr; }
  .grid-section { padding: 1rem; }
}

.card-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px) brightness(0.6);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: rotateY(90deg);
  animation: flipIn 0.6s forwards;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #e10613;
}

@keyframes flipIn {
  from { transform: rotateY(90deg) scale(0.8); opacity: 0; }
  to { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.modal-content h2 { color: #e10613; margin-top: 0; }
.modal-content p { line-height: 1.6; margin-bottom: 1rem; }
.modal-content ul { list-style: disc; padding-left: 20px; }

@media (max-width: 992px) {
  .top-headline {
    height: 50px;
    padding: 0 10px;
  }

  .info-and-languages-options {
    display: flex !important;
    flex-direction: row !important;
  }

  .the-text h1 {
    font-size: 16px;
  }

  .info-and-languages-options {
    gap: 10px;
  }

  .info a {
    font-size: 13px;
  }

  .info img,
  .media img {
    width: 18px;
    height: 18px;
  }

  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .hamburger {
    width: 28px;
    height: 18px;
  }

  .drop-menu {
    padding: 30px 15px;
    justify-content: flex-start;
    align-items: center;
  }

  .drop-menu .logo-box img {
    height: 50px;
  }

  .drop-menu h1 {
    font-size: 24px;
  }

  .capitalcites-and-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 95%;
  }

  .capitalcites-and-options section h2 {
    font-size: 16px;
  }

  .capitalcites-and-options section a {
    font-size: 14px;
  }

  .drop-menu-contact-icons {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 60px;
  }

  .contact-item img {
    width: 22px;
    height: 22px;
  }

  .contact-item span {
    font-size: 14px;
  }

  .title-of-page {
    height: 160px;
    gap: 10px;
  }

  .title-of-page h1 {
    font-size: 24px;
  }

  .title-of-page-p {
    font-size: 14px;
  }

  .grid-section {
    padding: 1rem;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .grid-card {
    padding: 1rem;
  }

  .title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  footer {
    padding: 15px;
  }

  .footer-contents {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .arrow-list li {
    font-size: 14px;
  }

  .footer-media p {
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  .top-headline {
    flex-direction: column;
    height: auto;
    gap: 5px;
    padding: 10px;
  }

  .the-text h1 {
    font-size: 14px;
  }

  .info-and-languages-options {
    flex-direction: column;
    gap: 5px;
  }

  .info a {
    font-size: 12px;
  }

  .info img,
  .media img {
    width: 16px;
    height: 16px;
  }

  header {
    padding: 0 8px;
    height: 50px;
    overflow: hidden;
  }

  header img {
    height: 26px;
  }

  nav ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li a {
    font-size: 12px;
    padding: 3px 5px;
  }

  .hamburger {
    width: 26px;
    height: 16px;
  }

  .drop-menu {
    padding: 20px 10px;
    align-items: center;
  }

  .drop-menu .close-btn {
    top: 10px;
    right: 15px;
  }

  .drop-menu .logo-box {
    margin-top: 40px;
    gap: 6px;
  }

  .drop-menu .logo-box img {
    height: 40px;
  }

  .drop-menu h1 {
    font-size: 20px;
    padding-top: 10px;
  }

  .capitalcites-and-options {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    padding: 0 10px;
  }

  .capitalcites-and-options section h2 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .capitalcites-and-options section a {
    font-size: 13px;
  }

  .drop-menu-contact-icons {
    margin-top: 40px;
    gap: 12px;
  }

  .contact-item img {
    width: 20px;
    height: 20px;
  }

  .contact-item span {
    font-size: 13px;
  }

  .title-of-page {
    height: 130px;
    padding: 15px;
    gap: 8px;
  }

  .title-of-page h1 {
    font-size: 20px;
  }

  .title-of-page-p {
    font-size: 13px;
    text-align: center;
  }

  .grid-section {
    padding: 1rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grid-card {
    padding: 1rem;
  }

  .title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  .card-btn {
    width: 45px;
    height: 45px;
  }

  .card-btn img {
    width: 22px;
  }

  footer {
    padding: 10px;
  }

  .footer-contents {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .arrow-list li {
    font-size: 13px;
  }

  .footer-media p {
    font-size: 9px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  header nav {
    display: block !important;
    flex: 1;
    font-size: 10px !important;
  }
}

@media only screen and (max-width: 767px) {
  header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  header nav {
    display: block !important;
    flex: 1;
    font-size: 13px !important;
  }

  header nav ul > li:nth-child(1),
  header nav ul > li:nth-child(2),
  header nav ul > li:nth-child(3),
  header nav ul > li:nth-child(5) {
    display: none !important;
  }
}


/* -------------------------------------------------
   KEEP .info (phone + WhatsApp) ALWAYS VISIBLE
   ------------------------------------------------- */
.info,
.info a,
.info p,
.info img,
.info span {
  display: flex !important;      /* keep the flex layout */
  visibility: visible !important;
  opacity:  scalability 1 !important;
}

/* ---- Phones (≤ 600 px) ---- */
@media (max-width: 600px) {
  .info a { font-size: 12px; }            /* same size you already use elsewhere */
  .info img { width: 18px; height: 18px; }/* keep the icons from shrinking */
}

/* ---- Tablets (≤ 992 px) ---- */
@media (max-width: 992px) {
  .info a { font-size: 12px; }
  .info img { width: 18px; height: 18px; }
}

/* ---- Larger tablets / small desktops (768‑1024 px) ---- */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .info a { font-size: 13px; }   /* a little bigger on tablets */
  .info img { width: 20px; height: 20px; }
}

/* -------------------------------------------------
   PHONE LAYOUT (≤600px): 
   - Phone → OR → WhatsApp (each on own line)
   - Keep original 12px font
   - All centered, no separators
   ------------------------------------------------- */
@media (max-width: 600px) {
  .info-and-languages-options {
    flex-direction: column !important;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
  }

  /* Order: info → media → language */
  .info              { order: 1; }
  .media             { order: 2; }
  .language-selector { order: 3; }

  /* HIDE SEPARATORS */
  .separator {
    display: none !important;
  }

  /* RESTRUCTURE .info: one item per line */
  .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .info a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;   /* Keep original size */
    text-decoration: none;
    color: inherit;
    width: 100%;
    margin: 0;
  }

  .info img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }

  .info p {
    margin: 0;
    font-family: sans-serif;
  }

  /* "OR" — make it a centered standalone line */
  .info a:nth-child(2) {
    margin: 4px 0;
    font-style: italic;
    color: red;
  }

  .info a:nth-child(2) span {
    margin: 0 6px;
    font-size: 11px;
  }

  /* Remove default margin-top from second <a> */
  .info a:nth-child(2) {
    margin-top: 0 !important;
  }

  /* SOCIAL ICONS */
  .media {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 8px 0;
  }
  .media img {
    width: 18px;
    height: 18px;
  }
  

  /* LANGUAGE SELECTOR */
  .language-selector {
    display: flex;
    justify-content: center;
  }
  .custom-select .selected {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .custom-select .flag {
    width: 16px;
    height: 16px;
  }
}
