/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #0c54a3;
    --primary-hover: #083c75;
    --accent-color: #f7941d;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

ul {
    list-style: none;
}

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

/* Header */
.top-header {
    background-color: #ffcc00;
    border-bottom: 1px solid #e0b000;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

.top-header .contact-item {
    color: #111111;
}

.top-header .contact-item i {
    color: #0c54a3;
}

.top-header .contact-item a {
    color: #111111;
    font-weight: 600;
    text-decoration: underline;
}

.top-header .contact-item a:hover {
    color: #0c54a3;
    text-decoration: none;
}

.top-header-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 15px;
}

.top-header-inner .contact-item {
    font-size: 13.5px;
}

.top-header-inner .contact-item:nth-child(1) {
    justify-self: start;
    text-align: left;
}

.top-header-inner .contact-item.font-phone-item {
    justify-self: center;
    text-align: center;
}

.top-header-inner .contact-item:nth-child(3) {
    justify-self: end;
    text-align: right;
}

@media (max-width: 991px) {
    .top-header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 10px;
    }
    .top-header-inner .contact-item:nth-child(1),
    .top-header-inner .contact-item.font-phone-item,
    .top-header-inner .contact-item:nth-child(3) {
        justify-self: center;
        text-align: center;
    }
}

.top-contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.contact-item i {
    color: var(--primary-color);
}

.main-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    color: #444;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(12, 84, 163, 0.85), rgba(8, 60, 117, 0.9)), url('../../uploads/images/bg-page-title-1.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a {
    color: var(--white);
}

/* Home Hero / Slider */
.hero-slider {
    position: relative;
    height: 500px;
    background-color: #222;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    color: var(--white);
    max-width: 600px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    margin-left: 100px;
}

.slide-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(12, 84, 163, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Sections */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Category Grid (Home) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-body {
    padding: 25px;
    text-align: center;
}

.category-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #d87d13;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Product Catalog page */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    align-self: start;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-link {
    color: #555;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary-color);
}

.sidebar-link.active i {
    transform: translateX(3px);
}

/* Search Bar */
.search-box {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.product-img {
    height: 200px;
    overflow: hidden;
    background-color: #fafafa;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.product-category {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-action {
    margin-top: auto;
}

/* Product Detail Page */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
}

.main-image {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.main-image img {
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

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

.detail-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-info .category-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(12, 84, 163, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

.detail-info p {
    color: #555;
    margin-bottom: 30px;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

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

.specs-table th {
    font-weight: 600;
    color: #444;
    background-color: var(--light-bg);
    width: 35%;
}

.specs-table td {
    color: #555;
}

/* Info Cards (About page) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-box {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-box i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-box h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 13px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Brochures */
.brochures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.brochure-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.brochure-thumbnail {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.brochure-thumbnail img {
    max-height: 100%;
    object-fit: contain;
}

.brochure-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
}

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

.contact-info-panel {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    align-self: start;
}

.contact-info-panel h3 {
    font-size: 20px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 15px;
}

.info-icon {
    font-size: 20px;
    color: var(--primary-color);
    background-color: rgba(12, 84, 163, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.info-content p {
    color: #666;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.alert-success {
    background-color: #e6fffa;
    border: 1px solid #b2f5ea;
    color: #234e52;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #742a2a;
}

.alert ul {
    margin-left: 20px;
    list-style: disc;
}

/* Footer */
.main-footer {
    background-color: #0b223c;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-widget h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 8px;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* Videos Gallery */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.video-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
    .header-inner {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--box-shadow);
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .catalog-layout, .detail-layout, .about-grid, .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .slide-content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Why Us Grid (Homepage) */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}
