: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;

  --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 Section */
.gov-hero {
  position: relative;
  width: 100%;
  height: 350px;
  background: url('images/Government2.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}
.gov-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 156, 61, 0.65);
}
.gov-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.gov-hero h1 {
  font-family: 'PT Serif', serif;
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.gov-hero p {
  font-size: 1.3rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Taoiseach Bio Section */
.taoiseach-bio {
  margin-bottom: 4rem;
}
.taoiseach-bio h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.taoiseach-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.taoiseach-photo {
  max-width: 250px;
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  max-height: 300px;
}
.taoiseach-text {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.6;
}
/* Government Members Section */
.gov-members {
  margin-bottom: 4rem;
}
.gov-members h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.7rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--dark);
}

/* Grid layout for members */
.gov-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

/* Individual member cards */
.gov-member-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gov-member-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 40px rgba(23, 156, 61, 0.16);
}

.member-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(23, 156, 61, 0.25);
  margin-bottom: 1.2rem;
}

.gov-member-card h3 {
  margin: 0.3rem 0 0.2rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
}

.member-title {
  font-weight: 600;
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  white-space: pre-line; /* to allow <br/> line breaks */
}

.member-bio {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
  margin: 0 auto;
  max-width: 260px;
}

/* Recent Statements & Announcements Section */
.gov-announcements {
  margin-top: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.gov-announcements h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.7rem;
  margin-bottom: 2.2rem;
  color: var(--dark);
  text-align: center;
}

.announcement {
  background: #f7fafd;
  border-radius: 1.1rem;
  box-shadow: 0 4px 18px rgba(18, 92, 45, 0.06);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
}

.announcement h3 {
  margin-top: 0;
  font-family: 'PT Serif', serif;
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.announcement p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.announcement ul {
  margin: 0.5rem 0 0 1.4rem;
  padding: 0;
  list-style-type: disc;
}

.announcement ul li a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.18s ease;
}

.announcement ul li a:hover {
  color: var(--green);
}

.announcement a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.18s ease;
}

.announcement a:hover {
  color: var(--green);
}

/* Responsive */
@media (max-width: 650px) {
  .gov-announcements {
    padding: 0 0.5rem;
  }
}

/* Responsive behavior */
@media (max-width: 700px) {
  .gov-members-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .member-bio {
    max-width: 100%;
  }
}

/* Government Departments Section */
.gov-departments h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.7rem;
  margin-bottom: 1.6rem;
}
.department-cards {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.department-card {
  display: block;
  background: #fff;
  text-decoration: none;
  color: var(--dark);
  max-width: 320px;
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.department-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(23,156,61,0.14);
}
.department-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 3px solid var(--green);
}
.dept-card-content {
  padding: 1.3rem 1.6rem 2rem 1.6rem;
}
.dept-card-content h3 {
  margin-top: 0;
  font-family: 'PT Serif', serif;
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.dept-card-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: #394a3a;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .taoiseach-content {
    flex-direction: column;
  }
  .department-cards {
    flex-direction: column;
    align-items: center;
  }
  .department-card {
    max-width: 90%;
  }
}
/* Limit images in taoiseach-bio and department cards */
.taoiseach-photo,
.department-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

/* Set explicit height limits for better control */
.taoiseach-photo {
  max-height: 250px;
}
.department-card img {
  max-height: 190px;
}

/* Make sure container widths prevent images from stretching too much */
.taoiseach-content,
.department-cards {
  max-width: 1120px;
  margin: 0 auto;
}

/* Responsive for mobile */
@media (max-width: 900px) {
  .taoiseach-content {
    flex-direction: column;
    align-items: center;
  }
  .department-cards {
    flex-direction: column;
    align-items: center;
  }
  .department-card {
    max-width: 90% !important;
  }
}

/****************
   HERO SECTION
*****************/
.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-section .hero-bg {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
                rgba(23,123,61,0.50) 0%,
                rgba(47,121,91,0.43) 47%,
                rgba(23,123,61,0.53) 100%
              ),
              url('images/WebsiteHeaderPhoto.png') center center/cover no-repeat;
  filter: brightness(0.94);
  animation: fadeInHero 1.1s cubic-bezier(0.44, 0.09, 0.33, 0.99);
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 16px #1a3e2460;
  text-align: left;
  width: 100%;
  max-width: 900px;
  padding: 60px 0 60px 0;
  margin-left: 2rem;
  animation: fadeInUp .9s 0.13s both;
}
.hero-section h1 {
  font-family: 'PT Serif', serif;
  font-size: 3rem;
  margin-bottom: 0.5em;
  font-weight: 700;
  animation: fadeInUp 1.3s;
}
.hero-section p {
  font-size: 1.33rem;
  max-width: 680px;
  font-weight: 400;
  margin-bottom: 2rem;
  animation: fadeInUp 1.55s;
}
.hero-section .cta-btn {
  font-size: 1.25rem;
  padding: 1.05rem 2.2rem;
  background: var(--gold);
  color: #12355b;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  box-shadow: 0 5px 24px #0001;
  transition: all 0.17s;
  animation: fadeInUp 1.2s 0.3s both;
  cursor: pointer;
}
.hero-section .cta-btn:hover {
  background: #ffe179;
  color: #179c3d;
}

