:root {
    --primary-color: #000080; /* Navy Blue */
    --secondary-color: #800000; /* Maroon */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 128, 0.8), rgba(128, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a00000;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info .category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.product-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-info .btn {
    font-size: 0.9rem;
    padding: 8px 15px;
}

/* Product Detail Page */
.product-detail {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product-image {
    flex: 1;
    min-width: 300px;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-info-detail {
    flex: 1;
    min-width: 300px;
}

.product-info-detail h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info-detail .category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-info-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0000a0;
}

/* Ad Spaces */
.ad-container {
    position: fixed;
    top: 120px;
    width: 160px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.left-ad {
    left: 20px;
}

.right-ad {
    right: 20px;
}

.ad-container img {
    width: 100%;
    border-radius: 3px;
}

.bottom-ads {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.bottom-ads .ad-container {
    position: static;
    width: 300px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Filter Section */
.filter {
    margin: 20px 0;
    text-align: right;
}

.filter select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .ad-container {
        display: none;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .product-detail-container {
        flex-direction: column;
    }
    
    .bottom-ads {
        flex-direction: column;
        align-items: center;
    }
}


.file-info {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.file-info p {
    margin: 5px 0;
}

.file-info strong {
    color: var(--primary-color);
}