/* =====================================================
   GLOBAL RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 90px; /* header offset */
}

ul {
  list-style: none;
}

/* =====================================================
   HEADER (STICKY)
===================================================== */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #111;
  z-index: 9999;
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOGO */
.site-logo {
  position: absolute;
  left: 20px;
}

.site-logo img {
  height: 55px;
}

/* =====================================================
   NAVIGATION (DESKTOP)
===================================================== */

.my-main-nav {
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover {
  opacity: 0.7;
}

/* DROPDOWN (DESKTOP) */

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  min-width: 200px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown li {
  padding: 8px 20px;
}

.dropdown li a {
  font-weight: 400;
  display: block;
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* Donate Button */

.btn-donate {
  background: #c62828;
  padding: 8px 16px;
  border-radius: 4px;
  color: #fff;
}

/* =====================================================
   HAMBURGER (MOBILE)
===================================================== */

.my-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 10001;
}

.my-menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

/* =====================================================
   MOBILE NAVIGATION
===================================================== */

@media (max-width: 992px) {

  /* Show hamburger */
  .my-menu-toggle {
    display: flex;
  }

  /* Convert nav to mobile drawer */
  .my-main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: #111;
    padding: 100px 20px;
    flex-direction: column;
    transition: left 0.3s ease;
    z-index: 9998;
  }

  .my-main-nav.active {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  /* Mobile dropdowns */
  .dropdown {
    display: none;
    position: static;
    background: #222;
    width: 100%;
    padding: 10px 0;
  }

  .has-dropdown.active .dropdown {
    display: block;
  }
}


/* =====================================================
   HERO
===================================================== */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Background Video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay Content */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  padding: 180px 80px 60px 80px; /* ← MOVE TITLE DOWN HERE */
}

/* Text Block */
.hero-text {
  max-width: 520px;
  text-align: left;
  align-self: flex-start;
}

.hero-title {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.1;
  color: #000;
  text-transform: uppercase;
  text-align: left;
  font-weight: 700;
}




/* HERO BUTTONS */
.hero-buttons {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  align-self: center !important;
}

/* BUTTON STYLES – BOTH MATCH */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;

  /* Subtle dimensional gradient (blue) */
  background: linear-gradient(
    to bottom,
    #00306a 0%,   /* slight highlight at top */
    #002868 50%,  /* main flag blue */
    #001f4d 100%  /* slightly darker bottom */
  );

  border: 2px solid #002868;  /* blue border */
  color: #ffffff;             /* white text */

  /* Soft outer shadow */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

  /* Subtle inner highlight for premium depth */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.15),   /* soft top highlight */
    0 4px 10px rgba(0, 0, 0, 0.25);              /* outer shadow */
}

/* Hover state – red version with same dimensional style */
.btn-primary:hover,
.btn-secondary:hover {
  background: linear-gradient(
    to bottom,
    #cc0000 0%,   /* soft highlight */
    #b30000 50%,  /* main red */
    #8a0000 100%  /* darker bottom */
  );

  border-color: #b30000;      /* red border */
  color: #ffffff;             /* white text */

  /* Slightly stronger shadow on hover */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

/* =====================================================
   TEXT LOOP
===================================================== */

.text-loop-section {
  width: 100%;
  background: linear-gradient(
  to bottom,
  #001a3d 0%,     /* Darker navy */
  #002868 50%,    /* Flag blue */
  #003b8e 100%    /* Slightly lighter bottom */
);
  overflow: hidden;
  padding: 18px 0;
}

.text-loop {
  overflow: hidden;
  white-space: nowrap;
}

.text-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: textScroll 30s linear infinite;
}

.text-track span {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.text-track .divider {
  color: #d40000;
}

@keyframes textScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 992px) {

  /* Header layout becomes spaced */
  .header-inner {
    justify-content: space-between;
    padding: 0 20px;
  }

  .site-logo {
    position: relative;
    left: 0;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide nav by default */
  .main-nav {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    display: none;
    padding: 30px 0;
    z-index: 9998;
  }

  /* Show when active */
  .main-nav.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
  }

  .dropdown {
    position: static;
    background: none;
    padding: 0;
  }

  .has-dropdown .dropdown {
    display: none;
  }

  .has-dropdown.active .dropdown {
    display: block;
  }
}

