html,body,h1,header,p,div,a,nav{
    margin: 0px;
    padding: 0px;
    font-size:16px;
    text-decoration: none;
}
body{
    background-color: #E0F7F7;
}

/* For pages with little content, you might want to push footer to bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

ul{
    margin: 0px;
    list-style-type: none;
    margin-top: 0px;
    padding: 0px;
}

li{
    /* background-color: red; */
    padding:10px ;

}

a {
    color: #F5F5DC;
}

.top-header {
    background-color: #008080;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    position: fixed; /* Keeps it at the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it's above other elements */
}
.brand {
    color:#F5F5DC;
    text-align: center;
    width: 100%;
}

.side-nav {
    background-color: #005A5A;
    width: 150px;
    height: 100vh; /* Full viewport height */
    color: #F5F5DC;
    position: fixed; /* Keeps it in place */
    top: 50px; /* Places it below the header */
    left: 0;
}

.side-nav ul {
    margin-top: 10px;
    margin-left: 15px;
}

.side-nav a:hover{
    color:#F5F5DC;
}

.side-nav li {
    /*background-color: red;  Apply background to li */
    width: 100%;
    padding: 0; /* Remove padding if necessary */
    margin: 0; /* Remove margin */
}

.side-nav li:hover {
    background-color: #008080; /* Change background on hover */
}

.side-nav a {
    display: block; /* Make links fill the li */
    color: white; /* Adjust text color */
    padding: 10px 10px; /* Padding inside the link */
    text-decoration: none; /* Remove underline */
}

.content {
    margin-left: 160px; /* Prevents overlap with the side menu */
    padding-top: 60px; /* Prevents overlap with the fixed header */
    margin-right: 10px;
}

.top-nav {
    width: 100%;
    background-color: #005A5A;
    height: 40px; /* Increase height for better spacing */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 0;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
}

.top-nav li {
    flex: 1; /* Makes all items equal width */
    text-align: center;
}

.top-nav a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 20px; /* Match the nav height for centering */
    text-decoration: none;
    color: white;
    padding: 0; /* Remove extra spacing */
}

.top-nav li:hover {
    background-color: #008080;
}

.top-nav a:hover{
    color:#F5F5DC;
}

/* Cards */

.card-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.card {
    background-color: white;
    width: 220px; /* Increased width */
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 150px; /* Adjusted height */
    border-radius: 5px;
    object-fit: cover;
}

.card h3 {
    margin: 8px 0;
    font-size: 15px; /* Slightly bigger text */
    color: #333;
}

.card p {
    font-size: 13px; /* Slightly bigger description */
    color: #666;
        padding-bottom: 35px;
}

.card button {
    background-color: #005A5A;
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 6px;
    font-size: 13px;
        position: absolute;
    bottom: 8px;
    right: 25%;
    width: 115px;
}

.card button:hover {
    background-color: #E6C200;
}



/* Add to style.css */
.card {
    position: relative;
    overflow: hidden;
}

.card.loading img {
    opacity: 0.3;
}

.card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #005A5A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* End cards */

/* Icons */
.icon {
    margin-right: 8px;

}






/* End icon */

/* Update in style.css */
.footer {
    color: #005A5A;
    text-align: right;
    padding: 10px;
    font-size: 14px;
    /* width: 100%; */
    margin-top: 20px;
    position: relative; /* Change from fixed to relative */
}
/* ========== Mobile Styles ========== */
@media (max-width: 768px) {
    /* Header */
    .top-header {
        justify-content: space-between;
        padding: 0 10px;
        height: auto;
        flex-wrap: wrap;
    }

    /* Hamburger menu button */
    .menu-toggle {
        background: none;
        border: none;
        font-size: 24px;
        color: #F5F5DC;
        cursor: pointer;
    }

    /* Side nav hidden by default on mobile */
    .side-nav {
        position: fixed;
        top: 44px;
        left: -150px; /* Hide off screen */
        height: calc(101vh - 50px);
        transition: left 0.3s ease;
        z-index: 2000;
    }
    .side-nav.open {
        left: 0; /* Slide in */
    }

    /* Content fills full width when side nav hidden */
    .content {
        margin-left: 0;
        padding-top: 70px;
    }

    /* Top nav: scroll horizontally on small screens */
    .top-nav ul {
        overflow-x: auto;
        white-space: nowrap;
    }
    .top-nav li {
        flex: none;
        display: inline-block;
    }
}

@media (max-width: 530px) {
    .side-nav {
        top: 61px;
        height: calc(99vh - 50px);
    }
    }

/* Make scrollbar invisible but scrollable on mobile nav */
.top-nav ul::-webkit-scrollbar {
    display: none;
}

/* Hide hamburger button on desktop */
.menu-toggle {
    display: none;
}

