/*
Theme Name: Abu Dhabi Customs Portal
Theme URI: https://example.com
Author: Custom Theme Developer
Author URI: https://example.com
Description: A professional government portal theme matching the Abu Dhabi Customs design
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adcustoms-portal
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   GENERAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    color: rgba(0, 0, 0, 0.87);
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.00938em;
    background-color: #f5f5f5;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background-color: #4a6b7c;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.site-branding img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.site-branding a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-branding .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-branding .logo-text-en {
    font-size: 14px;
    font-weight: 600;
}

.site-branding .logo-text-ar {
    font-size: 12px;
    font-weight: 400;
}

/* Alert Banner */
.alert-banner {
    background-color: #ff0000;
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}

.alert-banner.hidden {
    display: none;
}

/* Navigation Menu */
.main-navigation {
    display: none;
}

.main-navigation.toggled {
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 18px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.site-content {
    background-color: #f5f5f5;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.site-content h1,
.site-content h2,
.site-content h3 {
    color: #333;
    margin: 20px 0;
    font-weight: 500;
}

.site-content p {
    color: #666;
    margin: 15px 0;
    font-size: 16px;
}

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */

.background-decoration {
    position: absolute;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.background-decoration.airplane {
    top: 50px;
    right: 50px;
    width: 400px;
    height: 300px;
}

.background-decoration.port {
    bottom: 50px;
    left: 50px;
    width: 300px;
    height: 350px;
}

.background-decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: #4a6b7c;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

.site-footer p {
    margin: 10px 0;
    color: white;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }

    .site-branding {
        flex: 1;
        padding: 10px 15px;
    }

    .alert-banner {
        width: 100%;
        padding: 10px 15px;
        font-size: 12px;
        margin-left: 0;
        margin-top: 10px;
    }

    .background-decoration.airplane {
        width: 250px;
        height: 200px;
        top: 30px;
        right: 20px;
    }

    .background-decoration.port {
        width: 200px;
        height: 250px;
        bottom: 30px;
        left: 20px;
    }

    .content-wrapper {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .site-branding {
        font-size: 14px;
    }

    .site-branding img {
        height: 30px;
    }

    .alert-banner {
        font-size: 11px;
        padding: 8px 10px;
    }

    .background-decoration.airplane {
        width: 150px;
        height: 120px;
        top: 20px;
        right: 10px;
    }

    .background-decoration.port {
        width: 120px;
        height: 150px;
        bottom: 20px;
        left: 10px;
    }

    .content-wrapper {
        padding: 20px 10px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */

.wp-caption {
    background: #f1f1f1;
    border: 1px solid #ddd;
    margin: 10px 0;
    padding: 5px;
    text-align: center;
}

.wp-caption img {
    margin: 5px;
    max-width: calc(100% - 10px);
}

.wp-caption p.wp-caption-text {
    margin: 0;
    padding: 0 5px;
    font-size: 12px;
    line-height: 17px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005a87;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: #4a6b7c;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #3a5b6c;
}
