/*
Theme Name: BKS 2025
Theme URI: https://bksoc.org.uk
Author: Jon Mark Deane
Author URI: https://jondeane.io
Description: A custom WordPress theme for BKS
Version: 1.0
License: Copyright 2025
Text Domain: bks-theme
Tags: responsive, custom-header, custom-menu
*/

/* Reset & Base Styles */

:root {
    --grey-bg: #eeeeee;
    --dark-grey-bg: #bababa;
    --full-width: 1200px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */

main {
    width: 100%;
}
.container {
    width: 100%;
    max-width: var(--full-width);
    margin: 0 auto;
    padding: 0 1.1rem;
}

/* Site Header */

.site-header {
    background-color: #fff;
    display: block;
    border-bottom: var(--dark-grey-bg) 1px solid;
}

.header-container {
    display: flex;
    width: 100%;
    padding: 2.2rem 1.1rem;
}
.site-branding {
    display: flex;
    flex-grow: 1;
    gap: 2rem;
}
.site-logo {
    width: 120px;
}

.site-branding a {
    color: #000;
}

.site-headings {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.site-branding h1 {
    line-height: 1;
    padding: 0;
    margin: 0 0 0.7rem;
    font-size: 1.8rem;
}

.site-branding p {
    line-height: 1;
    font-weight: 200;
    font-size: 1.2rem;
}
.home-banner {
    background-image: url("images/banner-image.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.banner-content h2 {
    padding: 6rem 8rem;
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2em;
    text-wrap: balance;
    filter: drop-shadow(0 0 0.75rem #000);
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-navigation .menu-toggle {
    width: 60px;
    height: 60px;
    border: none;
  cursor: pointer;
}

.main-navigation .menu-toggle span {
    font-size: 2.4rem;
    font-weight: 800;
}

.main-navigation .main-menu {
    display: none;
}
/* Content Area */

.site-content {
    padding: 0;
}

.home-section {
    background-color: var(--grey-bg);
    padding: 2.5rem 0;
}
.home-section:nth-child(even) {
    background-color: #fff;
}

.home-section .inset-box {
    background-color: var(--grey-bg);
    padding: 1.6rem;
}

.section-header {
    display: flex;
    width: 100%;
    padding: 0 0 0.5rem;
    border-bottom: #313131 1px solid;
}
.section-header h2 {
    font-size: 1.25rem;
}
.section-header p {
    text-align: right;
    align-self: center;
    flex-grow: 1;
    font-size: 0.8rem;
    font-weight: 800;
}
.see-more {
    font-weight: 800;
    font-size: 0.8rem;
    color: #000;
}

.intro-area {
    display: flex;
    gap: 2.5rem;
    width: 100%;
}

.intro-video-frame {
    display: block;
    width: 480px;
    aspect-ratio: 16 / 9;
}
.intro-text-box p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2em;
}

.intro-text-box p .first-words {
    font-weight: 800;
}

.intro-text-box p:first-child {
    font-size: 1.5rem;
}

.chairman-section .inset-box {
    display: flex;
    gap: 2rem;
}
.chairman-text-box h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.chairman-text-box p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2em;
    margin-bottom: 1rem;
}

.chairman-text-box p.signature {
    font-weight: 800;
}

.chairman-image-box figure {
    position: relative;
    display: block;
    width: 430px;
}
.chairman-image-box img {
    width: 430px;
    aspect-ratio: 1 / 0.9;
    object-position: center;
    object-fit: cover;
}

.chairman-image-box figcaption {
    font-size: 0.7rem;
    font-weight: 300;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    padding: 10px;
}

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

.event-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.archive-page .gallery-strip {
    margin: 3rem 0 0;
}

.event-list {
    padding: 1.5rem 0;
    list-style: none;
    display: flex;
    gap: 1rem;
}

.event-cell {
    position: relative;
    background-color: #e1e1e1;
}

.event-cell:hover {
    background-color: #d1d1d1;
}
.event-cell a {
    color: #000;
    width: 100%;
    height: 100%;
}
.event-cell img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.event-cell .event-info {
    padding: 1.2rem;
}

.event-cell h3 {
    font-size: 1rem;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px #000 solid;
}

.event-cell p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.3;
}
.membership-area {
    margin-top: 2rem;
}

.memberships {
    display: flex;
    gap: 3rem;
    width: 70%;
    margin: 1rem auto 0;
}

.membership {
    text-align: center;
}

.membership h3 {
    font-size: 1rem;
    padding: 0 0 0.5rem;
    margin: 0 0 0.9rem;
    border-bottom: 1px #000 solid;
}

.membership p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2em;
    margin: 0 0 1rem;
}

.membership .read-more-button,
.end-link a {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.7rem 2rem;
}

.membership .read-more-button::after,
.end-link a::after {
    content: " \2799";
}
.membership .read-more-button:hover,
.end-link a:hover {
    background-color: #333;
}

.end-link {
    margin-top: 2rem;
}

.groups-area {
    margin: 2rem auto 0;
    width: 90%;
}
.group-list {
    list-style: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 2rem;
}

.group-list::after {
    content: "";
    flex: 0 1 20%;
}
.group-list li {
    display: inline-block;
    width: 20%;
    height: 5rem;
}

.group-list li a {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    border: 2px #000 solid;
    color: #000;
    background-color: #fff;
    width: 100%;
    height: 100%;
    align-content: center;
    text-align: center;
}
/* Posts */

.single-page {
    padding: 2rem 0 0;
}

.single-page .page-header {
    padding-bottom: 1rem;

    border-bottom: 3px solid var(--dark-grey-bg);
    margin-bottom: 2rem;
}

.single-page .page-header h1 {
    font-size: 2.8rem;
    font-weight: 500;
}

.single-page .page-header p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2em;
}

