/*
Theme Name: WP Template
Theme URI: https://example.com/wp-template
Author: Author
Author URI: https://example.com
Description: A custom WordPress theme with a fully designed About Us page based on the Budli UI design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-template
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- Unified Variables --- */
:root {
    --blue: #0b78b6;
    --pink: #d41e57;
    --dark: #111;
    --body: #444;
    --muted: #6b7280;
    --border: #eaeaea;
    --bg-light: #f8f9fa;
    --white: #fff;
    --ff-heading: 'Space Grotesk', sans-serif;
    --ff-body: 'DM Sans', sans-serif;
}

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    color: var(--body);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: #0b78b6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   SITE LAYOUT
=========================== */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   HEADER (Unified)
=========================== */
.top-bar {
    background: var(--blue);
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.top-bar-inner {
    display: inline-flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
}

.top-bar-inner span {
    font-size: 12px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.header-main {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

/* Handle WordPress Admin Bar */
.admin-bar .header-main {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header-main {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .header-main {
        top: 0;
    }
}

.header-main.scrolled {
    /* padding: 0 removed to prevent jumping, rely on wrapper styling */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.main-nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
}

.header-logo-img {
    height: 42px;
}

@media screen and (max-width: 1024px) {
    .header-logo-img {
        height: 32px;
    }
}

.navbar-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list-main {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-list-main>li {
    position: relative;
}

.nav-main-item {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-main-item:hover {
    background: #f8f9fa;
    color: var(--blue);
}

@media screen and (max-width: 1300px) {
    .nav-main-item {
        font-size: 11px;
        padding: 6px 4px;
        gap: 2px;
    }

    .nav-main-item iconify-icon {
        font-size: 13px;
    }
}

.nav-main-item .mnusvg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-main-item iconify-icon {
    font-size: 16px;
    display: block;
}

.menu-arrow {
    font-size: 14px;
    transition: transform 0.2s;
}

.has-submenu:hover .menu-arrow {
    transform: rotate(180deg);
}

/* Submenu Styles */
.submnu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    display: none;
    z-index: 1001;
    border: 1px solid #eee;
}

.has-submenu:hover .submnu {
    display: block;
    animation: fadeInSlide 0.2s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submnu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background 0.2s;
}

.submnu li a:hover {
    background: #f1f5f9;
    color: var(--blue);
}

.submnu li a .mnusvg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.submnu li a .mnusvg img,
.submnu li a .mnusvg svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Actions Right */
.nav-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.action-link-icon:hover {
    transform: scale(1.05);
}

/* User Account Panel */
.user-login-panel {
    position: relative;
}

.dropdown-menu-new {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    min-width: 180px;
    padding: 8px 0;
    display: none;
    z-index: 1001;
    margin-top: 10px;
}

.dropdown-menu-new.show {
    display: block;
    animation: fadeInSlide 0.2s ease-out;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--blue);
    text-decoration: none;
}

/* Mobile Toggle - New UI */
.hamburger-new {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Buttons */
.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.action-btn.blue {
    background: #0b78b6;
}

.action-btn.pink {
    background: #d41e57;
}

.action-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--ff-heading);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-text span:first-child {
    color: var(--blue);
}

.logo-text span:last-child {
    color: var(--pink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Nav Overlay Toggle Logic (Handled by d-xxl-none in HTML) */
.mnutog-container {
    display: none;
    /* Hidden by default, shown by grid in mobile media query */
}


/* Ensure mobile nav uses .show class as expected by JS */
.mobile-nav.show {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

/* Fix Header Responsiveness & Centering on Mobile */
@media (max-width: 1399px) {
    .main-nav-wrapper {
        display: grid !important;
        grid-template-columns: 100px 1fr 100px !important;
        align-items: center;
        width: 100% !important;
        padding: 8px 15px !important;
    }

    .mnutog-container {
        display: flex;
        justify-content: flex-start;
        min-width: 0 !important;
    }

    .nav-actions-right {
        display: flex;
        justify-content: flex-end;
        gap: 10px !important;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .header-logo-img {
        max-height: 48px !important;
        width: auto !important;
    }
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.icon-btn.blue {
    background: var(--blue);
}

.icon-btn.pink {
    background: var(--pink);
}

.icon-btn:hover {
    opacity: 0.9;
}

/* Search Bar Removed from header */

/* Hamburger & Mobile Nav Logic */
.hamburger-new {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Nav Drawer Redesign */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.close-mobile-nav {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.mobile-nav-item:hover {
    background: #f8f9fa;
}

.mobile-nav-item iconify-icon:last-child {
    transition: transform 0.3s ease;
}

.mobile-has-submenu.open>.mobile-nav-item iconify-icon:last-child {
    transform: rotate(180deg);
}

.mobile-submnu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9fafb;
    display: none;
    border-bottom: 1px solid var(--border);
}

.mobile-has-submenu.open>.mobile-submnu {
    display: block;
}

.mobile-submnu li a {
    padding: 12px 40px;
    display: block;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #edf2f7;
}

.mobile-submnu li:last-child a {
    border-bottom: none;
}


body.nav-open {
    overflow: hidden;
}

/* ===========================
   NAVIGATION
=========================== */
.main-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    display: block;
    padding: 6px 14px;
    border-radius: 4px;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.main-navigation ul li a:hover {
    background: #0b78b6;
    color: #fff;
    text-decoration: none;
}

/* ===========================
   FOOTER (Unified)
=========================== */
.footer {
    background: #006cb7;
    color: #fff;
    padding: 52px 24px 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.2fr 1.2fr 1.2fr 1.2fr;
    gap: 28px;
    max-width: 100%;
    margin: 0 auto 36px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #b8dcf4;
}

.footer-col p {
    color: #d6eeff;
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Contact items */
.fc-item {
    display: flex;
    gap: 8px;
    color: #d6eeff;
    font-size: 12.5px;
    margin-bottom: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.fc-item iconify-icon {
    min-width: 14px;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Nav links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #d6eeff;
    font-size: 12.5px;
    cursor: pointer;
    transition: color .15s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}

.newsletter-form input {
    flex: 1;
    padding: 9px 12px;
    border: none;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    color: #333;
}

.newsletter-form button {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #000;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-icons iconify-icon {
    font-size: 19px;
    color: #fff;
    cursor: pointer;
    transition: opacity .2s;
}

.social-icons iconify-icon:hover {
    opacity: .75;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px;
}

.footer-bottom p {
    color: #9ecfe8;
    font-size: 12px;
    margin-bottom: 6px;
}

.footer-bottom strong {
    color: #fff;
}

/* SEO links */
.seo-row {
    color: #9ecfe8;
    font-size: 11.5px;
    line-height: 1.9;
    margin-top: 12px;
}

.seo-row strong {
    color: #fff;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seo-list li {
    font-size: 11.5px;
    line-height: 1.6;
    color: #9ecfe8;
}

.seo-list li strong {
    color: #fff;
}

/* ── FLOATING BUTTONS ── */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 76px;
    background: #fff;
    color: #25d366;
    padding: 7px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    border: 1px solid #e5e5e5;
    z-index: 300;
    cursor: pointer;
    font-family: inherit;
    transition: box-shadow .2s;
}

.floating-wa:hover {
    box-shadow: 0 4px 18px rgba(37, 211, 102, .25);
}

.wa-circle {
    width: 24px;
    height: 24px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.floating-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    background: #b21c56;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    cursor: pointer;
    z-index: 300;
    transition: background .2s, transform .15s;
}

.floating-top:hover {
    background: #891248;
    transform: translateY(-2px);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a7a45;
    color: #fff;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    z-index: 9999;
    transform: translateX(130%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.toast.show {
    transform: translateX(0);
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer {
        padding: 40px 16px 16px;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .navbar-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Removed padding: 8px 0; from .header-main to prevent jumping */

    .main-nav-wrapper {
        gap: 8px;
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .search-container {
        order: 2;
        margin: 5px 0 0;
        max-width: none;
        width: 100%;
        flex: none;
    }

    .logo-container {
        flex: 1;
        order: 1;
        display: flex;
        justify-content: flex-start;
    }

    .nav-actions-right {
        order: 2;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-container {
        order: 3;
        margin: 10px 0 0;
        max-width: none;
        width: 100%;
        flex: 0 0 100%;
    }

    .hamburger {
        display: flex;
        width: 30px;
        height: 25px;
        position: relative;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--dark);
        border-radius: 3px;
    }
}

/* ===========================
   HOME PAGE
=========================== */
.home-hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    margin-bottom: 40px;
}

.home-hero h1 {
    font-size: 2.5rem;
    color: #0b78b6;
    margin-bottom: 16px;
}

.home-hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 24px;
}

.home-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ===========================
   GENERIC PAGE
=========================== */
.site-main {
    padding: 40px 0;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #111;
}

.entry-content {
    line-height: 1.8;
    color: #444;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary {
    background: #0b78b6;
    color: #fff;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff;
}

/* ===========================
   UTILITIES
=========================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 1.75rem;
    }

    .site-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-navigation ul {
        gap: 4px;
    }
}