:root {
  /* Brand Colors */
  --green: #179c3d;
  --blue: #0775d8;
  --gold: #ffb400;
  --purple: #7a549c;
  --dark: #21242a;
  --offwhite: #f7fafc;

  /* Oireachtas-specific Colors */
  --oir-blue: #12355b;
  --oir-gold: #e5b213;
  --oir-grey: #e9edf1;

  /* Shared Styles */
  --shadow: 0 8px 24px 0 rgba(18, 92, 45, 0.07);
  --border-radius: 1.3rem;
}

/* GLOBAL & LAYOUT */

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--offwhite);
  color: var(--dark);
  line-height: 1.55;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAVIGATION */

body.home-page .topnav {
  background: rgba(23, 156, 61, 0.95);
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
  position: absolute;
  width: 100%;
  z-index: 20;
}

body:not(.home-page) .topnav {
  background: var(--green);
  position: relative;
  box-shadow: var(--shadow);
  width: 100%;
  z-index: 20;
}

.topnav {
  padding: 1.1rem 0;
}

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

.logo {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 1px 10px #083b20b0;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  position: relative;
  transition: color 0.22s;
  text-shadow: 0 1px 10px #083b20b0;
}

nav a:hover,
nav a.active {
  color: #ffe;
  border-bottom: 2.5px solid #bfffd9;
}

/* HERO */

body.home-page .hero-img {
  width: 100%;
  height: 340px;
  background: linear-gradient(
      rgba(23, 123, 61, 0.84),
      rgba(47, 121, 91, 0.82)
    ),
    url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80")
      center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2.3rem;
  box-shadow: var(--shadow);
  position: relative;
  padding-top: 90px;
}

@media (max-width: 650px) {
  body.home-page .hero-img {
    padding-top: 130px;
    height: 220px;
  }
}

.hero-content {
  color: #fff;
  padding-bottom: 2rem;
  padding-top: 2.5rem;
  max-width: 650px;
  margin-left: 2rem;
}

.hero-content h1 {
  font-size: 2.9rem;
  font-family: "PT Serif", serif;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 14px #155024aa;
}

.hero-lead {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #222;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 2rem;
  padding: 0.74rem 2.2rem;
  box-shadow: 0 2px 14px #0002;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.22s;
}

.cta-btn:hover {
  background: #ffdb80;
  color: #125b14;
}

/* Large Horizontal Sections */

.horizontal-section {
  padding: 4rem 1rem;
  color: white;
}

