/* =============================================================================
   FOOTER PAGES & LOGIN PAGE UNIFIED UI SYSTEM
   Extracted from Eduskillx Design System
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. GLOBAL CONTAINER LIMITS & BACKGROUND (For Footer / Policy Pages)
   ----------------------------------------------------------------------------- */
/* Force pure white background for all policy/footer sections and remove muddy grays */
body.service-details-page .main section,
body.service-details-page .main section.light-background,
body.service-details-page .main section.features-2 {
    padding: 80px 0;
    background-color: #ffffff !important; 
}

/* Ensure the body itself doesn't bleed dark colors */
body.service-details-page {
    background-color: #ffffff !important;
}

body.service-details-page .main section > .container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* Ensure content doesn't stick to edges on any footer page */
body:not(.index-page) .main section[id^="features"] > .container {
    max-width: 1100px;
    padding: 0 30px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.service-details-page .main section > .container,
    body:not(.index-page) .main section[id^="features"] > .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

/* -----------------------------------------------------------------------------
   2. TYPOGRAPHY HIERARCHY & SPACING
   ----------------------------------------------------------------------------- */
body.service-details-page .main section .container h2,
body.service-details-page .main section .container h3,
body.service-details-page .main section .container h4 {
    color: #002366 !important; /* Primary Navy Blue */
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

body.service-details-page .main section .container h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

body.service-details-page .main section .container p,
body.service-details-page .main section .container li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563 !important; /* Slate gray, highly readable */
    margin-bottom: 18px;
    text-align: justify;
}

/* Eduskillx Constructor-style heading underline for policy pages */
body.service-details-page .main section .container.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background-color: rgba(0, 35, 102, 0.15);
}

body.service-details-page .main section .container.section-title h2::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: #002366;
    border-radius: 3px;
    z-index: 1;
}

body.service-details-page .main section .container b,
body.service-details-page .main section .container strong {
    color: #0a1a33 !important;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

body.service-details-page .main section .container a {
    color: #2778D6; /* Tech Blue */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.service-details-page .main section .container a:hover {
    color: #002366;
    text-decoration: underline;
}

/* Footer Page Lists */
body.service-details-page .main section .container ul {
    padding-left: 0;
    list-style-type: none;
    margin: 1.5rem 0;
}

body.service-details-page .main section .container ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 0.8rem;
    background-color: transparent;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    text-align: left;
    color: #4b5563 !important;
}

body.service-details-page .main section .container ul li:hover {
    background-color: transparent;
    transform: translateX(8px);
    color: #002366 !important;
}

body.service-details-page .main section .container ul li::before {
    content: '\2022'; /* bullet point */
    position: absolute;
    left: 8px;
    top: -2px;
    color: #2778D6;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

body.service-details-page .main section .container ul li:hover::before {
    color: #002366;
}

/* -----------------------------------------------------------------------------
   3. PREMIUM CARD HOVER EFFECTS FOR GRIDS (like Data Protection)
   ----------------------------------------------------------------------------- */
/* Wrap bootstrap columns into modern cards */
body.service-details-page .main section .container .row.g-5 > div {
    background-color: #ffffff;
    border: 1px solid rgba(0, 35, 102, 0.08); 
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

body.service-details-page .main section .container .row.g-5 > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 35, 102, 0.08);
    border-color: #2778D6;
    background-color: #fafcff;
}

/* Custom styling for icons inside these grids */
body.service-details-page .main section .container .row.g-5 > div i.bi {
    color: #2778D6 !important;
    font-weight: bold;
    margin-right: 8px;
}

/* Ensure no inner padding messes up the bottom of columns */
body.service-details-page .main section .container .row.g-5 {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* -----------------------------------------------------------------------------
   4. PREMIUM TABLE STYLES (like Policy Tables)
   ----------------------------------------------------------------------------- */
body.service-details-page .main section .container table {
    width: 100%;
    margin: 2.5rem 0;
    border-collapse: separate; /* Required for border-radius on tables */
    border-spacing: 0;
    border: 1px solid #e0e5f2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

body.service-details-page .main section .container table th,
body.service-details-page .main section .container table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e0e5f2;
    color: #4b5563;
    transition: all 0.3s ease;
}

body.service-details-page .main section .container table td {
    background-color: #ffffff;
}

body.service-details-page .main section .container table th {
    background-color: #f4f8ff;
    font-weight: 700;
    color: #002366 !important;
    font-size: 1.05rem;
    border-bottom: 2px solid #d0e1fd;
}

body.service-details-page .main section .container table tr {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.service-details-page .main section .container table tr:last-child th,
body.service-details-page .main section .container table tr:last-child td {
    border-bottom: none;
}

body.service-details-page .main section .container table tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* Premium Row Hover Effect */
body.service-details-page .main section .container table tr:hover td {
    background-color: #ebf3ff !important;
    position: relative;
    z-index: 10;
}

body.service-details-page .main section .container table td b {
    color: #002366 !important;
    font-size: 1.05rem;
    margin-top: 0;
}

/* -----------------------------------------------------------------------------
   5. LOGIN PAGE UI FIXES
   ----------------------------------------------------------------------------- */
.login-section {
    min-height: calc(100vh - 80px); /* Adjust based on header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 15px;
    background-color: #f4f7f6;
}

.login-section > .container {
    max-width: 1100px;
    margin: 0 auto;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 35, 102, 0.1);
    margin: 0 auto;
    width: 100%;
}

.login-title {
    color: #002366;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Spacing */
.login-form .mb-3,
.login-form .mb-4 {
    margin-bottom: 1.5rem !important; /* Forces breathing room */
}

.login-form .form-label {
    color: #444;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: block;
    font-weight: 700;
}

.login-form .form-control {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fafbfe;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #002366;
    box-shadow: 0 0 0 4px rgba(0, 35, 102, 0.1);
    background-color: #ffffff;
    outline: none;
}

.login-form .btn-login-submit {
    background-color: #002366;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-top: 1.5rem;
    border: none;
}

.login-form .btn-login-submit:hover {
    background-color: #001540;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.2);
    color: #ffffff;
}

.login-footer-text {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.forgot-link {
    color: #002366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #d4a017;
    text-decoration: underline;
}

.registration-prompt {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-register-alt {
    border: 1px solid #002366;
    color: #002366;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-register-alt:hover {
    background-color: #002366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 35, 102, 0.2);
}

/* -----------------------------------------------------------------------------
   6. RESPONSIVE BEHAVIOR
   ----------------------------------------------------------------------------- */
@media (max-width: 991px) {
    body.service-details-page .main section .container h2 {
        font-size: 1.75rem;
    }
    .login-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    body.service-details-page .main section > .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    body.service-details-page .main section,
    .login-section {
        padding: 40px 15px;
    }

    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .login-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    body.service-details-page .main section .container p,
    body.service-details-page .main section .container li {
        font-size: 0.95rem;
        line-height: 1.65;
        text-align: left; /* Easier to read on mobile than justify */
    }

    /* Stack tables for better mobile styling */
    body.service-details-page .main section .container table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1.25rem;
    }
    body.service-details-page .main section .container h2 {
        font-size: 1.5rem;
    }
    body.service-details-page .main section .container h3 {
        font-size: 1.25rem;
    }
}
