/* PCRC Cycling Club Theme - About Page */

/* CSS Variables for your color palette */
:root {
    --deep-blue: #004e9e;
    --light-blue: #1ca2dd;
    --yellow: #ffe400;
    --white: #ffffff;
    --dark-blue: #002f6c;
    --shadow: rgba(0, 78, 158, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--light-blue) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--yellow) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    opacity: 0.1;
    z-index: -1;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* EXACT HEADER FROM INDEX.CSS */
header {
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--yellow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    z-index: 2000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 0 0 20px 20px;
    animation: slideDown 0.8s ease-out;
    margin: 0;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* EXACT LOGO FROM INDEX.CSS */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo a {
    text-decoration: none;
    color: var(--yellow);
    font-size: 1.8em;
    font-weight: bold;
}

.logo img {
    width: 80px;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px var(--yellow); }
    to { box-shadow: 0 0 20px var(--yellow), 0 0 30px var(--yellow); }
}

.logo img:hover {
    transform: rotate(360deg);
    border-color: var(--white);
}

/* EXACT NAVIGATION FROM INDEX.CSS */
nav {
    display: flex;
    align-items: center;
    z-index: 2001;
    position: relative;
    min-width: 0;
    flex-shrink: 0;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.menu li {
    position: relative;
}

.menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(45deg, transparent, rgba(255, 228, 0, 0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    transition: left 0.5s ease;
}

.menu li a:hover::before {
    left: 100%;
}

.menu li a:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 228, 0, 0.4);
}

.menu li a:active {
    transform: scale(0.98);
}

/* EXACT DROPDOWN FROM INDEX.CSS */
.dropdown .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-blue);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 10000;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    color: var(--white) !important;
    padding: 12px 20px !important;
    display: block !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    transform: none !important;
    box-shadow: none !important;
}

.sub-menu li a:hover {
    background: var(--light-blue) !important;
    color: var(--white) !important;
    padding-left: 30px !important;
    transform: none !important;
    box-shadow: none !important;
}

/* EXACT HAMBURGER FROM INDEX.CSS */
.nav-toggle {
    display: none;
    background: var(--yellow);
    color: var(--dark-blue);
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    transform: rotate(180deg);
    background: var(--white);
}

/* Main Content */
main {
    padding: 140px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* KEEP ALL EXISTING ABOUT CONTENT STYLING */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About page sections */
.welcome-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 228, 0, 0.3);
    border-radius: 20px;
    padding: 50px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    color: var(--yellow);
}

.welcome-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow);
    border-color: var(--yellow);
}

/* Sections styling for about page */
section, article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 228, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    color: var(--yellow);
    width: 100%;
    box-sizing: border-box;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }

section:hover, article:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow);
    border-color: var(--yellow);
}

/* About page specific styling */
.about-intro {
    text-align: center;
    margin-bottom: 40px;
}

.about-intro h1 {
    color: var(--yellow);
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 228, 0, 0.5);
}

.about-intro p {
    font-size: 1.2em;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

/* Main About Section Container */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Introduction Article */
.intro {
    background: linear-gradient(135deg, 
        rgba(0, 78, 158, 0.95) 0%, 
        rgba(28, 162, 221, 0.9) 50%,
        rgba(0, 78, 158, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid var(--yellow);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 15px 40px rgba(0, 78, 158, 0.3);
}

.intro::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--yellow), var(--light-blue), var(--yellow));
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

.intro h1 {
    color: var(--yellow);
    font-size: 2.8em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    font-weight: bold;
}

.intro h1::before {
    content: '🚴‍♂️';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    animation: bounce 2s ease-in-out infinite;
}

.intro h1::after {
    content: '🚴‍♀️';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: 1s;
}

.intro p {
    color: var(--white);
    font-size: 1.3em;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Individual Article Sections */
.community-impact,
.group-rides,
.harties-rides,
.year-end-celebration,
.sponsors,
.youngest,
.podium,
.rooiwal,
.join-us {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(28, 162, 221, 0.05) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(28, 162, 221, 0.4);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
}

.community-impact { animation-delay: 0.1s; }
.group-rides { animation-delay: 0.2s; }
.harties-rides { animation-delay: 0.25s; }
.year-end-celebration { animation-delay: 0.3s; }
.sponsors { animation-delay: 0.4s; }
.youngest { animation-delay: 0.45s; }
.podium { animation-delay: 0.5s; }
.rooiwal { animation-delay: 0.55s; }
.join-us { animation-delay: 0.6s; }

.community-impact:hover,
.group-rides:hover,
.harties-rides:hover,
.year-end-celebration:hover,
.sponsors:hover,
.youngest:hover,
.podium:hover,
.rooiwal:hover,
.join-us:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(28, 162, 221, 0.3);
    border-color: var(--light-blue);
}

/* Section Headings */
.community-impact h2,
.group-rides h2,
.harties-rides h2,
.year-end-celebration h2,
.sponsors h2,
.youngest h2,
.podium h2,
.rooiwal h2,
.join-us h2 {
    color: var(--light-blue);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(28, 162, 221, 0.5);
    position: relative;
    padding-bottom: 15px;
}

.community-impact h2::after,
.group-rides h2::after,
.harties-rides h2::after,
.year-end-celebration h2::after,
.sponsors h2::after,
.youngest h2::after,
.podium h2::after,
.rooiwal h2::after,
.join-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--yellow));
    border-radius: 2px;
}

