/* ./assets/css/deal.css - CONSOLIDATED STYLES */

:root {
    --ak-primary: #004A7C;      /* Deeper Corporate Blue for headings, strong elements */
    --ak-secondary: #007BFF;    /* Brighter Blue for accents, icons, links */
    --ak-accent: #FFC107;       /* Gold/Yellow for highlights, CTA buttons */
    --ak-text-dark: #212529;    /* Main body text, very dark grey for high contrast on light bg */
    --ak-text-medium: #495057;  /* Slightly lighter grey for secondary text */
    --ak-text-light: #ffffff;   /* Text on dark backgrounds */
    --ak-bg-main: #f4f7f9;      /* Main page background - very light, slightly cool grey */
    --ak-bg-content: #ffffff;   /* Background for main content cards/sections */
    --ak-bg-subtle: #f8f9fa;    /* Subtle background for nested boxes like profile/terms */
    --ak-border: #dee2e6;       /* Standard border color */
    --ak-hero-overlay: rgba(0, 20, 40, 0.7); /* Dark overlay for hero image (if used) */

    /* Base font size variable - applied to body */
    --ak-font-size-base: 1.05rem;
    --ak-line-height-base: 1.75;
}

/* === GENERAL BODY & TYPOGRAPHY === */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--ak-text-dark);
    background-color: var(--ak-bg-main);
    font-size: var(--ak-font-size-base);
    line-height: var(--ak-line-height-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ak-primary);
    line-height: 1.3;
}

/* === NAVBAR === */
.navbar-brand img { max-height: 40px; }
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
    color: var(--ak-primary);
    font-weight: 600;
}

/* === HERO SECTION (Common for Listing and Detail) === */
.hero-section {
    background: linear-gradient(135deg, var(--ak-primary) 0%, var(--ak-secondary) 100%);
    padding: 80px 20px 70px 20px;
    text-align: center;
    color: var(--ak-text-light);
}
.hero-section .breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.85;
}
.hero-section .breadcrumb-item a {
    color: var(--ak-accent);
    text-decoration: none;
    font-weight: 500;
}
.hero-section .breadcrumb-item a:hover { text-decoration: underline; }
.hero-section .breadcrumb-item.active { color: var(--ak-text-light); }

.hero-section .hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--ak-text-light);
    margin-bottom: 15px;
}
.hero-section .hero-subtitle {
    font-size: 1.25rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto 10px auto;
    opacity: 0.9;
}

/* === MAIN CONTENT SECTION WRAPPER (Common) === */
.content-section {
    padding-top: 0; /* Content card will overlap hero */
    padding-bottom: 60px;
}
.content-card { /* Main white card holding content for both listing and detail */
    background-color: var(--ak-bg-content);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: -50px; /* Overlap hero slightly */
    position: relative;
    z-index: 2;
}

/* === HEADINGS WITHIN CONTENT CARD (Common & Detail Pages) === */
.content-card .section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ak-primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ak-secondary);
    display: inline-block;
}
.content-card .section-heading i {
    margin-right: 12px;
    color: var(--ak-secondary);
}
.content-card .subsection-heading { /* Used on Detail Pages */
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ak-primary);
    margin-top: 30px;
    margin-bottom: 18px;
}
 .content-card .subsection-heading i {
    margin-right: 10px;
    font-size: 0.9em;
    color: var(--ak-secondary);
}

/* === PARAGRAPHS & STRONG TEXT (Common within Content Card) === */
.content-card p {
    line-height: var(--ak-line-height-base);
    margin-bottom: 16px;
    color: var(--ak-text-dark);
}
.content-card strong {
    color: var(--ak-primary);
    font-weight: 600;
}

