/* General Reset */
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Josefin Sans", sans-serif;
  overflow-x: hidden;
}

h1 {
  margin: 0;
}

/* Overall Page Layout */
.about-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Header */
.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
}

.nav ul {
  list-style: none;
  padding: 17px 7px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  float: left;
}

.nav-footer ul {
  list-style: none;
  padding: 0 7px 17px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  float: left;

  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.logo {
  position: relative;
  width: 100px;
}

.nav {
  position: relative;
}

.nav ul li a {
  text-decoration: none;
  color: #000;
    /*color: var(--color-dimgray-200);*/

  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
}

a:hover {
  color: #0b60ec !important;
}

a:active {
  color: #0b60ec;
}


        .about-rascal-desktop-item {
    /*top: 7px;*/
    /*left: 1811px;*/
    width: 72.4px;
    height: 55.1px;
    cursor: pointer;
}

.image-icon3 {
    /*position: absolute;*/
    /*top: 981px;*/
    /*left: 1825px;*/
    width: 79.3px;
    height: 65.3px;
    object-fit: contain;
}

.path-1-icon3 {
    /*position: absolute;*/
    /*top: 991px;*/
    /*left: 9px;*/
    width: 73.6px;
    height: 61.6px;
    object-fit: contain;
}


/* Content Section */
.content {
  display: flex;
  flex: 1;
  width: 82%;
  margin: 0 auto;
  gap: 0px;
  position: relative;
  vertical-align: middle;
  align-items: center;
}

.content-text {
  font-size: 51px !important;
  line-height: 52px !important;
  font-weight: 400 !important;
  font-family: var(--font-abril-fatface) !important;
  color: var(--color-dimgray-100) !important;
  text-align: center !important;
}

.page-specific-text {
  /* Placeholder for page-specific styles */
}

.main-image-wrapper {
  flex: 1;
}

.main-image {
  width: 100%;
  max-width: 570px;
  height: auto;
  border-radius: 10px;
}

.text {
  flex: 1;
  text-align: left;
}

.text h1 {
    font-family: "Abril Fatface", serif;
    font-size: 46px;
    /* margin-bottom: 20px; */
}

.text p {
  font-size: 20px; /* Large font size */
  line-height: 1.5;
  color: var(--color-dimgray-200);
  margin-bottom: 20px;
}



/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

.footer a {
  text-decoration: none;
  /*color: var(--color-dimgray-200);*/
   color: #000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: -0.04em;
  /*padding: 0 7px 17px 0;*/
}

.left-links,
.right-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrow-bottom-left,
.arrow-bottom-right {
  width: 50px;
  height: auto;
}

.arrow {
  font-size: 24px;
  text-decoration: none;
  color: var(--color-white);
}

/* Mobile-Specific Layout (Max width: 450px) */
@media screen and (max-width: 450px) {
  .about-page {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    background: url('./public/caliph_i_rasul_main_image.png') no-repeat center center/cover; /* Background image */
  }

  .about-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 86, 208, 0.76); /* Blue overlay with opacity */
    z-index: 1;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 2; /* Ensure it sits above the overlay */
    position: relative;
  }

  .logo {
    width: 80px;
    content: url('./public/logo_white.png'); /* Use white logo */
  }

  .nav ul {
    display: none; /* Hide navigation links on mobile */
  }

  .content {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 2;
    flex: 1;
    width: 95%;
    color: #ffffff;
        font-family: "Josefin Sans", sans-serif !important;

  }

  .main-image-wrapper,
  .main-image {
    display: none;
  }

  .footer,
  .path-1-icon3,
  .image-icon3,
  .about-rascal-desktop-item {
    display: none;
  }

  .page-specific-text {
    color: white !important;
    font-size: 0.58em !important;
    line-height: 1.2em;
    text-align: left;
    font-weight: 300 !important;
    font-family: "Josefin Sans", sans-serif !important;
    width: 100%;
    padding: 10px 0 10px 5px;
  }
  
  .page-specific-text p {
    font-size: 20px;
    line-height: 1.8;
    /*color: var(--color-dimgray-200);*/
        font-family: "Josefin Sans", sans-serif !important;

    margin-bottom: 20px;
}

    .content p, h1, label, button, i{
        color:white !important;
            font-family: "Josefin Sans", sans-serif !important;

    }
    
        .contact-form button {
        padding: 10px 20px;
        background-color: var(--color-dimgray-200);
        color: #ffffff;
        border: none;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
}


/* Social Media Section */
.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  font-size: 32px;
  color: var(--color-dimgray-200); /* Default icon color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #000000; /* Change to black on hover */
}


/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.contact-form .form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form label {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-dimgray-200);
  width: 80px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid var(--color-dimgray-200);
  border-radius: 5px;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  padding: 10px 20px;
  background-color: #000 !important;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #000000;
}


/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 equal-width columns */
  grid-template-rows: repeat(2, 50%); /* 2 rows, each taking 50% of grid height */
  gap: 16px; /* Space between grid items */
  max-height: 80vh; /* Constrain the grid height to 80% of viewport */
  height: 80vh; /* Explicit height for the grid */
  overflow: hidden;
}

/* Horizontal Images */
.gallery-item.horizontal {
  grid-column: span 3; /* Spans 3 columns */
  grid-row: span 1; /* Spans 1 row */
  width: 100%;
  height: 100%; /* Occupies the full height of the grid cell */
  object-fit: cover;
}

/* Vertical Images */
.gallery-item.vertical {
  grid-column: span 1; /* Spans 1 column */
  grid-row: span 1; /* Spans 1 row */
  width: 100%;
  height: 100%; /* Occupies the full height of the grid cell */
  object-fit: cover;
}

/* Mobile Layout */
@media screen and (max-width: 450px) {
  .gallery {
    margin: 0 auto;
  }

  .gallery-item {
    width: 100%; /* Default width for images */
    object-fit: cover; /* Ensure images look good */
    cursor: pointer; /* Indicate clickable items */
  }
}


/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}



/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .gallery {
    flex-direction: column;
  }

  .gallery-left,
  .gallery-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery-item {
    width: 45%; /* Adjust width for smaller screens */
    margin: 5px;
  }
}

@media screen and (max-width: 450px) {

    /*  .align_top{*/
    /*    align-items:flex-start;*/
    /*}*/
}

