/* RFC Color Overrides */
:root {
    --rfc-navy: #062d61;
    --rfc-navy-dark: #032e61;
    --rfc-sky-blue: #01afee;
    --rfc-gold: #c19a38;
    --rfc-gold-dark: #a88430;
    --rfc-gray: #8893b3;
}

/* Override primary colors for RFC pages */
.rfc-navbar,
.rfc-footer {
    --primary-color: var(--rfc-navy);
    --primary-hover: var(--rfc-navy-dark);
    --secondary-color: var(--rfc-sky-blue);
    --accent-color: var(--rfc-gold);
}

/* Section Headers */
section h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--rfc-sky-blue) 0%, var(--rfc-gold) 100%);
    border-radius: 2px;
}

/* Navbar Overrides */
.rfc-navbar {
    background-color: var(--rfc-navy);
}

.rfc-navbar .nav-menu a {
    color: white;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rfc-navbar .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rfc-gold) !important;
    transition: width 0.3s ease;
}

.rfc-navbar .nav-menu a:hover {
    color: var(--rfc-gold);
}

.rfc-navbar .nav-menu a:hover::after {
    width: 100%;
}

.rfc-navbar .back-to-main {
    background-color: rgba(196, 154, 56, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 1rem;
}

.rfc-navbar .back-to-main:hover {
    background-color: rgba(196, 154, 56, 0.3);
}

/* Mobile Menu Toggle Override */
.rfc-navbar .mobile-menu-toggle span {
    background-color: white;
}

/* Mobile Menu Colors */
.rfc-navbar .nav-menu.active {
    background-color: var(--rfc-navy);
}

.rfc-navbar .nav-menu.active a {
    color: white;
}

/* Hero Section Overrides */
.rfc-hero {
    background-image: url('../images/town/parklands-hotel-aerial.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* Hero description styling */
.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* CTA Button Override */
.rfc-hero .cta-button {
    background-color: white;
    border-color: white;
    color: var(--rfc-navy);
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.rfc-hero .cta-button:hover {
    background-color: var(--rfc-gold);
    border-color: var(--rfc-gold);
    color: var(--rfc-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
.about-section {
    background: white;
    padding: 4rem 0;
    position: relative;
}

.about-section::before {
    display: none;
}

.history-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.section-intro {
    text-align: center;
    color: var(--rfc-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}


/* History Content */
.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.founding-story {
    grid-column: span 2;
}

.founding-story h3,
.timeline h3,
.notable-alumni h3 {
    color: var(--rfc-navy);
    margin-bottom: 1.5rem;
}

/* Timeline Styling */
.timeline-items {
    position: relative;
    padding-left: 3rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--rfc-sky-blue) 0%, var(--rfc-gold) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1rem;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--rfc-gold);
    box-shadow: 0 0 0 3px white, 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background-color: var(--rfc-gold);
    transform: scale(1.2);
}

.timeline-item .year {
    font-weight: bold;
    color: var(--rfc-navy);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    display: block;
}

/* Alumni Card */
.alumni-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--rfc-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alumni-card h4 {
    color: var(--rfc-navy);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.alumni-title {
    color: var(--rfc-navy);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.alumni-card p {
    color: #333;
    line-height: 1.6;
}

/* Teams Section */
.teams-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Center the last card when there are 4 items (3+1) */
.team-card:nth-child(4):last-child {
    grid-column: 2;
}

@media (max-width: 968px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card:nth-child(4):last-child {
        grid-column: auto;
    }
}

.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-header {
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.team-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.team-header.adult {
    background: linear-gradient(135deg, var(--rfc-navy) 0%, var(--rfc-navy-dark) 100%);
}

.team-header.youth {
    background: linear-gradient(135deg, var(--rfc-sky-blue) 0%, #0099cc 100%);
}

.team-header.girls {
    background: linear-gradient(135deg, var(--rfc-gold) 0%, var(--rfc-gold-dark) 100%);
    color: var(--rfc-navy);
}

.team-header.girls .achievement {
    opacity: 0.8;
}

.team-header.minis {
    background: linear-gradient(135deg, #7a89b3 0%, var(--rfc-gray) 100%);
}

.team-header h3 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.achievement {
    font-size: 0.9rem;
    opacity: 0.9;
}

.team-content {
    padding: 1.5rem;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--rfc-navy);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
}

/* Facilities Section */
.facilities-section {
    padding: 4rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../images/town/modern-building-countryside.jpg') center/cover fixed;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--rfc-gold);
}

.facility-card h3 {
    color: var(--rfc-navy);
    margin-bottom: 1rem;
}

.facility-card ul {
    list-style: none;
    padding: 0;
}

.facility-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.facility-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rfc-sky-blue);
    font-weight: bold;
}

/* News Section */
.news-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-card.featured {
    grid-column: 1;
    grid-row: span 2;
    border-left: 4px solid var(--rfc-gold);
}

.news-date {
    color: var(--rfc-sky-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: var(--rfc-navy);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--rfc-navy);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}

.news-link:hover {
    color: var(--rfc-sky-blue);
    text-decoration: underline;
}

/* Join Section */
.join-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--rfc-navy) 0%, var(--rfc-navy-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(1, 175, 238, 0.1) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.join-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(196, 154, 56, 0.05) 0%, transparent 70%);
    transform: rotate(15deg);
}

.join-section h2,
.join-section .section-intro {
    color: white;
}

.membership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.membership-card {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.membership-card h3 {
    color: var(--rfc-navy);
    margin-bottom: 1.5rem;
}

.age-groups {
    text-align: left;
    margin: 1.5rem 0;
}

.age-group {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.age-group:last-child {
    border-bottom: none;
}

.age-group h4 {
    color: var(--rfc-sky-blue);
    margin-bottom: 0.25rem;
}

.membership-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1.5rem 0;
}

.membership-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.membership-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--rfc-gold);
    font-weight: bold;
}

.join-button {
    background: var(--rfc-navy);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.join-button:hover {
    background: transparent;
    color: var(--rfc-navy);
    border-color: var(--rfc-navy);
    transform: translateY(-2px);
}

/* Partnerships Section */
.partnerships-section {
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5fe 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--rfc-sky-blue);
}

.partner-highlight h3 {
    color: var(--rfc-navy);
    margin-bottom: 0.5rem;
}

.partner-badge {
    display: inline-block;
    background-color: var(--rfc-gold);
    color: var(--rfc-navy);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sponsors h3 {
    color: var(--rfc-navy);
    margin-bottom: 1rem;
}

.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.sponsor-placeholder {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #ddd;
    color: #999;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Contact Info Card */
.contact-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(6, 45, 97, 0.1);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rfc-navy) 0%, var(--rfc-sky-blue) 50%, var(--rfc-gold) 100%);
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--rfc-sky-blue) 0%, transparent 70%);
    opacity: 0.05;
}

.contact-info h3 {
    color: var(--rfc-navy);
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info h3::before {
    content: '📞';
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: var(--rfc-gold);
}

.contact-item strong {
    color: var(--rfc-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-item:nth-child(2) strong::before {
    content: '📍';
    font-size: 1.1rem;
}

.contact-item:nth-child(3) strong::before {
    content: '✉️';
    font-size: 1.1rem;
}

.contact-item:nth-child(4) strong::before {
    content: '🔗';
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.contact-item a {
    color: var(--rfc-sky-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--rfc-navy);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--rfc-navy);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--rfc-sky-blue);
    transform: translateY(-2px);
}

/* Form Styling */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--rfc-navy);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rfc-sky-blue);
}

