@import url('theme.css');

/* Directory Section - Light Theme */
.directory-section {
    padding: 40px 20px;
    background-color: var(--bg-body);
}

.directory-heading {
    text-align: left;
    color: var(--color-primary);
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-primary-dim);
    padding-bottom: 10px;
    font-weight: 600;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.directory-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.directory-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.directory-icon {
    padding: 5px;
    margin-right: 15px;
    color: var(--color-primary);
}

.directory-link {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 14px;
}

.directory-link:hover {
    color: var(--color-primary);
}

/* Banner Section */
.background-image-section {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.background-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.background-content h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.register-now-btn {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: all 0.3s;
}

.register-now-btn:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
}

/* Products Section (Categories Lists) */
.products-section {
    background-color: var(--bg-white);
    padding: 30px;
    margin-top: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.products-title {
    font-size: 20px;
    color: var(--color-navy);
    margin-bottom: 25px;
    font-weight: 600;
}

.products-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.product-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.product-item a {
    color: var(--color-text-main);
    font-size: 13px;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
}

.product-item a:hover {
    color: var(--color-primary);
}

.product-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.product-title-text {
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85em;
    margin-top: 6px;
}
