/*
Theme Name: Pro Africa Theme
Author: Migration Agent
Description: Custom theme migrated from Drupal (corkedscrewer)
Version: 1.0
*/

/* Import core Drupal styles */
@import url('css/reset.css');
@import url('css/960.css');
@import url('css/basic-layout.css');
@import url('css/style.css');
@import url('css/720.css');
@import url('css/mobile.css');
@import url('css/ie.css');

.read-more {
    font-weight: normal !important;
    text-decoration: none !important;
    margin-top: 0 !important;
}

.video-container,
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sidebar spacing and card style */
#secondary {
    padding-right: 25px;
    /* Extra space between sidebar and content */
}

#secondary .widget {
    margin-bottom: 30px;
    padding: 8px;
    /* Even smaller padding as requested */
    background: #f0ece2 !important;
    /* Slightly darker cream to be more visible */
    border: 1px solid #dcdcdc !important;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    /* Slightly more pronounced shadow */
    box-sizing: border-box;
    /* Force removal of bullets */
    list-style: none;
    list-style-type: none;
    background-image: none;
}

#secondary .widget:before {
    display: none !important;
}

/* Aggressive reset for any list structure in/around sidebar */
#secondary ul,
#secondary li,
.sidebar ul,
.sidebar li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    background: none !important;
}

#secondary,
.sidebar {
    list-style: none !important;
}

/* Sub-menu alignment */
#menu ul ul a,
#menu .sf-menu li li a {
    text-align: left !important;
}

/* Main Menu Items as Buttons */
#menu ul.menu {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    list-style: none !important;
}

#menu ul.menu>li {
    margin: 0 !important;
    padding: 0 !important;
}

#menu ul.menu>li>a {
    display: inline-block !important;
    padding: 5px 14px !important;
    background: rgba(240, 236, 226, 0.75) !important;
    color: #6f0025 !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

#menu ul.menu>li>a:hover {
    background: #6f0025 !important;
    color: #ffffff !important;
}

/* Active menu item */
#menu ul.menu>li.current-menu-item>a,
#menu ul.menu>li.current-page-item>a {
    background: #6f0025 !important;
    color: #ffffff !important;
}

/* Adjusting sub-menu positioning due to button style */
#menu ul.menu>li {
    position: relative !important;
}

/* Hide sub-menus by default */
#menu ul.menu ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 9999 !important;
    background: #f0ece2 !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    min-width: 200px !important;
    padding: 10px 0 !important;
    margin: 5px 0 0 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Show sub-menus on hover */
#menu ul.menu>li:hover>ul {
    display: block !important;
}

/* Sub-menu items style */
#menu ul.menu ul li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#menu ul.menu ul li a {
    background: transparent !important;
    border: none !important;
    color: #6f0025 !important;
    display: block !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    text-transform: none !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#menu ul.menu ul li a:hover {
    background: #6f0025 !important;
    color: #ffffff !important;
}

/* Contact Form 7 Styling */
.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    font-weight: bold;
    color: #5E001F;
    margin-bottom: 5px;
    font-size: 16px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
}

.wpcf7-form textarea {
    height: 150px;
}

.wpcf7-form input[type="submit"] {
    width: 100% !important;
    background: #6f0025 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    margin-top: -10px !important;
    /* Pull the button up */
}

.wpcf7-form input[type="submit"]:hover {
    background: #5E001F !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 0, 37, 0.2) !important;
}

/* Fix for Turnstile widget spacing and overflow */
.cf-turnstile {
    margin: 10px auto 0 auto !important;
    /* Bottom margin to zero */
    display: flex !important;
    justify-content: center !important;
    clear: both !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Ensure the wrapper also respects spacing */
.cf-turnstile-wrapper {
    margin-bottom: 0 !important;
    /* Margin to zero */
    clear: both !important;
}

.wpcf7-form fieldset {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(240, 236, 226, 0.3);
}

.wpcf7-form legend {
    font-weight: bold;
    color: #6f0025;
    padding: 0 10px;
    font-size: 18px;
    text-transform: uppercase;
}

.wpcf7-form small {
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
    color: #888;
    font-size: 13px;
    font-style: italic;
}

.wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
}