/* FADE IN KEYFRAMES */
@keyframes fadeInHero {
  from { opacity: 0; filter: brightness(0.85); }
  to   { opacity: 1; filter: brightness(0.94);}
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/**********************
   Horizontal Sections
***********************/
.horizontal-section {
  padding: 4rem 0 4rem 0;
  color: white;
  animation: fadeInUp 1.08s both;
}
.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.22);
  width: 100%;
  object-fit: cover;
  animation: fadeInUp 1s;
}
.text-content {
  flex: 1 1 440px;
  max-width: 480px;
  animation: fadeInUp 1.08s;
}
.text-content h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px #2d2d2d80;
  animation: fadeInUp 1.15s;
}
.text-content p {
  font-size: 1.18rem;
  margin-bottom: 2.2rem;
  line-height: 1.45;
  text-shadow: 0 0 6px #00000060;
  animation: fadeInUp 1.18s;
}
.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.16);
  display: inline-block;
  transition: background 0.3s ease, color 0.15s;
  animation: fadeInUp 1.15s;
}
.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;
}
.purple-section {
  background: var(--purple);
}

/*****************
   Join Section
******************/
.join-section {
  max-width: 900px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
  animation: fadeInUp 1.13s;
}
.join-section h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.join-section p {
  font-size: 1.15rem;
  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;
  animation: fadeInHero 1.25s;
}
.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 (Dáil & Seanad) */
.oir-chambers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 1.05s;
}
.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;
  animation: fadeInUp 1.09s;
}
.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 Card Box */
.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;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  border-radius: 9px;
  background: #f7f7fa;
  border-left: 7px solid var(--party, #bbb);
  box-shadow: 0 1.5px 3px #00000010;
  font-size: 1.06rem;
  gap: 1rem;
}
.oir-party .left {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}
.oir-party .party-name {
  font-weight: 700;
}
.oir-party .party-status {
  font-weight: 400;
  font-size: 0.89rem;
  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 section */
.oir-business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
  max-width: 1080px;
  margin: 3.4rem auto 2.4rem auto;
  animation: fadeInUp 1.05s;
}
.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;
  animation: fadeInUp 1.11s;
}
.oir-business-card:hover {
  box-shadow: 0 10px 30px rgba(18, 53, 91, 0.21);
  transform: translateY(-4px);
}
.oir-business-card h3 {
  margin: 0 0 0.8rem 0;
  color: var(--oir-blue);
  font-size: 1.13rem;
}

/* Nested legislation list */
.oir-legislation-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oir-legislation-item {
  background: #d9f0d9; /* subtle light green background */
  padding: 0.65rem 0.9rem; /* removed extra left padding */
  border-radius: 0.7rem;
  box-shadow: 0 1px 6px rgba(23, 156, 61, 0.1);
  font-size: 0.9rem;
  color: #174b1f;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
}
/* Oireachtas Resources block */
.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);
  animation: fadeInUp .95s;
}
.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 enhancements */
@media (max-width: 950px) {
  .oir-chambers-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .oir-business-grid {
    grid-template-columns: 1fr;
  }
}

/* Header Image Section for Oireachtas page */
.oir-header-image-section {
  max-width: 1500px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  /* Limit max height for better proportion */
  max-height: 350px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(18, 53, 91, 0.12);
}

