/* Basic Setup */
body {
    font-family: 'Outfit', sans-serif;
    padding-top: 70px;
}

/* Header Logo */
.header-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Header Icons Bar */
.header-icons-bar {
    border-left: 1px solid #dee2e6;
    padding-left: 1.5rem;
}

.header-icon {
    color: #333;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.header-icon:hover {
    color: #e85a1b;
}

.join-us-link span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease;
}

.join-us-link:hover span {
    color: #e85a1b;
}

/* Language Dropdown */
.lang-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    color: #333;
    border-color: #ccc;
    text-transform: lowercase;
}

.lang-btn:hover,
.lang-btn:focus {
    color: #e85a1b;
    border-color: #e85a1b;
    background-color: transparent;
}

.lang-dropdown-menu {
    min-width: 160px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-dropdown-menu .dropdown-item.active {
    background-color: #e85a1b;
    color: #fff;
}

body.rtl .dropdown-menu-end[data-bs-popper] {
    left: 0;
    right: auto;
}

/* RTL header icons */
body.rtl .header-icons-bar {
    border-left: none;
    border-right: 1px solid #dee2e6;
    padding-left: 0;
    padding-right: 1.5rem;
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

/* Search Bar */
.search-bar-wrapper {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1040;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.search-bar-wrapper.open {
    max-height: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-bar-form {
    border: 1.5px solid #1a2a5e;
    border-radius: 30px;
    padding: 10px 20px;
    margin: 12px 0;
    gap: 12px;
}

.search-bar-icon {
    color: #1a2a5e;
    flex-shrink: 0;
}

.search-bar-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background: transparent;
}

.search-bar-input::placeholder {
    color: #999;
}

.search-bar-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a2a5e;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-bar-submit:hover {
    color: #e85a1b;
}

/* Floor and More Section */
.floor-and-more-section {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 500px;
    overflow: hidden;
}

/* Background Layer */
.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.1s ease-in-out;
    z-index: 1;
}

/* Side Content Container - solid dark overlay like Gerflor */
.side-overlay-container {
    position: absolute;
    top: 80px;
    bottom: 80px;
    left: 0;
    width: 380px;
    max-width: 40%;
    height: auto;
    z-index: 10;
    background: rgba(75, 85, 99, 0.75);
}

.side-overlay-content {
    padding: 80px 50px !important;
}

/* Section Header */
.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.section-header .header-line {
    width: 50px;
    height: 3px;
    background-color: #fff;
    margin-top: 20px;
}

/* Vertical Navigation */
.vertical-services-nav {
    margin-top: 40px;
}

.vertical-services-nav ul {
    margin: 0;
    padding: 0;
}

.service-nav-item {
    padding: 12px 0;
    border: none;
    transition: all 0.3s ease;
}

.service-nav-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.service-nav-item .nav-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    opacity: 1;
}

.service-nav-item .nav-arrow svg {
    width: 18px;
    height: 18px;
}

/* Hover and Active States */
.service-nav-item:hover a,
.service-nav-item.active a {
    color: #e85a1b;
}

.service-nav-item:hover .nav-arrow,
.service-nav-item.active .nav-arrow {
    color: #e85a1b;
}

/* RTL Support */
body.rtl .side-overlay-container {
    left: auto;
    right: 0;
}

body.rtl .background-layer::before {
    left: auto;
    right: 0;
    background: linear-gradient(to left, rgba(55, 65, 81, 0.9) 0%, rgba(55, 65, 81, 0.7) 70%, transparent 100%);
}

body.rtl .service-nav-item .nav-arrow svg {
    transform: rotate(180deg);
}

/* ========================================
   PAGE TEMPLATE STYLES
   ======================================== */

/* Page Hero Banner */
.page-hero {
    position: relative;
    background: #1a2a5e;
    padding: 80px 0 60px;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a5e 0%, #2d4a8a 50%, #1a2a5e 100%);
    opacity: 0.95;
}

.page-hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Breadcrumb */
.page-breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.page-breadcrumb li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.page-breadcrumb li+li::before {
    content: '/';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    color: #e85a1b;
}

.page-breadcrumb .active {
    color: #e85a1b;
}

/* Page Content Area */
.page-content-area {
    padding: 60px 0 80px;
    background: #fff;
}

.page-article {
    max-width: 900px;
    margin: 0 auto;
}

/* Featured Image */
.page-featured-image {
    margin-bottom: 35px;
    border-radius: 10px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Typography */
.page-article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2a5e;
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-article h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-article h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #444;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-article p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.page-article ul,
.page-article ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #555;
}

.page-article li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.page-article a {
    color: #e85a1b;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.page-article a:hover {
    color: #1a2a5e;
}

.page-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-article blockquote {
    border-left: 4px solid #e85a1b;
    padding: 15px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.page-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.page-article th,
.page-article td {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.page-article th {
    background: #1a2a5e;
    color: #fff;
    font-weight: 600;
}

.page-article td {
    color: #555;
}

.page-article tr:nth-child(even) td {
    background: #f8f9fa;
}

/* Page Links (pagination) */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.page-links .page-links-title {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

/* RTL Page */
body.rtl .page-breadcrumb li+li::before {
    content: '\\';
    margin-right: 0;
    margin-left: 8px;
}

body.rtl .page-article blockquote {
    border-left: none;
    border-right: 4px solid #e85a1b;
    border-radius: 8px 0 0 8px;
}

/* Mobile responsive */
@media (max-width: 991.98px) {

    /* Header Mobile */
    .navbar .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .header-logo {
        height: 30px;
    }

    .navbar-collapse {
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .navbar-nav {
        gap: 0 !important;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
    }

    .header-icons-bar {
        border-left: none;
        border-top: 1px solid #dee2e6;
        padding-left: 0;
        padding-top: 12px;
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
    }

    .join-us-link span {
        display: inline !important;
        font-size: 0.8rem;
    }

    .search-bar-wrapper {
        top: 56px;
    }

    .search-bar-form {
        padding: 8px 15px;
        margin: 8px 0;
    }

    .search-bar-input {
        font-size: 0.85rem;
    }

    /* Floor and More */
    .floor-and-more-section {
        height: calc(100vh - 70px);
        min-height: 450px;
    }

    .background-layer {
        position: absolute;
        height: 100%;
    }

    /* Remove solid box, make overlay transparent */
    .side-overlay-container {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        background: transparent;
    }

    .side-overlay-content {
        padding: 60px 25px !important;
        justify-content: center !important;
    }

    .section-header h2 {
        font-size: 1.75rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .section-header .header-line {
        width: 120px;
        height: 3px;
    }

    .vertical-services-nav {
        margin-top: 30px;
    }

    .service-nav-item {
        padding: 18px 0;
    }

    .service-nav-item a {
        font-size: 1.25rem;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .service-nav-item .nav-arrow {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    .service-nav-item .nav-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* Page Template Mobile */
@media (max-width: 991.98px) {
    .page-hero {
        padding: 50px 0 40px;
    }

    .page-hero-title {
        font-size: 1.6rem;
    }

    .page-content-area {
        padding: 40px 0 50px;
    }

    .page-article h2 {
        font-size: 1.35rem;
    }

    .page-article h3 {
        font-size: 1.15rem;
    }
}
/* ========================================
   SEARCH PAGE STYLES
   ======================================== */

/* Search Query Highlight */
.search-query-text {
    color: #e85a1b;
}

/* Search Again Box */
.search-again-box {
    margin-bottom: 35px;
}

.search-again-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #1a2a5e;
    border-radius: 30px;
    padding: 10px 20px;
    gap: 12px;
    max-width: 700px;
}

.search-again-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background: transparent;
}

.search-again-input::placeholder {
    color: #999;
}

.search-again-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a2a5e;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-again-btn:hover {
    color: #e85a1b;
}

/* Search Results Area */
.search-results-area {
    padding: 50px 0 80px;
    background: #fff;
}

.search-results-count {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* Search Result Item */
.search-result-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #fafbfc;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

.search-result-content {
    flex: 1;
}

.search-result-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e85a1b;
    background: rgba(232, 90, 27, 0.08);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.search-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-result-title a {
    color: #1a2a5e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-title a:hover {
    color: #e85a1b;
}

.search-result-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 12px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
}

.search-result-date {
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-link {
    color: #e85a1b;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.search-result-link:hover {
    gap: 8px;
    color: #1a2a5e;
}

/* Search Result Thumbnail */
.search-result-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pagination */
.search-pagination {
    margin-top: 40px;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: #1a2a5e;
    color: #fff;
    border-color: #1a2a5e;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 80px 20px;
}

.search-no-results svg {
    margin-bottom: 20px;
}

.search-no-results h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.search-no-results p {
    color: #777;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Search Page Mobile */
@media (max-width: 767.98px) {
    .search-result-item {
        flex-direction: column-reverse;
    }

    .search-result-thumb {
        width: 100%;
        height: 180px;
    }

    .search-again-form {
        padding: 8px 15px;
    }

    .search-result-title {
        font-size: 1.05rem;
    }

    .search-result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ========================================
   CONTACT FORM 7 STYLES
   ======================================== */

/* Form Layout */
.wpcf7-form {
    max-width: 800px;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* All Inputs & Textarea */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fafbfc;
    color: #333;
    transition: all 0.25s ease;
    outline: none;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: #1a2a5e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 42, 94, 0.1);
}

.wpcf7-form-control:not(.wpcf7-submit):hover {
    border-color: #9ca3af;
}

/* Textarea */
.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

/* File Upload */
.wpcf7-file {
    padding: 10px 14px !important;
    cursor: pointer;
    background: #f3f4f6 !important;
    border-style: dashed !important;
}

.wpcf7-file:hover {
    border-color: #1a2a5e !important;
    background: #eef0f5 !important;
}

/* Select Dropdown */
.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

body.rtl .wpcf7-select {
    background-position: left 14px center;
    padding-right: 16px !important;
    padding-left: 40px !important;
}

/* Submit Button */
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    background: #1a2a5e;
    border: 2px solid #1a2a5e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.wpcf7-submit:hover {
    background: #e85a1b;
    border-color: #e85a1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 27, 0.3);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

/* Validation */
.wpcf7-not-valid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* Response Messages */
.wpcf7-response-output {
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 0.9rem;
    margin-top: 20px !important;
}

.wpcf7-mail-sent-ok {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

.wpcf7-validation-errors {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

/* Loading Spinner */
.wpcf7-spinner {
    margin: 0 10px;
}

/* Placeholder */
.wpcf7-form-control::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* CF7 Mobile */
@media (max-width: 767.98px) {
    .wpcf7-form-control:not(.wpcf7-submit) {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .wpcf7-submit {
        width: 100%;
        padding: 12px 20px;
    }

    .wpcf7-textarea {
        min-height: 120px;
    }
}
