/*
 * Celebrity Bookings Online - Clean CSS
 * Based on GridMe Theme Design
 */

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font: normal 13px 'Domine', Georgia, serif;
    line-height: 1.6;
    color: #555;
    background: #e4e0db url('../images/background.png') repeat fixed;
}

a {
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #111;
    line-height: 1.2;
    margin: 0.6em 0;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { margin-bottom: 0.7em; }

ul, ol { list-style: none; margin: 0; padding: 0; }

/* ============================================
   Layout & Container
   ============================================ */
.gridme-clearfix::before,
.gridme-clearfix::after {
    content: " ";
    display: table;
}
.gridme-clearfix::after { clear: both; }

.gridme-outer-wrapper {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.gridme-container {
    position: relative;
}

#gridme-wrapper {
    margin: 0 auto;
}

.gridme-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.gridme-main-wrapper {
    width: 76%;
    flex: 0 0 76%;
    max-width: 76%;
    order: 0;
}

.gridme-sidebar-wrapper {
    width: 23%;
    flex: 0 0 23%;
    max-width: 23%;
    order: 1;
}

.gridme-main-wrapper-inside {
    padding: 20px 0;
}

.gridme-sidebar-wrapper-inside {
    padding: 20px 0 20px 10px;
}

@media (max-width: 1276px) {
    .gridme-outer-wrapper { width: 98%; }
}

@media (max-width: 960px) {
    .gridme-outer-wrapper { width: 95%; }
    .gridme-main-wrapper,
    .gridme-sidebar-wrapper {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .gridme-main-wrapper-inside,
    .gridme-sidebar-wrapper-inside {
        padding: 20px 0 !important;
    }
}

/* ============================================
   Header
   ============================================ */
.gridme-header-image {
    margin: 0;
    overflow: hidden;
}

.gridme-header-img-link {
    display: block;
}

.gridme-header-img {
    display: block;
    width: 100%;
    height: auto;
}

.gridme-site-header {
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

.gridme-header-inside {
    background: #262626;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.gridme-header-inside-content {
    padding: 10px;
}

.gridme-header-inside-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.gridme-logo {
    width: 28%;
    flex: 0 0 28%;
    max-width: 28%;
    margin: 5px 0;
    text-align: left;
}

.gridme-logo-img {
    display: block;
    max-height: 60px;
}

.gridme-header-menu {
    width: 70%;
    flex: 0 0 70%;
    max-width: 70%;
}

.gridme-site-title,
.gridme-site-description {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 1112px) {
    .gridme-logo {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 15px;
        text-align: center;
    }
    .gridme-header-menu {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .gridme-logo-img {
        margin: 0 auto;
    }
}

/* ============================================
   Navigation Menu
   ============================================ */
.gridme-nav-primary {
    float: right;
}

.gridme-primary-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gridme-primary-nav-menu li {
    display: inline-block;
    margin: 0;
    position: relative;
}

.gridme-primary-nav-menu a {
    display: block;
    padding: 12px;
    color: #fff;
    text-shadow: 0 1px 0 #000;
    font: normal 13px 'Patua One', Arial, sans-serif;
    text-transform: uppercase;
}

.gridme-primary-nav-menu a:hover,
.gridme-primary-nav-menu .current-menu-item > a {
    background: #000;
    color: #fff;
}

/* Dropdown */
.gridme-primary-nav-menu .sub-menu {
    position: absolute;
    left: -9999px;
    opacity: 0;
    background: #333;
    width: 190px;
    z-index: 99;
    transition: opacity 0.4s ease;
}

.gridme-primary-nav-menu li:hover > .sub-menu {
    left: auto;
    opacity: 1;
}

.gridme-primary-nav-menu .sub-menu a {
    padding: 14px;
    width: 190px;
    border: 1px solid #555;
    border-top: none;
}

.gridme-primary-nav-menu .sub-menu li:first-child a {
    border-top: 1px solid #555;
}

/* Dropdown arrow */
.gridme-primary-nav-menu > li.menu-item-has-children > a::after {
    content: "\f0d7";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 80%;
}

/* Hide dropdown toggle button on desktop - only show on mobile */
.dropdown-toggle {
    display: none;
}

/* Mobile Menu Button */
.gridme-primary-responsive-menu-icon {
    display: none;
    cursor: pointer;
    padding: 8px 15px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    font: normal 13px 'Patua One', Arial, sans-serif;
    text-transform: uppercase;
}

.gridme-primary-responsive-menu-icon::before {
    content: "\f0c9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

@media (max-width: 1112px) {
    .gridme-nav-primary { float: none; }
    .gridme-primary-responsive-menu-icon { display: block; }
    .gridme-primary-nav-menu {
        display: none;
        flex-direction: column;
        margin-top: 15px;
    }
    .gridme-primary-nav-menu.toggled { display: flex; }
    .gridme-primary-nav-menu li { display: block; }
    .gridme-primary-nav-menu a { padding: 15px 20px; }
    .gridme-primary-nav-menu .sub-menu {
        position: relative;
        left: auto;
        opacity: 1;
        width: 100%;
    }
    .gridme-primary-nav-menu .sub-menu a { width: 100%; padding-left: 30px; }
}

/* ============================================
   Search Overlay
   ============================================ */
.gridme-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gridme-search-overlay.gridme-search-overlay-show {
    display: flex;
}

.gridme-search-overlay-content {
    width: 80%;
    max-width: 600px;
}

.gridme-search-form {
    display: flex;
}

.gridme-search-field {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: none;
}

.gridme-search-submit {
    padding: 15px 25px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

.gridme-search-closebtn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.gridme-header-icon-search {
    color: #fff;
    padding: 12px;
    display: inline-block;
}

/* ============================================
   Grid Posts (Celebrity Cards)
   ============================================ */
.gridme-posts-wrapper {
    position: relative;
}

.gridme-posts-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.gridme-grid-post {
    padding: 10px;
}

.gridme-4-col {
    width: 25%;
    flex: 0 0 25%;
}

.gridme-3-col {
    width: 33.333%;
    flex: 0 0 33.333%;
}

@media (max-width: 960px) {
    .gridme-4-col, .gridme-3-col { width: 50%; flex: 0 0 50%; }
}

@media (max-width: 600px) {
    /* Keep 2 cards per row on mobile - overridden in mobile section below */
    .gridme-4-col, .gridme-3-col { width: 50%; flex: 0 0 50%; }
}

.gridme-grid-post-inside {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gridme-grid-post-inside:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.gridme-grid-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.gridme-grid-post-thumbnail-link {
    display: block;
}

.gridme-grid-post-thumbnail-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gridme-grid-post-inside:hover .gridme-grid-post-thumbnail-img {
    transform: scale(1.05);
}

.gridme-grid-post-details {
    padding: 15px;
}

.gridme-grid-post-title {
    font: bold 16px 'Playfair Display', Georgia, serif;
    margin: 0;
    line-height: 1.3;
}

.gridme-grid-post-title a {
    color: #111;
}

.gridme-grid-post-title a:hover {
    color: #7f181b;
}

/* ============================================
   Single Post/Celebrity Page
   ============================================ */
.gridme-post-singular {
    position: relative;
    margin: 0 0 20px;
}

.gridme-box {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gridme-box-inside {
    padding: 20px;
}

.entry-header {
    text-align: center;
    margin-bottom: 20px;
}

.entry-title,
.post-title {
    font: bold 28px 'Playfair Display', Georgia, serif;
    color: #000;
    margin: 0 0 15px;
}

.gridme-entry-meta-single {
    color: #666;
    font: normal 12px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
}

.gridme-entry-meta-single a {
    color: #666;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content a {
    color: #409BD4;
}

.entry-content a:hover {
    color: #08ACD5;
    text-decoration: underline;
}

/* WordPress Block Styles */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-block-image.is-resized img {
    width: auto;
}

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.wp-block-gallery .wp-block-image {
    flex: 0 0 calc(33.333% - 10px);
    margin: 0;
}

.wp-block-button__link {
    display: inline-block;
    background: #32373c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.wp-block-button__link:hover {
    background: #7f181b;
    color: #fff;
}

/* ============================================
   Sidebar & Widgets
   ============================================ */
.widget {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
    font: bold 18px 'Playfair Display', Georgia, serif;
    color: #000;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7f181b;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
}

.widget ul li a:hover {
    color: #7f181b;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
}

.search-submit {
    padding: 10px 15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-submit:hover {
    background: #7f181b;
}

/* Sidebar Search Widget - Compact style */
.widget_search {
    padding: 12px 15px;
}

.sidebar-search-form {
    display: flex;
    width: 100%;
}

.sidebar-search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #fff;
}

.sidebar-search-field:focus {
    border-color: #999;
}

.sidebar-search-btn {
    padding: 8px 12px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.sidebar-search-btn:hover {
    background: #7f181b;
}

/* ============================================
   Footer
   ============================================ */
.gridme-site-footer {
    background: #262626;
    color: #aaa;
    margin-top: 20px;
}

.gridme-foot-content {
    padding: 30px 0;
}

.gridme-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.gridme-footer-widget-column {
    flex: 1;
    min-width: 200px;
}

.gridme-footer-widget-column h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.gridme-footer-widget-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gridme-footer-widget-column ul li {
    padding: 5px 0;
}

.gridme-footer-widget-column ul li a {
    color: #aaa;
}

.gridme-footer-widget-column ul li a:hover {
    color: #fff;
}

.gridme-social-icons {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    margin-top: 20px;
}

.gridme-social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s ease;
}

.gridme-social-icons a:hover {
    background: #7f181b;
}

.gridme-copyright {
    background: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    color: #888;
    font-size: 12px;
}

@media (max-width: 768px) {
    .gridme-footer-widgets {
        flex-direction: column;
    }
}

/* ============================================
   Archive/Category Headers
   ============================================ */
.gridme-archive-header {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gridme-archive-title {
    font: bold 24px 'Playfair Display', Georgia, serif;
    margin: 0;
}

.gridme-archive-description {
    margin-top: 10px;
    color: #666;
}

/* ============================================
   Pagination
   ============================================ */
.gridme-pagination {
    text-align: center;
    margin: 20px 0;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #eee;
    border: 1px solid #ccc;
    margin: 0 2px;
    color: #444;
    border-radius: 3px;
}

.page-numbers:hover,
.page-numbers.current {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* ============================================
   Forms
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #999;
    outline: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

button,
input[type="submit"] {
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font: normal 13px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background: #7f181b;
}

/* ============================================
   Utility Classes
   ============================================ */
.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ============================================
   Alert Messages
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Contact Form Styles
   ============================================ */
.telegram-notice {
    background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.telegram-notice .telegram-icon {
    font-size: 32px;
}

.telegram-notice p {
    font-size: 14px;
    opacity: 0.9;
    margin: 5px 0 0;
}

.contact-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #666;
    outline: none;
    background: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    background: #1e1e1e;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font: bold 14px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #333;
}

.submit-btn i {
    margin-right: 8px;
}

.contact-info-section {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.contact-info-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 20px;
    color: #333;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-method {
    text-align: center;
}

.contact-method i {
    font-size: 24px;
    color: #7f181b;
    margin-bottom: 10px;
    display: block;
}

.contact-method p {
    margin: 0;
    color: #555;
}

/* ============================================
   Service Booking Form Styles
   ============================================ */
.booking-form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.service-booking-form {
    max-width: 500px;
}

.service-booking-form .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.service-booking-form .form-row label {
    width: 140px;
    flex-shrink: 0;
    font-weight: normal;
    color: #333;
    font-size: 13px;
}

.service-booking-form .form-row input,
.service-booking-form .form-row select,
.service-booking-form .form-row textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    background: #edf0f5;
}

.service-booking-form .form-row input:focus,
.service-booking-form .form-row select:focus,
.service-booking-form .form-row textarea:focus {
    border-color: #999;
    outline: none;
    background: #fff;
}

.service-booking-form .form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.service-booking-form .submit-btn {
    background: #409BD4;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font: normal 14px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.service-booking-form .submit-btn:hover {
    background: #2d7ab8;
}

.service-booking-form .submit-btn i {
    margin-left: 8px;
}

/* Service list styling */
.service-list {
    list-style: disc;
    margin: 15px 0 15px 25px;
    padding: 0;
}

.service-list li {
    padding: 5px 0;
    color: #555;
}

/* Sidebar Slider Widget */
.widget-slider {
    padding: 0;
}

.sidebar-slider img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Celebrity Detail Page Styles
   ============================================ */

/* Bio description - main text about celebrity shown first */
.celebrity-bio-description {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.celebrity-bio-description p {
    margin: 0;
}

/* Bio details formatting */
.celebrity-bio-details {
    margin-bottom: 20px;
    line-height: 1.8;
}

.celebrity-bio-details p {
    margin: 0 0 5px 0;
}

.celebrity-bio-details strong {
    color: #333;
}

/* Bio detail links - Google search links for names/places */
.celebrity-bio-details .bio-link {
    color: #409BD4;
    text-decoration: none;
}

.celebrity-bio-details .bio-link:hover {
    color: #08ACD5;
    text-decoration: underline;
}

/* Wiki link styling */
.celebrity-wiki-link {
    color: #409BD4;
    text-decoration: underline;
}

.celebrity-wiki-link:hover {
    color: #08ACD5;
}

/* Celebrity Action Buttons Container */
.celebrity-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.book-celebrity-form {
    margin: 0;
}

/* Book Celebrity Button - Matching original */
.book-celebrity-btn {
    display: inline-block;
    background: #1e1e1e;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font: bold 11px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.book-celebrity-btn:hover {
    background: #333;
}

/* Get Access Card Button - Gold color like Access Card page */
.get-access-card-btn {
    display: inline-block;
    background: #d4af37;
    color: #fff !important;
    padding: 8px 15px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font: bold 11px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.get-access-card-btn:hover {
    background: #c9a227;
    color: #fff !important;
}

/* Celebrity Gallery - 3 column grid like original */
.celebrity-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.celebrity-gallery-item {
    flex: 0 0 calc(33.333% - 7px);
    max-width: calc(33.333% - 7px);
}

.celebrity-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .celebrity-gallery-item {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .celebrity-gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Previous/Next Celebrity Navigation */
.celebrity-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.celebrity-navigation a {
    color: #333;
    font: normal 16px 'Playfair Display', Georgia, serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.celebrity-navigation a:hover {
    color: #7f181b;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-arrow {
    font-size: 18px;
    font-weight: bold;
}

.nav-disabled {
    visibility: hidden;
}

@media (max-width: 600px) {
    .celebrity-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    .nav-previous, .nav-next {
        flex: 1;
    }
    .nav-previous {
        text-align: left;
    }
    .nav-next {
        text-align: right;
    }
    .celebrity-navigation a {
        font-size: 14px;
    }
}

/* ============================================
   Mobile Search Bar
   ============================================ */
.mobile-search-container {
    display: none;
    background: #262626;
    padding: 10px 15px;
    position: relative;
}

.mobile-search-form {
    position: relative;
    max-width: 100%;
}

.mobile-search-wrapper {
    display: flex;
    width: 100%;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
}

.mobile-search-input:focus {
    outline: none;
}

.mobile-search-btn {
    padding: 12px 18px;
    background: #d4af37;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.mobile-search-btn:hover {
    background: #c9a227;
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f5f5f5;
    color: #000;
}

.suggestion-item i {
    margin-right: 10px;
    color: #d4af37;
}

.suggestion-item.no-results {
    color: #888;
    font-style: italic;
}


/* ============================================
   Mobile Specific Styles
   ============================================ */
@media (max-width: 768px) {
    /* Show mobile search bar */
    .mobile-search-container {
        display: block;
    }

    /* Show header image on mobile - fit entire image without cutting */
    .gridme-header-image {
        display: block !important;
        position: relative;
    }

    .gridme-header-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Center menu button on mobile */
    .gridme-header-inside-content {
        padding: 10px 15px;
    }

    .gridme-header-inside-container {
        flex-direction: column;
        align-items: center;
    }

    .gridme-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .gridme-logo-img {
        margin: 0 auto;
        max-height: 50px;
    }

    .gridme-header-menu {
        width: 100%;
    }

    .gridme-nav-primary {
        display: block;
        text-align: center;
    }

    .gridme-primary-responsive-menu-icon {
        display: inline-block;
        text-align: center;
        width: auto;
        padding: 10px 25px;
        background: #444;
        border-radius: 4px;
        border: none;
        margin: 0 auto;
    }

    .gridme-primary-responsive-menu-icon::before {
        margin-right: 10px;
    }

    /* Fix mobile menu dropdown - full width, single column */
    .gridme-primary-nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background: #1a1a1a;
    }

    .gridme-primary-nav-menu.toggled {
        display: flex;
    }

    .gridme-primary-nav-menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .gridme-primary-nav-menu li:last-child {
        border-bottom: none;
    }

    .gridme-primary-nav-menu a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        width: 100%;
    }

    .gridme-primary-nav-menu > li.menu-item-has-children > a::after {
        float: right;
    }

    /* Submenu on mobile */
    .gridme-primary-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        width: 100%;
        background: #111;
        display: none;
    }

    .gridme-primary-nav-menu .sub-menu.toggled {
        display: block;
    }

    .gridme-primary-nav-menu .sub-menu a {
        padding-left: 40px;
        font-size: 12px;
    }

    /* Arrow toggle for submenu */
    .gridme-primary-nav-menu > li.menu-item-has-children > a::after {
        content: "\f078";
        float: right;
        transition: transform 0.3s ease;
    }

    .gridme-primary-nav-menu > li.menu-item-has-children > a.submenu-open::after {
        transform: rotate(180deg);
    }

    /* Celebrity cards 2 per row on mobile */
    .gridme-4-col,
    .gridme-3-col {
        width: 50% !important;
        flex: 0 0 50% !important;
    }

    .gridme-grid-post {
        padding: 5px;
    }

    .gridme-grid-post-thumbnail-img {
        height: 150px;
    }

    .gridme-grid-post-details {
        padding: 10px;
    }

    .gridme-grid-post-title {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    /* Smaller mobile - still 2 per row but tighter */
    .gridme-posts-grid {
        margin: 0 -3px;
    }

    .gridme-grid-post {
        padding: 3px;
    }

    .gridme-grid-post-thumbnail-img {
        height: 120px;
    }

    .gridme-grid-post-title {
        font-size: 12px;
    }

    .gridme-grid-post-details {
        padding: 8px;
    }

}

/* ============================================
   Bot Protection - Honeypot Fields
   ============================================ */
/* Honeypot field - invisible to humans, bots will fill it */
.form-protection-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Math captcha styling */
.math-captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.math-captcha-question {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    min-width: 80px;
}

.math-captcha-input {
    width: 80px !important;
    text-align: center;
    font-size: 16px;
    padding: 8px 12px;
}

.math-captcha-note {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    display: block;
}
