/* ===================================================================
   ALBERTA GOA THEME - HOMEPAGE DESIGN (Wireframe Match)
   Government of Alberta Color Palette:
   Primary Blue: #0033A0
   Secondary Blue: #0070C0
   Light Blue: #E6F2FF
   Organizations: #0070C0
   Groups: #28a745
   =================================================================== */

/* === ROOT VARIABLES === */
:root {
  --goa-primary-blue: #0033A0;
  --goa-secondary-blue: #0070C0;
  --goa-light-blue: #E6F2FF;
  --goa-dark-blue: #002060;
  --goa-dark-grey: #333333;
  --goa-light-grey: #F5F5F5;
  --goa-border-grey: #E0E0E0;
  --goa-text-dark: #2C2C2C;
  --goa-white: #FFFFFF;
  --goa-org-color: #0070C0;
  --goa-group-color: #28a745;
}

/* === GLOBAL STYLES === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--goa-text-dark);
  background-color: var(--goa-light-grey);
}

.container {
  max-width: 1200px;
}

/* ===================================================
   HERO SECTION (Blue Gradient Background)
   =================================================== */
.osm-hero-section {
  background: url('/images/hero-background.jpg') center center no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 60px 0 80px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.osm-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.osm-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.osm-hero-title {
  color: var(--goa-white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.osm-hero-subtitle {
  color: var(--goa-white);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 35px;
  opacity: 0.95;
}

/* === HERO SEARCH BOX === */
.osm-hero-search-form {
  max-width: 700px;
  margin: 0 auto 25px auto;
}

.osm-hero-search-box {
  display: flex;
  background: var(--goa-white);
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 6px;
  transition: box-shadow 0.3s ease;
}

.osm-hero-search-box:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.osm-hero-search-input {
  flex: 1;
  border: none;
  padding: 14px 25px;
  font-size: 16px;
  border-radius: 50px;
  outline: none;
  background: transparent;
}

.osm-hero-search-input::placeholder {
  color: #999;
}

.osm-hero-search-btn {
  background: var(--goa-primary-blue);
  color: var(--goa-white);
  border: none;
  border-radius: 40px;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.osm-hero-search-btn:hover {
  background: var(--goa-dark-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

.osm-hero-search-btn i {
  margin-left: 6px;
}

/* === POPULAR TAGS IN HERO === */
.osm-hero-tags {
  text-align: center;
  margin-top: 20px;
}

.osm-hero-tags-label {
  color: var(--goa-white);
  font-size: 15px;
  font-weight: 500;
  margin-right: 10px;
  opacity: 0.9;
}

.osm-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: var(--goa-white);
  padding: 8px 20px;
  border-radius: 20px;
  margin: 5px 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.osm-hero-tag:hover {
  background: var(--goa-white);
  color: var(--goa-primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ===================================================
   CATALOGUE STATISTICS CARDS (Data & Product)
   =================================================== */
.osm-catalog-stats-section {
  padding: 40px 0 0 0;
  margin: 0;
  position: relative;
  z-index: 5;
  background: var(--goa-light-grey);
}

.osm-catalog-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.osm-catalog-card {
  background: linear-gradient(135deg, #E6F2FF 0%, #F0F7FF 50%, #FFFFFF 100%);
  border: none;
  border-radius: 16px;
  padding: 20px 40px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(70, 108, 189, 0.15), 0 2px 8px rgba(96, 132, 211, 0.08);
  transition: all 0.4s ease;
  display: block;
  position: relative;
  overflow: hidden;
  border-left: 4px solid #E6F2FF;
  border-right: 4px solid #FFFFFF;
}

.osm-catalog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F5F5F5;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 16px;
}

.osm-catalog-card::after {
  display: none;
}

.osm-catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.12);
  text-decoration: none !important;
  border-left-color: var(--goa-primary-blue);
  border-right-color: var(--goa-primary-blue);
}

.osm-catalog-card:focus,
.osm-catalog-card:active,
.osm-catalog-card:visited {
  text-decoration: none !important;
}

.osm-catalog-card:hover::before {
  opacity: 0.6;
}

.osm-catalog-card-inner {
  position: relative;
  z-index: 2;
}

.osm-catalog-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--goa-primary-blue);
  margin-bottom: 15px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none !important;
}

.osm-catalog-card-count {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--goa-primary-blue);
  line-height: 1;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

/* ===================================================
   CONTENT SECTION (Organizations, Groups, Welcome)
   =================================================== */
.osm-content-section {
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
  padding: 70px 0 90px 0;
}

.osm-section-block {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: 16px;
  padding: 35px 30px 30px 30px;
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 51, 160, 0.08);
}

.osm-section-block:hover {
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.12);
  transform: translateY(-2px);
}

.osm-section-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 2px solid #E6F2FF;
}

.osm-section-count {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--goa-primary-blue);
  margin: 0;
  line-height: 1;
}

.osm-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--goa-text-dark);
  margin: 0;
  line-height: 1.2;
}

.osm-view-all-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(0, 112, 192, 0.05);
}

.osm-view-all-link:hover {
  background: rgba(0, 112, 192, 0.12);
  color: var(--goa-primary-blue);
  transform: translateX(3px);
}

.osm-view-all-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.osm-view-all-link:hover i {
  transform: translateX(3px);
}

/* === ORGANIZATIONS & GROUPS GRIDS === */
.osm-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.osm-item-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  min-height: 48px;
}

/* Organizations and Groups - Same Blue Theme */
.osm-org-badge,
.osm-group-badge {
  background: linear-gradient(135deg, #E6F2FF 0%, #FFFFFF 100%);
  color: var(--goa-org-color);
  border-color: rgba(0, 112, 192, 0.15);
  box-shadow: 0 2px 6px rgba(0, 112, 192, 0.08);
}

.osm-org-badge:hover,
.osm-group-badge:hover {
  background: linear-gradient(135deg, var(--goa-org-color) 0%, #0056A0 100%);
  color: var(--goa-white);
  border-color: var(--goa-org-color);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

/* === WELCOME CARD === */
.osm-welcome-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: 0 4px 16px rgba(0, 51, 160, 0.1);
  border-left: 4px solid var(--goa-primary-blue);
  height: 100%;
  border: 1px solid rgba(0, 51, 160, 0.08);
  transition: all 0.3s ease;
}

.osm-welcome-card:hover {
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.15);
  transform: translateY(-2px);
}

.osm-welcome-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--goa-primary-blue);
  margin-bottom: 25px;
  line-height: 1.3;
}

