* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: #B8860B;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header {
    background: #34495e;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.6) 0%, rgba(44, 62, 80, 0.7) 100%), url('../About-trivec-footer-test-center.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.3) 0%, rgba(44, 62, 80, 0.4) 100%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
}

#products {
    margin-top: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

#products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="products-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23products-grid)"/></svg>');
    opacity: 0.3;
}

#products h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.products-grid {
    position: relative;
    z-index: 1;
}

#products .btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

#products .btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #B8860B;
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.product-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.product-card .btn {
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #B8860B;
    color: white;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: #996F00;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.product-detail .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-detail {
    width: 100%;
    margin: 0;
    padding: 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
    align-items: start;
}

.product-images {
    display: flex;
    flex-direction: column;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.extra-images {
    margin-top: 1rem;
}

.extra-images h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.product-description {
    margin-bottom: 0;
    width: 100%;
    padding: 0;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding: 0;
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

#contact {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0;
    margin: 2rem 0 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grid)"/></svg>');
    opacity: 0.3;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0 0 0;
    box-sizing: border-box;
    text-align: left;
    width: 100%;
}

#contact .contact-form {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: left;
}

.contact-form p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: left;
}

#contact .contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

#contact .contact-form p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
    text-align: center;
}

#contact .contact-header {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

#contact .contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50 !important;
    text-align: center;
}

#contact .contact-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #2c3e50 !important;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
    text-align: left;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
}

#contact .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    text-align: left;
}

#contact .form-group input,
#contact .form-group textarea,
#contact .form-group select {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 0;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: white !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    -webkit-text-fill-color: white !important;
    box-sizing: border-box;
}

#contact .form-group input::placeholder,
#contact .form-group textarea::placeholder {
    color: rgba(255,255,255,0.8);
}

#contact .form-group input:focus,
#contact .form-group textarea:focus,
#contact .form-group select:focus {
    outline: none;
    border-color: #B8860B;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
    color: white !important;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

.admin-nav {
    background: #34495e;
    padding: 1rem 0;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.admin-nav a:hover {
    background: #2c3e50;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.login-form {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.home-content {
    background: white;
    padding: 3rem 4rem;
    margin: 2rem 0;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.content-text {
    width: 100%;
    line-height: 1.8;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.content-text h2, .content-text h3, .content-text h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text ul, .content-text ol {
    margin: 1rem 0 1.5rem 2rem;
}

.content-text strong {
    color: #2c3e50;
    font-weight: 600;
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .home-content {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .content-text {
        padding: 0 0.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .content-text p {
        text-align: justify;
        word-spacing: normal;
    }
    
    #contact {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    #contact .contact-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    #contact .form-group input,
    #contact .form-group textarea,
    #contact .form-group select {
        padding: 0.8rem;
        font-size: 16px;
        min-width: 0;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .footer-section {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .site-footer {
        padding: 1.5rem 0 1rem;
        margin: 0;
        width: 100%;
    }
}

.page-content {
    background: white;
    padding: 3rem 4rem;
    margin: 2rem 0;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.page-content h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    border-bottom: 3px solid #B8860B;
    padding-bottom: 1rem;
}

.page-content .content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.page-content .content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.page-content .content h2, 
.page-content .content h3, 
.page-content .content h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.page-content .content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #B8860B;
    padding-bottom: 0.5rem;
}

.page-content .content h3 {
    font-size: 1.5rem;
}

.page-content .content h4 {
    font-size: 1.3rem;
}

.page-content .content ul, 
.page-content .content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.page-content .content li {
    margin-bottom: 0.5rem;
}

.page-content .content strong {
    color: #2c3e50;
    font-weight: 600;
}

.page-content .content em {
    font-style: italic;
    color: #34495e;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .page-content .content {
        font-size: 1rem;
    }
}
