/* ===============================
   Radiology Online Network
   Reusable App CSS Framework
   Brand Colors:
   Primary: #e6830F
   Secondary: #0f2e52
   Font: Oswald
   =============================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&display=swap');

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  font-family: 'Oswald', Arial, sans-serif;
  margin: 0;
}

/* Buttons */
button,
.close-btn {
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Oswald', Arial, sans-serif;
  padding: 0.6rem 1.25rem;
  transition: background-color 0.2s ease;
}

button:hover,
.close-btn:hover {
  background-color: #cc740d;
}

/* Card Styling */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;          /* fixed width for uniformity */
  min-height: 180px;     /* ensures same height */
  max-width: 340px;      /* responsive upper limit */
  padding: 1.5rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h2 {
  color: var(--secondary-color);
  font-weight: 500;
  margin-top: 0;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Card Links */
.card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

/* Containers */
.centered-main {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

footer {
  color: #666666;
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
}

form button {
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background-color: #0078d4;  /* nice blue background */
    color: white;               /* white text */
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #005a9e;  /* darker blue on hover */
}

header,
main,
footer {
  max-width: var(--max-width);
  text-align: center;
  width: 100%;
}

/* Header */
header {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 1.5rem 1rem;
}

header h1 {
  color: #0f2e52;
  font-size: 2rem;
  margin: 0.5rem 0 0 0;
  text-align: center;
  text-shadow: 2px 2px 3px #e6830F33;
}

/* Logo */
header .logo {
  display: block;
  height: auto;
  margin: 0 auto 0.5rem auto;
  max-width: 300px;
}

/* Header Subtitles / h2 */
h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #0f2e52;
  margin: 0.5rem 0 1rem 0;
}

/* Subtitle / smaller header text */
.header-subtitle {
  text-align: center;
  font-size: 1.25rem; /* smaller than h2 */
  font-weight: 500;
  color: #0f2e52;     /* brand blue */
  margin: 0.5rem 0 1rem 0;
}

/* Modal */
.modal {
  display: none;              /* hidden by default */
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;              /* ensures centering */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-close:hover {
  color: #e6830f;
}

.modal-content {
  width: 90%;
  max-width: 450px;
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: left;
  position: relative;         /* for close button */
}

.modal-content h3 {
  color: var(--secondary-color);
  margin-top: 0;
}

/* Media Queries */
@media (max-width: 600px) {
  .card {
    max-width: 100%;
  }

  header h1 {
    font-size: 1.2rem;
  }
}