@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Sinhala:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Yaldevi:wght@200..700&display=swap');
	/* Main image wrapper with gradient overlay */
* {
  font-family: "Noto Sans Sinhala", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
h2 {
            /* text-align: center; */
            margin-bottom: 40px;
            font-size: 32px;
            color: #1a3b5d;
            font-weight: 600;
            letter-spacing: 1px;
}
	.mainImg01Wrapper {
  position: relative;
  max-width: 100%;
  margin: auto;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gradient overlay using ::before */
.mainImg01Wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

/* Image styling */
.mainImg01 {
  align-self: stretch;
  height: 400px;
  flex-shrink: 0;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  display: block;
}

/* Scale image on hover */
.mainImg01Wrapper:hover .mainImg01 {
  transform: scale(1.1);
}
.btn-details {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  text-align: center;
}

/* Main button */
.btn-details button {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

/* Glowing animated line wrapper */
.btn-details button::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 16px;
  background: linear-gradient(270deg, #00C1FC, #FF00CC, #FFD700, #00FF99);
  background-size: 800% 800%;
  animation: animatedBorder 6s linear infinite;
  z-index: -1;
}

/* Optional inner background layer to mask background bleed */
.btn-details button::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  z-index: -1;
}

/* Animation keyframes */
@keyframes animatedBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 480px) {
  .btn-details button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Text styling and animation */
.overlayText {
  position: absolute;
  color: white;
  font-size: 30px;
  text-align:center;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
  animation: fadeInUp 4s ease forwards;
  opacity: 0;
}
/* Responsive Styles */
@media (max-width: 768px) {
  .mainImg01 {
    height: 250px;
  }

  .overlayText {
    font-size: 18px;
    line-height: 1.4;
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .mainImg01 {
    height: 200px;
  }

  .overlayText {
    font-size: 16px;
    line-height: 1.3;
  }
}

/* Text animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* VISSION MISSION & HISTORY style */
.about-us {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    padding: 50px 20px;
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    margin: auto;
}

.about-us .ab {
    background-color: #fff;
    border-bottom: 6px solid #ff5b5b; /* Green accent line */
    border-top: 6px solid #ff5b5b; /* Green accent line */
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.about-us .ab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-us h4 {
    font-size: 22px;
    color: #198754;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.about-us p {
    font-size: 16px;
    color: #495057;
    line-height: 1.7;
    text-align: justify;
}
.about-us i{
    font-size: 25px;
}

@media (max-width: 768px) {
    .about-us {
        padding: 20px;
        grid-template-columns: 1fr;
    }
}

/* LIBRARIAN MESSAGE style */

 .librarian-msg {
      max-width: 100%;
      margin: 40px auto;
      /* border: 2px solid #4a7c59; */
      /* border-radius: 12px; */
      padding: 30px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      position: relative;
      z-index: 1;
      background: linear-gradient(to bottom, rgba(240, 240, 240, 0.295), rgb(255, 255, 255)),url("DSC02146.JPG");
      background-size: cover;
      background-position: center;
    }

    .librarian-msg h4 {
      font-size: 20px;
      font-weight: 800;
      color: #2c3e50;
      border-bottom: 2px solid #4a7c59;
      padding-bottom: 10px;
      margin-bottom: 20px;
    }

    .librarian-msg p {
      line-height: 1.8;
      font-size: 13px;
      color: #333;
      margin-bottom: 16px;
      text-align: justify;
    }

    .librarian-img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 50%;
      border: 3px solid #4a7c59;
      position: absolute;
      top: -60px;
      right: 30px;
      background-color: white;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .librarian-msg {
        padding: 20px;
      }
      .librarian-msg h4 {
        font-size: 1.5rem;
      }
      .librarian-msg p {
        font-size: 0.95rem;
      }
      .librarian-img {
        width: 100px;
        height: 100px;
        top: -50px;
        right: 20px;
      }
    }

/* STAFF CARDS style */
   .staff-sub {
            max-width: 100%;
            /* margin:0 auto; */
            padding: 30px 15px;
        }
        
       .staff-sub h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 32px;
            color: #1a3b5d;
            font-weight: 600;
            letter-spacing: 1px;
        }
        .staff-sub .sub-head{
            margin-bottom: 40px;
            font-size: 25px;
            color: #245e97;
            font-weight: 600;
            letter-spacing: 1px;
        }
        
        /* Card grid layout */
        .staff-card-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 30px;
        }
        
        /* Card design */
        .staff-card {
            background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s ease;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }
        
        .staff-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        }
        
        .staff-card-header {
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
            color: white;
            padding: 10px;
            text-align: center;
        }
        
        .staff-card h3 {
            font-size: 15px;
            margin-bottom: 5px;
            font-weight: 600;
        }
        
        .staff-card-body {
            padding: 25px;
        }
        
        .staff-info-item {
            /* display: flex; */
            margin-bottom: 15px;
            align-items: center;
        }
        
        .staff-info-item i {
            width: 30px;
            font-size: 16px;
            color: #ef4444;
        }
        
        .staff-info-label {
            font-weight: 600;
            width: 100px;
            color: #64748b;
            font-size: 14px;
        }
        
        .staff-info-value {
            flex: 1;
            font-size: 14px;
        }
        
        .staff-contact-info {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f8fafc;
            padding: 12px;
            border-top: 1px solid #e2e8f0;
        }
        
        .staff-contact-info i {
            color: #ef4444;
            margin-right: 10px;
            font-size: 18px;
        }
        
        .staff-contact-info span {
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .staff-card-grid {
                grid-template-columns: repeat(1, 1fr);
                gap: 20px;
            }
            
            .staff-sub {
                padding: 15px;
            }
        }
        
        @media (max-width: 480px) {
            .staff-card-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
            
            .staff-sub {
                padding: 10px;
            }
            
           .staff-sub h2 {
                font-size: 26px;
                margin-bottom: 25px;
            }
        }

