/* General Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #29355A;
  color: hsl(0, 0%, 100%);
  line-height: 1.6;
}
.body1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #29355A;
  color: hsl(0, 0%, 100%);
  line-height: 1.6;
  
  display: flex;
  flex-direction: column;
  width: auto;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}


.dashboard-table td,
.dashboard-table th {
  min-height: 106.5px;
  max-height: 106.5px;
  min-width: fit-content;
  vertical-align: middle;
  text-align: center;
}

/* Welcome Bar */
.welcome-bar {
  background-color: #29355A;
  color: #FFFFFF;
  padding: 10px 20px;
  text-align: center;
}

.welcome-message {
  font-size: 1rem;
  font-weight: 500;
}

/* Header */
.site-header {
  background-color: #FFFFFF;
  color: #29355A;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 20px;
}
.schedule-page {
  padding: 30px 20px;
  width: 100%;
  max-width: 1200px;
  max-height: fit-content;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  
}
.schedule-page button{
    height: 40px;
}
.schedule-page .page-title {
  font-size: 2rem;
  color: #29355A;
  margin-bottom: 25px;
  text-align: center;
  align-items: center;
}
.calendar-wrapper {
  width: 100%;
  height: 100vh; /* Full viewport height */
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

#calendar {
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
#calendar a{
  color: #29355A;

}
/* FullCalendar Theming */
.fc-toolbar-title {
  color: #29355A;
  font-weight: bold;
}

.fc-button {
  background-color: #D6B588 !important;
  border: none !important;
  color: #29355A !important;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
}

.fc-button:hover {
  background-color: #b89e73 !important;
}

.fc-event {
  background-color: #29355A !important;
  border: none !important;
  color: #fff !important;
  padding: 4px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.fc-daygrid-event-dot {
  background-color: #29355A !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .schedule-page {
    padding: 20px 10px;
    height: fit-content;
    width: 90%;
  }

  #calendar {
    padding: 10px;
    width: 100%;
  }
  .fc-header-toolbar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px;
  }

  .fc-header-toolbar > div {
    margin: 0 !important;
  }
  .admin-dashboard {
    width: 80% !important;
    max-width: 80% !important;
  }
  .table-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
  }
  .site-title {
    font-size: 50px !important;
    }
}
.gal-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.gallery-slider {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}

.slides-container {
  position: relative;
  width: 100%;
  height: auto;
}

.slide {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 0.5em 0.8em;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slide-btn.prev {
  left: -50px;
}

.slide-btn.next {
  right: -50px;
}

@media (max-width: 768px) {
  .gallery-slider {
    max-width: 90%;
  }

  .slide-btn.prev {
    left: 0;
  }

  .slide-btn.next {
    right: 0;
  }
}

.table-search-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  margin-top: 10px;
}

#search-input {
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .table-search-bar {
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 0;
  }
}


.manage-gallery-page {
  max-width: 1000px;
  width: 100%;
  margin: 40px auto;
  padding: 20px;
}
.page-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.upload-form {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  background-color: #fafafa;
  max-width: 600px;
  margin: 0 auto;
  color: black;
}
.upload-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: black;
}
.upload-form input[type="file"] {
  width: 100%;
  margin-bottom: 15px;
  color: black;
}
.upload-form button {
  background-color: #003366;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.upload-form button:hover {
  background-color: #005288;
}
.form-message {
  text-align: center;
  font-weight: bold;
  color: green;
  margin: 20px 0;
}
@media (max-width: 600px) {
  .upload-form button {
    width: 100%;
  }
}
.site-title {
  margin: 10px;
  font-size: 80px;
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Navigation */
.site-nav {
  margin-top: 15px;
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0 0 10px;
}

.nav-item .nav-link {
  color: #29355A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-item:hover .nav-link:hover {
  color: #D6B588;
}
.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}

.logo {
  position: absolute;
  left: 20px;
  top: 0px;
}

.logo img {
  height: 155px;
  max-height: 155px;
  width: auto;
}
.long-island {
  position: absolute;
  right: 20px;
  top: 0px;
}

.long-island img {
  height: 155px;
  max-height: 155px;
  width: auto;
}
.header-center {
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive: stack logo above content */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .logo,
  .long-island {
    position: static;
    margin-bottom: 10px;
  }

  .long-island img {
    height: 80px;
    max-height: 80px;
    width: auto;
  }

  .logo img {
    height: 80px;
    max-height: 80px;
    width: auto;
  }

  .header-center {
    width: 100%;
    text-align: center;
  }
}


