/* ==========================================================================
   OrthoNajaf Design System & CSS Variables
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-900: #175584;       /* Deep Slate Navy (Headers / Dark Backgrounds) */
  --primary-800: #175584;       /* Navy Dark Surface */
  --primary-700: #175584;       /* Deep Clinical Blue */
  --primary-600: #175584;       /* Brand Blue Accent */
  --accent-cyan: #175584;       /* Medical Teal / Cyan Accent */
  --accent-light: #d9f3ff;      /* Subtitle / Highlight background */
  
  /* Neutral Colors */
  --bg-page: #f8fafc;          /* Soft Light Background */
  --bg-surface: #ffffff;       /* Pure White Card Background */
  --text-main: #646464;        /* Primary Body Text */
  --text-link: #E96D29;
  --text-muted: #23864B;       /* Secondary / Subtitle Text */
  --border-light: #EF9C25;     /* Border / Divider */
  --border-focus: #E96D29;

  /* Typography */
  --font-head: 'Source Sans 3', 'Verdana';
  --font-sans: 'Source Sans 3', Georgia, serif, Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Elevation & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: 350;
  font-size: 1rem;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.75rem;
  margin: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-primary-action {
  background-color: var(--text-link);
  color: #ffffff;
}

.btn-primary-action:hover {
  background-color: var(--text-link-hover, var(--text-link));
  filter: brightness(1.1);              /* Slightly brightens the link color */
  transform: translateY(-2px);           /* Lifts button up by 2px */
  box-shadow: var(--shadow-md);          /* Slightly deeper shadow */
}

.btn-primary-action:active {
  transform: translateY(0);              /* Snaps back down on click */
  filter: brightness(0.95);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-action {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-focus);
}

.btn-secondary-action:hover {
  background-color: var(--text-link);
  color: #fff;
  border-color: var(--border-focus);
}

.btn-disabled {
  color: var(--text-main);
  background-color: #e2e2e2;      /* Muted light gray */
  cursor: not-allowed;            /* Displays disabled cursor on hover */
  pointer-events: none;          /* Prevents user click events */
  box-shadow: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: #444f;
  padding: 1.25rem 0;
  transition: var(--transition-fast);
  padding: 0.75rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-link);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {

  position: relative;
  padding: 12rem 0 0 0;
  text-align: center;
  overflow: visible;
  background-color: #1e293b;
}

/* Full-width background image layer with 30% opacity */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(102, 102, 102, 0.9), rgba(102, 102, 102, 0.9)), url("images/d.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
   
  
  z-index: 1;                  
}

/* Ensure the hero container and text render above the background overlay */
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-card {
  background-color: #ffffff;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  padding: 2rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(1rem);
  position: relative;
  z-index: 10; 
}

.hero-card .hero-subtitle {
  color: var(--text-main);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--accent-light);
  color: var(--primary-700);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3rem;
  font-weight: 350;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 350;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 1.5rem auto 0 auto;
  color: #fff;
  line-height: 1.7;
}

/* ==========================================================================
   Specialty Cards & Grid System
   ========================================================================== */

.section-grid {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 1.5rem 5rem 1.5rem;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden; /* Clips image corners to match border-radius */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Image wrapper and img styling */
.card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card sizes */
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents stretching/distortion */
  object-position: center;
  transition: transform 0.3s ease;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 400;
}

.card-text {

}

/* Optional: Subtle zoom effect on hover */
.card:hover .card-image img {
  transform: scale(1.05);
}

/* Text content padding */
.card-body {
  padding: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 2rem 0;
  }
  .grid-3-col {
    grid-template-columns: 1fr;
  }
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}

.logo-img {
  height: 36px;          /* Adjust height to fit your navbar proportionally */
  width: auto;           /* Maintains aspect ratio */
  object-fit: contain;   /* Ensures image never distorts */
  display: block;        /* Prevents inline element white-space quirks */
}

hr {
  border: 0; 
  height: 3px; 
  background-color: var(--text-link);; 
  margin: 20px 40px;
}


/* ==========================================================================
   News Page Styles
   ========================================================================== */

.news-page {
  padding-top: 7rem;
  padding-bottom: 5rem;
  max-width: 900px;
}

/* Header Section */
.news-header {
  text-align: left;
  margin-bottom: 3.5rem;
}

.news-title {
  font-size: 2rem;
  font-weight: 350;
  /*color: var(--text-muted);*/
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.news-title span {
  /*color: var(--primary-900);*/
  font-weight: 400;
}

.header-divider {
  width: 100%;
  height: 2px;
  background-color: var(--text-link); /* Warm red accent line */
  border-radius: var(--radius-full);
}

.header-divider.small {
  height: 1px;
  margin-top: 2.5rem;
}

/* News Feature Card Layout */
.news-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0 2rem 0;
}

