:root {
    --rsc-bg-dark: #0a1931;
    --rsc-bg-card: #050912;
    --rsc-orange: #ffc947;
    --rsc-orange-hover: #e5b43f;
    --rsc-blue: #06b6d4;
    --rsc-text-light: #f2f2f2;
    --rsc-text-muted: #cccccc;
    --rsc-green: #3cb043;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #d1d5db;
  line-height: 1.7;
  background-color: #0A1931;
}

.rsc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rsc-section {
    background-color: var(--rsc-bg-dark);
    color: var(--rsc-text-light);
    padding: 60px 0;
}

.rsc-center {
    text-align: center;
}

.rsc-blue-heading {
    color: var(--rsc-blue);
}

/* ---------------- HERO ---------------- */
.rsc-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('/images/road.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.rsc-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.rsc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
}

.rsc-hero-content h1 {
    color: var(--rsc-orange);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

.rsc-hero-subtext {
    background-color: rgba(255, 255, 255, 0.9);
    color: #222;
    display: inline-block;
    padding: 18px 28px;
    border-radius: 4px;
    font-size: 1.05rem;
}

/* ---------------- GRID LAYOUTS ---------------- */
.rsc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.rsc-align-center {
    align-items: center;
}

.rsc-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.rsc-caption {
    margin-top: 10px;
    color: var(--rsc-text-muted);
    font-size: 0.95rem;
}

/* ---------------- ROAD SAFETY CLUBS HEADING + STRETCHED IMAGE ---------------- */
.rsc-clubs-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.rsc-clubs-grid {
    align-items: stretch; /* both columns same height */
}

.rsc-image-stretch {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rsc-image-stretch img {
    flex: 1; /* image fills available vertical space */
    object-fit: cover; /* crop instead of distort */
    width: 100%;
}

/* ---------------- TEXT BLOCKS ---------------- */
.rsc-text h2,
.rsc-section > .rsc-container > h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.rsc-text h3 {
    color: var(--rsc-text-light);
    font-size: 1.2rem;
    margin: 24px 0 10px;
}

.rsc-text p {
    color: var(--rsc-text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.rsc-intro-text {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--rsc-text-muted);
    line-height: 1.7;
}

/* ---------------- OBJECTIVES LIST ---------------- */
.rsc-objectives {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rsc-counter;
}

.rsc-objectives li {
    counter-increment: rsc-counter;
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    color: var(--rsc-text-muted);
    line-height: 1.7;
}

.rsc-objectives li::before {
    content: counter(rsc-counter) ".";
    position: absolute;
    left: 0;
    color: var(--rsc-text-light);
    font-weight: 700;
}

.rsc-objectives li strong {
    color: var(--rsc-text-light);
}

/* ---------------- CARD (school/corporate clubs) ---------------- */
.rsc-card {
    background-color: var(--rsc-bg-card);
    padding: 32px;
    border-radius: 6px;
}

.rsc-card h3 {
    color: var(--rsc-blue);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.rsc-card h3:not(:first-child) {
    margin-top: 28px;
}

.rsc-card p {
    color: var(--rsc-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ---------------- READ MORE TOGGLE ---------------- */
.rsc-hidden {
    display: none;
}

.rsc-read-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    background-color: var(--rsc-bg-dark);
}

.rsc-btn-green {
    background-color: var(--rsc-green);
    color: #fff;
    margin-bottom: 16px;
}

.rsc-btn-green:hover {
    background-color: #2e9436;
}

/* ---------------- PARTNER BOX ---------------- */
.rsc-partner-box {
    background-color: var(--rsc-bg-card);
    padding: 48px 32px;
    border-radius: 6px;
    text-align: center;
}

.rsc-partner-list {
    list-style: decimal;
    max-width: 700px;
    margin: 32px auto;
    padding-left: 24px;
    text-align: left;
}

.rsc-partner-list li {
    margin-bottom: 20px;
}

.rsc-partner-list h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.rsc-partner-list p {
    color: var(--rsc-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ---------------- BUTTONS ---------------- */
.rsc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
}

.rsc-btn-orange {
    background-color: var(--rsc-orange);
    color: #1a1a1a;
}

.rsc-btn-orange:hover {
    background-color: var(--rsc-orange-hover);
}

.rsc-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------------- JOIN THE CLUB MODAL ---------------- */
.rsc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.rsc-modal-overlay.rsc-modal-open {
    display: flex;
}

.rsc-modal {
    position: relative;
    background-color: #15151a;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rsc-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--rsc-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.rsc-modal-close:hover {
    color: var(--rsc-text-light);
}

.rsc-modal-title {
    color: var(--rsc-text-light);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.rsc-modal-form {
    display: flex;
    flex-direction: column;
}

.rsc-modal-form label {
    color: var(--rsc-text-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 10px;
}

.rsc-modal-form label:first-of-type {
    margin-top: 0;
}

.rsc-modal-form input,
.rsc-modal-form textarea {
    background-color: transparent;
    border: 1px solid var(--rsc-orange);
    border-radius: 4px;
    padding: 7px 10px;
    color: var(--rsc-text-light);
    font-family: inherit;
    font-size: 0.9rem;
}

.rsc-modal-form input:focus,
.rsc-modal-form textarea:focus {
    outline: none;
    border-color: var(--rsc-orange-hover);
}

.rsc-modal-form textarea {
    resize: vertical;
    min-height: 70px;
}

.rsc-modal-submit {
    margin-top: 14px;
    align-self: flex-start;
}

.rsc-modal-submit-full {
    align-self: stretch;
    text-align: center;
}

.rsc-modal-feedback {
    margin-top: 14px;
    font-size: 0.9rem;
}

.rsc-modal-feedback.rsc-feedback-success {
    color: var(--rsc-green);
}

.rsc-modal-feedback.rsc-feedback-error {
    color: #e25555;
}

/* Honeypot: positioned off-screen rather than display:none so simple bots still fill it in */
.rsc-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
    .rsc-grid-2 {
        grid-template-columns: 1fr;
    }

    .rsc-hero-content h1 {
        font-size: 1.8rem;
    }

    .rsc-hero {
        min-height: 380px;
    }

    .rsc-image-stretch {
        height: auto;
    }

    .rsc-image-stretch img {
        flex: none;
        height: 300px;
    }
}