.auth-bar,
.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.auth-bar a,
.auth-buttons a {
  color: #29355A;
  background-color: #FFFFFF;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #29355A;
}

.auth-bar a:hover,
.auth-buttons a:hover {
  background-color: #D6B588;
  color: #29355A;
}
.header-border {
  height: 80px; /* Try smaller than 100px */
  padding: 0;   /* Remove extra space */
  margin: 0;    /* Remove spacing outside */
  background-color: transparent; /* Optional, for testing */
  background: url('../images/rope2.png') repeat-x center;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-border img {
  height: 50px; /* Adjust as needed */
  max-height: 100%;
}
/* Main Sections */
.section {
  padding: 40px 20px;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
#about .section-title,
#contact .section-title {
  color: #FFFFFF;
  z-index: 1;
}
.section-contact {
  background-color: #29355A;
  z-index: 1;
}
#services .section-title{
  color: #29355A;
}
.section-visual img{
    width: 100%;
    max-width: 600px;
}

/* Container for all flipboxes */
.flipbox-3d-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}
/* Title overlay for front image */
.flipbox-3d-front {
  position: relative;
}

.flipbox-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(41, 53, 90, 0.8); /* semi-transparent blue */
  color: #fff;
  margin: 0;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
}

/* Each flipbox */
.flipbox-3d {
  width: 280px;
  height: 300px;
  perspective: 1200px;
}

.flipbox-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flipbox-3d:hover .flipbox-3d-inner {
  transform: rotateY(180deg);
}

/* Front side */
.flipbox-3d-front,
.flipbox-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
}

/* Front image */
.flipbox-3d-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  border-radius: 12px;
}

/* Back side */
.flipbox-3d-back {
  background-color: #29355A;
  color: #FFFFFF;
  transform: rotateY(180deg);
  flex-direction: column;
}

.flipbox-3d-back h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #FFFFFF;
}

.flipbox-3d-back p {
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .flipbox-3d {
    width: 90%;
    height: 260px;
  }
}

.login-page .form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #29355A;
  padding: 30px 20px;
}
.login-page img {
  max-height: 150px;
  margin: auto;
  justify-content: center;
  align-items: center;
}
.login-page .login-logo {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}
.login-page .form-wrapper {
  background-color: #FFFFFF;
  color: #29355A;
  border: 2px solid #D6B588;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.login-page .form-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: #29355A;
}

.login-page .form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-page .form-group {
  display: flex;
  flex-direction: column;
}

.login-page .form-label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #29355A;
}

.login-page .form-input {
  padding: 10px;
  border: 1px solid #999999;
  border-radius: 5px;
  font-size: 1rem;
}

.login-page .form-submit {
  padding: 10px;
  background-color: #29355A;
  color: #FFFFFF;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-page .form-submit:hover {
  background-color: #D6B588;
  color: #29355A;
}

.login-page .form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.login-page .form-link {
  color: #29355A;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-page .form-link:hover {
  color: #D6B588;
}

.login-page .form-message {
  text-align: center;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.login-page .form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.login-page .form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
  .login-page .form-wrapper {
    padding: 20px;
  }

  .login-page .form-title {
    font-size: 1.5rem;
  }

  .login-page .form-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}


.section-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.form-group {
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #FFFFFF;
}

.form-input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #999999;
  border-radius: 5px;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.form-submit {
  padding: 10px 20px;
  background-color: #D6B588;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #29355A;
  color: #D6B588;
}

/* Form Messages */
.form-message {
  padding: 10px;
  border-radius: 5px;
  margin: 15px 0;
  text-align: center;
  font-weight: bold;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Footer */
.site-footer {
  background-color: #999999;
  color: #FFFFFF;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0px;
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 20px;
  text-align: left;
  align-items: center;
}

.footer-column {
  flex: 1 1 30%;
  min-width: 200px;
  align-items: center;
  text-align: center;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #29355A;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
  color: #D6B588;
}

.social-icons {
  display: flex;
  gap: 40px;
  margin: 0 auto;
  justify-content: center;
  padding: 10px;
}

.social-icons img {
  height: 35px;
  width: 35px;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.footer-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background-color: #D6B588;
  color: #29355A;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.footer-button:hover {
  background-color: #FFFFFF;
  color: #29355A;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #FFFFFF33;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 16px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
}
.footer-bottom .designer-credit {
  font-size: 16px;
  color: #FFFFFF;
  margin-top: 5px;
  margin-right: 100px;
}
.footer-bottom .company-credit {
  margin-left: 100px;
}

/* Responsive: stack columns */
@media (max-width: 768px) {
  .footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    }
    .footer-bottom .designer-credit {
    margin-right: 0px;
    }
    .footer-bottom .company-credit {
    margin-left: 0px;
    }
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .logo img,
  .long-island img {
    height: 100px;
    max-height: 100px;
    width: auto;
  }

  .site-title {
    font-size: 60px;
  }

  .header-container {
    padding: 10px 20px;
    gap: 10px;
  }

  .auth-bar a {
    max-width: 150px;
    padding: 5px 10px;
  }

  .nav-list {
    gap: 15px;
  }
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}


