/*
Theme Name: Scout Group Theme
Theme URI: https://yourscoutgroup.org.uk
Description: A WordPress theme for Scout Groups, matching the Scouts UK brand guidelines with purple, teal color scheme and Nunito Sans typography.
Version: 1.0
Author: Your Scout Group
Author URI: https://yourscoutgroup.org.uk
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scout-group
Tags: charity, scouts, community, two-columns, custom-header, custom-menu, featured-images, threaded-comments

This theme is built for Scout Groups following The Scout Association brand guidelines.
*/

/* ===================================
   CSS VARIABLES - SCOUT BRAND COLORS
   =================================== */
:root {
  --scout-purple: #7413dc;
  --scout-teal: #00a794;
  --scout-navy: #003082;
  --scout-yellow: #ffe627;
  --scout-red: #e22e12;
  --scout-pink: #f093cd;
  --scout-green: #23a950;
  --scout-black: #000000;
  --scout-white: #ffffff;
  --scout-grey-light: #f5f5f5;
  --scout-grey: #666666;
  --font-primary: 'Nunito Sans', sans-serif;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: auto;
  min-height: 100%;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--scout-black);
  background-color: var(--scout-white);
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  position: relative !important;
}

body.page,
body.home,
body.page-template-default {
  overflow: visible !important;
  overflow-y: scroll !important;
  height: auto !important;
}

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

a {
  color: var(--scout-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--scout-teal);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--scout-purple);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* ===================================
   LAYOUT STRUCTURE
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrapper {
  display: block;
  min-height: 100vh;
  height: auto;
  overflow: visible !important;
}

.site-content {
  padding: 40px 0;
  min-height: 400px;
}

/* Fix for WordPress admin bar */
body.admin-bar {
  overflow-y: scroll !important;
}

body.admin-bar .site-wrapper {
  padding-top: 0;
  margin-top: 0;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
  background-color: var(--scout-white);
  color: var(--scout-white);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo img {
  max-height: 80px;
  width: auto;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
  color: var(--scout-white);
}

.site-title a {
  color: var(--scout-white);
}

.site-description {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--scout-white);
  font-weight: 600;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--scout-teal);
}

/* Dropdown menus */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--scout-purple);
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  padding: 10px 0;
}

.main-navigation li:hover > ul {
  display: flex;
}

.main-navigation ul ul li {
  margin: 0;
}

.main-navigation ul ul a {
  padding: 10px 20px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background-color: transparent;
  border: 2px solid var(--scout-white);
  color: var(--scout-white);
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--scout-teal);
  color: var(--scout-white);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--scout-purple);
  color: var(--scout-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: var(--scout-purple);
}

.btn-secondary:hover {
  background-color: var(--scout-teal);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  background: linear-gradient(135deg, var(--scout-purple) 0%, var(--scout-teal) 100%);
  color: var(--scout-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background: linear-gradient(135deg, rgba(116, 19, 220, 0.85) 0%, rgba(0, 167, 148, 0.85) 100%);*/
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content-box {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 10px 10px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}


.hero-section h1 {
  color: var(--scout-white);
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
}

.main-content {
  background-color: var(--scout-white);
}

/* ===================================
   POSTS & PAGES
   =================================== */
.post,
.page {
  margin-bottom: 40px;
  background-color: var(--scout-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.entry-header {
  padding: 30px;
  background-color: var(--scout-grey-light);
}

.entry-title {
  margin-bottom: 10px;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--scout-grey);
}

.entry-meta a {
  color: var(--scout-purple);
}

.entry-content {
  padding: 30px;
}

.entry-footer {
  padding: 20px 30px;
  background-color: var(--scout-grey-light);
  border-top: 1px solid #e0e0e0;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
  background-color: var(--scout-grey-light);
  padding: 30px;
  border-radius: 8px;
}

.widget {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--scout-purple);
}

.widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-title {
  color: var(--scout-purple);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

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

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.widget li:last-child {
  border-bottom: none;
}

/* ===================================
   GALLERY
   =================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
  transition: transform 0.3s ease;
}

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

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form {
  background-color: var(--scout-grey-light);
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--scout-purple);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--scout-purple);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background-color: var(--scout-black);
  color: var(--scout-white);
  padding: 40px 0 20px;
  margin-top: 60px;
  clear: both;
}

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

.footer-widget h3 {
  color: var(--scout-teal);
  margin-bottom: 15px;
}

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

.footer-widget li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: var(--scout-white);
}

.footer-widget a:hover {
  color: var(--scout-teal);
}

.site-info {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  padding: 10px 15px;
  background-color: var(--scout-grey-light);
  border-radius: 5px;
  color: var(--scout-purple);
  font-weight: 600;
}

.pagination a:hover,
.pagination .current {
  background-color: var(--scout-purple);
  color: var(--scout-white);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    margin-top: 40px;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 20px;
  }
  
  .main-navigation.toggled {
    display: block;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}