.submit-button {
    background-color: var(--rfc-gold);
    color: var(--rfc-navy);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--rfc-gold-dark);
}

/* Footer */
.rfc-footer {
    background-color: var(--rfc-navy);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.rfc-footer h4 {
    color: var(--rfc-gold);
    margin-bottom: 1rem;
}

.rfc-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rfc-footer a:hover {
    color: var(--rfc-gold);
}

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

.footer-links li {
    padding: 0.25rem 0;
}

.footer-social .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-social .social-links a:hover {
    background-color: var(--rfc-gold);
    color: var(--rfc-navy);
}

.newsletter-signup {
    margin-top: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--rfc-gold);
    color: var(--rfc-navy);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--rfc-gold-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 968px) {
    .history-content,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .founding-story {
        grid-column: 1;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card:nth-child(4):last-child {
        grid-column: 1;
    }
    
    .facilities-grid,
    .membership-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .timeline-items {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.9rem;
    }
}

/* Cookie Banner Theming */
.rfc-cookie-banner {
  background: var(--rfc-navy);
}

.rfc-cookie-banner .cookie-link {
  color: var(--rfc-sky-blue);
  opacity: 0.9;
}

.rfc-cookie-banner .cookie-link:hover {
  opacity: 1;
}

.rfc-cookie-banner .cookie-accept {
  background: var(--rfc-gold);
  color: var(--rfc-navy);
  font-weight: 600;
}

.rfc-cookie-banner .cookie-accept:hover {
  background: var(--rfc-gold-dark);
  transform: translateY(-1px);
}