/* Custom Styles for West London RPC Look-alike */
:root {
    --primary-color: #1a1a40; /* Dark Blue/Purple */
    --accent-color: #2c3e50;
    --text-color: #333;
    --bg-light: #f4f6f9;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar (Logo & CTAs) */
.top-bar {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.site-title {
    font-weight: 700;
    color: #000;
    font-size: 1.5rem;
    line-height: 1.2;
}

.btn-custom-dark {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0; /* Square edges like reference */
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-dark:hover {
    background-color: #2a2a60;
    color: #fff;
    text-decoration: none;
}

/* Navigation Strip */
.nav-strip {
    background-color: var(--primary-color);
    padding: 0;
}

.nav-strip .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 15px;
}

.nav-strip .navbar-nav .nav-link:hover {
    color: #fff !important;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #fff;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0.6; /* Dim the image slightly */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 64, 0.9), rgba(26, 26, 64, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
}

/* Wave Separator */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 4;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(137% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #ffffff;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: auto;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    border-radius: 0;
    height: 200px;
    object-fit: cover;
}

/* --- Mobile / Responsive Styles --- */

/* Rank Slide Container - Default (Desktop) */
.rank-slide-container {
    position: absolute;
    top: 250px;
    right: 10px;
    width: 140px;
    z-index: 99;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 992px) {
    /* Tablet / Small Laptop */
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Devices */
    
    /* Top Bar Adjustments */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-area {
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .cta-buttons {
        /* Show buttons on mobile but stacked or smaller */
        display: block !important;
        margin-top: 10px;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    /* Hero Adjustments */
    .hero-wrapper {
        height: auto;
        min-height: 300px;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem !important; /* Force smaller size */
    }
    
    .hero-content h4 {
        font-size: 1.2rem !important;
    }
    
    .hero-content img {
        max-height: 150px !important;
        margin-bottom: 20px;
    }

    /* Text Alignment in Hero */
    .hero-content .text-md-right, 
    .hero-content .text-md-left {
        text-align: center !important;
    }

    /* Rank Slides on Cards */
    .rank-slide-container {
        width: 100px; /* Smaller width */
        top: 220px;   /* Move up slightly */
        right: 5px;
    }
    
    /* Footer Adjustments */
    .footer .col-md-4, .footer .col-md-2 {
        text-align: center;
    }
    
    .social-links {
        text-align: center !important;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    /* Small Mobile */
    .rank-slide-container {
        width: 90px;
        top: 230px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
}