/* === LIST STYLING (Primarily for Detail Pages) === */
.content-card .styled-list { list-style: none; padding-left: 0; margin-bottom: 20px; }
.content-card .styled-list > li { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ak-border); }
.content-card .styled-list > li:last-child { border-bottom: none; }
.content-card .styled-list .list-icon { font-size: 1.3rem; color: var(--ak-secondary); margin-right: 18px; margin-top: 3px; min-width: 25px; text-align: center; }
.content-card .styled-list .list-item-label { font-weight: 600; font-size: 1.05em; color: var(--ak-primary); display: block; margin-bottom: 4px; }
.content-card .styled-list .list-item-text { font-size: 1em; color: var(--ak-text-medium); }

.content-card .nested-list { list-style: none; padding-left: 10px; margin-top: 8px; }
.content-card .nested-list li { font-size: 0.95em; padding: 4px 0; display: flex; align-items: center; color: var(--ak-text-medium); }
.content-card .nested-list .nested-list-icon { color: var(--ak-accent); margin-right: 8px; font-size: 0.85em; }

/* === INFO BOXES & GRIDS (Primarily for Detail Pages) === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 25px 0; }
.info-box { background-color: var(--ak-bg-subtle); padding: 25px; border-radius: 8px; border: 1px solid var(--ak-border); }
.info-box .info-box-heading { font-size: 1.25rem; font-weight: 600; color: var(--ak-secondary); margin-bottom: 15px; display: flex; align-items: center; }
.info-box .info-box-heading i { margin-right: 10px; font-size: 1.1em; }
.info-box p, .info-box .info-box-list { font-size: 0.95em; color: var(--ak-text-dark); margin-bottom: 8px; }
.info-box .info-box-list { padding-left: 20px; } /* For ol/ul within info-box */
.info-box .info-box-list li { margin-bottom: 5px; }
.info-box .info-box-list.no-bullets { list-style-type: none; padding-left: 0; } /* For key-value lists in info-box */
.info-box .info-box-list.no-bullets li { margin-bottom: 0.3rem; }
.info-box .info-box-list a { color: var(--ak-secondary); font-weight: 500; }
.info-box .info-box-list a:hover { text-decoration: underline; }

.content-card .disclaimer-text { font-style: italic; font-size: 0.9em; color: var(--ak-text-medium); margin-top: 20px; padding: 12px; background-color: var(--ak-bg-subtle); border-left: 3px solid var(--ak-accent); border-radius: 4px; }