.osm-welcome-contact,
.osm-welcome-guide {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.osm-welcome-contact strong,
.osm-welcome-guide strong {
  color: var(--goa-text-dark);
  display: block;
  margin-bottom: 6px;
}

.osm-contact-link,
.osm-guide-link {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.osm-contact-link:hover,
.osm-guide-link:hover {
  color: var(--goa-primary-blue);
  transform: translateX(3px);
}

.osm-guide-link i {
  margin-right: 6px;
}

.osm-welcome-divider {
  border: 0;
  border-top: 1px solid var(--goa-border-grey);
  margin: 25px 0;
}

.osm-welcome-description {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 992px) {
  .osm-hero-title {
    font-size: 2rem;
  }
  
  .osm-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .osm-catalog-cards-row {
    gap: 20px;
  }
  
  .osm-catalog-card {
    padding: 25px 40px;
  }
  
  .osm-catalog-card-title {
    font-size: 1.6rem;
  }
  
  .osm-catalog-card-count {
    font-size: 1.4rem;
  }
  
  /* Stack organizations and groups on tablets */
  .col-md-4 {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .osm-hero-section {
    padding: 40px 0 60px 0;
    background-attachment: scroll;
    min-height: 300px;
  }
  
  .osm-hero-title {
    font-size: 1.7rem;
  }
  
  .osm-hero-search-box {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .osm-hero-search-input {
    margin-bottom: 10px;
    border-radius: 10px;
  }
  
  .osm-hero-search-btn {
    width: 100%;
    border-radius: 10px;
  }
  
  .osm-catalog-cards-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .osm-catalog-card {
    padding: 20px 30px;
  }
  
  .osm-catalog-card-title {
    font-size: 1.4rem;
  }
  
  .osm-catalog-card-count {
    font-size: 1.2rem;
  }
  
  .osm-items-grid {
    gap: 8px;
  }
  
  .osm-section-block {
    margin-bottom: 20px;
  }
  
  .osm-welcome-card {
    margin-top: 0;
  }
}

/* ===================================================
   HIDE OLD ELEMENTS
   =================================================== */
.homepage .hero {
  background: none !important;
  padding: 0 !important;
}

.homepage .module-search {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}


/* =====================================================
   ALBERTA GOA THEME - HEADER AND MASTHEAD CUSTOMIZATION
   ===================================================== */

/* =====================================================
   The "account masthead" bar across the top of the site
   ===================================================== */

.account-masthead {
    background-color: #002060;
    border-bottom: 2px solid #0033A0;
}

/* The "bubble" containing the number of new notifications. */
.account-masthead .account .notifications a span {
  background-color: #0070C0;
}

/* The text and icons in the user account info. */
.account-masthead .account ul li a {
  color: rgba(255, 255, 255, 0.85);
}

/* The user account info text and icons, when the user's pointer is hovering
   over them. */
.account-masthead .account ul li a:hover {
  color: #ffffff;
  background-color: rgba(0, 112, 192, 0.3);
}


/* ========================================================================
   The main masthead bar that contains the site logo, nav links, and search
   ======================================================================== */

.masthead {
  background-color: #ffffff;
  background-image: none;
  min-height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0 !important;
}

.masthead .container {
  padding-top: 1px;
  padding-bottom: 1px;
  /*
  display: flex;
  align-items: center;
  justify-content: space-between;
  */
}

/* Logo styling */
.masthead .logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-right: 15px;
  flex-shrink: 0;
}

.masthead .logo img {
  max-height: 80px !important;
  max-width: 300px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain;
  vertical-align: middle;
}

/* Responsive logo sizing for mobile */
@media (max-width: 768px) {
  .masthead .logo img {
    max-height: 55px !important;
    max-width: 180px !important;
  }
}

/* Navbar sections alignment */
.masthead .navbar-left,
.masthead hgroup {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.masthead .navigation,
.masthead .navbar {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Navigation Links */
.masthead .nav>li>a, 
.masthead .nav>li>a:focus {
  color: #0033A0;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 18px;
  transition: all 0.3s ease;
  line-height: 1.5;
  vertical-align: middle;
}

.masthead .main-navbar ul li a {
  color: #0033A0;
  font-size: 16px;
  border-radius: 6px;
  padding: 10px 18px;
  line-height: 1.5;
  vertical-align: middle;
}

.masthead .main-navbar ul li:hover a, 
.masthead .main-navbar ul li:focus a, 
.masthead .main-navbar ul li.active a {
  border-radius: 6px;
  background-color: #0033A0;
  color: #ffffff;
}

/* The "navigation pills" in the masthead */
.masthead .navigation .nav-pills li a {
  color: #0033A0;
  font-size: 16px;
  transition: all 0.3s ease;
  padding: 10px 18px;
  line-height: 1.5;
  vertical-align: middle;
}

.masthead .navigation .nav-pills li a i {
  margin-right: 6px;
  font-size: 14px;
}

.masthead .navigation .nav-pills li a:hover {
  background-color: #E6F2FF;
  color: #0033A0;
}

/* The "active" navigation pill */
.masthead .navigation .nav-pills li.active a {
  background-color: #0033A0;
  color: #ffffff;
}

.masthead .navigation .nav-pills li.active a i {
  color: #ffffff;
}

/* Add Dataset Navigation Item - Highlighted Style */
.masthead .navigation .nav-pills li.goa-add-dataset-nav > a.goa-add-dataset-link {
  background-color: #0070C0;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border-radius: 6px;
  padding: 8px 14px;
  line-height: 1.4;
}

.masthead .navigation .nav-pills li.goa-add-dataset-nav > a.goa-add-dataset-link i {
  color: #ffffff !important;
  margin-right: 5px;
  font-size: 14px;
}

.masthead .navigation .nav-pills li.goa-add-dataset-nav > a.goa-add-dataset-link:hover {
  background-color: #005A9C;
  color: #ffffff !important;
}

.masthead .navigation .nav-pills li.goa-add-dataset-nav.active > a.goa-add-dataset-link {
  background-color: #005A9C;
  color: #ffffff !important;
}

/* Dropdown Menu Styles */
.masthead .navigation .nav-pills li.dropdown .dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
  padding: 6px 0;
  min-width: 180px;
}

.masthead .navigation .nav-pills li.dropdown .dropdown-menu li {
  list-style: none;
}

.masthead .navigation .nav-pills li.dropdown .dropdown-menu li a {
  color: #0033A0 !important;
  background-color: transparent !important;
  padding: 8px 16px;
  display: block;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 0;
}

.masthead .navigation .nav-pills li.dropdown .dropdown-menu li a:hover {
  background-color: #E6F2FF !important;
  color: #0033A0 !important;
  text-decoration: none;
}

.masthead .navigation .nav-pills li.dropdown .dropdown-menu li a i {
  color: #0033A0 !important;
  margin-right: 8px;
  width: 16px;
  text-align: center;
  font-size: 13px;
}

/* Caret icon in dropdown toggle */
.masthead .navigation .nav-pills li.dropdown > a .caret {
  margin-left: 5px;
  vertical-align: middle;
  border-top-color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Keep dropdown open on hover */
.masthead .navigation .nav-pills li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Search box in header */
.masthead input[type="text"] {
  border: 2px solid #E0E0E0;
  border-radius: 20px;
  padding: 10px 18px;
  transition: all 0.3s ease;
  line-height: 1.5;
  vertical-align: middle;
  height: auto;
}

.masthead input[type="text"]:focus {
  border-color: #0070C0;
  -webkit-box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.masthead .btn-search {
  background-color: #0033A0;
  border-color: #0033A0;
  border-radius: 20px;
  transition: all 0.3s ease;
  padding: 10px 18px;
  line-height: 1.5;
  vertical-align: middle;
}

.masthead .btn-search:hover {
  background-color: #002060;
  border-color: #002060;
  transform: translateY(-1px);
}

/* =====================================================
   RESPONSIVE STYLES FOR MASTHEAD/NAVIGATION
   ===================================================== */

/* Mobile Navigation Toggle Button (Hamburger Menu) */
.navbar-toggler,
.masthead .navbar-toggler,
button.navbar-toggler {
  display: inline-block !important;
  background-color: #0033A0 !important;
  border: 2px solid #0033A0 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  margin: 10px 15px 10px 0 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.navbar-toggler:hover,
.masthead .navbar-toggler:hover,
button.navbar-toggler:hover {
  background-color: #002060 !important;
  border-color: #002060 !important;
}

.navbar-toggler:focus,
.masthead .navbar-toggler:focus,
button.navbar-toggler:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.2) !important;
  background-color: #0033A0 !important;
}

/* Hamburger icon (FontAwesome bars) */
.navbar-toggler .fa-bars,
.navbar-toggler .text-white,
.masthead .navbar-toggler .fa-bars {
  color: #ffffff !important;
  font-size: 20px !important;
  display: inline-block !important;
}

/* Show toggle button on mobile/tablet */
@media (max-width: 992px) {
  .navbar-toggler,
  .masthead .navbar-toggler,
  button.navbar-toggler {
    display: inline-block !important;
  }
}

@media (min-width: 993px) {
  .navbar-toggler,
  .masthead .navbar-toggler,
  button.navbar-toggler {
    display: none !important;
  }
}

/* Tablet and mobile styles */
@media (max-width: 992px) {
  .masthead .container {
    flex-wrap: wrap;
  }
  
  .masthead .navigation {
    width: 100%;
    order: 3;
    margin-top: 10px;
  }
  
  .masthead .navigation .nav-pills {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: center;*/
    gap: 5px;
  }
  
  .masthead .navigation .nav-pills li a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .masthead {
    min-height: auto;
  }
  
  .masthead .container {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  .masthead .navigation .nav-pills {
    gap: 3px;
  }
  
  .masthead .navigation .nav-pills li a {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .masthead .navigation .nav-pills li a i {
    margin-right: 3px;
    font-size: 12px;
  }
  
  /* Make Add Content button more compact on mobile */
  .masthead .navigation .nav-pills li.goa-add-dataset-nav > a.goa-add-dataset-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}


/* ===========================================
   The content in the middle of pages
   =========================================== */

/* Remove the "box shadow" effect around various boxes */
.box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #E0E0E0;
  border-radius: 8px;
}

/* Remove the borders around specific boxes */
.hero .box {
  border: none;
  box-shadow: none;
}

/* Homepage specific adjustments */
.homepage .hero {
  padding: 0;
  background: none;
}

/* Change the colors of search boxes */
.homepage .module-search .module-content {
  color: #2C2C2C;
  background-color: white;
  border-radius: 8px;
}

/* Popular Tags styling */
.homepage .module-search .tags {
  background-color: transparent;
  padding: 15px 0;
}

.homepage .module-search .tags .tag {
  background-color: #E6F2FF;
  color: #0033A0;
  border: 1px solid #0070C0;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.homepage .module-search .tags .tag:hover {
  background-color: #0033A0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 51, 160, 0.2);
}

/* Module content padding */
.module-content:last-child {
  padding-bottom: 20px;
}

/* Primary button styling (Alberta theme) */
.btn-primary {
  background-color: #0033A0;
  border-color: #0033A0;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #002060;
  border-color: #002060;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 51, 160, 0.2);
}

/* Links color */
a {
  color: #0070C0;
  transition: color 0.3s ease;
}

a:hover {
  color: #0033A0;
}

/* Breadcrumb styling - Consistent GOA theme across all pages */
.breadcrumb {
  background-color: transparent;
  padding: 15px 0;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb a,
.breadcrumb a i {
  color: var(--goa-secondary-blue) !important;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.breadcrumb li.home a {
  padding: 8px 12px;
  border-radius: 6px;
}

.breadcrumb a:hover,
.breadcrumb a:hover i {
  color: var(--goa-primary-blue) !important;
  background-color: rgba(0, 112, 192, 0.05);
  text-decoration: none;
}

/* Home icon styling in breadcrumb */
.breadcrumb .fa-home,
.breadcrumb .home a i {
  font-size: 1.1rem;
  color: var(--goa-secondary-blue) !important;
}

/* Separator styling */
.breadcrumb > li + li:before {
  content: "/";
  color: #999;
  padding: 0 10px;
  font-weight: 300;
}

/* Active/current page in breadcrumb */
.breadcrumb .active,
.breadcrumb li.active {
  color: var(--goa-primary-blue) !important;
  font-weight: 600;
}

/* Toolbar - Contains breadcrumb */
.toolbar {
  background-color: transparent;
  border-bottom: none;
  padding: 10px 0 0 0;
  margin-bottom: 0;
}

/* Dataset item cards */
.dataset-item {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dataset-item:hover {
  border-color: #0070C0;
  box-shadow: 0 4px 12px rgba(0, 112, 192, 0.1);
  transform: translateY(-2px);
}

/* Resource items */
.resource-item {
  border-left: 3px solid #0033A0;
  transition: all 0.3s ease;
}

.resource-item:hover {
  border-left-color: #0070C0;
  background-color: #F5F5F5;
}

/* Labels and badges */
.label-primary {
  background-color: #0033A0;
}

.label-info {
  background-color: #0070C0;
}

/* Form controls */
.form-control:focus {
  border-color: #0070C0;
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Pagination */
.pagination > .active > a,
.pagination > .active > span {
  background-color: #0033A0;
  border-color: #0033A0;
}

.pagination > li > a:hover {
  color: #0033A0;
  background-color: #E6F2FF;
}

/* Page heading */
.page-heading {
  border-bottom: 3px solid #0033A0;
  margin-bottom: 25px;
}

/* Alert styling */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-info {
  background-color: #E6F2FF;
  border-color: #0070C0;
  color: #0033A0;
}

.homepage .module-search {
  padding: 0px;
}

.homepage .module-search .search-form {
    padding: 0px;
}

.homepage .module-search .module-content {
  padding: 20px 15px 0 15px;
}

.search-form .search-input {
    margin-bottom: 0px;
}

/* Add a border line between the top and bottom halves of the front page. */
.homepage [role="main"] {
  border-top: 1px solid rgb(204, 204, 204);
}

.heading {
  font-size: 24px;
}

h3, .h3 {
  font-size: 18px;
}

.homepage .module-feeds {
  padding: 20px 0;
}

.homepage .module-promotion {
  padding: 50px 30px 0px 30px;
}

.form-control {
  border: 1px solid #000000;
}

[role=main], .main {
   min-height: 320px;
}

/* ====================================
   The footer at the bottom of the site
   ==================================== */

.site-footer .attribution p {
   color: rgba(255, 255, 255, 0.6);
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 0px;
}

.col-md-8 {
    padding-bottom: 0px
}

.site-footer,
body {
  background-color: rgb(40, 40, 40);
}
/* The text in the footer. */
.site-footer,
.site-footer label,
.site-footer small {
  color: rgba(255, 255, 255, 0.6);
}
/* The link texts in the footer. */
.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer {
    margin-bottom: initial;
    padding: 20px 0;
}

.site-footer .container {
    position: relative;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
    padding-bottom: 0px;
}

.site-footer .footer-links ul {
    margin: 0;
}

@media (min-width: 992px) {
  .col-md-8 {
    float: left;
  }
}

.col-md-8 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

/* =====================================================
   OSM CUSTOM FOOTER STYLES
   ===================================================== */
.osm-footer {
  background: linear-gradient(135deg, #002060 0%, #0033A0 100%);
  color: #ffffff;
  padding: 50px 0 20px 0;
  margin: 0;
}

/* Remove any gaps before footer */
.main-container,
[role="main"] {
  margin-bottom: 0 !important;
  padding-bottom: 60px;
}

body {
  background-color: var(--goa-light-grey) !important;
}

.osm-footer-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.osm-footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.osm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.osm-footer-links li {
  margin-bottom: 10px;
}

.osm-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.osm-footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.osm-footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 30px 0 20px 0;
}

.osm-footer-bottom-left,
.osm-footer-bottom-right {
  text-align: center;
}

.osm-footer-copyright,
.osm-footer-powered {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.osm-footer-powered a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.osm-footer-powered a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .osm-footer-bottom-left {
    text-align: left;
  }
  
  .osm-footer-bottom-right {
    text-align: right;
  }
}

/* Hide default CKAN footer */
.site-footer {
  display: none !important;
}

/* =====================================================
   ORGANIZATIONS & GROUPS PAGE STYLES
   ===================================================== */

/* Page Container */
.goa-organizations-page,
.goa-groups-page {
  background-color: #F8F9FA;
  padding: 20px 0;
  min-height: 600px;
}

.goa-organizations-page .container,
.goa-groups-page .container {
  max-width: 1200px;
}

/* Breadcrumb Navigation */
.goa-breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 0;
  font-size: 0.95rem;
}

.goa-breadcrumb-home {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.goa-breadcrumb-home:hover {
  color: var(--goa-primary-blue);
  background-color: rgba(0, 112, 192, 0.05);
  text-decoration: none;
}

.goa-breadcrumb-home i {
  font-size: 1.1rem;
}

.goa-breadcrumb-separator {
  color: #999;
  margin: 0 10px;
  font-weight: 300;
}

.goa-breadcrumb-current {
  color: var(--goa-primary-blue);
  font-weight: 600;
}

/* Page Header */
.goa-page-header {
  text-align: center;
  margin-bottom: 50px;
}

.goa-page-header-top {
  margin-bottom: 20px;
}

.goa-page-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
}

.goa-page-title {
  color: var(--goa-primary-blue);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.goa-page-description {
  color: #555;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Add Dataset Button */
.goa-add-dataset-btn {
  background: var(--goa-primary-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--goa-primary-blue);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.goa-add-dataset-btn:hover {
  background: var(--goa-dark-blue);
  border-color: var(--goa-dark-blue);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

.goa-add-dataset-btn i {
  font-size: 1.1em;
}

/* Dropdown for Add Dataset */
.goa-page-header-actions .dropdown {
  display: inline-block;
}

.goa-page-header-actions .dropdown-menu {
  border: 1px solid rgba(0, 51, 160, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  min-width: 200px;
}

.goa-page-header-actions .dropdown-item {
  padding: 10px 20px;
  color: #2D3748;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.goa-page-header-actions .dropdown-item:hover {
  background: rgba(0, 112, 192, 0.08);
  color: var(--goa-primary-blue);
}

.goa-page-header-actions .dropdown-item i {
  width: 20px;
  color: var(--goa-secondary-blue);
  text-align: center;
}

/* Search Section */
.goa-search-section {
  margin-bottom: 50px;
}

.goa-search-form {
  max-width: 700px;
  margin: 0 auto;
}

.goa-search-box {
  display: flex;
  background: var(--goa-white);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 6px;
  transition: box-shadow 0.3s ease;
}

.goa-search-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.goa-search-input {
  flex: 1;
  border: none;
  padding: 14px 25px;
  font-size: 16px;
  border-radius: 50px;
  outline: none;
  background: transparent;
}

.goa-search-input::placeholder {
  color: #999;
}

.goa-search-btn {
  background: var(--goa-primary-blue);
  color: var(--goa-white);
  border: none;
  border-radius: 40px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goa-search-btn:hover {
  background: var(--goa-dark-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

.goa-filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.goa-search-hint {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.goa-clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--goa-primary-blue);
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.goa-clear-filters-btn:hover {
  background: var(--goa-primary-blue);
  color: #fff;
  text-decoration: none;
}

/* Results Header */
.goa-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  padding: 0 10px;
  flex-wrap: wrap;
  gap: 20px;
}

.goa-results-count {
  color: var(--goa-primary-blue);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.goa-results-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goa-results-sort label {
  color: var(--goa-primary-blue);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.goa-select {
  border: 2px solid rgba(0, 112, 192, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--goa-primary-blue);
  font-weight: 500;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.goa-select:focus {
  border-color: var(--goa-secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Organizations/Groups List */
.goa-organizations-list,
.goa-groups-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 50px;
}

/* Organization/Group List Item */
.goa-org-list-item,
.goa-group-list-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 112, 192, 0.12);
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.goa-org-list-item:hover,
.goa-group-list-item:hover {
  box-shadow: 0 6px 20px rgba(0, 51, 160, 0.12);
  border-color: var(--goa-secondary-blue);
  text-decoration: none;
  background: #F5F9FF;
  transform: translateX(4px);
}

/* List Icon */
.goa-org-list-icon,
.goa-group-list-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--goa-light-blue) 0%, #D8ECFF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 112, 192, 0.15);
}

.goa-org-list-icon i,
.goa-group-list-icon i {
  font-size: 1.4rem;
  color: var(--goa-secondary-blue);
}

/* List Item Content */
.goa-org-content,
.goa-group-content {
  flex: 1;
  min-width: 0;
}

.goa-org-title,
.goa-group-title {
  color: var(--goa-primary-blue);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.goa-org-list-item:hover .goa-org-title,
.goa-group-list-item:hover .goa-group-title {
  color: var(--goa-dark-blue);
}

.goa-org-meta,
.goa-group-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.goa-org-count,
.goa-group-count {
  color: #555;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.goa-org-count i,
.goa-group-count i {
  font-size: 0.85rem;
  color: var(--goa-secondary-blue);
}

/* Pagination */
.goa-pagination {
  text-align: center;
  padding: 30px 0;
}


.btn-link {
  color: rgba(255, 255, 255, 0.85);
}

.goa-pagination .pagination {
  display: inline-flex;
  gap: 8px;
  margin: 0;
}

.goa-pagination .pagination li a,
.goa-pagination .pagination li span {
  background: var(--goa-white);
  border: 2px solid rgba(0, 112, 192, 0.2);
  color: var(--goa-primary-blue);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.goa-pagination .pagination li.active a,
.goa-pagination .pagination li.active span {
  background: var(--goa-primary-blue);
  color: white;
  border-color: var(--goa-primary-blue);
}

.goa-pagination .pagination li a:hover {
  background: var(--goa-secondary-blue);
  color: white;
  border-color: var(--goa-secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .goa-page-title {
    font-size: 2.2rem;
  }
  
  .goa-page-description {
    font-size: 1rem;
  }
  
  .goa-results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .goa-results-count {
    font-size: 1.4rem;
  }
  
  .goa-filters-row {
    flex-direction: column;
  }
  
  .goa-filter-item {
    width: 100%;
  }
}

/* =====================================================
   DATASETS PAGE STYLES
   ===================================================== */

/* Datasets Page Container */
.goa-datasets-page {
  background-color: #F8F9FA;
  padding: 20px 0;
  min-height: 600px;
}

.goa-datasets-page .container {
  max-width: 1200px;
}

/* Horizontal Filters Section */
.goa-filters-section {
  margin-bottom: 40px;
}

.goa-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--goa-white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.goa-filter-item {
  flex: 1;
  min-width: 180px;
  max-width: calc(20% - 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goa-filter-item label {
  color: var(--goa-primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

/* Top pagination */
.goa-pagination-top {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 112, 192, 0.1);
}

.goa-pagination-bottom {
  margin-top: 40px;
}

/* Datasets List */
.goa-datasets-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.goa-dataset-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
  border: 1px solid rgba(0, 112, 192, 0.12);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.goa-dataset-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 51, 160, 0.12);
  border-color: var(--goa-secondary-blue);
}

.goa-dataset-title {
  margin-bottom: 12px;
}

.goa-dataset-title a {
  color: var(--goa-primary-blue);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.goa-dataset-title a:hover {
  color: var(--goa-dark-blue);
  text-decoration: underline;
}

/* Publication Citation */
.goa-publication-citation {
  background: linear-gradient(135deg, #F0F4F8 0%, #E6EEF5 100%);
  color: #2D3748;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--goa-secondary-blue);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.goa-dataset-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.goa-dataset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 112, 192, 0.1);
}

.goa-dataset-org,
.goa-dataset-resources,
.goa-dataset-views,
.goa-dataset-modified {
  color: #666;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.goa-dataset-org i,
.goa-dataset-resources i,
.goa-dataset-views i,
.goa-dataset-modified i {
  color: var(--goa-secondary-blue);
}

.goa-dataset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.goa-dataset-tag {
  background: rgba(0, 112, 192, 0.08);
  color: var(--goa-secondary-blue);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.goa-dataset-tag:hover {
  background: var(--goa-secondary-blue);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* No Results Message */
.goa-no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--goa-white);
  border-radius: 12px;
  border: 2px dashed rgba(0, 112, 192, 0.2);
}

.goa-no-results p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* =====================================================
   DATASET DETAIL PAGE STYLES - COMPACT LAYOUT
   ===================================================== */

/* Page Container - Less padding for compact look */
.goa-dataset-detail-page {
  background-color: #F8F9FA;
  padding: 20px 0 40px 0;
  min-height: 600px;
}

.goa-dataset-detail-page .container {
  max-width: 1200px;
}

/* Breadcrumb link styling */
.goa-breadcrumb-link {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.goa-breadcrumb-link:hover {
  color: var(--goa-primary-blue);
  text-decoration: underline;
}

/* Dataset Header - Compact */
.goa-dataset-header {
  background: var(--goa-white);
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.goa-dataset-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.goa-dataset-detail-title {
  color: var(--goa-primary-blue);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.goa-btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--goa-secondary-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.goa-btn-manage:hover {
  background: var(--goa-primary-blue);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 112, 192, 0.3);
}

.goa-dataset-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 112, 192, 0.1);
}

.goa-meta-item {
  color: #666;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.goa-meta-item i {
  color: var(--goa-secondary-blue);
}

.goa-dataset-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.goa-detail-tag {
  background: rgba(0, 112, 192, 0.08);
  color: var(--goa-secondary-blue);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.goa-detail-tag:hover {
  background: var(--goa-secondary-blue);
  color: white;
  text-decoration: none;
}

/* Main Content Layout - Two Columns */
.goa-dataset-main {
  display: block;
  max-width: 100%;
}

/* Primary Content */
.goa-dataset-primary {
  min-width: 0;
  width: 100%;
}

.goa-dataset-section {
  background: var(--goa-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.goa-section-title {
  color: var(--goa-primary-blue);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--goa-light-blue);
}

.goa-section-content {
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
}

/* Resources List - Compact */
.goa-resources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goa-resource-item {
  background: #FFFFFF;
  border: 1px solid #DDD;
  border-radius: 4px;
  padding: 15px;
  transition: all 0.2s ease;
}

.goa-resource-item:hover {
  border-color: var(--goa-secondary-blue);
  box-shadow: 0 1px 4px rgba(0, 51, 160, 0.08);
}

.goa-resource-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.goa-resource-title {
  margin: 0;
  font-size: 1.1rem;
}

.goa-resource-title a {
  color: var(--goa-primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.goa-resource-title a:hover {
  color: var(--goa-dark-blue);
  text-decoration: underline;
}

.goa-resource-format {
  background: var(--goa-secondary-blue);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.goa-resource-description {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.goa-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.goa-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.goa-btn-download {
  background: var(--goa-primary-blue);
  color: white;
  border: none;
}

.goa-btn-download:hover {
  background: var(--goa-dark-blue);
  text-decoration: none;
  color: white;
}

.goa-btn-explore {
  background: transparent;
  color: var(--goa-secondary-blue);
  border: 1px solid var(--goa-secondary-blue);
}

.goa-btn-explore:hover {
  background: var(--goa-secondary-blue);
  color: white;
  text-decoration: none;
}

.goa-resource-date {
  color: #999;
  font-size: 0.8rem;
  margin-left: auto;
}

.goa-resource-downloads {
  color: #666;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.goa-resource-downloads i {
  color: var(--goa-secondary-blue);
}

/* =====================================================
   DATASET DETAIL - IMPROVED RESOURCE CARDS
   ===================================================== */

/* Additional Info Table */
.goa-info-table {
  width: 100%;
  border-collapse: collapse;
}

.goa-info-table tr {
  border-bottom: 1px solid rgba(0, 112, 192, 0.1);
}

.goa-info-table tr:last-child {
  border-bottom: none;
}

.goa-info-table th,
.goa-info-table td {
  padding: 10px 0;
  text-align: left;
  font-size: 0.9rem;
}

.goa-info-table th {
  color: var(--goa-primary-blue);
  font-weight: 600;
  width: 35%;
}

.goa-info-table td {
  color: #666;
  word-break: break-word;
}

.goa-info-table td a {
  color: var(--goa-secondary-blue);
  text-decoration: none;
}

.goa-info-table td a:hover {
  text-decoration: underline;
}

/* Additional Info Table with Header Row */
.goa-additional-info-table {
  border: 1px solid #ddd;
}

.goa-additional-info-table thead th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: 700;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-size: 1rem;
}

.goa-additional-info-table tbody tr {
  border-bottom: 1px solid #e8e8e8;
}

.goa-additional-info-table tbody tr:last-child {
  border-bottom: none;
}

.goa-additional-info-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.goa-additional-info-table tbody th {
  background-color: transparent;
  padding: 12px 15px;
  font-weight: 600;
  color: #333;
  width: 40%;
  vertical-align: top;
}

.goa-additional-info-table tbody td {
  padding: 12px 15px;
  color: #555;
  vertical-align: top;
}

/* Sidebar (Right Column) - Compact */
.goa-dataset-sidebar {
  min-width: 0;
}

.goa-sidebar-section {
  background: var(--goa-white);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.goa-sidebar-title {
  color: var(--goa-primary-blue);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.goa-sidebar-content {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.goa-sidebar-content a {
  color: var(--goa-secondary-blue);
  text-decoration: none;
}

.goa-sidebar-content a:hover {
  text-decoration: underline;
}

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

.goa-sidebar-list li {
  padding: 5px 0;
}

.goa-sidebar-list li a {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.goa-sidebar-list li a:hover {
  text-decoration: underline;
}

/* Responsive - Full width on all screens */
@media (max-width: 992px) {
  .goa-dataset-main {
    display: block;
  }
}

/* =====================================================
   ORGANIZATION & GROUP DETAIL PAGES - COMPACT LAYOUT
   ===================================================== */

/* Page Container */
.goa-organization-detail-page,
.goa-group-detail-page {
  background-color: #F8F9FA;
  padding: 20px 0 40px 0;
  min-height: 600px;
}

.goa-organization-detail-page .container,
.goa-group-detail-page .container {
  max-width: 1200px;
}

/* Organization/Group Header - Compact */
.goa-org-detail-header,
.goa-group-detail-header {
  background: var(--goa-white);
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}



.goa-org-info,
.goa-group-info {
  flex: 1;
}

.goa-org-title,
.goa-group-title {
  color: var(--goa-primary-blue);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.goa-org-description,
.goa-group-description {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Tabs Navigation */
.goa-tabs {
  display: flex;
  gap: 5px;
  background: var(--goa-white);
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  overflow: hidden;
}

.goa-tab {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--goa-white);
}

.goa-tab:hover {
  background: var(--goa-light-blue);
  color: var(--goa-primary-blue);
  text-decoration: none;
}

.goa-tab-active {
  color: var(--goa-primary-blue);
  font-weight: 600;
  border-bottom-color: var(--goa-primary-blue);
  background: var(--goa-light-blue);
}

.goa-tab i {
  margin-right: 5px;
}

/* Search and Sort Section */
.goa-org-search-section,
.goa-group-search-section {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.goa-org-search-form,
.goa-group-search-form {
  flex: 1;
  min-width: 300px;
}

.goa-org-sort-form,
.goa-group-sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.goa-org-sort-form label,
.goa-group-sort-form label {
  color: #666;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
}

/* Results Header */
.goa-org-results-header,
.goa-group-results-header {
  margin-bottom: 12px;
}

.goa-org-results-header .goa-results-count,
.goa-group-results-header .goa-results-count {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Compact Dataset Cards */
.goa-org-datasets-list,
.goa-group-datasets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goa-org-dataset-card,
.goa-group-dataset-card {
  background: var(--goa-white);
  border: 1px solid rgba(0, 112, 192, 0.15);
  border-radius: 6px;
  padding: 15px 18px;
  transition: all 0.3s ease;
}

.goa-org-dataset-card:hover,
.goa-group-dataset-card:hover {
  border-color: var(--goa-secondary-blue);
  box-shadow: 0 3px 12px rgba(0, 51, 160, 0.1);
  transform: translateY(-1px);
}

.goa-org-dataset-title,
.goa-group-dataset-title {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.goa-org-dataset-title a,
.goa-group-dataset-title a {
  color: var(--goa-primary-blue);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}

.goa-org-dataset-title a:hover,
.goa-group-dataset-title a:hover {
  color: var(--goa-dark-blue);
  text-decoration: underline;
}

.goa-org-dataset-description,
.goa-group-dataset-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.goa-org-dataset-meta,
.goa-group-dataset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  color: #888;
  font-size: 0.85rem;
}

.goa-org-dataset-item,
.goa-group-dataset-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.goa-org-dataset-item i,
.goa-group-dataset-item i {
  color: var(--goa-secondary-blue);
}

.goa-org-dataset-formats,
.goa-group-dataset-formats {
  display: inline-flex;
  gap: 5px;
  margin-left: auto;
}

.goa-format-badge {
  background: var(--goa-secondary-blue);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .goa-org-search-section,
  .goa-group-search-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .goa-org-search-form,
  .goa-group-search-form {
    min-width: 100%;
  }
  
  .goa-org-sort-form,
  .goa-group-sort-form {
    width: 100%;
  }
  
  .goa-org-dataset-formats,
  .goa-group-dataset-formats {
    margin-left: 0;
  }
  
  .goa-tabs {
    flex-direction: column;
  }
  
  .goa-tab {
    border-bottom: 1px solid #eee;
    border-left: 3px solid transparent;
  }
  
  .goa-tab-active {
    border-left-color: var(--goa-primary-blue);
    border-bottom-color: #eee;
  }
}

/* =====================================================
   OLD ORGANIZATIONS, GROUPS & ABOUT PAGE STYLES
   ===================================================== */

/* Page Headings */
.page-heading {
  color: var(--goa-primary-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--goa-light-blue);
}

.module-description {
  font-size: 1.1rem;
  color: var(--goa-text-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Module Styling */
.module {
  background: var(--goa-white);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.module-content {
  padding: 30px;
}

.module-heading {
  color: var(--goa-primary-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.module-narrow {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border: 1px solid rgba(0, 51, 160, 0.08);
}

.module-shallow .module-content {
  padding: 20px;
}

/* =====================================================
   ORGANIZATIONS & GROUPS PAGE LAYOUT
   ===================================================== */

/* Hide sidebar on organizations/groups pages */
.organization.read .secondary,
.group.read .secondary {
  display: none;
}

/* Make primary content full width when sidebar is hidden */
.organization.read .primary,
.group.read .primary {
  width: 100%;
  float: none;
  margin-right: 0;
}

/* =====================================================
   RESOURCE PAGE
   ===================================================== */

.goa-resource-page {
  min-height: 70vh;
  background: linear-gradient(to bottom, #F9FAFB 0%, #FFFFFF 100%);
  padding: 40px 0;
}

/* Full width layout - no sidebar */
.goa-respage-header,
.goa-resource-preview,
.goa-no-preview,
.goa-dataset-context {
  margin: 30px 0;
}

/* Resource Page Header */
.goa-respage-header {
  background: #FFFFFF;
  border: 1px solid rgba(0, 51, 160, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.goa-respage-header-left {
  flex: 1;
  margin-right: 30px;
}

.goa-respage-title {
  color: var(--goa-primary-blue);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.goa-respage-description {
  color: #4A5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Resource Page Actions */
.goa-respage-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.goa-respage-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.goa-respage-btn-primary {
  background: var(--goa-primary-blue);
  color: #FFFFFF;
}

.goa-respage-btn-primary:hover {
  background: var(--goa-dark-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.25);
}

.goa-respage-btn-secondary {
  background: #FFFFFF;
  color: var(--goa-primary-blue);
  border: 2px solid var(--goa-primary-blue);
}

.goa-respage-btn-secondary:hover {
  background: var(--goa-primary-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.25);
}

/* Section Titles */
.goa-section-title {
  color: var(--goa-primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid rgba(0, 112, 192, 0.2);
}

/* Resource Preview */
.goa-resource-preview {
  background: #FFFFFF;
  border: 1px solid rgba(0, 51, 160, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.goa-resource-view-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0, 51, 160, 0.1);
  padding-bottom: 10px;
}

.goa-view-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: #718096;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.goa-view-tab:hover {
  background: rgba(0, 112, 192, 0.05);
  color: var(--goa-primary-blue);
  text-decoration: none;
}

.goa-view-tab-active {
  background: var(--goa-primary-blue);
  color: #FFFFFF;
}

.goa-view-tab-active:hover {
  background: var(--goa-dark-blue);
  color: #FFFFFF;
  text-decoration: none;
}

.goa-resource-view-content {
  min-height: 400px;
}

/* No Preview State */
.goa-no-preview {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  border: 2px dashed rgba(0, 51, 160, 0.2);
  border-radius: 12px;
  margin-bottom: 30px;
}

.goa-no-preview-icon {
  font-size: 4rem;
  color: rgba(0, 51, 160, 0.3);
  margin-bottom: 20px;
}

.goa-no-preview h3 {
  color: var(--goa-primary-blue);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.goa-no-preview p {
  color: #718096;
  font-size: 1.1rem;
}

/* Resource Info Section */
.goa-resource-info-section {
  background: #FFFFFF;
  border: 1px solid rgba(0, 51, 160, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.goa-resource-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .goa-resource-info-grid {
    grid-template-columns: 1fr;
  }
}

.goa-info-item {
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 51, 160, 0.05);
}

.goa-info-item-full {
  grid-column: 1 / -1;
}

.goa-info-label {
  display: block;
  color: #718096;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.goa-info-value {
  display: block;
  color: #2D3748;
  font-size: 1.1rem;
  font-weight: 500;
  word-break: break-word;
}

.goa-resource-url {
  color: var(--goa-primary-blue);
  text-decoration: none;
}

.goa-resource-url:hover {
  text-decoration: underline;
}

/* Dataset Context */
.goa-dataset-context {
  background: #FFFFFF;
  border: 1px solid rgba(0, 51, 160, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.goa-dataset-notes {
  color: #4A5568;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.goa-dataset-link {
  margin: 0;
}

.goa-dataset-link a {
  color: var(--goa-primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.goa-dataset-link a:hover {
  text-decoration: underline;
}

/* Sidebar */
.goa-resource-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.goa-sidebar-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 51, 160, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.goa-sidebar-title {
  background: linear-gradient(135deg, var(--goa-primary-blue) 0%, var(--goa-dark-blue) 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 20px;
  margin: 0;
}

.goa-sidebar-content {
  padding: 20px;
}

.goa-dataset-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.goa-dataset-name a {
  color: var(--goa-primary-blue);
  text-decoration: none;
}

.goa-dataset-name a:hover {
  text-decoration: underline;
}

.goa-dataset-org {
  color: #718096;
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Resources Grid - Show all resources in dataset */
.goa-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.goa-resource-card {
  background: #FFFFFF;
  border: 2px solid rgba(0, 51, 160, 0.12);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.goa-resource-card:hover {
  border-color: var(--goa-secondary-blue);
  box-shadow: 0 4px 16px rgba(0, 51, 160, 0.15);
  transform: translateY(-2px);
}

.goa-resource-card-active {
  background: linear-gradient(135deg, #E6F2FF 0%, #FFFFFF 100%);
  border-color: var(--goa-primary-blue);
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(0, 51, 160, 0.2);
  padding-top: 45px;
}

.goa-resource-card-active::before {
  content: "Currently Viewing";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--goa-primary-blue);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.goa-resource-card a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.goa-resource-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.goa-resource-card-header i {
  color: var(--goa-secondary-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.goa-resource-card-active .goa-resource-card-header i {
  color: var(--goa-primary-blue);
}

.goa-resource-card-name {
  color: #2D3748;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.goa-resource-card-active .goa-resource-card-name {
  color: var(--goa-primary-blue);
}

.goa-resource-card-format {
  background: var(--goa-secondary-blue);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.goa-resource-card-active .goa-resource-card-format {
  background: var(--goa-primary-blue);
}

@media (max-width: 768px) {
  .goa-resources-grid {
    grid-template-columns: 1fr;
  }
}

/* Remove grey background and use white */
.organization.read,
.group.read {
  background-color: #FFFFFF;
}

.organization.read .wrapper,
.group.read .wrapper {
  background-color: #FFFFFF;
}

.organization.read .primary .module,
.group.read .primary .module {
  background-color: #FFFFFF;
  border: none;
  box-shadow: none;
}

/* Clean up toolbar and page container backgrounds */
.organization.read .toolbar,
.group.read .toolbar {
  background-color: transparent;
  padding: 20px 0;
}

.organization.read .page_primary_action,
.group.read .page_primary_action {
  background-color: transparent;
  padding: 0;
}

/* Make content area clean white */
body.organization.read,
body.group.read {
  background-color: #F8F9FA;
}

.organization.read .main,
.group.read .main {
  background-color: #FFFFFF;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Organizations and Groups Listing */
.organizations-listing,
.groups-listing {
  margin-top: 30px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 0;
  padding: 0;
}

.media-item {
  background: linear-gradient(135deg, #E6F2FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(0, 112, 192, 0.15);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.media-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 51, 160, 0.15);
  border-color: var(--goa-secondary-blue);
}

.media-heading {
  color: var(--goa-primary-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.media-item:hover .media-heading {
  color: var(--goa-dark-blue);
}

/* Search Box Styling for Organizations/Groups Pages - Match Home Page Style */
.goa-page-actions .search-form {
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.goa-page-actions .search-form .search-input {
  display: flex;
  background: var(--goa-white);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 4px;
  transition: box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.goa-page-actions .search-form .search-input:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.goa-page-actions .search-form input[type="search"],
.goa-page-actions .search-form .form-control {
  flex: 1;
  border: none;
  padding: 14px 25px;
  font-size: 16px;
  border-radius: 50px;
  outline: none;
  background: transparent;
  box-shadow: none;
}

.goa-page-actions .search-form input[type="search"]:focus,
.goa-page-actions .search-form .form-control:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.goa-page-actions .search-form button[type="submit"],
.goa-page-actions .search-form .btn-search {
  background: var(--goa-primary-blue);
  color: var(--goa-white);
  border: none;
  border-radius: 40px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin: 0;
  height: auto;
}

.goa-page-actions .search-form button[type="submit"]:hover,
.goa-page-actions .search-form .btn-search:hover {
  background: var(--goa-dark-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

/* Order By Dropdown Styling */
.form-select select,
select.form-select {
  border: 2px solid rgba(0, 112, 192, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--goa-primary-blue);
  font-weight: 500;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.form-select select:focus,
select.form-select:focus {
  border-color: var(--goa-secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Results Count Styling */
.page-header .content_action,
.content_action h2 {
  color: var(--goa-primary-blue) !important;
  font-size: 1.8rem !important;
  font-weight: 600 !important;
  margin-bottom: 25px !important;
}

/* Order By Label Styling */
.form-select label,
.control-order-by label {
  color: var(--goa-primary-blue) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin-right: 10px;
}

/* Button Styling */
.btn-primary {
  background-color: var(--goa-secondary-blue);
  border-color: var(--goa-secondary-blue);
  color: white;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--goa-primary-blue);
  border-color: var(--goa-primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.2);
}

/* About Page Sections */
.about-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--goa-border-grey);
}

.about-section:last-child {
  border-bottom: none;
}

.about-section h2 {
  color: var(--goa-primary-blue);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--goa-text-dark);
  margin-bottom: 15px;
}

.about-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.about-section ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.about-section a {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.about-section a:hover {
  color: var(--goa-primary-blue);
  text-decoration: underline;
}

/* Navigation Lists */
.nav-simple {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-simple li {
  margin-bottom: 10px;
}

.nav-simple li a {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-simple li a:hover {
  background: var(--goa-light-blue);
  color: var(--goa-primary-blue);
  padding-left: 16px;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}

/* Primary Button */
.btn-primary {
  background: var(--goa-primary-blue);
  color: var(--goa-white);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.btn-primary:hover {
  background: var(--goa-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
  color: var(--goa-white);
  text-decoration: none;
}

/* ============================================
   About Page Styles
   ============================================ */

.goa-about-page {
  background: #FFFFFF;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.goa-about-content {
  max-width: 900px;
  margin: 30px auto 0;
}

.goa-content-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.goa-content-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--goa-light-blue);
}

.goa-section-title {
  color: var(--goa-primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--goa-secondary-blue);
}

.goa-section-text {
  color: #4A5568;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.goa-section-text:last-child {
  margin-bottom: 0;
}

/* =====================================================================
   CHOOSE DATASET TYPE PAGE
   ===================================================================== */

.goa-choose-type-page {
  background-color: #F8F9FA;
  padding: 40px 0 80px 0;
  min-height: 600px;
}

.goa-choose-header {
  text-align: center;
  margin-bottom: 60px;
}

.goa-choose-title {
  color: var(--goa-primary-blue);
  font-size: 3.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.goa-choose-description {
  color: #555;
  font-size: 1.3rem;
  line-height: 1.6;
}

.goa-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.goa-type-card {
  background: white;
  border: 2px solid rgba(0, 112, 192, 0.2);
  border-radius: 8px;
  padding: 26px 22px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.goa-type-card:hover {
  border-color: var(--goa-primary-blue);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.12);
  transform: translateY(-3px);
  text-decoration: none;
}

.goa-type-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--goa-primary-blue) 0%, var(--goa-secondary-blue) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.goa-type-card:hover .goa-type-card-icon {
  transform: scale(1.08);
}

.goa-type-card-icon i {
  font-size: 1.65rem;
  color: white;
}

.goa-type-card-title {
  color: var(--goa-primary-blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 9px;
}

.goa-type-card-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.goa-type-card-arrow {
  color: var(--goa-secondary-blue);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  margin-top: auto;
}

.goa-type-card:hover .goa-type-card-arrow {
  transform: translateX(6px);
}

.goa-choose-actions {
  text-align: center;
  margin-top: 40px;
}

.goa-cancel-link {
  color: #666;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.goa-cancel-link:hover {
  color: var(--goa-primary-blue);
  background: rgba(0, 112, 192, 0.05);
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .goa-type-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .goa-choose-title {
    font-size: 2.2rem;
  }
  
  .goa-type-card {
    padding: 16px 14px;
  }
}

.goa-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.goa-list li {
  color: #4A5568;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.goa-list li:before {
  content: "▸";
  color: var(--goa-secondary-blue);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 8px;
  top: 0;
}

.goa-contact-info {
  background: #F7FAFC;
  border-left: 4px solid var(--goa-secondary-blue);
  padding: 20px;
  border-radius: 4px;
  margin-top: 15px;
}

.goa-contact-info p {
  margin-bottom: 12px;
  color: #2D3748;
  font-size: 0.95rem;
}

.goa-contact-info p:last-child {
  margin-bottom: 0;
}

.goa-link {
  color: var(--goa-secondary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.goa-link:hover {
  color: var(--goa-primary-blue);
  text-decoration: underline;
}

.goa-link i {
  font-size: 0.85rem;
  margin-left: 4px;
}

/* Quick Links Section */
.goa-quick-links-section {
  background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
  border: 2px solid var(--goa-light-blue);
}

.goa-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.goa-quick-link-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px 15px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.goa-quick-link-card:hover {
  background: var(--goa-light-blue);
  border-color: var(--goa-secondary-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 112, 192, 0.15);
  text-decoration: none;
}

.goa-quick-link-card i {
  font-size: 2rem;
  color: var(--goa-secondary-blue);
  transition: all 0.3s ease;
}

.goa-quick-link-card:hover i {
  color: var(--goa-primary-blue);
  transform: scale(1.1);
}

.goa-quick-link-card span {
  color: #2D3748;
  font-weight: 600;
  font-size: 0.9rem;
}

.goa-quick-link-card:hover span {
  color: var(--goa-primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
  .goa-about-content {
    padding: 0 15px;
  }
  
  .goa-content-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .goa-section-title {
    font-size: 1.3rem;
  }
  
  .goa-quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .goa-quick-links {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   USER PAGES STYLING
   ========================================================================== */

/* User Page Container */
.goa-user-page {
  background-color: #F8F9FA;
  padding: 20px 0 40px 0;
  min-height: 600px;
}

.goa-user-page .container {
  max-width: 1200px;
}

/* User Content Layout */
.goa-user-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .goa-user-content-wrapper {
    grid-template-columns: 1fr;
  }
}

/* User Card */
.goa-user-card {
  background: var(--goa-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.goa-user-page-title {
  color: var(--goa-primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  border-bottom: 2px solid rgba(0, 112, 192, 0.1);
  padding-bottom: 12px;
}

/* Error Messages for User Pages */
.goa-user-page .error-explanation,
.goa-user-page .alert {
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.goa-user-page .error-explanation,
.goa-user-page .alert-error {
  background: #FFF5F5;
  border: 2px solid #FC8181;
  color: #742A2A;
}

.goa-user-page .error-explanation p {
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #742A2A;
}

.goa-user-page .error-explanation ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.goa-user-page .error-explanation li {
  color: #742A2A;
  margin-bottom: 5px;
}

.goa-user-page .alert-success {
  background: #F0FFF4;
  border: 2px solid #48BB78;
  color: #22543D;
}

.goa-user-page .alert-info {
  background: #EBF8FF;
  border: 2px solid #4299E1;
  color: #2C5282;
}

.goa-user-page .alert-warning {
  background: #FFFAF0;
  border: 2px solid #F6AD55;
  color: #7C2D12;
}

/* User Forms */
.goa-user-form .form-group {
  margin-bottom: 20px;
}

.goa-user-form .form-label {
  display: block;
  color: var(--goa-primary-blue);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.goa-user-form .form-control,
.goa-user-form .goa-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 112, 192, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.goa-user-form .form-control:focus,
.goa-user-form .goa-form-control:focus {
  border-color: var(--goa-secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Error state for form inputs */
.goa-user-form .error input,
.goa-user-form .error .form-control,
.goa-user-form .error .goa-form-control {
  border-color: #FC8181;
  background: #FFF5F5;
}

.goa-user-form .error input:focus,
.goa-user-form .error .form-control:focus,
.goa-user-form .error .goa-form-control:focus {
  border-color: #FC8181;
  box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.2);
}

.goa-user-form .form-actions {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 112, 192, 0.1);
}

/* User Help Sidebar */
.goa-user-help-card {
  background: var(--goa-white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--goa-secondary-blue);
}

.goa-user-help-title {
  color: var(--goa-primary-blue);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.goa-user-help-text {
  color: #4A5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.goa-user-help-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.goa-user-help-list li {
  color: #4A5568;
  font-size: 0.95rem;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.goa-user-help-list li i {
  color: var(--goa-secondary-green);
  font-size: 1.1rem;
}

/* User Buttons */
.goa-btn-primary,
.goa-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  justify-content: center;
}

.goa-btn-primary {
  background: var(--goa-primary-blue);
  color: white;
}

.goa-btn-primary:hover {
  background: var(--goa-dark-blue);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.goa-btn-secondary {
  background: var(--goa-white);
  color: var(--goa-primary-blue);
  border: 2px solid var(--goa-secondary-blue);
  width: 100%;
}

.goa-btn-secondary:hover {
  background: rgba(0, 112, 192, 0.05);
  color: var(--goa-primary-blue);
  text-decoration: none;
  border-color: var(--goa-primary-blue);
}

/* Module Styling for User Pages */
.module {
  background: var(--goa-white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.module-content {
  padding: 25px;
}

.module-heading,
.module .module-heading {
  color: var(--goa-primary-blue);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 112, 192, 0.1);
}

.page-heading {
  color: var(--goa-primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

/* Form Control Overrides */
.control-medium,
.control-full {
  width: 100%;
}

.form-control {
  border-color: rgba(0, 112, 192, 0.2);
  border-radius: 6px;
}

.form-control:focus {
  border-color: var(--goa-secondary-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Button Overrides */
.btn-primary {
  background: var(--goa-primary-blue);
  border-color: var(--goa-primary-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--goa-dark-blue);
  border-color: var(--goa-dark-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.btn-default {
  background: white;
  border: 2px solid var(--goa-secondary-blue);
  color: var(--goa-primary-blue);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-default:hover,
.btn-default:focus {
  background: rgba(0, 112, 192, 0.05);
  border-color: var(--goa-primary-blue);
  color: var(--goa-primary-blue);
}

.btn-light {
  background: white;
  border: 2px solid var(--goa-secondary-blue);
  color: var(--goa-primary-blue);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background: rgba(0, 112, 192, 0.05);
  border-color: var(--goa-primary-blue);
  color: var(--goa-primary-blue);
}

/* Dashboard & Profile Styles */
.page-header .content_action {
  margin-bottom: 15px;
}

.nav-tabs {
  border-bottom: 2px solid rgba(0, 112, 192, 0.1);
  margin-bottom: 20px;
}

.nav-tabs > li > a {
  color: var(--goa-primary-blue);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.nav-tabs > li > a:hover {
  background: rgba(0, 112, 192, 0.05);
  border-bottom-color: var(--goa-secondary-blue);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--goa-primary-blue);
  color: var(--goa-primary-blue);
}

/* Empty State */
.empty {
  color: #718096;
  font-size: 1rem;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 112, 192, 0.02);
  border-radius: 8px;
  border: 2px dashed rgba(0, 112, 192, 0.2);
}

/* ========================================
   Flash Messages & Alerts
   ======================================== */

/* Flash Messages Container */
.flash-messages {
  margin: 20px 0;
  width: 100%;
}

/* Base Alert Styles */
.alert {
  position: relative;
  padding: 18px 24px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

/* Dismissible Alert */
.alert-dismissible {
  padding-right: 45px;
}

.alert-dismissible .close {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  padding: 0;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.alert-dismissible .close:hover {
  opacity: 1;
}

/* Error Alerts */
.alert-error,
.alert-danger {
  background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
  border: 2px solid #F56565;
  border-left: 5px solid #E53E3E;
  color: #742A2A;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
  transition: all 0.3s ease;
}

.alert-error:hover,
.alert-danger:hover {
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.3);
  transform: translateY(-2px);
}

.alert-error::before,
.alert-danger::before {
  content: "⚠";
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #E53E3E;
  vertical-align: middle;
}

.alert-error .close,
.alert-danger .close {
  color: #742A2A;
  font-weight: 700;
  font-size: 28px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.alert-error .close:hover,
.alert-danger .close:hover {
  opacity: 1;
  color: #E53E3E;
  transform: scale(1.1);
}

/* Success Alerts */
.alert-success {
  background: linear-gradient(135deg, #F0FFF4 0%, #C6F6D5 100%);
  border: 2px solid #48BB78;
  border-left: 5px solid #38A169;
  color: #22543D;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.2);
}

.alert-success::before {
  content: "✓";
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #38A169;
  vertical-align: middle;
}

.alert-success .close {
  color: #22543D;
  font-weight: 700;
  font-size: 28px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.alert-success .close:hover {
  opacity: 1;
  color: #38A169;
  transform: scale(1.1);
}

/* Warning Alerts */
.alert-warning {
  background: linear-gradient(135deg, #FFFAF0 0%, #FEEBC8 100%);
  border: 2px solid #ED8936;
  border-left: 5px solid #DD6B20;
  color: #744210;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(221, 107, 32, 0.2);
}

.alert-warning::before {
  content: "⚡";
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #DD6B20;
  vertical-align: middle;
}

.alert-warning .close {
  color: #744210;
  font-weight: 700;
  font-size: 28px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.alert-warning .close:hover {
  opacity: 1;
  color: #DD6B20;
  transform: scale(1.1);
}

/* Info Alerts */
.alert-info {
  background: linear-gradient(135deg, #EBF8FF 0%, #BEE3F8 100%);
  border: 2px solid #4299E1;
  border-left: 5px solid #3182CE;
  color: #2C5282;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.alert-info::before {
  content: "ℹ";
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #3182CE;
  vertical-align: middle;
}

.alert-info .close {
  color: #2C5282;
  font-weight: 700;
  font-size: 28px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.alert-info .close:hover {
  opacity: 1;
  color: #3182CE;
  transform: scale(1.1);
}

/* Alert Links */
.alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.alert a:hover {
  opacity: 0.8;
}

/* Flash Message Animation */
.alert.fade {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.alert.fade.show {
  opacity: 1;
}

/* GOA flash container used inside overridden {% block flash %} */
.goa-flash-messages {
  margin: 0 0 20px 0;
  width: 100%;
}

/*
 * Global flash fallback rendered in {% block footer %} (outside {% block content %}).
 * Uses fixed positioning so messages appear at top-centre of viewport regardless
 * of where in the DOM the div is rendered.
 * Empty when get_flashed_messages() was already consumed inside content.
 */
.goa-flash-global {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  min-width: 380px;
  max-width: 640px;
  width: max-content;
  pointer-events: none; /* let clicks pass through when empty */
}

.goa-flash-global .goa-flash-messages {
  pointer-events: all;
  margin: 0;
}

/* =====================================================
   Fixed (sticky) site header
   ===================================================== */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
}

/* Push page content down so it is not hidden behind the fixed header.
   account-masthead (~36px) + masthead logo (~77px) ≈ 113px; using 120px
   gives a small buffer. Adjust if the header height changes. */
body {
  padding-top: 120px;
}

.goa-flash-global .alert {
  pointer-events: all;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Login Page Flash Messages - Position at top */
.goa-user-page .flash-messages {
  margin-top: 0;
  margin-bottom: 30px;
}

.goa-user-page .alert {
  animation: slideDownBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideDownBounce {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   Dashboard & User Profile Pages
   ======================================== */

/* Dashboard Activity Stream */
.module-content .activity {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #0070C0;
  transition: all 0.3s ease;
}

.module-content .activity:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.module-content .activity .item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.module-content .activity .item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0033A0 0%, #0070C0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.module-content .activity .item .content {
  flex: 1;
}

.module-content .activity .item .content p {
  margin: 0 0 5px 0;
  color: #4A5568;
  line-height: 1.6;
}

.module-content .activity .item .content .date {
  font-size: 0.85rem;
  color: #718096;
}

/* User Profile Stats */
.goa-user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.goa-user-stat-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #0070C0;
  transition: all 0.3s ease;
}

.goa-user-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.goa-user-stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0033A0;
  line-height: 1;
  margin-bottom: 5px;
}

.goa-user-stat-card .stat-label {
  font-size: 0.9rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   Admin Pages
   ======================================== */

/* Admin Navigation */
.nav-simple li a {
  display: block;
  padding: 12px 15px;
  color: #4A5568;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 3px 0;
}

.nav-simple li a:hover {
  background: rgba(0, 112, 192, 0.05);
  color: #0033A0;
  padding-left: 20px;
}

.nav-simple li a.active {
  background: linear-gradient(135deg, #0033A0 0%, #0070C0 100%);
  color: white;
  font-weight: 600;
}

.nav-simple li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Admin Tables */
.goa-user-page table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.goa-user-page table thead {
  background: linear-gradient(135deg, #0033A0 0%, #0070C0 100%);
  color: white;
}

.goa-user-page table thead th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goa-user-page table tbody tr {
  border-bottom: 1px solid rgba(0, 112, 192, 0.1);
  transition: all 0.3s ease;
}

.goa-user-page table tbody tr:hover {
  background: rgba(0, 112, 192, 0.02);
}

.goa-user-page table tbody td {
  padding: 15px;
  color: #4A5568;
}

.goa-user-page table tbody td a {
  color: #0070C0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.goa-user-page table tbody td a:hover {
  color: #0033A0;
  text-decoration: underline;
}

/* Admin Action Buttons */
.goa-user-page .btn-danger,
.goa-user-page .btn-remove {
  background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.goa-user-page .btn-danger:hover,
.goa-user-page .btn-remove:hover {
  background: linear-gradient(135deg, #C53030 0%, #9B2C2C 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(197, 48, 48, 0.3);
}

/* ========================================
   Logged Out Page Animations
   ======================================== */

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.goa-user-page .goa-user-card {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Navigation Pills & Tabs
   ======================================== */

.nav-pills > li > a {
  background: #F8F9FA;
  color: #4A5568;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 3px 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-pills > li > a:hover {
  background: rgba(0, 112, 192, 0.1);
  color: #0033A0;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: linear-gradient(135deg, #0033A0 0%, #0070C0 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 51, 160, 0.3);
}

.nav-pills > li > a i {
  margin-right: 8px;
}


/* =====================================================
   TYPE FILTER BUTTONS (Organization/Group Pages)
   ===================================================== */

.goa-type-filter-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 15px 20px;
  background: #F8F9FA;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.goa-type-filter-label {
  font-weight: 600;
  color: #2D3748;
  font-size: 0.95rem;
  white-space: nowrap;
}

.goa-type-filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.goa-type-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFFFFF;
  color: #4A5568;
  border: 2px solid #CBD5E0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.goa-type-filter-btn:hover {
  background: #E6F2FF;
  color: #0033A0;
  border-color: #0070C0;
  text-decoration: none;
  transform: translateY(-1px);
}

.goa-type-filter-btn.goa-active {
  background: linear-gradient(135deg, #0033A0 0%, #0070C0 100%);
  color: #FFFFFF;
  border-color: #0033A0;
  box-shadow: 0 3px 8px rgba(0, 51, 160, 0.3);
}

.goa-type-filter-btn.goa-active:hover {
  background: linear-gradient(135deg, #002060 0%, #005A9C 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.goa-type-filter-btn i {
  font-size: 0.85rem;
}

/* Separate count labels for Data and Product */
.goa-org-meta .goa-org-count,
.goa-group-meta .goa-group-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  font-size: 0.9rem;
}

.goa-count-label {
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.9;
}


/* =====================================================================
   GOA THEME - PACKAGE/DATASET PAGES SUPPORT
   Minimal CSS to support template overrides with proper typography
   ===================================================================== */

/* =====================================================================
   TYPOGRAPHY - Match GoA Theme
   ===================================================================== */

/* Base font settings for package pages */
.goa-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2D3748;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
.goa-page h1,
.goa-page .page-heading {
  color: #0033A0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.goa-page h2,
.goa-page .module-heading {
  color: #0033A0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 15px 0;
  letter-spacing: -0.01em;
}

.goa-page h3 {
  color: #002060;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.goa-page h4 {
  color: #0033A0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.goa-page h5 {
  color: #0033A0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

/* Paragraphs and text */
.goa-page p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #4A5568;
}

.goa-page .help-block,
.goa-page .info-block,
.goa-page .form-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #718096;
}

/* Labels and form text */
.goa-page label,
.goa-page .control-label,
.goa-page .form-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Links */
.goa-page a {
  color: #0070C0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.goa-page a:hover {
  color: #0033A0;
  text-decoration: underline;
}

/* Buttons - match font */
.goa-page .btn,
.goa-page .btn-primary,
.goa-page .btn-default,
.goa-page button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Form inputs - match font */
.goa-page .form-control,
.goa-page input,
.goa-page textarea,
.goa-page select {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.goa-page input::placeholder,
.goa-page textarea::placeholder {
  color: #A0AEC0;
  font-weight: 400;
}

/* Navigation tabs */
.goa-page .nav-tabs > li > a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Lists */
.goa-page ul,
.goa-page ol {
  line-height: 1.6;
  margin-bottom: 15px;
}

.goa-page li {
  margin-bottom: 8px;
  color: #4A5568;
}

/* Tables */
.goa-page table {
  font-size: 0.95rem;
  line-height: 1.5;
}

.goa-page th {
  font-weight: 600;
  color: #0033A0;
}

.goa-page td {
  color: #4A5568;
}

/* =====================================================================
   PAGE LAYOUT
   ===================================================================== */
.goa-page {
  background-color: #F8F9FA;
  padding: 20px 0 40px 0;
  min-height: 600px;
}

.goa-page .container {
  max-width: 1400px;
}

.goa-content-wrapper {
  display: flex;
  gap: 0;
}

.goa-primary-content {
  width: 100%;
  background: transparent;
}

/* Module styling for forms and content */
.goa-page .module {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  margin-bottom: 20px;
}

.goa-page .module-content {
  padding: 25px;
}

.goa-page .module-heading {
  background: transparent;
  color: #0033A0;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  padding: 0 0 12px 0;
  border-bottom: 2px solid rgba(0, 112, 192, 0.1);
}

/* Form styling */
.goa-page .form-group,
.goa-page .control-group {
  margin-bottom: 20px;
}

.goa-page label,
.goa-page .control-label,
.goa-page .form-label {
  color: #0033A0;
  font-weight: 600;
  margin-bottom: 8px;
}

.goa-page .form-control,
.goa-page input[type="text"],
.goa-page input[type="email"],
.goa-page input[type="url"],
.goa-page textarea,
.goa-page select {
  border: 2px solid rgba(0, 112, 192, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.goa-page .form-control:focus,
.goa-page input:focus,
.goa-page textarea:focus,
.goa-page select:focus {
  border-color: #0070C0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Button styling */
.goa-page .btn-primary {
  background: #0033A0;
  border-color: #0033A0;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.goa-page .btn-primary:hover {
  background: #002060;
  border-color: #002060;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

.goa-page .btn-default,
.goa-page .btn {
  background: #FFFFFF;
  border: 2px solid #0070C0;
  color: #0033A0;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.goa-page.btn-default:hover,
.goa-page .btn:hover {
  background: rgba(0, 112, 192, 0.05);
  border-color: #0033A0;
}

/* Button groups and multiple buttons alignment */
.goa-page .btn-group,
.goa-page .form-actions,
.goa-page .page_primary_action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.goa-page .btn-group .btn,
.goa-page .form-actions .btn,
.goa-page .page_primary_action .btn {
  margin: 0;
}

/* Navigation tabs */
.goa-page .nav-tabs {
  border-bottom: 2px solid rgba(0, 112, 192, 0.1);
  margin-bottom: 20px;
}

.goa-page .nav-tabs > li > a {
  color: #0033A0;
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
}

.goa-page .nav-tabs > li > a:hover {
  background: rgba(0, 112, 192, 0.05);
  border-bottom-color: #0070C0;
}

.goa-page .nav-tabs > li.active > a {
  background: transparent;
  border-bottom: 3px solid #0033A0;
  color: #0033A0;
}

/* Page header with action buttons */
.goa-page .content_action {
  float: right;
  margin-top: -10px;
  margin-bottom: 15px;
}

.goa-page .content_action .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Primary action buttons (e.g., "New view" button) */
.goa-page .page_primary_action {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 51, 160, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.goa-page .page_primary_action .btn-primary {
  background: #0033A0;
  border-color: #0033A0;
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.goa-page .page_primary_action .btn-primary:hover {
  background: #002060;
  border-color: #002060;
}

.goa-page .page_primary_action .btn,
.goa-page .page_primary_action .btn-default {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  padding: 10px 20px;
}

.goa-page .page_primary_action .dropdown-menu {
  border: 1px solid rgba(0, 51, 160, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 5px 0;
}

.goa-page .page_primary_action .dropdown-item {
  padding: 10px 20px;
  color: #2D3748;
  display: flex;
  align-items: center;
  gap: 10px;
}

.goa-page .page_primary_action .dropdown-item:hover {
  background: rgba(0, 112, 192, 0.05);
  color: #0033A0;
}

.goa-page .page_primary_action .dropdown-item i {
  width: 20px;
  text-align: center;
  color: #0070C0;
}

/* Alerts */
.goa-page .alert {
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.goa-page .alert-error {
  background: #FFF5F5;
  border: 2px solid #FC8181;
  color: #742A2A;
}

.goa-page .alert-success {
  background: #F0FFF4;
  border: 2px solid #48BB78;
  color: #22543D;
}

.goa-page .alert-info {
  background: #EBF8FF;
  border: 2px solid #4299E1;
  color: #2C5282;
}

/* Stages (dataset creation wizard) */
.goa-page .stages {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.goa-page .stages li {
  color: #718096;
  font-weight: 500;
}

.goa-page .stages li.active {
  color: #0033A0;
  font-weight: 700;
}

.goa-page .stages li.complete {
  color: #38A169;
}

/* =====================================================================
   BUTTON ALIGNMENT FIXES
   ===================================================================== */

/* Ensure all buttons in form actions align properly */
.goa-page .form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 51, 160, 0.1);
}

.goa-page .form-actions .btn {
  margin: 0 !important;
}

/* DataStore button containers */
.goa-page .datastore-buttons,
.goa-page .resource-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dropdown button (btn-group) alignment */
.goa-page .btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  vertical-align: middle;
}

.goa-page .btn-group .btn {
  margin: 0;
  border-radius: 0;
}

.goa-page .btn-group .btn:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.goa-page .btn-group .btn:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.goa-page .btn-group .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown container alignment */
.goa-page .dropdown {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Ensure all buttons have the same height */
.goa-page .btn,
.goa-page .btn-primary,
.goa-page .btn-default,
.goa-page button[type="submit"],
.goa-page button[type="button"] {
  min-height: 42px;
  line-height: 1.5;
}

/* Fix any inline button spacing issues */
.goa-page .btn + .btn,
.goa-page .btn + .dropdown {
  margin-left: 10px;
}