/* SERVICE CRAD style */

        /* service styling */
          .service-container{
          width: 100%;
          margin: auto;
          padding: 15px;
          justify-content: center;
          height: auto;
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(250px , 4fr));
          background: linear-gradient(to bottom, rgba(240, 240, 240, 0.295), rgb(255, 255, 255)),url("lib (2).jpg");
          
          }
          
          .service-container .service-box{
              position: relative;
              padding: 30px;
              background: #fff;
              box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
              border-radius: 4px;
              margin: 10px;
              box-sizing: border-box;
              overflow: hidden;
              text-align: center;
          }
          .service-container .service-box:before{
              content: '';
              width: 40%;
              height: 100%;
              position: absolute;
              top: 0;
              left: 0;
              background: rgba(255, 255, 255, 0.2);
              pointer-events: none;
          }
          .service-container .service-box .service-icon{
              position: relative;
              width: 80px;
              height: 80px;
              color: #fff;
              background: #000;
              display: flex;
              justify-content: center;
              align-items: center;
              margin: 0 auto;
              border-radius: 50%;
              font-size: 40px;
              font-weight: 700;
              transition: 1s;
          }
.service-container .service-box:nth-child(1) .service-icon {
  box-shadow: 0 0 0 0 #e91e63;
  background: #e91e63;
}
.service-container .service-box:nth-child(1):hover .service-icon {
  box-shadow: 0 0 0 400px #e91e63;
}

.service-container .service-box:nth-child(2) .service-icon {
  box-shadow: 0 0 0 0 #23e629;
  background: #23e629;
}
.service-container .service-box:nth-child(2):hover .service-icon {
  box-shadow: 0 0 0 400px #23e629;
  cursor: pointer;
}

.service-container .service-box:nth-child(3) .service-icon {
  box-shadow: 0 0 0 0 #2196f3;
  background: #2196f3;
}
.service-container .service-box:nth-child(3):hover .service-icon {
  box-shadow: 0 0 0 400px #2196f3;
}