.single-page h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.single-page p {
    font-size: 1rem;

    margin-bottom: 1rem;
}
.post {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005177;
    color: #fff;
}

/* Gallery */
.gallery-strip {
    width: 100%;
    background-color: var(--grey-bg);
    margin-bottom: 2rem;
    justify-content: center;
}

/* Footer */
.site-footer .container {
    display: flex;
    flex-direction: row-reverse;
    margin: 3rem auto 4rem;
    border-top: 5px solid #000000;
    padding: 3rem 1.1rem 0;
}

.site-info {
    flex-grow: 1;
}

.site-info p {
    line-height: 1.2;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1.1rem;
}

.site-info p a {
    color: #000;
    text-decoration: underline;
}

.social-links ul {
    display: inline-flex;
    gap: 1rem;
}

.menu-footer-info-container ul {
    list-style: none;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.menu-footer-info-container a {
    color: #000;
    text-decoration: underline;
}
.social-links li {
    background-color: #000;

    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.social-links li a {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    text-indent: -9999px;
    color: #fff;
    width: 50px;
    height: 50px;
}

.linkedin a {
    background-image: url("images/linkedin-icon.svg");
}

.twitter a {
    background-image: url("images/x-icon.svg");
}

.facebook a {
    background-image: url("images/facebook-icon.svg");
}

.instagram a {
    background-image: url("images/instagram-icon.svg");
}

/* WordPress Required Classes */
.alignleft {
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
}

.alignright {
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
}

.aligncenter {
    display: block;
    margin: 15px auto;
}

.wp-caption {
    max-width: 100%;
    background: #f1f1f1;
    padding: 5px;
    text-align: center;
    border-radius: 3px;
    margin-bottom: 15px;
}

.wp-caption-text {
    font-size: 0.85rem;
    padding: 5px 0 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wp-block-image img {
    display: block;
    margin: 0;
}
.wp-block-image figcaption {
    margin: 0;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #000;
    color: #fff;
}

/* .gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.gallery-item {
    flex: 1 0 25%;
    padding: 0 10px;
    margin-bottom: 20px;
} */

/* Media Queries */
@media screen and (min-width: 768px) {
    .content-area {
        float: left;
        width: 70%;
        padding-right: 30px;
    }

    .widget-area {
        float: right;
        width: 30%;
    }

    .site-content::after {
        content: "";
        display: table;
        clear: both;
    }
}

@media screen and (max-width: 767px) {
    .site-content {
        padding: 20px 0;
    }

    .post-title {
        font-size: 1.5rem;
    }
}

/* Carousel Styles */
.gallery {
    position: relative;
    max-width: var(--full-width);
    margin: 0 auto;
    overflow: hidden;
}

.gallery ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.5s ease;
}

.gallery .blocks-gallery-item {
    flex: 0 0 100%;
    width: 100%;
}

.gallery .blocks-gallery-item figure {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery .img-aspect {
    width: 100%;
    aspect-ratio: 16 / 10; /* 16:9 aspect ratio */
    position: relative;
}

.gallery .img-aspect img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    margin: 0;
    text-align: center;
    z-index: 5;
}

.carousel-nav {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.carousel-button {
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    width: 60px;
    height: 100%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-dot.active {
    background: #333;
}
