/* Basic styling for converted CODET site */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Header */
header {
    background-color: #273271;
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

/* Main content */
main {
    min-height: 60vh;
    padding: 2rem 0;
    background-color: white;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #273271;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(39, 50, 113, 0.3);
}

.cta-button:hover {
    background-color: #1a2460;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 50, 113, 0.4);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
    border-radius: 50%;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Product Hero Section */
.product-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.product-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.product-hero-content .lead {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Page content */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #273271;
}

.page-header h1 {
    color: #273271;
    margin-bottom: 0.5rem;
}

.page-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.page-content {
    line-height: 1.8;
    margin-top: 2rem;
}

/* Tables for technical specifications */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.page-content th,
.page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.page-content th {
    background-color: #273271;
    color: white;
    font-weight: 600;
}

.page-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.page-content tr:hover {
    background-color: #e9ecef;
}

.page-content td:first-child {
    font-weight: 500;
    color: #273271;
}

/* Technical data section styling */
.page-content h2 {
    color: #273271;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #273271;
}

/* Section content */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h1 {
    color: #273271;
    font-size: 2rem;
}

/* Products preview */
.products-preview {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.products-preview h2 {
    text-align: center;
    color: #273271;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.product-card h3 a {
    color: #273271;
    text-decoration: none;
}

.product-card h3 a:hover {
    text-decoration: underline;
}

/* Pages list */
.pages-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.page-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.page-item h3 a {
    color: #273271;
    text-decoration: none;
}

.page-item h3 a:hover {
    text-decoration: underline;
}

.excerpt {
    color: #666;
    margin-top: 1rem;
}

/* Back navigation */
.back-to-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.back-to-section a {
    color: #273271;
    text-decoration: none;
    font-weight: 500;
}

.back-to-section a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
}