/* Text Content Column */
.news-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news-heading {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-heading span {
  font-weight: 400;
}

.news-date {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.news-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

/* Learn More Button */
/*
.btn-learn-more {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: #000; /
  color: var(--text-link);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.btn-learn-more:hover {

  transform: translateY(-1px);
  background-color: var(--text-link);
  color: #ffffff;
}
*/

/* Image Column */
.news-image-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.news-image {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 868px) {
  .news-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .news-image-wrapper {
    order: -1; /* Shows the image above the text on smaller screens */
  }
}


/* ==========================================================================
   Article Detail Page & Carousel Styles
   ========================================================================== */

.article-detail-page {
  max-width: 900px; /* Aligns with narrow reading container */
  padding-top: 7rem;
  padding-bottom: 6rem;
}

/* Header */
.article-detail-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.detail-title span {
  /*color: var(--primary-900);*/
  font-weight: 400;
}

.small-divider {
  width: 100px;
  height: 1px;
  background-color: #cbd5e1;
  margin: 0 auto 1.25rem auto;
}

.detail-date {
  font-style: italic;
  font-size: 1.2rem;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Counter Badge (Top-left) */
.carousel-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.05em;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.prev-btn { left: 0.75rem; }
.next-btn { right: 0.75rem; }

/* Pagination Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: var(--text-main);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background-color: var(--text-link);
  transform: scale(1.15);
}

/* Article Typography */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
    Events List (Minimalist Row View)
   ========================================================================== */

.events-list-page {
  max-width: 900px;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.event-header {
  text-align: left;
  margin-bottom: 1rem;
}

/* List Item Layout */
.events-list-wrapper {
  display: flex;
  flex-direction: column;
}

.event-list-item {
  padding: 1.5rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-focus);
}

/*.event-list-item:first-child {
  border-top: 1px solid var(--border-light);
}*/

/* Bold Main Title */
.event-item-title {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.event-item-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-fast);
}

.event-item-title a:hover {
  color: var(--text-link);
}

/* Inline Metadata Row */
.event-item-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75rem;
  row-gap: 0.4rem;
  font-size: 0.925rem;
  line-height: 1.5;
}

.meta-group {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.meta-label {
  font-weight: 700;
}

.meta-value {

}

/* Mobile Layout Tweaks */
@media (max-width: 640px) {
  .event-item-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.badge-upcoming {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #dfe8d5;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  vertical-align: middle;
}


/* ==========================================================================
   Past Event Minimalist Styling
   ========================================================================== */

/* De-emphasize the entire card */
.event-list-item.past-event {
  opacity: 0.65;
  transition: var(--transition-fast);
}

/* Brighten back up slightly on hover */
/*.event-list-item.past-event:hover {
  opacity: 0.9;
}*/

/* Change title link color for old events */
.event-list-item.past-event .event-item-title a {
  color: var(--text-muted);
}

/* Minimal "Past Event" Badge */
.badge-past {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #e2e8f0;
  color: #64748b;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}


/* ==========================================================================
   Single Event Detail View
   ========================================================================== */

.single-event-container {
  max-width: 900px;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.single-event-header {
  margin-bottom: 2rem;
}

.badge-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.status-open {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-past {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.single-event-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

/* Metadata Box */
.event-meta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.meta-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.meta-icon {
  color: var(--text-main);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.meta-card-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.meta-card-item p {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.external-link {
  color: var(--text-link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.external-link:hover {
  text-decoration: underline;
}

/* Action Buttons Bar */
.event-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}



/* Sections & Highlights */
.single-event-section {
  margin-bottom: 2.5rem;
}

.single-event-section h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.highlights-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  font-size: 1.2rem;
}

/* Notes callout box */
.event-notes-box {
  border-left: 4px solid var(--border-focus);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.event-notes-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
}

.event-notes-box p {
  color: #000;
  font-size: 1rem;
  line-height: 1.68;
  margin: 0;
}

.event-notes-box code {
  background-color: #ccc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Registration  */

.registration-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--border-focus); 
    border-radius: 8px;
    padding: 24px;
    max-width: 650px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  }

  .registration-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 400;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
  }

  .steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .step-item {
    margin-bottom: 20px;
  }

  .step-item:last-child {
    margin-bottom: 0;
  }

  .step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
  }

  .step-number {
    background-color: #0f172a;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .details-list {
    margin: 0;
    padding-left: 34px;
    list-style-type: disc;
    line-height: 1.6;
    color: #334155;
  }

  .details-list li {
    margin-bottom: 6px;
  }

  .account-code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
  }

  .important-notice {
    margin-top: 8px;
    background-color: #fffbebfb;
    border-left: 3px solid var(--border-focus); /* Warm Orange Accent */
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    color: #92400e;
    font-size: 0.95rem;
  }

  .step-text {
    margin: 0;
    padding-left: 34px;
    line-height: 1.6;
    color: #475569;
  }


/* ==========================================================================
   Footer Styling
   ========================================================================== */

.site-footer {
  background-color: #444; /* Deep Slate Navy */
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand styling */
.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  max-width: 380px;
}

/* Contact & Email */
.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-link);
  text-decoration: none;
  font-weight: 400;
  padding: 0.6rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.footer-email:hover {
  background-color: #E96D2930;
  color: #ffffff;
}

.email-icon {
  color: var(--text-link);
}

/* Footer Bottom Copyright */
.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}

