/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Blocksy Child Theme
Author: CreativeThemes
Author URI: https://creativethemes.com
Template: blocksy
Version: 1.0.0
Text Domain: blocksy
*/

/* -------------------------------------------------------------
   1. CUSTOM FAQ ACCORDION (Pixel-Perfect Replacement for UAE FAQ)
   ------------------------------------------------------------- */
.amp-faq-column {
    width: 100%;
}

.amp-faq-item,
.uael-faq-container {
    background: #ffffff;
    box-shadow: 0 0 40px -10px rgba(175, 175, 175, 0.88);
    border-radius: 1px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.amp-faq-item:hover,
.uael-faq-container:hover {
    box-shadow: 0 5px 45px -8px rgba(160, 160, 160, 0.95);
}

.amp-faq-title,
.uael-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 25px 30px;
    background: #ffffff;
    user-select: none;
    outline: none;
    transition: background-color 0.2s ease;
}

.amp-faq-title h6,
.amp-faq-title .uael-question-span,
.uael-accordion-title .uael-question-span {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-spacing: 3px;
    color: #1e1e1e;
    line-height: 1.4;
    flex-grow: 1;
}

.amp-faq-icon,
.uael-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.amp-faq-icon svg,
.uael-accordion-icon svg {
    width: 14px;
    height: 14px;
    fill: #1e1e1e;
    transition: transform 0.25s ease;
}

.amp-faq-title[aria-expanded="true"] .amp-faq-icon svg,
.amp-title-active .amp-faq-icon svg,
.uael-title-active .uael-accordion-icon svg {
    transform: rotate(90deg);
}

.amp-faq-content,
.uael-accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 30px;
    background: #ffffff;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.amp-faq-content.amp-content-open,
.amp-title-active + .amp-faq-content,
.uael-title-active + .uael-accordion-content {
    max-height: 600px;
    opacity: 1;
    padding: 0 30px 30px 30px;
}

.amp-faq-content p,
.uael-accordion-content p {
    margin: 0;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
}

/* FAQ Mobile */
@media (max-width: 767px) {
    .amp-faq-title,
    .uael-accordion-title {
        padding: 20px 22px;
    }
    .amp-faq-title h6,
    .amp-faq-title .uael-question-span,
    .uael-accordion-title .uael-question-span {
        font-size: 13px !important;
        line-height: 1.4em !important;
        letter-spacing: 0.3px !important;
        word-spacing: 0 !important;
    }
    .amp-faq-content.amp-content-open,
    .amp-title-active + .amp-faq-content,
    .uael-title-active + .uael-accordion-content {
        padding: 0 22px 22px 22px;
    }
    .amp-faq-content p,
    .uael-accordion-content p {
        font-size: 14px;
    }
}

/* -------------------------------------------------------------
   2. CUSTOM BLOG POSTS GRID (Pixel-Perfect Replacement for UAE Posts)
   ------------------------------------------------------------- */
.amp-blog-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 30px -15px 0 -15px;
    list-style: none;
    padding: 0;
    box-sizing: border-box;
}

.amp-blog-col {
    width: 33.3333%;
    padding: 0 15px;
    margin-bottom: 35px;
    box-sizing: border-box;
    display: flex;
}

.amp-blog-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.amp-blog-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.amp-blog-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.amp-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.amp-blog-card:hover .amp-blog-thumb img {
    transform: scale(1.04);
}

.amp-blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.amp-blog-title {
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.amp-blog-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.amp-blog-title a:hover {
    color: var(--theme-palette-color-1, #083c74);
}

.amp-blog-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #666666;
    margin-bottom: 22px;
    flex-grow: 1;
}

.amp-read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--theme-palette-color-1, #083c74);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
    transition: background 0.2s ease, transform 0.15s ease;
}

.amp-read-more-btn:hover {
    background: var(--theme-palette-color-3, #0a4f9a);
    color: #ffffff !important;
    transform: translateX(2px);
}

/* Tablet: 2 Columns */
@media (max-width: 1024px) {
    .amp-blog-col {
        width: 50%;
    }
}

/* Mobile: 1 Column */
@media (max-width: 767px) {
    .amp-blog-col {
        width: 100%;
        margin-bottom: 25px;
    }
    .amp-blog-body {
        padding: 20px;
    }
    .amp-blog-title {
        font-size: 17px;
    }
}

/* -------------------------------------------------------------
   3. CUSTOM ORDER FORM WRAPPER (Pixel-Perfect Replacement for WPF Styler)
   ------------------------------------------------------------- */
.amp-order-form-wrapper {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 1px 36px;
    box-sizing: border-box;
}

.amp-order-form-wrapper .wpforms-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.amp-order-form-wrapper .wpforms-field {
    margin-bottom: 22px;
    clear: both;
}

.amp-order-form-wrapper .wpforms-field-label {
    display: block;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 8px;
    line-height: 1.35;
}

.amp-order-form-wrapper .wpforms-required-label {
    color: #e53935;
    font-weight: 700;
    margin-left: 3px;
}

.amp-order-form-wrapper .wpforms-field-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 6px;
}

.amp-order-form-wrapper input[type="text"],
.amp-order-form-wrapper input[type="tel"],
.amp-order-form-wrapper input[type="email"],
.amp-order-form-wrapper select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amp-order-form-wrapper input[type="text"]:focus,
.amp-order-form-wrapper input[type="tel"]:focus,
.amp-order-form-wrapper input[type="email"]:focus,
.amp-order-form-wrapper select:focus {
    border-color: #083c74;
    box-shadow: 0 0 0 3px rgba(8, 60, 116, 0.12);
}

.amp-order-form-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23475569' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.amp-order-form-wrapper fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.amp-order-form-wrapper #wpforms-913-field_8 {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.amp-order-form-wrapper #wpforms-913-field_8 li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.amp-order-form-wrapper #wpforms-913-field_8 input[type="radio"] {
    margin: 0 8px 0 0;
    width: 18px;
    height: 18px;
    accent-color: #083c74;
    cursor: pointer;
}

.amp-order-form-wrapper #wpforms-913-field_8 label {
    margin: 0;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
}

.amp-order-form-wrapper .wpforms-submit-container {
    margin-top: 28px;
}

.amp-order-form-wrapper .wpforms-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #083c74;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 13px 38px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(8, 60, 116, 0.2);
}

.amp-order-form-wrapper .wpforms-submit:hover {
    background-color: #0a4f9a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(8, 60, 116, 0.3);
}

.amp-order-form-wrapper .wpforms-submit:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .amp-order-form-wrapper {
        width: 100% !important;
        padding: 0 22px 1px 22px !important;
    }
    .amp-order-form-wrapper .wpforms-field-label {
        font-size: 14px !important;
    }
    .amp-order-form-wrapper input[type="text"],
    .amp-order-form-wrapper input[type="tel"],
    .amp-order-form-wrapper input[type="email"],
    .amp-order-form-wrapper select {
        font-size: 14px !important;
        padding: 11px 14px !important;
    }
    .amp-order-form-wrapper .wpforms-field-description {
        font-size: 12px !important;
    }
    .amp-order-form-wrapper .wpforms-submit {
        width: 100%;
        text-align: center;
    }
}