.media-item {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.media-item img,
.media-item video {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.delete-form {
  margin-top: 10px;
}

.delete-button {
  padding: 6px 12px;
  background-color: #c00;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.delete-button:hover {
  background-color: #a00;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-list {
    display: flex;
    flex-direction: column;
    gap: 5px; /* row gap / column gap */
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 auto;
  }

  .nav-item {
    text-align: center;
  }

  .auth-bar,
  .auth-buttons {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .auth-bar a{
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 120px;
  }
  .auth-buttons {
    width: fit-content;
  }
}

/* Admin Dashboard Container */
.admin-dashboard {
  padding: 30px 20px;
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
  margin: 0 auto;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: fit-content;
  border-radius: 8px;
}


/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 15px;
  padding-right: 15px;
}
.dashboard-header-buttons {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 10px;
}

.dashboard-title {
  font-size: 2rem;
  color: #29355A;
  margin: 0;
}

.back-button {
  text-decoration: none;
  padding: 8px 16px;
  background-color: #29355A;
  color: #FFFFFF;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #D6B588;
  color: #29355A;
}

/* Table Navigation */
.dashboard-tables {
  margin-bottom: 30px;
  text-align: center;
}

.dashboard-subtitle {
  font-size: 1.5rem;
  color: #29355A;
  margin-bottom: 10px;
}

.table-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.table-select-button {
  padding: 10px 20px;
  background-color: #D6B588;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  color: #29355A;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.table-select-button:hover {
  background-color: #999999;
  color: #FFFFFF;
}

/* Table Section */
.table-section {
  margin-top: 20px;
}

.table-title {
  font-size: 1.4rem;
  color: #29355A;
  margin-bottom: 15px;
}

/* Data Table */
.table-container {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
  margin-top: 15px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.dashboard-table thead th {
  position: sticky;
  top: 0;
  background-color: #29355A;
  color: #FFFFFF;
  z-index: 2;
}

.dashboard-table th,
.dashboard-table td {
  border: 1px solid #999999;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
}
.dashboard-table td{
    color: #29355A;
}

.table-header {
  background-color: #29355A;
  color: #FFFFFF;
}

.table-row:nth-child(even) {
  background-color: #f2f2f2;
}

/* Action Buttons */
.action-button {
  padding: 6px 12px;
  background-color: #29355A;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 70px;
}

.action-button:hover {
  background-color: #D6B588;
  color: #29355A;
}

/* Create Button */
.table-button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: #FFFFFF;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.table-button:hover {
  background-color: #388E3C;
}

/* Create Form */
#create-form {
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background-color: #FFFFFF;
  border: 2px solid #29355A;
  border-radius: 8px;
}
#create-form h2{
  color: #29355A;
}
#create-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #29355A;
}

#create-form input,
#create-form textarea,
#create-form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #999999;
  border-radius: 4px;
  box-sizing: border-box;
}

#create-form textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.form-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.form-actions button[type="submit"] {
  background-color: #29355A;
  color: white;
}

.form-actions .cancel-button {
  background-color: #999999;
  color: black;
}

.form-actions .cancel-button:hover {
  background-color: #666666;
}

/* Messages */
.message {
  text-align: center;
  padding: 10px;
  margin: 15px auto;
  border-radius: 5px;
  font-weight: bold;
  max-width: 600px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
}

.no-records {
  text-align: center;
  color: #999999;
  font-style: italic;
  margin-top: 20px;
}

/* Modal */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #29355A;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}
.modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #29355A;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #D6B588;
  color: #29355A;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  background: none;
}
.slideshow{
    background-color: #29355A;
}
.slideshow-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slideshow-fade.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-fade img {
  width: auto;
  height: 100%;
  max-height: 500px;
  max-width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 768px) {
    .dashboard-header-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    }
  .slideshow-fade img {
    max-height: 300px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 0%;
  }
  .dashboard-tables {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
  }

  .table-list {
    flex-direction: column;
    align-items: center;
    width: fit-content;
  }

  .form-actions {
    flex-direction: column;
  }

  .inline-form {
    display: inline-block;
    margin-top: 5px;
  }

  .action-button {
    width: 100%;
    max-width: 140px;
  }

  .table-button,
  .action-button,
  .back-button {
    width: fit-content;
    max-width: 200px;
    margin-bottom: 10px;
  }

  .dashboard-table th,
  .dashboard-table td {
    font-size: 0.85rem;
    padding: 8px;
    white-space: nowrap;
  }

  .table-container {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .slideshow-container {
    min-height: 250px;
    height: auto;
    }
}