.service-container .service-box:nth-child(4) .service-icon {
  box-shadow: 0 0 0 0 #000000;
  background: #000000;
}
.service-container .service-box:nth-child(4):hover .service-icon {
  box-shadow: 0 0 0 400px #000000;
}

/* 🆕 Cards 5 to 8 */

.service-container .service-box:nth-child(5) .service-icon {
  box-shadow: 0 0 0 0 #ff9800;
  background: #ff9800;
}
.service-container .service-box:nth-child(5):hover .service-icon {
  box-shadow: 0 0 0 400px #ff9800;
}

.service-container .service-box:nth-child(6) .service-icon {
  box-shadow: 0 0 0 0 #9c27b0;
  background: #9c27b0;
}
.service-container .service-box:nth-child(6):hover .service-icon {
  box-shadow: 0 0 0 400px #9c27b0;
}

.service-container .service-box:nth-child(7) .service-icon {
  box-shadow: 0 0 0 0 #00bcd4;
  background: #00bcd4;
}
.service-container .service-box:nth-child(7):hover .service-icon {
  box-shadow: 0 0 0 400px #00bcd4;
}

.service-container .service-box:nth-child(8) .service-icon {
  box-shadow: 0 0 0 0 #795548;
  background: #795548;
}
.service-container .service-box:nth-child(8):hover .service-icon {
  box-shadow: 0 0 0 400px #795548;
}


          .service-container .service-box .service-contant{
              position: relative;
              z-index: 1;
              transition: 0.5s;
          }
          .service-container .service-box:hover .service-contant{
              color: #fff;
          }
          .service-container .service-box:hover .service-contant h3{
              color: #fff;
          }
          .service-container .service-box:hover .service-contant h3{
              font-size: 20px;
              margin: 10px 0;
              padding: 0;
          }
          .service-container .service-box:hover .service-contant p{
              margin: 0;
              padding: 0;
          }
          .service-container a{
              display: inline-block;
              padding: 10px 20px;
              background:rgb(226, 26, 26);
              border-radius: 4px;
              text-decoration: none;
              color: #ffffff;
              font-weight: 500;
              margin-top: 10px;
              box-shadow: 0 2px 5px rgba(0,0,0,0.2);
          }

/* SERVICE CARDS Pop up style           */

.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.3s ease-in-out;
  position: relative;
}
.modal-content p{
  text-align: justify;
}
.modal-content h2{
  border-bottom: 2px solid #1a3b5d;;
}
.modal-content i{
   font-size:40px;
}
.close-btn {
  color: #888;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}
.close-btn:hover {
  color: #e91e63;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* POP UP CONTENT LIST VIEW (Refering Section) style */
.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-family: Arial, sans-serif;
}
.custom-list li {
  position: relative;
  padding: 10px;
  margin-bottom: 12px;
  border-radius:12px;
  font-size: 16px;
  color: #0a0a0a;
  transition: color 0.3s ease;
  
}
.custom-list li i{
    float:left;
    font-size:25px;
    font-weight:600;
    
     color: #09a75d;
}
.custom-list li::before {
   /* Font Awesome check-circle icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #f44336; /* red icon */
  font-size: 16px;
}

.corners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 40px;
  /* background-color: #f4f4f4; */
}

.card-corner {
  position: relative;
  height:auto;
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-corner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: 1;
  transition: transform 0.4s ease;
}

.card-corner:hover::before {
  transform: scale(1.05);
}

.card-corner:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.ccard-content {
  position: relative;
  z-index: 2;
  padding: 25px;
  height: 100%;
  background: rgba(255, 254, 254, 0.1);
  color: white;
  backdrop-filter: blur(8px);

}

.card-corner h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card-corner p {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  text-align: justify;
}
.card-corner i{
  font-size: 20px;
  color: #fff;
}
.card-corner a{
  font-size: 15px;
  text-decoration: none;
  color: aqua;
}
.indian::before {
  background-image: url("Untitled-design-67.png");
}

