/* ============================================================
   Win Vision Technology - Main Stylesheet
   Design: Professional B2B Security Products Theme
   Color Palette: Deep Blue #003366, Accent Blue #0066CC, 
                  Light Gray #F5F7FA, Dark Gray #333333
   ============================================================ */

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

:root {
    --primary:     #003366;
    --primary-lt:  #0055aa;
    --accent:      #0099cc;
    --accent-lt:   #33bbee;
    --dark:        #222222;
    --gray:        #555555;
    --light-gray:  #f5f7fa;
    --border:      #dddddd;
    --white:       #ffffff;
    --red:         #cc3300;
    --green:       #009944;
    --font-main:   'Open Sans', sans-serif;
    --font-head:   'Roboto', sans-serif;
    --shadow:      0 2px 12px rgba(0,0,0,0.10);
    --shadow-lg:   0 6px 28px rgba(0,0,0,0.14);
    --radius:      4px;
    --radius-lg:   8px;
    --transition:  0.25s ease;
}

body { font-family: var(--font-main); color: var(--dark); background: var(--white); font-size: 15px; line-height: 1.7; }
a { color: var(--primary-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.section-title p { color: var(--gray); font-size: 1rem; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 12px auto 0; }

/* ---- Top Bar ---- */
.top-bar { background: var(--primary); color: rgba(255,255,255,0.85); font-size: 13px; padding: 7px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar span { margin-right: 20px; }
.top-bar span i { margin-right: 5px; }
.top-bar-right a { color: rgba(255,255,255,0.75); margin-left: 12px; font-size: 14px; transition: color var(--transition); }
.top-bar-right a:hover { color: var(--accent-lt); }

/* ---- Header ---- */
.main-header { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.12); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo img { height: 52px; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); }

/* ---- Navigation ---- */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li a { display: block; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--dark); letter-spacing: 0.5px; border-radius: var(--radius); transition: background var(--transition), color var(--transition); }
.main-nav ul li a:hover, .main-nav ul li.active > a { background: var(--primary); color: var(--white); }
.main-nav ul li.has-dropdown { position: relative; }
.main-nav ul li.has-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius-lg) var(--radius-lg); z-index: 200; }
.main-nav ul li.has-dropdown:hover .dropdown { display: block; }
.main-nav ul li.has-dropdown .dropdown li a { padding: 10px 18px; font-size: 13px; font-weight: 400; color: var(--dark); border-radius: 0; }
.main-nav ul li.has-dropdown .dropdown li a:hover { background: var(--light-gray); color: var(--primary); }
.main-nav ul li.elearning-menu-item > a { background: var(--accent); color: var(--white) !important; border-radius: var(--radius); }
.main-nav ul li.elearning-menu-item > a:hover { background: var(--primary); }
.elearning-reveal { animation: elearningPop 0.4s cubic-bezier(0.23,1,0.32,1); }
@keyframes elearningPop { 0%{transform:scale(0.7);opacity:0} 100%{transform:scale(1);opacity:1} }

/* ---- Flash Overlay ---- */
.flash-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9999; border: 0 solid var(--accent-lt); opacity: 0; transition: opacity 0.15s; }
.flash-overlay.flash-active { animation: flashBorder 0.6s ease forwards; }
@keyframes flashBorder {
    0%   { border-width: 0;   opacity: 0; }
    20%  { border-width: 8px; opacity: 1; }
    60%  { border-width: 8px; opacity: 0.8; }
    100% { border-width: 0;   opacity: 0; }
}

/* ---- Mobile Menu ---- */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); transition: var(--transition); }

