/* 
 * Main Stylesheet for Shepperton Village Conservation Group
 * Updated for Bootstrap 5.3
 */

/* -----------------
   BASIC ELEMENTS
   ----------------- */
   body {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222222;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
    margin-bottom: 1rem;
}

a {
    color: #6ab42f;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5aa320;
    text-decoration: none;
}

p {
    margin-bottom: 1.2rem;
}

/* -----------------
   UTILITY CLASSES
   ----------------- */
.grey {
    background-color: #f7f8fa;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #ededed;
}

.white {
    background-color: #ffffff;
}

.darkbg {
    background-color: #222222;
    color: #ffffff;
}

.section {
    padding: 5rem 0;
}

.overlay {
    background-color: rgba(59, 61, 66, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.lightoverlay {
    background-color: rgba(255, 255, 255, 0.8);
}

.general-title {
    margin-bottom: 3rem;
    text-align: center;
}

.general-title h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.general-title hr {
    width: 45px;
    margin: 15px auto;
    border-width: 3px;
    opacity: 1;
}

/* -----------------
   HEADER & NAVIGATION
   ----------------- */
.topbar {
    background-color: #6ab42f;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

/* .navbar-brand img {
    max-height: 80px;
} */

/* Remove underline on hover and use background color instead */
.navbar-nav .nav-link {
    color: #222222;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
    font-size: 14px; /* Increase from 12px to 14px as per old stylesheet */
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: #6ab42f !important;
}

/* Remove the underline effect on hover */
.navbar-nav .nav-link.active:after,
.navbar-nav .nav-link:hover:after {
    display: none;
}

/* Slider/Banner fixes */
/* Main title styling */
.carousel-caption h2, carousel-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* font-family: "Shadows Into Light", Georgia, "Times New Roman", serif; */
}

.slider-section {
    position: relative;
}

.carousel-item {
    height: 60vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.carousel-item img {
    object-fit: cover;
    height: 60vh;
    min-height: 300px;
}

.carousel-caption {
    top: 0;
    bottom: 0;
}

.carousel-caption h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "Raleway", sans-serif;
}

.carousel-caption p.lead {
    color: #ffffff;
    font-size: 33px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: inline-block;
}

/* -----------------
   BANNER & PARALLAX
   ----------------- */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 5rem 0;
}

/* Custom Styles for Facebook Popup */
.svcg_fb {
    background: url("/images/facebook_widget.png") no-repeat scroll left center transparent !important; 
    float: right;
    height: 270px;
    padding: 0 5px 0 46px;
    width: 245px;
    z-index: 99999;
    position: fixed;
    right: -200px;
    top: 20%;
    transition: all 0.3s ease;
} 
.svcg_fb:hover {
    right: 0;
}
.svcg_fb div { 
    padding: 0; 
    margin-right: -8px; 
    border: 4px solid #3b5998; 
    background: #fafafa;
}
@media (max-width: 768px) {
    .svcg_fb {
        display: none;
    }
}

/* -----------------
   CONTACT DETAILS
   ----------------- */
.contact-details {
    position: relative;
    z-index: 10;
    color: #222;
    text-align: center;
}

.contact-details h1 {
    padding: 25px 0;
    font-weight: bold;
    font-family: "Shadows Into Light",Georgia,"Times New Roman",serif;
    max-width: 500px;
    line-height: 1;
    font-size: 38px;
    margin: 15px auto;
    border-color: #5aa320 !important;
    background-color: #5aa320 !important;
    color: #fff !important;
}

.contact-details h1 a {
    color: blue;
    font-family: "Shadows Into Light", cursive;
}

.contact-details h2 {
    font-size: 1.5rem;
    color: #222;
    font-weight: 400;
}

/* -----------------
   GO TO TOP BUTTON
   ----------------- */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #6ab42f;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background-color: #5aa320;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.go-to-top:active {
    transform: translateY(-1px);
}

/* -----------------
   FOOTER
   ----------------- */
.footer {
    background-color: #6ab42f;
    color: #fff;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.copyright {
    background-color: #222;
    color: #767676;
}

.copyright a {
    color: #767676;
}

.copyright a:hover {
    color: #6ab42f;
}

/* -----------------
   BLOG/NEWS STYLES
   ----------------- */
.blog-wrapper {
    background-color: #fff;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-wrapper:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: auto;
    transition: transform 0.9s ease;
}

.blog-wrapper:hover .blog-image img {
    transform: scale(1.05);
}

.blog-title {
    padding: 1.5rem;
}

.blog-title h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.post-meta {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #8c8c8c;
}

.post-meta i {
    margin-right: 0.3rem;
}

.post-meta span {
    margin-right: 1rem;
}

/* -----------------
   BUTTONS
   ----------------- */
.btn-primary {
    background-color: #6ab42f !important;
    border-color: #6ab42f !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #5aa320 !important;
    border-color: #5aa320 !important;
    color: #fff !important;
}

/* -----------------
   GALLERY STYLES
   ----------------- */
.filter-button {
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #e9ecef !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.filter-button:hover,
.filter-button.active {
    background-color: #6ab42f !important;
    border-color: #6ab42f !important;
    color: #fff !important;
}

.gallery-item {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(106, 180, 47, 0.8);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay .vc--parent {
    text-align: center;
}

.gallery-overlay p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gallery-overlay .btn {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
}

.gallery-overlay .btn:hover {
    background-color: #fff;
    color: #6ab42f;
}

/* Gallery modal */
.gallery--details .modal-body img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .carousel-item, .carousel-item img {
        height: 40vh;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
}

/* -----------------
   RESPONSIVE ADJUSTMENTS
   ----------------- */
@media (max-width: 992px) {
    .navbar-brand img {
        max-height: 60px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .contact-details h1 {
        font-size: 2rem;
    }
    
    .contact-details h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .general-title h4 {
        font-size: 1.5rem;
    }
    
    .blog-title h2 {
        font-size: 1.2rem;
    }
    
    .contact-details h1 {
        font-size: 1.8rem;
    }
    
    .contact-details h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 2rem 0;
    }
    
    .footer {
        text-align: center;
    }
}