/* Section icons */
.community-impact h2::before { content: '🤝 '; }
.group-rides h2::before { content: '🚴‍♂️ '; }
.harties-rides h2::before { content: '🏞️ '; }
.year-end-celebration h2::before { content: '🎉 '; }
.sponsors h2::before { content: '🤝 '; }
.youngest h2::before { content: '👶 '; }
.podium h2::before { content: '🏆 '; }
.rooiwal h2::before { content: '🙏 '; }
.join-us h2::before { content: '⭐ '; }

/* Section Paragraphs */
.community-impact p,
.group-rides p,
.harties-rides p,
.year-end-celebration p,
.sponsors p,
.youngest p,
.podium p,
.rooiwal p,
.join-us p {
    color: var(--white);
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Restore original image gallery styling for community-impact and group-rides */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.impact-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--light-blue);
    box-shadow: 0 8px 25px rgba(28, 162, 221, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.impact-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(28, 162, 221, 0.3) 0%, 
        rgba(255, 228, 0, 0.3) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.impact-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2em;
    color: var(--white);
    background: rgba(28, 162, 221, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    border: 3px solid var(--yellow);
}

.impact-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 35px rgba(28, 162, 221, 0.5);
    border-color: var(--yellow);
}

.impact-image:hover::before {
    opacity: 1;
}

.impact-image:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Keep the special styling only for youngest and podium images */
.youngest-image,
.podium-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--light-blue);
    box-shadow: 0 8px 25px rgba(28, 162, 221, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 15px auto;
    display: block;
}

.youngest-image::before,
.podium-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(28, 162, 221, 0.3) 0%, 
        rgba(255, 228, 0, 0.3) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.youngest-image::after,
.podium-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2em;
    color: var(--white);
    background: rgba(28, 162, 221, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    border: 3px solid var(--yellow);
}

.youngest-image:hover,
.podium-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 35px rgba(28, 162, 221, 0.5);
    border-color: var(--yellow);
}

.youngest-image:hover::before,
.podium-image:hover::before {
    opacity: 1;
}

.youngest-image:hover::after,
.podium-image:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Sponsor Logos Grid */
.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.sponsor-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 2px solid var(--yellow);
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 228, 0, 0.2);
}

.sponsor-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 228, 0, 0.4);
    border-color: var(--light-blue);
}

/* Join Button Styling */
.join-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--yellow), #ffc107);
    color: var(--dark-blue);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 228, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.join-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 228, 0, 0.5);
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    color: var(--white);
}

.join-button:hover::before {
    left: 100%;
}

/* Animations */
@keyframes borderGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%); }
    40% { transform: translateY(-60%); }
    60% { transform: translateY(-55%); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    header {
        width: 100vw;
        left: 0;
        right: 0;
        max-width: none;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        position: relative;
        z-index: 2001;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--dark-blue);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10000;
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
        gap: 0;
    }
    
    .menu.active {
        display: flex;
        animation: slideDown 0.5s ease;
    }
    
    .menu li {
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }
    
    /* Mobile logo adjustments */
    .logo img {
        width: 60px;
    }
    
    .logo a {
        font-size: 1.4em;
    }
    
    main {
        padding: 160px 20px 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 15px;
    }
    
    .logo img {
        width: 50px;
    }
    
    .logo a {
        font-size: 1.2em;
    }
    
    main {
        padding: 140px 10px 20px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .impact-image {
        height: 150px;
    }
    
    .youngest-image,
    .podium-image {
        height: 200px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 10px 15px;
    }
    
    .logo img {
        width: 45px;
    }
    
    .logo a {
        font-size: 1.1em;
    }
    
    main {
        padding: 120px 15px 20px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .impact-image {
        height: 120px;
    }
    
    .youngest-image,
    .podium-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 110px 12px 20px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .impact-image {
        height: 180px;
    }
    
    .youngest-image,
    .podium-image {
        height: 160px;
    }
}

/* EXACT FOOTER FROM INDEX.CSS */
footer {
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    color: var(--yellow);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--yellow);
}

footer:hover {
    transform: translateY(-5px);
    box-shadow: 0 -8px 30px var(--shadow);
}

footer p {
    margin: 10px 0;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--yellow); /* Changed from white to yellow */
}

footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

footer a:hover::before {
    width: 100%;
}

footer a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--yellow);
}

/* EXACT SOCIAL LINKS FROM INDEX.CSS */
.social-links {
    margin: 15px 0;
    text-align: center;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid #1877f2;
    border-radius: 25px;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    transition: all 0.3s ease;
    font-size: 1em;
}

.facebook-link:hover {
    background: #1877f2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.facebook-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.2);
}

.facebook-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.facebook-link:hover .facebook-icon {
    transform: scale(1.1);
}

/* Mobile responsive footer - exact from index.css */
@media (max-width: 600px) {
    .facebook-link {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .facebook-icon {
        width: 18px;
        height: 18px;
    }
}