/* ---- Hero / Slider ---- */
.hero-slider { position: relative; overflow: hidden; background: var(--primary); }
.hero-slide { position: relative; min-height: 480px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,30,80,0.75) 0%, rgba(0,30,80,0.35) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 580px; padding: 60px 0; }
.hero-content h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 28px; }
.btn { display: inline-block; padding: 12px 30px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; letter-spacing: 0.5px; }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: #aa2200; }
.btn-success { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---- Featured Products ---- */
.featured-products { background: var(--light-gray); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img { aspect-ratio: 1; overflow: hidden; background: #f0f0f0; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.35s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 14px 16px; }
.product-card-body h3 { font-size: 13.5px; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-body a.btn { width: 100%; text-align: center; margin-top: 6px; }
.view-more-wrap { text-align: center; margin-top: 36px; }

/* ---- About Section ---- */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.about-text p { color: var(--gray); margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat-item { text-align: center; padding: 20px 10px; background: var(--light-gray); border-radius: var(--radius-lg); }
.stat-item .number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-item .label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---- News Section ---- */
.news-section { background: var(--light-gray); }
.news-tabs { display: flex; gap: 8px; margin-bottom: 28px; justify-content: center; }
.news-tab { padding: 8px 22px; border-radius: 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 2px solid var(--border); background: var(--white); color: var(--gray); transition: all var(--transition); }
.news-tab.active, .news-tab:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition); }
.news-card:hover { transform: translateY(-3px); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card-body .meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.news-card-body h3 { font-size: 15px; margin-bottom: 10px; color: var(--dark); }
.news-card-body p { font-size: 13.5px; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Partners ---- */
.partners-section { padding: 40px 0; border-top: 1px solid var(--border); }
.partners-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.partner-logo { filter: grayscale(100%); opacity: 0.6; transition: all var(--transition); }
.partner-logo:hover { filter: none; opacity: 1; }
.partner-logo img { height: 44px; }

/* ---- Page Banner ---- */
.page-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%); padding: 50px 0; text-align: center; }
.page-banner h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ---- Products Page ---- */
.products-page { padding: 50px 0; }
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); height: fit-content; }
.sidebar h3 { font-size: 15px; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar ul li { border-bottom: 1px solid var(--border); }
.sidebar ul li a { display: block; padding: 10px 0; font-size: 14px; color: var(--dark); transition: color var(--transition), padding-left var(--transition); }
.sidebar ul li a:hover, .sidebar ul li a.active { color: var(--primary); padding-left: 6px; font-weight: 600; }
.product-count { font-size: 12px; color: var(--gray); float: right; }

/* ---- Product Detail ---- */
.product-detail { padding: 50px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery .main-img { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; background: #f8f8f8; }
.product-gallery .main-img img { width: 100%; max-height: 400px; object-fit: contain; padding: 20px; }
.product-info h1 { font-size: 1.7rem; margin-bottom: 12px; }
.product-info .model { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.product-info .model span { font-weight: 600; color: var(--dark); }
.product-info .desc { color: var(--gray); margin-bottom: 24px; line-height: 1.8; }
.product-specs { margin-top: 24px; }
.product-specs h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr:nth-child(even) { background: var(--light-gray); }
.specs-table td { padding: 9px 14px; border: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--dark); width: 40%; }

/* ---- Contact ---- */
.contact-page { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info-block h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-info-block .info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-block .info-item i { font-size: 20px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.contact-info-block .info-item h4 { font-size: 14px; margin-bottom: 4px; }
.contact-info-block .info-item p { font-size: 13.5px; color: var(--gray); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font-main); transition: border-color var(--transition), box-shadow var(--transition); background: var(--white); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,153,204,0.15); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert-info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ---- About Page ---- */
.about-page { padding: 60px 0; }
.about-page .about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.about-page .about-intro img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 24px 16px; box-shadow: var(--shadow); }
.team-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--accent); }
.team-card h4 { font-size: 15px; margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--gray); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }
.value-card { background: var(--light-gray); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; border-top: 4px solid var(--accent); }
.value-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 14px; }
.value-card h4 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--gray); }

/* ---- Services Page ---- */
.services-page { padding: 60px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow); border-bottom: 4px solid var(--accent); transition: transform var(--transition); }
.service-card:hover { transform: translateY(-4px); }
.service-card i { font-size: 2.4rem; color: var(--accent); margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--gray); }

/* ---- News Page ---- */
.news-page { padding: 60px 0; }
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
.news-main .news-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.news-main .news-item img { width: 200px; height: 130px; object-fit: cover; border-radius: var(--radius); }
.news-main .news-item h3 { font-size: 16px; margin-bottom: 8px; }
.news-main .news-item p { font-size: 13.5px; color: var(--gray); }
.news-main .news-item .meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.news-sidebar .widget { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.news-sidebar .widget h4 { font-size: 15px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.news-sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.news-sidebar .widget ul li a { color: var(--dark); }
.news-sidebar .widget ul li a:hover { color: var(--primary); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); font-size: 14px; border: 1px solid var(--border); color: var(--dark); transition: all var(--transition); }
.pagination a:hover, .pagination span.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Footer ---- */
.main-footer { background: #0a1628; color: rgba(255,255,255,0.75); }
.footer-top { padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-col p { font-size: 13.5px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.65); transition: color var(--transition), padding-left var(--transition); }
.footer-col ul li a:hover { color: var(--accent-lt); padding-left: 4px; }
.footer-col .contact-info li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13.5px; }
.footer-col .contact-info li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); font-size: 14px; transition: all var(--transition); }
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 16px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .products-layout { grid-template-columns: 200px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .about-page .about-intro { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .news-layout { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 16px; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li a { padding: 12px 16px; }
    .main-nav ul li.has-dropdown .dropdown { display: none; position: static; box-shadow: none; border: none; background: var(--light-gray); }
    .main-nav ul li.has-dropdown.open .dropdown { display: block; }
    .products-layout { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .news-main .news-item { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.5rem; }
}