/* =====================================================
   HERO FOLLOW SECTION
===================================================== */
/* ← THIS creates the gap */
.hero-follow {
  padding-top: 30px;
  padding-bottom: 30px;
  margin: 40px auto 0 auto; /* reduce top margin */
}
   /* ← THIS creates the gap */


.hero-follow-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-follow-main {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-follow-accent {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: #c62828;
}



/* =====================================================
 scrollTopBtn
===================================================== */


#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 14px;
  cursor: pointer;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 4px;
  z-index: 999;
  font-size: 16px;
}

#scrollTopBtn.visible {
  display: block;
}

@media (max-width: 600px) {
  #scrollTopBtn {
    right: 15px;
    bottom: 20px;
  }
}

/* =====================================================
   HERO FOLLOW SECTION
===================================================== */

.hero-follow {
  padding: 120px 20px;
  text-align: center;          /* centers everything */
  max-width: 900px;
  margin: 0 auto;
}

.hero-follow-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;            /* bold first line */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-follow-main {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-follow-accent {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: #c62828;              /* red last line */
}

/* =====================================================
   SERVICES GRID
===================================================== */

.services-grid {
  padding: 100px 40px;
  background: #f5f5f5;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  background: #fff;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {
  .services-container {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   TECH LOGO LOOP
===================================================== */

.tech-loop-section {
  padding: 30px 0;
  margin-bottom: 20px;   /* spacing below */
  background: linear-gradient(
    to bottom,
    #00132a 0%,
    #002868 60%,
    #003b8e 100%
  );
  text-align: center;
}

.tech-heading h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.tech-loop {
  overflow: hidden;
  white-space: nowrap;
}

.tech-track {
  display: inline-flex;
  align-items: center;
  gap: 70px;
  animation: techScroll 30s linear infinite;
}

.tech-track img {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes techScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   DUAL IMAGE SECTION
===================================================== */

.cf-dual-media {
  width: 100%;
  padding: 100px 40px;
}

.cf-dual-media-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Both columns identical */
.cf-dual-left,
.cf-dual-right {
  width: 100%;
}

/* Both images identical */
.cf-dual-image {
  width: 100%;
  height: 500px;  /* Adjust this if needed, keep the same height for both */
  background-size: cover;  /* Ensures the image covers the entire div */
  background-position: center;  /* Ensures the center of the image is visible */
  background-repeat: no-repeat;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* Set your images here */
.cf-dual-left .cf-dual-image {
  background-image: url("/demos/politics/civic-framework/images/services/10-downing-street.png");
}

.cf-dual-right .cf-dual-image {
  background-image: url("/demos/politics/civic-framework/images/services/official-meeting-uk.png");
}



/* =====================================================
   ABOUT SECTION
===================================================== */

.about-section {
  padding: 120px 40px;
  background: #ffffff;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  align-items: start;
}

.about-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.about-column p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   IMPACT SECTION
===================================================== */
.impact-section {
  position: relative;
  width: 100%;
  padding: 50px 0;
  overflow: hidden;
  background-color: #ffffff;
}

/* LEFT FLAG PANEL */
.impact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;                 /* smaller width */
  height: 100%;

  background-image: url('../images/flag.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;     /* use cover so it fills properly */

  opacity: 0.22;              /* soft but visible */
  z-index: 0;
}

/* CONTENT ABOVE FLAG */
.impact-container {
  position: relative;
  z-index: 1;

  width: 90%;
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

.impact-item {
  flex: 1;
  min-width: 200px;
  padding: 30px 20px;
}

/* LARGE NUMBERS */
.impact-item h2 {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
  color: #111;
}

/* LABELS */
.impact-item p {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #333;
}


/* =====================================================
   MISSION SECTION
===================================================== */
.mission {
  margin-top: 90px; /* match your header height */
}

.mission {
  position: relative;
  padding: 160px 60px;

  background-image: url('../images/backgrounds/mission-parliament-crowd.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  overflow: hidden;
}

.mission-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mission-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
}

.mission-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 800;
}

.mission-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.mission-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #c40000;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  transition: 0.3s ease;
}

.mission-btn:hover {
  background: #990000;
}

/* =====================================================
   POSTS SECTION
===================================================== */

.posts-section {
  padding: 120px 60px;
  background: #ffffff;
}

.posts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.posts-intro {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.posts-heading .posts-eyebrow {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.posts-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.posts-text p {
  margin-bottom: 20px; /* Adds space between paragraphs */
  font-size: 1.2rem;
  color: #555;
}

.posts-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.post-image {
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

.post-one {
  background-image: url('https://showcase.aceintlmedia.com/demos/politics/civic-framework/images/backgrounds/green-party-leader-speech.png');
}

.post-two {
  background-image: url('https://showcase.aceintlmedia.com/demos/politics/civic-framework/images/backgrounds/postal-vote-i-voted-sticker.png');
}

.posts-content-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.post-text-block {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-category {
  font-size: 0.9rem;
  color: #c40000;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  color: #333;
}

.post-meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
}

.post-meta span {
  margin-right: 10px;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
  .posts-intro,
  .posts-images,
  .posts-content-row {
    grid-template-columns: 1fr;
    display: block;
  }

  .posts-intro {
    flex-direction: column;
  }

  .posts-heading {
    text-align: center;
  }
}


/* =====================================================
   BANNER SECTION - Centering Text
===================================================== */

.banner-section {
  background-image: url('https://showcase.aceintlmedia.com/demos/politics/civic-framework/images/backgrounds/london-skyline-grey-banner.png');
  background-size: cover; /* Ensures the image covers the entire section */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  width: 100%; /* Ensures the section spans the entire width */
  height: 100vh; /* Makes the section take the full height of the viewport */
  display: flex; /* Flexbox for centering */
  justify-content: center; /* Centers text horizontally */
  align-items: center; /* Centers text vertically */
  text-align: center;
  padding: 0; /* Remove padding to ensure text is centered in full section */
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Ensure text is above the image */
}

.banner-heading {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000000;  /* Make the main heading black */
}

.banner-highlight {
  font-size: 2.5rem;
  color: #c40000;  /* Highlight color */
}

.banner-cta {
  margin-top: 20px;
  font-size: 1.5rem;
  padding: 15px 30px;
  background-color: #c40000;  /* Red background */
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
}

/* =========================
   INTERACTIVE INFO SECTION
========================= */

.info-section,
.info-section-left {
  padding: 100px 60px;
  background: #f5f5f5;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #808080;
  font-weight: 400;
}

/* Allow span colours to override */
h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: inherit;
}

/* Two‑colour heading */
.heading-red {
  color: #c40000;
  font-weight: 700;
}

.heading-black {
  color: #000000;
  font-weight: 700;
}

.highlight-grey { color: #808080; }
.highlight-black { color: #000; }

/* =========================
   Layout (Menu Left / Image Right)
========================= */

.info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Reversed layout */
.info-reversed .info-menu { order: 1; }
.info-reversed .info-image { order: 2; }

/* =========================
   Menu Styling
========================= */

.info-menu {
  width: 100%;
}

.info-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-menu li {
  font-size: 1.2rem;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.info-menu li:hover,
.info-menu li.active {
  color: #c1121f;
  font-weight: 600;
}

/* Extra text under menu */
.menu-extra {
  margin-top: 10px;
  font-size: 0.9rem;
}

.menu-extra p {
  margin: 4px 0;
  color: #666;
}

.view-page,
.menu-extra a {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #002868;
  transition: color 0.3s ease;
}

.view-page:hover,
.menu-extra a:hover {
  text-decoration: underline;
  color: #000;
}


/* =========================
   Image Styling + Fade Animation
========================= */

.info-image {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: opacity 0.4s ease;
}

.fade-out { opacity: 0; }
.fade-in { opacity: 1; }

/* =========================
   Responsive
========================= */

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

  .info-image {
    height: 300px;
  }
}



/* =========================
   INTERACTIVE INFO SECTION LEFT
========================= */

.info-section,
.info-section-left {
  padding: 100px 60px;
  background: #f5f5f5;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #808080;
  font-weight: 400;
}

/* Allow span colours to work */
h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: inherit; /* IMPORTANT: lets .heading-red and .heading-black work */
}

/* Two‑colour heading */
.heading-red {
  color: #c40000;
  font-weight: 700;
}

.heading-black {
  color: #000000;
  font-weight: 700;
}

.highlight-grey { color: #808080; }
.highlight-black { color: #000; }

/* =========================
   Layout (Menu Left / Image Right)
========================= */

.info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Reversed layout */
.info-reversed .info-menu { order: 1; }
.info-reversed .info-image { order: 2; }

/* =========================
   Menu Styling
========================= */

.info-menu {
  width: 100%;
}

.info-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-menu li {
  font-size: 1.2rem;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.info-menu li:hover,
.info-menu li.active {
  color: #c1121f;
  font-weight: 600;
}

/* Extra text under menu */
.menu-extra {
  margin-top: 10px;
  font-size: 0.9rem;
}

.menu-extra p {
  margin: 4px 0;
  color: #666;
}

.view-page,
.menu-extra a {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #002868;
  transition: color 0.3s ease;
}

.view-page:hover,
.menu-extra a:hover {
  text-decoration: underline;
  color: #000;
}

/* =========================
   Image Styling + Fade Animation
========================= */

.info-image {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: opacity 0.4s ease;
}

.fade-out { opacity: 0; }
.fade-in { opacity: 1; }

/* =========================
   Responsive
========================= */

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

  .info-image {
    height: 300px;
  }
}



/* =========================
   EVENTS SECTION
========================= */

.events-section {
  padding: 100px 0;
}

.event-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: repeat(2, 1fr); /* This defines two columns */
  gap: 20px; /* This creates space between the images (or items in the grid) */
  align-items: center;
}

.event-image {
  height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 10px;
  border: 3px solid #fff; /* White border around the image */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Dark shadow around the image */
}

.youth-event {
  background-image: url('https://showcase.aceintlmedia.com/demos/politics/civic-framework/images/sections/youth-leadership.png');
}

.small-business-event {
  background-image: url('https://showcase.aceintlmedia.com/demos/politics/civic-framework/images/sections/small-business.png');
}

.event-text h3 {
  font-size: 30px;
  margin-bottom: 20px;
}

.event-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555;
}

.event-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #c1121f;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.event-btn:hover {
  background: #9b0f18;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .event-row {
    grid-template-columns: 1fr; /* On smaller screens, switch to a single column */
    gap: 20px; /* Gap between items in smaller screen */
    padding: 0 20px;
  }

  .event-image {
    height: 320px;
  }
}

/* =========================
   SUBSCRIBE SECTION
========================== */

.subscribe-section {
  padding: 120px 20px;
  background: #f8f9fa;
  text-align: center;
}

.subscribe-container {
  max-width: 700px;
  margin: 0 auto;
}

.subscribe-section h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.subscribe-section p {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.subscribe-form input {
  padding: 14px 18px;
  font-size: 16px;
  width: 320px;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
}

.subscribe-form input:focus {
  border-color: #c1121f;
}

.subscribe-form button {
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  background: #c1121f;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.subscribe-form button:hover {
  background: #9b0f18;
  transform: translateY(-2px);
}

/* =========================
   UPPER FOOTER
========================== */

.upper-footer {
  background: #111;
  color: #ffffff;
  padding: 100px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #c1121f;
  margin-top: 8px;
}

.footer-column p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}


/* =========================
   LEGAL FOOTER
========================== */

.legal-footer {
  background: #000;
  padding: 30px 20px;
  font-size: 14px;
  color: #aaa;
  text-align: center;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

/* =====================================================
   FOOTER SOCIAL ICONS
===================================================== */

.footer-social {

  margin-top: 15px;

  display: flex;
  gap: 10px;

}

.footer-social a {

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #1f1f1f;
  border-radius: 4px;

  color: #ffffff;
  font-size: 14px;

  text-decoration: none;

  transition: all 0.25s ease;

}

.footer-social a:hover {

  background: #c1121f;
  transform: translateY(-2px);

}

/* ============================
   COOKIE CONSENT OVERLAY
============================ */

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99998;

  display: none;          /* Script sets to flex */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ============================
   COOKIE CONSENT BOX
============================ */

.cookie-box {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  padding: 35px 40px;
  border-radius: 12px;

  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  text-align: left;
  animation: fadeIn 0.3s ease-out;
}

.cookie-box h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #000;
  font-weight: 700;
}

.cookie-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
}

.cookie-box a {
  color: #c1121f;
  font-weight: 600;
  text-decoration: none;
}

.cookie-box a:hover {
  text-decoration: underline;
}

/* ============================
   BUTTONS
============================ */

.cookie-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-accept,
.btn-reject {
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Accept = Red (brand colour) */
.btn-accept {
  background: #c1121f;
  color: #fff;
}

.btn-accept:hover {
  background: #9b0f18;
  transform: translateY(-2px);
}

/* Reject = Neutral grey */
.btn-reject {
  background: #e5e5e5;
  color: #333;
}

.btn-reject:hover {
  background: #d5d5d5;
  transform: translateY(-2px);
}

/* ============================
   ANIMATION
============================ */

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

/* =====================================================
   CONTACT PAGE (USES GLOBAL LAYOUT RULES)
===================================================== */

/* Remove global body offset for this page */
body.contact-page {
  padding-top: 0;
}

/* Hero sits under header */
.contact-page #hero {
  margin-top: 90px;
}

/* Page section */
.contact-page {
  padding-top: 120px;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

/* =====================================================
   CONTACT LAYOUT
===================================================== */

.contact-page .contact-layout {

  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 60px;

  position: relative;
  z-index: 2;
}

/* =====================================================
   FORM COLUMN
===================================================== */

.contact-page .contact-form-section {
  max-width: 520px;
  width: 100%;
}

/* =====================================================
   IMAGE COLUMN (HTML IMAGE CONTROLLED)
===================================================== */

.contact-image-section {
  flex: 1;
  position: relative;
}

/* IMAGE CONTROL */

.contact-visual-image {

  width: 320px;       /* change image size */
  height: auto;

  display: block;

  /* POSITION CONTROL */
  position: relative;

  right: -20px;       /* move image left/right */

}

/* =====================================================
   TEXT
===================================================== */

.contact-page .contact-form-section h2 {
  font-size: 30px;
  margin-bottom: 14px;
  color: #1a1a1a;
}

.contact-page .contact-form-section p {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #444;
}

/* =====================================================
   FORM
===================================================== */

.contact-page .contact-form {
  width: 100%;
}

.contact-page .contact-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea {

  width: 100%;
  margin-top: 6px;
  padding: 14px;

  font-size: 14px;

  border: 1px solid #dcdcdc;
  border-radius: 6px;

  box-sizing: border-box;

  background: #fff;
}

.contact-page .contact-form textarea {
  resize: vertical;
}

.contact-page .contact-form input:focus,
.contact-page .contact-form select:focus,
.contact-page .contact-form textarea:focus {

  outline: none;
  border-color: #1e5eff;
}

/* Checkbox */

.contact-page .contact-form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

/* =====================================================
   BUTTON
===================================================== */

.contact-page .contact-form .btn-primary {

  display: inline-block;

  margin-top: 12px;

  padding: 14px 28px;

  background: #1e5eff;
  color: #ffffff;

  border: none;
  border-radius: 6px;

  font-size: 14px;

  cursor: pointer;

  transition: background 0.3s ease;
}

.contact-page .contact-form .btn-primary:hover {
  background: #164bcc;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {

  .contact-page .contact-layout {

    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-visual-image {

    width: 240px;
    margin-top: 40px;

    right: auto;
  }

}

@media (max-width: 768px) {

  .contact-page {
    padding-top: 80px;
  }

}