.container.horizontal-content {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.horizontal-content.reverse {
  flex-direction: row-reverse;
}

.horizontal-section img {
  max-width: 600px;
  border-radius: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  object-fit: cover;
}

.text-content {
  flex: 1 1 440px;
  max-width: 480px;
}

.text-content h2 {
  font-family: "PT Serif", serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px #2d2d2d80;
}

.text-content p {
  font-size: 1.28rem;
  margin-bottom: 2.2rem;
  line-height: 1.45;
  text-shadow: 0 0 6px #00000060;
}

.text-content .btn {
  padding: 1rem 2.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 2.5rem;
  text-decoration: none;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: inline-block;
  transition: background 0.3s ease;
}

.text-content .btn:hover {
  background: var(--gold);
  color: #222;
}

/* Section Colors */

.green-section {
  background: var(--green);
}

.blue-section {
  background: var(--blue);
}

.gold-section {
  background: var(--gold);
  color: #431f00; /* Dark text for gold bg */
}

.purple-section {
  background: var(--purple);
}

/* Join Section Styles */

.join-section {
  max-width: 900px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
}

.join-section h2 {
  font-family: "PT Serif", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.join-section p {
  font-size: 1.2rem;
  margin-bottom: 1.7rem;
  color: var(--dark);
}

.join-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.discord-btn,
.roblox-btn {
  background-color: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 1rem 2.5rem;
  font-weight: 700;
  border-radius: 2.5rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: background-color 0.25s;
  min-width: 180px;
  display: inline-block;
}

.roblox-btn {
  background-color: var(--green);
}

.discord-btn:hover {
  background-color: #404eed;
}

.roblox-btn:hover {
  background-color: #14592b;
}

/* Footer */

footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.05rem;
  letter-spacing: 1.3px;
  font-weight: 600;
  user-select: none;
  margin-top: 4rem;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

/* OIREACHTAS PAGE */

.oir-banner {
  background: var(--oir-blue);
  color: #fff;
  padding: 2.4rem 1rem 1.8rem;
  margin-bottom: 2.3rem;
  box-shadow: 0 8px 24px rgba(18, 53, 91, 0.13);
  text-align: center;
}

.oir-banner-content {
  max-width: 900px;
  margin: 0 auto;
}

.oir-banner h1 {
  font-family: "PT Serif", serif;
  font-size: 2.1rem;
  margin-bottom: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.oir-banner h1 small {
  font-size: 1.12rem;
  font-weight: normal;
  opacity: 0.8;
}

.oir-icon {
  font-size: 2.2rem;
}

/* Chambers Grid */

.oir-chambers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.oir-chamber-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.2rem;
  flex: 1 1 350px;
  max-width: 420px;
  border-top: 6px solid var(--oir-blue);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 270px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.oir-chamber-card.or-gold {
  border-top-color: var(--oir-gold);
}

.oir-chamber-card:hover {
  box-shadow: 0 12px 40px rgba(18, 53, 91, 0.15);
  transform: translateY(-5px);
}

.oir-chamber-card h2 {
  font-family: "PT Serif", serif;
  color: var(--oir-blue);
  margin-top: 0;
  margin-bottom: 0.7rem;
}
.oir-chamber-card.or-gold h2 {
  color: var(--oir-gold);
}

/* Leadership */

.or-leadership {
  background: #f2f8f2;
  border-radius: 8px;
  margin-top: 1.2rem;
  padding: 0.8rem 1rem 0.7rem;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #179c3d0d;
}
.or-leadership h3 {
  margin-top: 0;
  font-size: 1.03rem;
  color: var(--oir-blue);
}
.or-leadership ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

/* Parties list */

.oir-parties {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.oir-party {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  border-radius: 9px;
  background: #f7f7fa;
  border-left: 7px solid var(--party, #bbb);
  box-shadow: 0 1px 3px #0000000a;
  font-size: 1.05rem;
  gap: 1rem;
}

.oir-party .left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.oir-party .party-name {
  font-weight: 700;
}

.oir-party .party-status {
  font-weight: 400;
  font-size: 0.86rem;
  color: #666c75;
  font-style: normal;
  line-height: 1.2;
}

.oir-party .seats {
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* Legislative business grid */

.oir-business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7rem;
  max-width: 1080px;
  margin: 3.4rem auto 2.4rem auto;
}

.oir-business-card {
  background: #f7fafd;
  padding: 1.6rem 1.3rem;
  border-radius: 1.09rem;
  min-width: 200px;
  min-height: 120px;
  box-shadow: 0 2px 12px #12355b10;
  border-top: 5px solid var(--oir-blue);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.oir-business-card:hover {
  box-shadow: 0 10px 30px rgba(18, 53, 91, 0.2);
  transform: translateY(-4px);
}

.oir-business-card h3 {
  margin: 0 0 0.8rem 0;
  color: var(--oir-blue);
  font-size: 1.13rem;
}

/* Resources card */

.or-feature-card.or-resources {
  border-top: 5px solid var(--oir-blue);
  max-width: 900px;
  margin: 2.8rem auto 1rem auto;
  background: var(--oir-grey);
  padding: 2rem 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.or-feature-card.or-resources h2 {
  color: var(--oir-blue);
}

/* Resource links */

.oir-resource-links {
  list-style: none;
  margin-top: 1.2rem;
  padding-left: 0;
}
.oir-resource-links li {
  margin-bottom: 0.6rem;
  font-size: 1.06rem;
}
.oir-resource-links a {
  color: var(--oir-blue);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.14s;
}
.oir-resource-links a:hover {
  color: var(--oir-gold);
}

/* Responsive design */

@media (max-width: 1200px) {
  .oir-business-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 950px) {
  .oir-chambers-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .oir-business-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .nav-flex,
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-flex {
    padding: 1rem 0;
  }

  body.home-page .hero-img {
    height: 220px;
    padding-top: 130px;
    background-position: center top;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .info-section,
  .join-section {
    padding: 1.1rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.6rem;
    margin-right: 0.6rem;
  }

  .oir-chamber-card {
    padding: 1.2em 0.5em;
  }
}