/**
 * AKS Theme - Standard & Policy Page Styles
 * Path: wp-content/themes/aks/assets/css/page.css
 */

/* ==========================================================================
   1. HERO COVER BANNER
   ========================================================================== */
.aks-page-hero-wrapper {
    position: relative;
    width: 100%;
    margin-top: -1px !important;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

.aks-page-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -5px; 
    left: 0; 
    width: 100%; 
    height: 160px; /* Extends header background down */
    background-color: #232120;
    pointer-events: none;
    z-index: 0;
}

.aks-page-hero-wrapper::after {
    content: '';
    position: absolute;
    top: -5px; 
    left: 5px; 
    width: calc(100% - 10px); 
    height: 160px; 
    background-image: url('../user-pattern.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    filter: invert(1) contrast(500%);
    mix-blend-mode: screen;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.aks-page-cover-container {
    position: relative;
    width: 100%;
    min-height: 220px;
    background-color: #232120;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    border-radius: 16px;
    box-shadow: none;
    z-index: 2;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.aks-page-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../blueprint-pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 1;
}

.aks-page-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(35, 33, 32, 0.4) 0%, rgba(35, 33, 32, 0.95) 100%);
    z-index: 2;
}

.aks-page-cover-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 40px 24px;
    text-align: center;
    box-sizing: border-box;
}

.aks-page-cover-title {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   2. MAIN CONTENT CARD
   ========================================================================== */
.aks-page-main {
    max-width: 960px;
    margin: 0 auto !important;
    width: 100%;
    padding: 0 15px 80px 15px !important;
    box-sizing: border-box;
}

.aks-page-article-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e9ebe8;
    padding: 48px 56px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

/* Date Badge */
.aks-policy-date-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #52525b !important;
    background: #f4f4f5;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 0 28px 0 !important;
    border: 1px solid #e4e4e7;
}

.aks-policy-date-badge svg {
    color: var(--aks-red-primary, #e31e24);
    flex-shrink: 0;
}

/* Lead Paragraph */
.aks-policy-lead {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #1f2937 !important;
    margin-bottom: 24px !important;
}

.aks-policy-lead strong {
    color: #000000;
    font-weight: 700;
}

/* Section Headings */
.aks-page-article-card h2.wp-block-heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 36px !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    line-height: 1.4 !important;
}

.aks-page-article-card h2.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--aks-red-primary, #e31e24);
}

/* Paragraphs */
.aks-page-article-card p {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 16px 0;
}

/* Lists */
.aks-page-article-card ul.wp-block-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 16px 0 24px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aks-page-article-card ul.wp-block-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}

.aks-page-article-card ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aks-red-primary, #e31e24);
}

/* Contact Card Box */
.aks-policy-contact-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--aks-red-primary, #e31e24) !important;
    border-radius: 12px !important;
    padding: 24px 28px !important;
    margin: 28px 0 !important;
    box-sizing: border-box;
}

.aks-policy-contact-card h3.wp-block-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.aks-policy-contact-card .aks-contact-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 !important;
    font-size: 15px;
    color: #334155;
}

.aks-policy-contact-card .aks-contact-card-row svg {
    color: var(--aks-red-primary, #e31e24);
    flex-shrink: 0;
}

.aks-policy-contact-card .aks-contact-card-row a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aks-policy-contact-card .aks-contact-card-row a:hover {
    color: var(--aks-red-primary, #e31e24);
}

/* Italic notes */
.aks-page-article-card em {
    color: #6b7280;
    font-size: 14px;
}

/* ==========================================================================
   3. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .aks-page-cover-container {
        min-height: 170px;
        margin-bottom: 24px !important;
        border-radius: 12px;
    }
    
    .aks-page-cover-content {
        padding: 30px 16px;
    }
    
    .aks-page-cover-title {
        font-size: 24px !important;
    }
    
    .aks-page-main {
        padding: 0 10px 50px 10px !important;
    }
    
    .aks-page-article-card {
        padding: 28px 20px;
        border-radius: 12px;
    }
    
    .aks-page-article-card h2.wp-block-heading {
        font-size: 18px !important;
        margin-top: 28px !important;
    }
    
    .aks-policy-lead {
        font-size: 15px !important;
    }
    
    .aks-policy-contact-card {
        padding: 18px !important;
    }
    
    .aks-policy-contact-card .aks-contact-card-row {
        flex-wrap: wrap;
        gap: 6px;
    }
}