/* === CALL TO ACTION (Primarily for Detail Pages) === */
.cta-section { text-align: center; margin-top: 40px; padding: 50px 20px; background-color: var(--ak-primary); border-radius: 8px; }
.cta-section .cta-heading { color: var(--ak-text-light); font-size: 1.8rem; font-weight: 600; margin-bottom: 15px; }
.cta-section .cta-text { color: #e0e8ef; font-size: 1.05rem; margin-bottom: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-button { display: inline-block; padding: 14px 32px; background-color: var(--ak-accent); color: var(--ak-primary); text-decoration: none; border-radius: 50px; font-size: 1.1rem; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-transform: uppercase; letter-spacing: 0.5px; }
.cta-button:hover { background-color: #FFD700; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.cta-button i { margin-right: 8px; }


/* === STYLES SPECIFIC TO DEALS SUMMARY (LISTING) PAGE === */
.deal-category-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}
.deal-category-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin: 4px;
    border-radius: 50px;
    border: 1px solid var(--ak-secondary);
    background-color: var(--ak-bg-content);
    color: var(--ak-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}
.deal-category-btn:hover,
.deal-category-btn.active {
    background-color: var(--ak-secondary);
    color: var(--ak-text-light);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Styles for deal sections and group titles on summary page */
.deal-section { /* This will be controlled by JS to show/hide */
    display: none; /* Hidden by default, JS makes 'active' section visible */
    padding: 10px 0;
}
.deal-section.active {
    display: block;
}
.deal-group-title { /* For headings above each category group on summary page */
    font-size: 1.8rem;
    color: var(--ak-primary);
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ak-accent);
    text-transform: capitalize;
}

/* Styles for individual deal cards on the summary page */
.deal-section .card { /* Targeting cards within any .deal-section on summary page */
    border: 1px solid var(--ak-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    background-color: var(--ak-bg-content);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%; /* For equal height cards in a row */
    display: flex;
    flex-direction: column;
    margin-bottom: 30px; /* Space between cards */
    position: relative; /* For the deal-type-label */
}
.deal-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.deal-section .card-header-icon {
    font-size: 2.2rem;
    color: var(--ak-secondary);
    margin-bottom: 12px;
    text-align: center;
    padding-top: 15px; /* Space above icon */
}

.deal-section .card-body h2.deal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem; /* Slightly smaller for summary cards */
    line-height: 1.4;
    font-weight: 600;
    color: var(--ak-primary);
    margin-top: 5px; /* Space below icon/type-label */
    margin-bottom: 8px;
    text-align: center;
    min-height: 45px; /* Adjust for 2-3 lines */
}

.deal-section .card-body p.deal-description {
    color: var(--ak-text-medium);
    line-height: 1.5;
    font-size: 0.85rem; /* Smaller description for summary */
    margin-bottom: 15px;
    text-align: center;
    flex-grow: 1; /* Allows description to take available space */
    padding: 0 10px; /* Add some horizontal padding */
}

/* Deal Type Label on Card (Summary Page) */
.deal-type-label {
    position: absolute;
    top: 12px;
    left: 12px; /* Changed to left for better visibility with icon centered */
    background-color: var(--ak-accent);
    color: var(--ak-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: capitalize;
    z-index: 1;
}

.deal-section .learn-more-btn { /* Button on summary cards */
    display: block;
    width: fit-content;
    margin: 15px auto 20px auto; /* Added bottom margin */
    padding: 7px 20px; /* Slightly smaller */
    border: 2px solid var(--ak-secondary);
    border-radius: 25px;
    color: var(--ak-secondary);
    background-color: transparent;
    font-size: 0.85rem; /* Slightly smaller */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.deal-section .learn-more-btn i { margin-left: 5px; }
.deal-section .learn-more-btn:hover {
    background-color: var(--ak-secondary);
    color: var(--ak-text-light);
}

/* Table styling for financial data on detail pages */
.table {
    margin-top: 20px;
}
.table thead.table-primary {
    background-color: var(--ak-primary);
    color: var(--ak-text-light);
}
.table-hover tbody tr:hover {
    background-color: var(--ak-bg-subtle);
}


/* === FOOTER === */
footer.bg-light { background-color: var(--ak-bg-subtle) !important; border-top: 1px solid var(--ak-border) !important; }
footer .text-dark { color: var(--ak-text-medium) !important; }
footer a:hover { color: var(--ak-primary) !important; }

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 992px) {
    .hero-section .hero-title { font-size: 2.4rem; }
    .content-card .section-heading { font-size: 1.8rem; }
    .content-card .subsection-heading { font-size: 1.4rem; }

    .deal-category-btn { padding: 7px 14px; font-size: 0.85rem; }
    .deal-group-title { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    :root {
         /* --ak-font-size-base: 1rem; */ /* Optional: reduce base on mobile */
    }
    .hero-section { padding: 70px 20px 50px 20px; background-attachment: scroll; }
    .hero-section .hero-title { font-size: 2rem; }
    .hero-section .hero-subtitle { font-size: 1.05rem; }

    .content-card { margin-top: -40px; padding: 30px 20px; }
    .content-card .section-heading { font-size: 1.6rem; }
    .content-card .subsection-heading { font-size: 1.3rem; }
    .info-grid { grid-template-columns: 1fr; }

    .cta-section { padding: 40px 20px; }
    .cta-section .cta-heading { font-size: 1.6rem; }

    .deal-category-group { justify-content: center; }
    .deal-category-btn { flex-grow: 1; min-width: 110px; text-align: center; }
    .deal-group-title { font-size: 1.5rem; }
    .deal-section .card-body h2.deal-title { font-size: 1.1rem; min-height: 40px;}
    .deal-section .card-body p.deal-description { font-size: 0.8rem; }
    .deal-section .learn-more-btn { font-size: 0.8rem; padding: 6px 18px; }
}