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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f8fc;
    color: #1e293b;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #0b3c6d, #1e6bb8);
    color: white;
    padding: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    background-color: white;
    border-radius: 10px;
    padding: 5px;
}

.logo-area h1 {
    font-size: 26px;
}

.logo-area p {
    font-size: 14px;
    color: #e2e8f0;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-list li a {
    text-decoration: none;
    color: white;
    background-color: #1e6bb8;
    padding: 9px 14px;
    border-radius: 6px;
    border: 1px solid #3b82f6;
    transition: 0.3s;
    display: inline-block;
}

.nav-list li a:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
}

.slider {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section {
    padding: 30px 20px;
    margin: 20px;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

section h2 {
    margin-bottom: 15px;
    color: #1e6bb8;
    font-size: 26px;
    border-left: 5px solid #3b82f6;
    padding-left: 10px;
}

.news-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.news-card {
    background-color: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.news-card h3 {
    color: #2563eb;
    margin-bottom: 8px;
}

.gallery-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-box img {
    width: 23%;
    min-width: 200px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: 0.3s;
}

.gallery-box img:hover {
    transform: scale(1.05);
}

button,
.product-card a,
.action-btn {
    background-color: #1e6bb8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

button:hover,
.product-card a:hover,
.action-btn:hover {
    background-color: #3b82f6;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 12px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card {
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    
    color: #2563eb;
    margin-bottom: 10px;
}

.details-box {
    max-width: 900px;
    margin: 30px auto;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
}

.details-box img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.form-box,
.edit-box,
.admin-box {
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
}

.form-box {
    width: 400px;
    max-width: 90%;
    margin: 30px auto;
}

.edit-box {
    width: 500px;
    max-width: 90%;
    margin: 30px auto;
}

.admin-box {
    width: 90%;
    margin: 30px auto;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.admin-form textarea {
    grid-column: span 2;
}

.admin-form button {
    grid-column: span 2;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #cbd5e1;
    padding: 10px;
    text-align:
center;
}

table th {
    background-color: #e2e8f0;
}

.table-img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

footer {
    background: linear-gradient(to right, #0b3c6d, #1e6bb8);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-logo {
    width: 50px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-boxes {
        grid-template-columns: 1fr;
    }

    .gallery-box img {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .gallery-box img {
        width: 90%;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-form textarea,
    .admin-form button {
        grid-column: span 1;
    }

    .slider {
        height: 250px;
    }
}

/* ===== Al Najjar visual motion upgrade ===== */
:root {
    --najjar-blue: #1e6bb8;
    --najjar-deep: #0b2542;
    --najjar-glow: rgba(59, 130, 246, .28);
}

html { scroll-behavior: smooth; }

body {
    overflow-x: hidden;
    animation: najjar-page-in .75s ease both;
}

@keyframes najjar-page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #071d34, #0b3c6d 48%, #1e6bb8);
    background-size: 180% 180%;
    animation: najjar-header-flow 12s ease infinite;
    box-shadow: 0 8px 28px rgba(4, 24, 48, .18);
}

header::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -35%;
    width: 28%;
    height: 260%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
    transform: rotate(24deg);
    animation: najjar-shine 8s ease-in-out infinite;
}

@keyframes najjar-header-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes najjar-shine {
    0%, 18% { left: -40%; opacity: 0; }
    35% { opacity: 1; }
    65%, 100% { left: 130%; opacity: 0; }
}

.logo-area { position: relative; z-index: 1; }
.logo {
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
    animation: najjar-logo-float 4s ease-in-out infinite;
}
@keyframes najjar-logo-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}

.nav-list { position: relative; z-index: 2; }
.nav-list li a {
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}
.nav-list li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .28s ease, left .28s ease;
}
.nav-list li a:hover::after { width: 100%; left: 0; }
.nav-list li a:hover {
    box-shadow: 0 7px 18px rgba(0,0,0,.2);
    transform: translateY(-3px) scale(1.03);
}

.slider {
    position: relative;
    isolation: isolate;
    background: #0b2542;
}
.slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(4,20,38,.28), transparent 55%, rgba(4,20,38,.12));
}
.slider img {
    animation: najjar-slider-zoom 12s ease-in-out infinite alternate;
}
@keyframes najjar-slider-zoom {
    from { transform: scale(1); filter: saturate(.92); }
    to { transform: scale(1.07); filter: saturate(1.12); }
}

section {
    box-shadow: 0 5px 18px rgba(15, 45, 75, .045);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
section:not(.slider):hover {
    box-shadow: 0 12px 30px rgba(15, 45, 75, .10);
}

section h2 {
    position: relative;
}
section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 7px;
    border-radius: 5px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width .35s ease;
}
section:hover h2::after { width: 90px; }

.news-card, .product-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(15, 45, 75, .07);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.news-card::before, .product-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1e6bb8, #60a5fa, #1e6bb8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.news-card:hover::before, .product-card:hover::before { transform: scaleX(1); }
.news-card:hover, .product-card:hover {
    transform: translateY(-8px);
    border-color: #7eb5ec;
    box-shadow: 0 16px 30px rgba(15, 65, 110, .16);
}
.product-card img, .gallery-box img, .details-box img {
    transition: transform .55s cubic-bezier(.2,.75,.25,1), filter .4s ease;
}
.product-card:hover img, .gallery-box img:hover {
    transform: scale(1.055);
    filter: saturate(1.08);
}
.gallery-box img {
    box-shadow: 0 5px 16px rgba(15,45,75,.10);
}
.gallery-box img:hover {
    box-shadow: 0 13px 26px rgba(15,65,110,.2);
    border-color: #60a5fa;
}

button, .product-card a, .action-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30,107,184,.16);
}
button:hover, .product-card a:hover, .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(30,107,184,.25);
}
button:active, .product-card a:active, .action-btn:active {
    transform: translateY(0) scale(.98);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px var(--najjar-glow);
    transition: box-shadow .2s ease, border-color .2s ease;
}

footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #071d34, #0b3c6d);
    color: #eaf3ff;
    padding: 24px 18px;
    text-align: center;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #93c5fd, transparent);
    animation: najjar-footer-line 6s ease-in-out infinite;
}
@keyframes najjar-footer-line {
    0%, 20% { left: -100%; }
    70%, 100% { left: 140%; }
}

/* Keep the site comfortable for visitors who prefer less movement. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Added corporate pages: keep the original Al Najjar blue-and-white design. */
.content-page,.quote-page{background:#fff;border:1px solid #cbd5e1;border-radius:10px;}
.simple-card{box-shadow:0 3px 10px rgba(15,45,75,.05);}
.nav-list{row-gap:9px;}
@media(max-width:768px){.nav-list{gap:7px}.nav-list li a{padding:8px 10px;font-size:13px}.logo-area h1{font-size:21px}.content-page,.quote-page{margin:14px;padding:18px}}
