/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 48px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
}

.page-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Content with sidebar layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.main-content {
    background: white;
}

/* Example company info box */
.company-info {
    background: #f9f9f9;
    border-left: 4px solid #ddd;
    padding: 20px;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
}

.company-info p {
    margin: 0;
    color: #666;
}

.dashboard-text {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.dashboard-link {
    color: #0073aa;
    text-decoration: underline;
}

.dashboard-link:hover {
    color: #005a87;
}

/* Sidebar */
.sidebar {
    background: white;
}

/* Ad blocks */
.ad-block {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-header {
    background: #f8f9fa;
    padding: 8px 12px;
    font-size: 11px;
    color: #999;
    text-align: right;
    border-bottom: 1px solid #e5e5e5;
}

.ad-content {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.ad-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ad-text {
    flex: 1;
}

.ad-category {
    background: #007cba;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.ad-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.ad-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}

.ad-button:hover {
    background: #005a87;
}

/* Footer */
.footer {
    background: #23282d;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 14px;
}

.footer a {
    color: #00a0d2;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 250px;
        gap: 30px;
    }

    .nav-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
     .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 12px;
    }

   

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-container {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-description {
        font-size: 16px;
    }

    .sidebar {
        order: -1;
    }

    .ad-content {
        flex-direction: column;
        text-align: center;
    }

    .ad-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .nav-container {
        padding: 12px 20px;
    }

    .main-container {
        padding: 15px 10px;
    }

    .company-info {
        padding: 15px;
        margin: 20px 0;
    }

    .ad-content {
        padding: 12px;
    }
}

/* Loading animation for images */
.ad-image {
    background: #f0f0f0;
    position: relative;
}

.ad-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ad-image[src] {
    background: none;
}

.ad-image[src]:before {
    display: none;
}