.oir-header-image {
  width: 100%;
  max-height: 280px;  /* limit height */
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

/*******************************
         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: 700px) {
  .hero-section {
    height: 220px;
    min-height: 140px;
  }
  .hero-section .hero-content {
    padding: 25px 0;
    margin-left: 1rem;
  }
  .hero-section h1 { font-size: 2rem; }
  .hero-section p { font-size: 1rem; }
}
@media (max-width: 650px) {
  .nav-flex,
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-flex {
    padding: 1rem 0;
  }
  .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;
    min-width: 0;
  }
}
/***** RTE PAGE BRANDING & LAYOUT *****/
.rte-masthead {
  background: #0c2340;
  color: #fff;
  padding: 2.5rem 1rem 1.7rem 1rem;
  width: 100%;
  box-shadow: 0 5px 18px #0c234013;
}
.rte-masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rte-headline {
  font-size: 2.15rem;
  font-family: 'PT Serif', serif;
  letter-spacing: 0.7px;
  margin: 0 0 0.6em 0;
}
.rte-deal-banner {
  background: #22a6f1;
  color: #0c2340;
  border-radius: 1em;
  padding: 1.1em 1.2em 1em 1.2em;
  font-weight: 700;
  font-size: 1.08em;
  box-shadow: 0 3px 12px rgba(32, 136, 249, 0.07);
  margin-bottom: 0.2em;
  max-width: 500px;
}

.rte-content-flex {
  display: flex;
  gap: 2.4rem;
  max-width: 1120px;
  margin: 2rem auto 2.5rem auto;
  padding: 0 1rem;
  align-items: flex-start;
}
.rte-news-main {
  flex: 2.2;
}
.rte-tweets-wrap {
  flex: 1;
  background: #f0f3f8;
  border-radius: 1rem;
  padding: 1.2rem 1.1rem 1rem 1.1rem;
  box-shadow: 0 1px 10px #0543a024;
  min-width: 240px;
}

.rte-main-story {
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding: 2.2rem 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp .8s both;
}
.rte-main-story img.rte-main-image {
  width: 170px;
  height: 115px;
  object-fit: cover;
  border-radius: 1em;
  box-shadow: 0 1.5px 8px #0c234018;
}
.rte-main-story h2 {
  margin-top: 0;
  font-family: 'PT Serif', serif;
  font-size: 1.35rem;
  color: #0c2340;
}
.rte-main-story p {
  margin-bottom: 0;
  color: #15468c;
  font-size: 1.05rem;
}
.rte-main-story a {
  color: #1173bD;
  font-weight: bold;
  text-decoration: underline;
}

/* Article Blogs */
.rte-section-header {
  font-size: 1.1rem;
  color: #22a6f1;
  letter-spacing: 1px;
  margin: 2.6rem 0 1rem 0;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'Montserrat',Arial,sans-serif;
}
.rte-articles-grid {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.9rem;
}
.rte-article-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px #0c234010;
  flex: 1 1 270px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 175px;
  animation: fadeInUp .85s;
  border-top: 4px solid #1173bD;
  padding: 0 1rem 1rem 1rem;
}
.rte-article-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-bottom: 1px solid #e9edf1;
}
.rte-article-card h4 {
  font-size: 1.14rem;
  margin: .7em 0 0.5em 0;
  color: #0c2340;
  font-family: 'PT Serif', serif;
}
.rte-article-card p {
  color: #222;
  font-size: .97em;
  margin-bottom: .64rem;
}
.rte-article-card a {
  color: #22a6f1;
  font-weight: 700;
  font-size: .99em;
  text-decoration: underline;
  margin-top: auto;
  padding-bottom: 0.6em;
  transition: color 0.18s;
}
.rte-article-card a:hover {
  color: #0c2340;
}

/* Tweets Sidebar */
.rte-tweets-wrap {
  animation: fadeInUp .8s both;
}
.rte-tweet-list {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.tweet-card {
  display: block;
  background: #fff;
  color: #0c2340;
  border-radius: 0.85em;
  padding: 1em 1em 0.8em 1em;
  box-shadow: 0 2px 10px #0c234014;
  text-decoration: none;
  border-left: 5px solid #22a6f1;
  transition: box-shadow 0.19s, background 0.14s;
  font-size: 1em;
}
.tweet-card:hover {
  background: #22a6f1;
  color: #fff;
  box-shadow: 0 4px 18px #07405d32;
  border-left-color: #0c2340;
}
.tweet-meta {
  font-size: .95em;
  font-weight: 700;
  margin-bottom: 0.23em;
  opacity: 0.76;
}
.tweet-link {
  display: block;
  margin-top: .7em;
  font-size: .95em;
  color: #1173bd;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tweet-card:hover .tweet-link {
  color: #fff;
}

/* Responsive for RTE layout */
@media (max-width: 1150px) {
  .rte-content-flex {
    flex-direction: column;
    gap: 2.3rem;
  }
  .rte-tweets-wrap {
    min-width: 0;
    max-width: 450px;
    width: 95%;
    margin: 0 auto;
  }
}
@media (max-width: 730px) {
  .rte-main-story {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    padding: 1.2rem 1.1rem;
  }
  .rte-articles-grid {
    flex-direction: column;
    gap: 1.09rem;
  }
}
/* WORK IN PROGRESS MODAL */
.modal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,40,24,0.79);
  transition: opacity 0.35s;
  animation: fadeInUp 0.6s;
}
.modal-box {
  background: #fff;
  color: var(--dark);
  max-width: 420px;
  width: 92vw;
  padding: 2.3rem 2.1rem 2rem 2.1rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px #050a2428;
  text-align: center;
  animation: fadeInUp 0.85s;
  position: relative;
}
.modal-box h2 {
  margin-top: 0;
  font-size: 2.1rem;
  color: var(--oir-blue);
}
.modal-box p {
  font-size: 1.12rem;
  margin-bottom: 2rem;
}
#wip-ack-btn {
  font-size: 1.11rem;
  padding: 0.85rem 2.3rem;
  background: var(--green);
  color: #fff;
  font-weight: bold;
  border: none;
  outline: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.17s;
  margin-top: 1rem;
  box-shadow: 0 2px 14px #1c55263c;
}
#wip-ack-btn:hover {
  background: #088831;
}

/* Subtle section fade for all direct children of <main> */
main > section, main > .horizontal-section, main > .oir-banner,
main > .oir-chambers-grid, main > .oir-business-grid,
main > .or-feature-card.or-resources {
  will-change: opacity, transform;
  animation: fadeInUp 1.15s;
}