.american::before {
  background-image: url("american.jpg");
}
/* ===== Responsive Styles for Mobile Devices ===== */
@media (max-width: 600px) {
  .corners {
    padding: 20px;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .card-corner {
    border-radius: 15px;
  }

  .ccard-content {
    padding: 20px;
  }

  .card-corner h2 {
    font-size: 1.5rem;
  }

  .card-corner p {
    font-size: 14px;
  }

  .card-corner i {
    font-size: 18px;
  }

  .card-corner a {
    font-size: 14px;
  }
}

.branch-library-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.295), rgb(255, 255, 255)),url("DSC_0060.jpg");
     background-size: cover;
      background-position: center;
  }

  .Library {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .Library:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .Library-header h3 {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .Library-header h3 i {
    color: #6c5ce7;
  }

  .Library-body .infomation-item {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    margin-top: 5px;
  }

  .info-label {
    font-weight: 600;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.3rem;
  }

  .info-label i {
    color: #00b894;
  }

  .Library-body .lib-info-value {
    color: #2d3436;
    line-height: 1.6;
    font-size: 12px;
  }

  .contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.8rem;
    font-weight: 500;
    color: #0984e3;
  }

  .contact-info i {
    color: #0984e3;
  }


  /* Library Card Container */
#library-card {
  margin-top: 40px;
  background: rgb(255, 0, 0);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  padding: 32px 40px;
  /* max-width: 450px; */
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: cardFloat 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Hover effects for the card */
/* #library-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
} */

/* Animated background overlay */
#library-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Title styling */
#library-card h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: titlePulse 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.5);
  }
}

/* List styling */
#library-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

#library-card li {
  padding: 12px 20px;
  margin: 8px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  color: #fff;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

#library-card li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

#library-card li:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#library-card li:hover::before {
  left: 100%;
}

#library-card li:last-child {
  border-bottom: none;
}

/* Open time styling */
.open-time {
  color: #4ade80;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  animation: glowGreen 1.5s ease-in-out infinite alternate;
}

@keyframes glowGreen {
  from {
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
  }
}

/* Status open styling */
.status-open {
  color: #4ade80;
  font-weight: bold;
  text-align: center;
  margin-top: 24px;
  font-size: 20px;
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
  animation: statusBounce 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes statusBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Status closed styling */
.status-closed {
  color: #f87171;
  font-weight: bold;
  text-align: center;
  margin-top: 24px;
  font-size: 1.2rem;
  text-shadow: 0 0 15px rgba(248, 113, 113, 0.6);
  animation: statusPulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* Additional decorative elements */
#library-card::after {
  content: '📚';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
  animation: bookRotate 4s linear infinite;
  z-index: 1;
}

@keyframes bookRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  #library-card {
    padding: 24px 28px;
    max-width: 350px;
  }
  
  #library-card h3 {
    font-size: 1.7rem;
  }
  
  #library-card li {
    padding: 10px 16px;
  }
}

/* Focus states for accessibility */
#library-card:focus-within {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

/* Enhanced glassmorphism effect */
#library-card {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Color variations - you can add these classes for different themes */
.library-card-ocean {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.library-card-sunset {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.library-card-forest {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.library-card-night {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
.card {
      width: 400px;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      margin: auto;
    }

    .contact-row {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid #eee;
    }

    .contact-row:last-child {
      border-bottom: none;
    }

    .icon {
      font-size: 25px;
      width: 30px;
      text-align: center;
      margin-right: 10px;
    }

    .text {
      flex: 1;
      font-size: 15px;
    }

    .badge {
      background-color: crimson;
      color: white;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 13px;
    }

    .open-row {
      background-color: #e6f9ec;
      border-top: 1px solid #c2eac8;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .status-text {
      font-weight: bold;
      font-size: 13px;
      color: green;
    }

    .status-closed {
      color: red;
    }