.section.slideshow {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* UPDATE RECORD PAGE STYLES */
.update-record-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #FFFFFF;
  border: 2px solid #D6B588;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.update-record-page .page-title {
  font-size: 2rem;
  text-align: center;
  color: #29355A;
  margin-bottom: 20px;
}

.update-record-page .back-link {
  display: inline-block;
  margin-bottom: 15px;
  color: #29355A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.update-record-page .back-link:hover {
  color: #D6B588;
}

.update-record-page form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.update-record-page label {
  font-weight: bold;
  color: #29355A;
}

.update-record-page input,
.update-record-page select,
.update-record-page textarea {
  padding: 10px;
  border: 1px solid #999999;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.update-record-page textarea {
  resize: vertical;
  min-height: 100px;
}

.update-record-page button[type="submit"] {
  padding: 10px 20px;
  background-color: #29355A;
  color: #FFFFFF;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.update-record-page button[type="submit"]:hover {
  background-color: #1f2847;
}

.update-record-page .form-message {
  padding: 12px;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 20px;
  max-width: 100%;
}

.update-record-page .form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.update-record-page .form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
@media (max-width: 768px) {
  .update-record-page {
    padding: 20px;
    margin: 20px 10px;
  }

  .update-record-page .page-title {
    font-size: 1.5rem;
  }

  .update-record-page form {
    gap: 15px;
  }

  .update-record-page input,
  .update-record-page select,
  .update-record-page textarea {
    font-size: 0.95rem;
    padding: 8px;
  }

  .update-record-page button[type="submit"] {
    width: 100%;
    font-size: 1rem;
  }
}
.section-about {
  position: relative;
  background: url('../images/about.png') center center / cover no-repeat;
  padding: 60px 20px;
  color: #fff;
  z-index: 1;
}

.section-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(41, 53, 90, 0.7); /* overlay with your theme's blue */
  z-index: 0;
}

.section-about .section-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.section-about {
  height: auto;
}

.appointments-section {
  padding: 40px 20px;
  background-color: #29355A;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  display: flex;
}

.appointments-container {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #D6B588;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.appointments-title {
  text-align: center;
  font-size: 2rem;
  color: #29355A;
  margin-bottom: 25px;
}

.appointments-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.appointments-head th {
  background-color: #29355A;
  color: #FFFFFF;
  padding: 12px;
  font-weight: bold;
  border-bottom: 2px solid #D6B588;
  text-align: left;
}

.appointments-body td {
  padding: 12px;
  border-bottom: 1px solid #ccc;
  color: #29355A;
}

.appointment-row:nth-child(even) {
  background-color: #f9f9f9;
}

.cancel-form {
  display: inline;
}

.cancel-button {
  background-color: #D6B588;
  color: #29355A;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cancel-button:hover {
  background-color: #b89e73;
}

.no-appointments {
  text-align: center;
  font-style: italic;
  color: #666666;
  font-size: 1rem;
  margin: 30px 0;
}

.back-home {
  text-align: center;
  margin-top: 20px;
}

.back-button {
  text-decoration: none;
  padding: 10px 20px;
  background-color: #29355A;
  color: #FFFFFF;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #D6B588;
  color: #29355A;
}

/* Responsive */
@media (max-width: 768px) {
  .appointments-container {
    padding: 20px;
    margin: 20px 10px;
  }

  .appointments-title {
    font-size: 1.5rem;
  }

  .appointments-table th,
  .appointments-table td {
    font-size: 0.9rem;
    padding: 10px;
  }

  .cancel-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
.manage-appointments-page {
  max-width: 1000px;
  width: 100%;
  margin: 40px auto;
  padding: 30px;
  background-color: #FFFFFF;
  border: 2px solid #D6B588;
  border-radius: 10px;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.appointment-card {
  padding: 20px;
  border: 1px solid #999999;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #29355A;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-message {
  text-align: center;
  padding: 10px;
  margin: 15px auto;
  border-radius: 5px;
  font-weight: bold;
  max-width: 600px;
}

.no-records {
  text-align: center;
  color: #999999;
  font-style: italic;
  margin-top: 20px;
}
