/* ============================================
   LAYOUT — Page header, breadcrumb, two-column, sidebar
   Loaded on ALL pages
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin: 0;
}

.page-header .lead {
    font-size: 18px;
    margin-top: 15px;
    opacity: 0.9;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    /* Reduced from 150px */
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e94560;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 100px;
    /* Increased from 80px (User) / 40px (Original) */
    /* Increased from 24px */
    max-width: 1500px;
    /* Increased from 1200px */
    margin: 0 auto;
    padding: 30px 20px;
    /* Reduced from 60px/150px */
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Increased from 24px */
}

@media (max-width: 992px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 60px;
    /* Doubled from 30px */
}

.sidebar-widget h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Full Width Layout */
.main-content-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Three Column Layout */
.three-column-layout {
    display: grid;
    grid-template-columns: minmax(350px, 0.8fr) 1fr minmax(350px, 0.8fr);
    /* Increased min-width from 280px */
    gap: 100px;
    /* Increased from 60px / 24px */
    max-width: 1700px;
    /* Increased from 1300px */
    margin: 0 auto;
    padding: 40px 20px;
    /* Reduced from 100px */
}

/* Definitive Alignment Fix: Force all columns to start at the exact top edge */
.sidebar-left,
.sidebar-right,
.page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Reset margins for ANY first-child element inside a column to prevent offset */
.sidebar-left>*:first-child,
.sidebar-right>*:first-child,
.main-content *:first-child,
.page-content>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.sidebar-left,
.sidebar-right {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
}

@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .sidebar-right {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .three-column-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-right {
        grid-column: auto;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }
}