/* Native Menu Search (Minimal Alignment) */
.menu-search-native {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.menu-search-native form {
    margin: 0;
}

/* Header Alignment Fix - Force absolute top */
#header-inside {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#header-inside:before,
#header-inside:after {
    display: none !important;
}

#header-inside-left,
#header-inside-center,
#header-inside-right {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

#header-inside-left {
    width: 30% !important;
    align-items: flex-start !important;
}

#header-inside-center {
    width: 45% !important;
    align-items: center !important;
    text-align: center;
}

#header-inside-right {
    width: 25% !important;
    align-items: flex-end !important;
}

/* Force all children to have 0 top margin/padding */
#header-inside-left *,
#header-inside-center *,
#header-inside-right *,
.header-widget,
.widget-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#header .widget h3.widget-title {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100%;
}

#header .widget p {
    margin: 0 !important;
}

#site-name {
    margin: 0 0 5px 0 !important;
    line-height: 1 !important;
}

/* Sidebar Widgets as Buttons - Unified Look */
#secondary .widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    /* Changed from center for readability of long texts */
}

#secondary .widget p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

/* Hide widget titles if they are just labels for buttons */
#secondary .widget-title {
    display: none !important;
}

/* Style every link in the sidebar as a button */
#secondary .widget a,
#secondary .widget .textwidget a,
#secondary .widget li a {
    display: block !important;
    background: #f0ece2 !important;
    /* Cream/parchment from the previous card style */
    color: #6f0025 !important;
    /* Burgundy text */
    border: 1px solid #dcdcdc !important;
    padding: 14px 20px !important;
    margin-bottom: 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: -0.5px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    /* Revert to default theme fonts */
    font-style: normal !important;
}

#secondary .widget a:hover {
    background: #6f0025 !important;
    /* Burgundy on hover */
    color: #ffffff !important;
    /* White text on hover */
    border-color: #6f0025 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 0, 37, 0.2) !important;
}

/* YouTube ikon stílusa (Tiszta CSS megoldás a WP hibák ellen) */
#secondary .widget a .yt-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-color: #ff0000;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

/* A fehér lejátszás háromszöge az ikon közepén */
#secondary .widget a .yt-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 9px;
    border-left: 7px solid white;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

#secondary .widget a:hover .yt-icon {
    background-color: #ffffff !important;
}

#secondary .widget a:hover .yt-icon::before {
    border-left-color: #6f0025 !important;
}

/* Reset for lists so they don't look like lists */
#secondary ul,
#secondary li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Polylang Language Switcher in Header-Right */
#header-inside-right .widget_polylang ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#header-inside-right .widget_polylang li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#header-inside-right .widget_polylang a {
    display: inline-block !important;
    padding: 6px 15px !important;
    background: #f0ece2 !important;
    color: #6f0025 !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: normal !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-style: italic !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    text-align: center !important;
}

#header-inside-right .widget_polylang a:hover {
    background: #6f0025 !important;
    color: #ffffff !important;
    border-color: #6f0025 !important;
}

#header-inside-right .widget_polylang li.current-lang a {
    background: #6f0025 !important;
    color: #ffffff !important;
    border-color: #6f0025 !important;
    cursor: default;
}

/* Newsletter Form (Contact Form 7) in Sidebar */
.newsletter-form-container {
    background: #f0ece2 !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 6px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    text-align: center;
    overflow: hidden !important;
    /* Contain the widget */
}

.newsletter-form-container h3 {
    font-size: 18px !important;
    color: #6f0025 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.newsletter-form-container p {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.newsletter-form-container input[type="email"] {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.newsletter-form-container input[type="submit"] {
    width: 100% !important;
    background: #6f0025 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.newsletter-form-container input[type="submit"]:hover {
    background: #5E001F !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 0, 37, 0.2) !important;
}

/* Post list separators */
#content-inside article.post {
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

#content-inside article.post:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}