body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0,0,0,0.1) 0%, transparent 50%),
    linear-gradient(135deg, #22356F 0%, #146AAA 100%);
  color: white;
  line-height: 1.6;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9Im5vaXNlIiB4PSIwJSIgeT0iMCUiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgogICAgICA8ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIgcmVzdWx0PSJub2lzZSIgc2VlZD0iMSIvPgogICAgICA8ZmVDb2xvck1hdHJpeCBpbj0ibm9pc2UiIHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz4KICAgICAgPGZlQ29tcG9uZW50VHJhbnNmZXIgaW49Im5vaXNlIiB0eXBlPSJkaXNjcmV0ZSIgdGFibGVWYWx1ZXM9IjAuMiAwLjQgMC42IDAuOCAxLjAiLz4KICAgIDwvZmlsdGVyPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjEiLz4KPC9zdmc+');
  background-size: 200px 200px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1.5vh 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 14vh;
  max-height: 18vh;
  flex-shrink: 0;
}

.back-button {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) translateX(-2px);
}

header .logo {
  max-height: clamp(70px, 10vh, 100px);
  margin-bottom: 0.75vh;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

header h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tiles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: 1.5vh 2vw;
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.tile {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: white;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 24vw;
  max-width: 320px;
  min-width: 220px;
  height: 18vh;
  max-height: 240px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 20px 20px 0 0;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.tile:hover::before {
  transform: scaleX(1);
}

.tile-header {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
}

.tile-emoji {
  font-size: clamp(1.6rem, 1.8vw, 1.6rem);
  line-height: 1;
  flex-shrink: 0;
  background: transparent;
}

/* This will be overridden by the more specific selectors above */

.tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 0.9vw, 0.95rem);
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Index page tiles container should not overflow */
body.index-page .tiles {
  overflow: hidden;
}

/* Index page specific styling */
body.index-page {
  height: 100vh;
  overflow: hidden;
}

/* Subpages should be scrollable */
body:not(.index-page) {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

body:not(.index-page) main {
  overflow-y: auto;
}

footer {
  text-align: center;
  padding: 1vh 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  margin-top: auto;
  position: relative;
  z-index: 1;
  min-height: 4vh;
  flex-shrink: 0;
}

input[type="text"] {
  margin: 0 auto 2rem auto;
  padding: 1rem 1.5rem;
  width: 500px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  color: white;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

li {
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

li:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

li a {
  color: #003E7E;
  text-decoration: none;
  font-weight: 600;
}

li a:hover {
  color: #1a365d;
}

li strong {
  color: #1a365d;
}

/* ✅ Styled Table for Meetings Page */
.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.styled-table th,
.styled-table td {
  text-align: left;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 62, 126, 0.1);
}

.styled-table th {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight: 600;
  color: #003E7E;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.styled-table tbody tr {
  transition: all 0.2s ease;
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.styled-table td {
  color: #1a365d;
  font-weight: 500;
}

.styled-table a {
  color: #003E7E;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  background: rgba(120, 190, 32, 0.15);
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 0.9rem;
  border: 1px solid rgba(120, 190, 32, 0.2);
}

.styled-table a:hover {
  background: #78BE20;
  color: white;
  transform: translateY(-1px);
  border-color: #78BE20;
}

/* Section headings for subpages only */
body:not(.index-page) h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 3rem 0 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Index page tile headings - clean transparent styling */
body.index-page .tile h2,
.tile-header h2,
.tiles .tile h2 {
  margin: 0 !important;
  font-size: clamp(1.2rem, 1.5vw, 1.3rem) !important;
  font-weight: 600 !important;
  color: white !important;
  border: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  background: none !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Remove this styling as it's interfering with tile headings */
/* 
h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #78BE20;
} */

/* Portrait orientation (height > width) */
@media (orientation: portrait) {
  body.index-page {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
  }
  
  .tiles,
  body.index-page .tiles {
    flex-direction: column !important;
    padding: 1rem;
    gap: 1.5rem;
    justify-content: flex-start;
    overflow: visible !important;
    align-items: center;
    height: auto !important;
    flex: 1 !important;
  }
  
  .tile {
    width: calc(100vw - 6rem);
    max-width: calc(100vw - 6rem);
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    min-width: unset;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
    margin: 0;
  }
  
  .tile-emoji {
    font-size: 3.5rem !important;
  }
  
  .tile h2 {
    font-size: 2.2rem !important;
  }
  
  .tile p {
    font-size: 1.4rem !important;
  }
  
  
  footer {
    padding: 0.5rem 1rem !important;
    flex-shrink: 0;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body:not(.index-page) {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }
  
  body.index-page {
    height: 100vh;
    overflow: hidden;
  }
  
  .tile {
    width: 100%;
    max-width: 450px;
    height: 280px;
    min-width: unset;
    padding: 2.5rem 2rem;
  }
  
  header {
    padding: 1rem;
    min-height: 120px;
  }
  
  header .logo {
    max-height: 90px;
    margin-bottom: 0.5rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  .back-button {
    left: 1rem;
    width: 48px;
    height: 48px;
  }
  
  .back-button svg {
    width: 22px;
    height: 22px;
  }
  
  input[type="text"] {
    width: 450px;
    max-width: calc(100% - 2rem);
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  main {
    padding: 1rem;
  }
  
  .styled-table {
    font-size: 0.95rem;
  }
  
  .styled-table th,
  .styled-table td {
    padding: 1rem 1.25rem;
  }
  
  .styled-table {
    border-radius: 12px;
  }
  
  .styled-table a {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
  
  li {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .tiles,
  body.index-page .tiles {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .tile {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 400px;
    height: 240px;
  }
  
  header {
    min-height: 100px;
    padding: 1rem;
  }
  
  header .logo {
    max-height: 80px;
    margin-bottom: 0.4rem;
  }
  
  header h1 {
    font-size: 1.6rem;
  }
  
  .back-button {
    left: 0.75rem;
    width: 44px;
    height: 44px;
  }
  
  .back-button svg {
    width: 20px;
    height: 20px;
  }
  
  input[type="text"] {
    padding: 1rem 1.25rem;
    width: 350px;
    max-width: calc(100% - 1.5rem);
    font-size: 1rem;
  }
  
  .styled-table th,
  .styled-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .styled-table a {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
}

