/*
Theme Name: GeneratePress Child Theme
Theme URI: https://straymondmp.org
Description: Custom child theme for GeneratePress - St. Raymond Catholic Church
Author: St. Raymond Parish
Author URI: https://straymondmp.org
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* =============================================================================
   Typography & Colors
   ========================================================================== */

/* Global text color - darker for better readability */
body,
p,
.entry-content,
.post-content,
article {
    color: #111 !important;
}

/* Primary font family */
p {
    font-family: "Roboto Slab", serif;
    color: black;
}

/* =============================================================================
   TablePress Tables
   ========================================================================== */

table.tablepress td {
    color: #000;
}

/* =============================================================================
   Talks Archive & Single Pages
   ========================================================================== */

/* Talk titles - bold and properly spaced */
.talk-item h2.talk-title,
.talk-item h2.talk-title a,
.talks-archive .talk-item .talk-title,
.talks-archive .talk-item .talk-title a {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Small YouTube link styling */
.small-youtube-link a,
.small-youtube-link h1,
.small-youtube-link h2,
.small-youtube-link h3,
.small-youtube-link h4,
.small-youtube-link h5,
.small-youtube-link h6 {
    font-size: 13px;
    font-weight: 400;
}

/* =============================================================================
   Bulletins
   ========================================================================== */

/* Force full-width layout (no sidebar) for bulletins */
.single-bulletins .site-content {
    display: block !important; /* Override GeneratePress flexbox */
}

.single-bulletins .site-content .content-area {
    width: 100% !important;
}

.single-bulletins .is-right-sidebar,
.single-bulletins .is-left-sidebar {
    display: none !important;
}

/* Hero Header for Bulletins */
.single-bulletins .page-hero-header {
    position: relative;
    min-height: 400px;
    max-height: 400px;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    left: 0;
    right: 0;
}

/* Background Image with 50% Opacity */
.single-bulletins .page-hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://straymondmp.s3.us-west-2.amazonaws.com/2025/09/header-bulletins.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
}

/* Content Above Background */
.single-bulletins .page-hero-header .grid-container {
    position: relative;
    z-index: 1;
}

.single-bulletins .page-hero-header .hero-content {
    text-align: center;
    color: #111;
}

/* Breadcrumb/Category Link */
.single-bulletins .page-hero-header .hero-breadcrumb {
    margin-bottom: 15px;
}

.single-bulletins .page-hero-header .hero-breadcrumb span {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}

.single-bulletins .page-hero-header .hero-breadcrumb a {
    color: white;
    text-decoration: none;
}

/* Page Title */
.single-bulletins .page-hero-header .hero-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #111;
}

/* Optional Metadata */
.single-bulletins .page-hero-header .hero-meta {
    font-size: 16px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .single-bulletins .page-hero-header {
        min-height: 300px;
        max-height: 300px;
        height: 300px;
    }

    .single-bulletins .page-hero-header .hero-title {
        font-size: 32px;
    }
}

/* PDF Wrapper Styles */
.bulletin-pdf-wrapper {
    margin: 40px auto;
    max-width: 900px;
}

.bulletin-pdf-desktop iframe {
    width: 100%;
    height: 1165px;
    border: 1px solid #ddd;
    display: block;
}

@media (max-width: 768px) {
    .bulletin-pdf-desktop {
        display: none;
    }

    .bulletin-pdf-mobile {
        display: block !important;
    }
}

/* =============================================================================
   Events
   ========================================================================== */

/* Event-specific styles can go here */

/* =============================================================================
   Responsive Design
   ========================================================================== */

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Add mobile overrides here if needed */
}

/* =============================================================================
   Site Logo & Branding
   ========================================================================== */

/* Hide site title when logo is present */
.site-logo + .site-branding .main-title,
.site-branding .main-title {
    display: none;
}

/* Hide site description */
.site-description {
    display: none;
}

/* Control logo size */
.site-logo img {
    max-width: 300px;
    height: auto;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .site-logo img {
        max-width: 200px;
    }
}

/* =============================================================================
   Navigation & Menu Styling
   ========================================================================== */

/* Main navigation container */
.main-navigation {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Top-level menu items */
.main-navigation .main-nav ul li a {
    font-weight: 500;
    text-transform: none;
    padding: 10px 15px;
}

/* Remove fancy hover effects - simple color change only */
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a {
    color: var(--accent);
    background-color: transparent;
    transition: color 0.2s ease;
}

/* Dropdown/submenu styling */
.main-navigation ul ul {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Submenu items - no fancy animations */
.main-navigation .main-nav ul ul li a {
    padding: 10px 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Submenu hover - simple background change */
.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li:focus > a {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

/* Remove any slide/fade animations on dropdowns */
.main-navigation ul ul {
    opacity: 1 !important;
    transition: none !important;
}

/* Current/active menu item */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-parent > a {
    color: var(--accent);
}

/* Mobile menu button */
.menu-toggle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =============================================================================
   Custom Additions
   ========================================================================== */

/* Add any additional custom styles below */
