@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Forum&display=swap');


*{ 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --primary: #536942;
    --secondary: #ffd936;
    --white: #efefef;
}
body {
    font-family: "DM Sans",sans-serif;
    color: var(--primary)
}
#main {
    background-image: url(./images/back\ copy.png);
    min-height: 70vh;
    background-position: initial;
    background-size: cover;
}
a{
    text-decoration: none;
}
.container {
    max-width: 1200px;
    padding: 16px;
    margin: auto;
}
section {
    margin: 80px auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
nav { 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-list a{
    color: #000000;
    font-weight: bolder;
    position: relative;
    transition: color 0.3s ease;
    font-size: 21.5px;
}
.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}
.nav-list a:hover::after {
    width: 100%;
}
.btn {
    padding: 12px 20px;
    background: transparent;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
    border:2px solid var(--white);
    color: var(--primary);
    font-weight: bold;
    font-family: DM Sans, Sans-serif;
}
.btn-primary {
    border: none;
    background:  var(--secondary);
    color: var(--primary);
}
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    color: var(--white);
}
.main-content .intro-heading {
    font-size: 70px
}
.main-content .main-heading{
    font-size: 100px;
    margin-top: -20px;
    text-align: center;
}
.main-content p {
    max-width: 275px;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
}
.menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    width: 30px;
}
.section-title h1 {
    font-size: 50px;
    text-align: center;
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.section-title h1::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -10px;
    left: 50%;
    background-color: var(--secondary);
    transition: width 0.5s ease, left 0.5s ease;
}
.section-title h1:hover::after {
    width: 100%;
    left: 0;
}
.services {
   display: flex;
   margin-top: 60px;
   justify-content: center;
   gap: 16px; 
   flex-wrap: wrap;
   width: 100%;
}
.service {
    width: 30%;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.5s ease-in-out;
}
.service img:hover{
    transform: scale(1.1);
}
#about-us .container .about-image img {
    border: 5px solid var(--primary); 
    border-radius: 10px; 
    padding: 5px; 
}
#about-us .container {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    text-align: left;
    align-content: left;
    font-size:35px;
}
#about-us .container .about-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
#about-us .container .about-content h1 {
    font-family: 'DM Sans', San-Serif; 
    font-size: 30px;
    font-weight: initial;
    position: relative;
    display: inline-block;
}
#questions {
    min-height: 500px;
    background-image: url(./images/main-2.png);
    background-position: bottom center;
    background-size: cover;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
#questions .container {
    max-width: 500px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
}
#questions h1 {
    font-size: 50px;
}
footer  .container{
    display: flex;
    padding: 40px 16px;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    color: var(--primary);
}
.footer-links a {
    transition: color 0.3s ease;
    color: var(--primary);
}
.footer-links a:hover {
    color: var(--secondary);
}
html {
    scroll-behavior: smooth;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="20" height="20" fill="none" stroke="%23536942" stroke-width="0.5" stroke-opacity="0.1"/%3E%3C/svg%3E');
    opacity: 0.05;
    z-index: -1;
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(83, 105, 66, 0.8);
    z-index: 1000;
    transition: opacity 0.3s ease;
}
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.popup.active .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.popup-logo {
    width: 100px;
    margin-bottom: 20px;
}
.popup h2 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.contact-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--secondary);
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}
.done-btn {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}
.done-btn:hover {
    background-color: #e5c230;
}

@media screen and (max-width:520px) {
    .menu-btn {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        background: gray;
        position: absolute;
        top: 0;
        right: -900px;
        width: 80%;
        height: 100vh;
        padding-top: 80px;
        transition: all 0.3s ease;
    }
    .nav-list.active{
        right: 0;
    }
    .nav-list li :not(:last-child){ 
        text-align: left;
        width:100%;
        padding: 10px 30px;
        border-bottom:1px solid var(--white);
    }
    #about-us .container {
        flex-direction: column;
        gap: 30px;
    }
}
#gallery {
    background-color: var(--white);
    padding: 80px 0;
}

.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.carousel-item {
    position: absolute;
    width: 290px;
    height: 390px;
    background-color: var(--primary);
    border: 5px solid var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.5s;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-btn {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#gallery {
    animation: fadeIn 1s ease-out;
}
.gallery  .galleryDef {
    max-width: 30px;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
    font-weight: initial;
}

@media screen and (max-width: 768px) {
    .carousel-wrapper {
        max-width: 90%;
    }

    .carousel-btn {
        font-size: 20px;
        padding: 8px 12px;
    }

    .prev-btn {
        left: -30px;
    }

    .next-btn {
        right: -30px;
    }
}
.email-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.interest-btn {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.interest-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}


/* Nurse Login Styles */
.nurse-login {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: white;
}

.nurse-login main {
    width: 100%;
    max-width: 400px;
}

.nurse-login #loginSection {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.nurse-login #loginSection h1 {
    color: #546942;
    margin-bottom: 20px;
    font-size: 24px;
}

.nurse-login .input-group {
    margin-bottom: 20px;
}

.nurse-login .input-group label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #546942;
}

.nurse-login .password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nurse-login .lock-icon {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
}

.nurse-login #sharedPassword {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 2px solid #546942;
    border-radius: 5px;
    font-size: 16px;
}

.nurse-login #submitPassword {
    width: 100%;
    padding: 10px;
    background-color: #ffd936;
    color: #546942;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nurse-login #submitPassword:hover {
    background-color: #ffec5c;
}

.nurse-login #passwordFeedback {
    color: #d9534f;
    margin-top: 10px;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}
/* General Popup Styling */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  
  .popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    width: 70%;
    max-width: 900px;
  }
  
  .close-btn {
    position: absolute;
    top: -20px;
  }
  

  .popup .close-btn{
    font-size: 55px;
  }
  #location {
    background-color: #f9f9f9; /* Light gray background */
    padding: 50px 0;
  }
  
  #location .container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
  }
  
  #location .section-title h1 {
    font-size: 32px;
    color: #333;
  }
  
  #location .section-title p {
    font-size: 18px;
    color: #666;
  }
  
  .map-container {
    margin-top: 20px;
  }
  
  .map-container iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px; /* Rounded corners for the map */
  }
          /* Loading Screen Styles */
          #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--white); /* Background color same as website */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000; /* Ensure it's on top */
            transition: opacity 0.5s ease;
        }

        .spinner {
            border: 8px solid rgba(83, 105, 66, 0.3); /* primary color with transparency */
            border-top: 8px solid var(--secondary); /* secondary color */
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .fade-out {
            opacity: 0;
            pointer-events: none; /* Prevent clicks on the loading screen when fading out */
        }
