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

html {
    direction: ltr;
    text-align: left;
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #fff;
    color: #222222;
    line-height: 25px;
    direction: ltr;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow-x: hidden;
}

:root {
    /* ACNR Professional Color Palette */
    --primary-color: #B8860B;        /* Gold from logo */
    --secondary-color: #8B4513;      /* Rich brown/bronze */
    --accent-color: #2F4F4F;         /* Dark slate gray/teal */
    --burgundy-color: #800020;       /* Burgundy from flag */
    --light-gold: #DAA520;           /* Light gold */
    --dark-gold: #996515;            /* Dark gold */

    /* Updated color scheme */
    --beige: #FAF7F0;                /* Warm cream background */
    --cream: #FFFEF7;                /* Pure cream */
    --dark-color: #2C2C2C;           /* Professional dark */
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;           /* Softer gray */
    --border-color: #E8E5D8;         /* Warm border */
    --shadow-color: rgba(184, 134, 11, 0.15);  /* Gold shadow */

    /* Status colors with professional touch */
    --success-color: #228B22;        /* Forest green */
    --warning-color: #FF8C00;        /* Dark orange */
    --danger-color: #DC143C;         /* Crimson */
    --info-color: #4682B4;           /* Steel blue */
    --burgundy: #800020;       /* Burgundy from your request */
    --navy-blue: #003366;      /* Navy blue from your request */
    --light-burgundy: #A2324E; /* Lighter burgundy for gradients */
    --light-navy: #004C80;     /* Lighter navy for gradients */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', serif;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 38px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 30px;
    color: var(--accent-color);
}

h3 {
    font-size: 24px;
    color: var(--burgundy-color);
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    font-weight: 400;
    font-family: 'Tajawal', sans-serif;
    margin: 0px;
    font-size: 14px;
    line-height: 25px;
    color: var(--text-light);
}

a {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: none;
    color: var(--dark-gold);
}

a:focus {
    outline: none;
}

ul, ol {
    list-style: outside none none;
    margin: 0;
    padding: 0;
}

ul li, ol li {
    list-style: none;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn:focus,
.btn:active {
    box-shadow: none;
    outline: none;
}

.btn-primary,
.btn-common {
    background: linear-gradient(135deg, var(--primary-color), var(--light-gold));
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover,
.btn-common:hover {
    background: linear-gradient(135deg, var(--dark-gold), var(--primary-color));
    color: white;
    border: 2px solid var(--dark-gold);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--burgundy-color));
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--burgundy-color), var(--accent-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #32CD32);
    color: white;
    border: 2px solid var(--success-color);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #FFA500);
    color: white;
    border: 2px solid var(--warning-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #FF6347);
    color: white;
    border: 2px solid var(--danger-color);
}

.btn-outline,
.btn-border {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover,
.btn-border:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--light-gold));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.btn-light {
    background: linear-gradient(135deg, white, var(--cream));
    color: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: transparent;
    color: white;
    border: 2px solid white;
    transform: translateY(-3px);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, white, var(--cream));
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

/* Cards */
.card {
    background: linear-gradient(135deg, white 0%, var(--cream) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-gold));
}

.card:hover {
    box-shadow: 0 15px 50px rgba(184, 134, 11, 0.2);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--beige), var(--cream));
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: linear-gradient(135deg, var(--cream), var(--beige));
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg, white, var(--cream));
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: left;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
    background: white;
}

.form-control::placeholder {
    color: var(--text-light);
    text-align: left;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, white 0%, var(--cream) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.1);
}

.table th,
.table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: linear-gradient(135deg, var(--primary-color), var(--light-gold));
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, var(--beige), var(--cream));
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--light-gold));
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #32CD32);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color), #FFA500);
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color), #FF6347);
}

.badge-info {
    background: linear-gradient(135deg, var(--info-color), #87CEEB);
}

.badge-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--burgundy-color));
    color: white;
}

/* Alerts */
.alert {
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 247, 240, 0.9));
    backdrop-filter: blur(10px);
}

.alert-success {
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    border-left-color: var(--info-color);
    color: var(--info-color);
}

.alert-primary {
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand-logo {
        height: 35px;
    }

    .navbar-brand {
        font-size: 1.2rem;
        margin-left: 1rem;
    }

    .col-md-6, .col-md-4, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar-brand-logo {
        height: 30px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .form-control {
        padding: 0.8rem 1rem;
    }
}

/* Professional enhancements */
.section-padding {
    padding: 4rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--light-gold));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--burgundy-color));
}

.shadow-gold {
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.2);
}

.border-gold {
    border-color: var(--primary-color) !important;
}

.text-gold {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-burgundy {
    color: var(--burgundy-color) !important;
}

/* Burgundy buttons */
.btn-burgundy {
    background: linear-gradient(135deg, var(--burgundy), var(--light-burgundy));
    color: white;
    border: 2px solid var(--burgundy);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.btn-burgundy:hover {
    background: linear-gradient(135deg, var(--light-burgundy), var(--burgundy));
    color: white;
    border: 2px solid var(--light-burgundy);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
    transform: translateY(-3px);
}

.btn-outline-burgundy {
    background-color: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
}

.btn-outline-burgundy:hover {
    background: linear-gradient(135deg, var(--burgundy), var(--light-burgundy));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
}

/* Navy blue buttons */
.btn-navy {
    background: linear-gradient(135deg, var(--navy-blue), var(--light-navy));
    color: white;
    border: 2px solid var(--navy-blue);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-navy:hover {
    background: linear-gradient(135deg, var(--light-navy), var(--navy-blue));
    color: white;
    border: 2px solid var(--light-navy);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
    transform: translateY(-3px);
}

.btn-outline-navy {
    background-color: transparent;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
}

.btn-outline-navy:hover {
    background: linear-gradient(135deg, var(--navy-blue), var(--light-navy));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
}

/* Badges for new colors */
.badge-burgundy {
    background: linear-gradient(135deg, var(--burgundy), var(--light-burgundy));
}

.badge-navy {
    background: linear-gradient(135deg, var(--navy-blue), var(--light-navy));
}

/* Review System Styles */
.rating-stars {
    color: #ffc107;
    unicode-bidi: bidi-override;
    direction: ltr;
}

.rating-stars .empty {
    color: #e4e5e9;
}

.review-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.avatar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    color: white;
}

/* Like/Dislike buttons */
.like-dislike-buttons .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.like-dislike-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Review cards */
.review-card {
    border-left: 4px solid #4e73df;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Progress bars for rating distribution */
.rating-progress {
    height: 8px;
    border-radius: 4px;
    background-color: #eaecf4;
}

.rating-progress-bar {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border-radius: 4px;
}

/* Animation for new reviews */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.wow {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}