/* Show hamburger button only on small screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}
/* Hide by default on large screens */
.menu-toggle {
    display: none;
}

/* Show on small screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: #F5F5DC;
        cursor: pointer;
    }

    .top-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 5px 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .brand {
        flex: 1;
        color: #F5F5DC;
        text-align: center;
    }

    .brand h1 {
        font-size: 14px;
        line-height: 1.2;
    }
}

/* Mobile top navigation */
@media (max-width: 768px) {
    .top-nav {
        overflow-x: auto;
        white-space: nowrap;
        height: auto;
      
      padding: 0px 5px;
    }

    .top-nav ul {
        display: inline-flex;
        gap: 1px;
        padding: 0 10px;
        margin: 0;
        list-style: none;
    }

    .top-nav li {
        flex: none;
        display: inline-block;
    }

    .top-nav a {
        display: inline-block;
        padding: 8px 12px;
        background: #005A5A;
        border-radius: 4px;
        white-space: nowrap;
        font-size: 14px;
    }
}

/* Hide scrollbar in webkit browsers but keep scroll functionality */
.top-nav::-webkit-scrollbar {
    display: none;
}

/* Hide hamburger button on large screens */
.menu-toggle {
    display: none;
}

/* Base styles */
.top-nav {
  background-color: #2c7a7b; /* teal-like theme color */
  color: white;
  /* padding: 10px; */
  display: flex;
  align-items: center;
}

.top-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.top-nav li {
  margin-right: 15px;
}

.top-nav a {
  color: white;
  text-decoration: none;
  padding: 0px;
  border-radius: 4px;
  transition: background 0.3s;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-right: 10px;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .top-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .top-nav ul.show {
    display: flex;
  }

  .top-nav li {
    margin: 8px 0;
  }
}

@media (max-width: 768px) {
  .top-nav li {
    margin: 0;       /* remove margin */
    padding: 0;      /* remove padding */
  }

  .top-nav a {
    display: block;
    padding: 10px 0; /* vertical padding for tap space */
    border-bottom: 1px solid rgba(255,255,255,0.2); /* optional separator */
  }

  .top-nav a:last-child {
    border-bottom: none; /* remove last border */
  }
}

@media (max-width: 768px) {
  .top-nav ul {
    padding-left: 0;
    margin: 0;
  }
}

    .know-more {
        font-size: 0.9em;
        margin-left: 8px;
        color: #005a5a;
        text-decoration: none;
    }
    .know-more:hover {
        text-decoration: underline;
    }



/* Common smaller size */
/* Common small icon style */
.icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  

  /* Home icon (house outline) */
  .home-icon {
    position: relative;
    width: 12px;
    height: 10px;
    border: 2px solid white;
    box-sizing: border-box;
    background: transparent;
  }
  .home-icon::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 8px solid white; /* roof outline */
  }
  
  /* About Us icon (person outline) */
  .about-us-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    position: relative;
    background: transparent;
  }
  .about-us-icon::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    border-top: 2px solid white;
    border-radius: 50% 50% 0 0;
  }
  
  /* Book a Vet Visit (calendar outline) */
  .book-icon {
    width: 12px;
    height: 10px;
    border: 2px solid white;
    position: relative;
    background: transparent;
  }
  .book-icon::before,
  .book-icon::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 5px;
    background: white;
  }
  .book-icon::before { left: 2px; }
  .book-icon::after { right: 2px; }
  
  /* Blog (speech bubble outline) */
  .blog-icon {
    width: 12px;
    height: 9px;
    border: 2px solid white;
    border-radius: 3px;
    position: relative;
    background: transparent;
  }
  .blog-icon::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 3px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid white;
  }
  
  /* Contact (envelope outline) */
  .contact-icon {
    width: 12px;
    height: 9px;
    border: 2px solid white;
    position: relative;
    background: transparent;
  }
  .contact-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(135deg, transparent 48%, white 50%, transparent 52%),
      linear-gradient(225deg, transparent 48%, white 50%, transparent 52%);
  }
  

  
/* Default outline color */
.home-icon,
.about-us-icon,
.book-icon,
.blog-icon,
.contact-icon {
  border-color: white;
  color: white;
}

/* Hover state (on the <a>) */
/* .side-nav ul li a:hover .icon {
  border-color: #ffd700;
  color: #ffd700;
  transform: scale(1.2);
}
*/
/* Adjust pseudo-elements (roof, bubble tail, envelope lines, etc.) */
/* .side-nav ul li a:hover .home-icon::before,
.side-nav ul li a:hover .about-us-icon::after,
.side-nav ul li a:hover .book-icon::before,
.side-nav ul li a:hover .book-icon::after,
.side-nav ul li a:hover .blog-icon::after,
.side-nav ul li a:hover .contact-icon::before {
  border-color: #ffd700;
  background: #ffd700;
}  */