/**
 * Chowdhury Group - Our History Page Stylesheet
 * File: assets/css/our-history.css
 */

/* ==========================================================================
   PAGE BANNER / BREADCRUMB
   ========================================================================== */
.cg-page-banner {
    position: relative;
    padding: 4rem 0 3.5rem 0;
    background: linear-gradient(135deg, #090d1a 0%, #1e1b4b 60%, #0f172a 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cg-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.cg-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cg-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.cg-banner-title {
    font-family: var(--font-heading);
    font-size: 2.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.cg-banner-title span.highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cg-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.cg-breadcrumbs a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.cg-breadcrumbs a:hover {
    color: #ffffff;
}

.cg-breadcrumbs i {
    font-size: 0.7rem;
    color: #64748b;
}

.cg-breadcrumbs span.current {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ==========================================================================
   MAIN HISTORY SECTION & LAYOUT
   ========================================================================== */
.cg-history-section {
    padding: 4.5rem 0 5.5rem 0;
    background: #f8fafc;
    position: relative;
}

.cg-history-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: flex-start;
}

/* Main Story Card (Left Column) */
.cg-history-main-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 3rem;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.06);
}

.cg-history-intro-box {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(56, 189, 248, 0.06) 100%);
    border-left: 4px solid var(--primary-600);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin-bottom: 2rem;
}

.cg-history-intro-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.cg-history-intro-desc {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.7;
}

/* Timeline Cards List */
.cg-history-points-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin: 2rem 0;
}

.cg-history-point-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.cg-history-point-item:hover {
    background: #ffffff;
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.cg-history-point-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cg-history-point-text {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #1e293b;
    font-weight: 500;
}

.cg-history-point-text strong {
    color: #0f172a;
    font-weight: 700;
}

/* Family Business Highlight Banner */
.cg-history-family-banner {
    padding: 1.35rem 1.6rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.cg-family-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cg-family-text {
    font-size: 0.95rem;
    color: #065f46;
    font-weight: 600;
    line-height: 1.5;
}

/* Formal Sign-off Section */
.cg-history-signoff-row {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1.5px solid var(--border-light);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.cg-history-sign-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.35rem;
}

.cg-history-sign-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.cg-history-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.84rem;
    color: #334155;
    margin-top: 0.65rem;
}

.cg-history-contacts a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cg-history-contacts a:hover {
    color: var(--primary-600);
}

.cg-history-contacts span.label {
    font-weight: 700;
    color: #64748b;
    margin-right: 0.35rem;
}

.cg-btn-history-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.72rem 1.45rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transition: all 0.25s ease;
}

.cg-btn-history-contact:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.5);
}

/* ==========================================================================
   RIGHT SIDEBAR: AUTHENTIC FACTORY GALLERY CARDS
   ========================================================================== */
.cg-history-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}

.cg-history-gallery-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-history-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px -8px rgba(15, 23, 42, 0.12);
    border-color: rgba(79, 70, 229, 0.3);
}

.cg-history-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #0f172a;
    overflow: hidden;
}

.cg-history-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cg-history-gallery-card:hover .cg-history-img {
    transform: scale(1.06);
}

.cg-history-img-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cg-history-card-body {
    padding: 1.15rem 1.25rem;
}

.cg-history-card-caption {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.cg-history-card-caption i {
    color: var(--primary-600);
}

.cg-history-card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS FOR OUR-HISTORY.PHP
   ========================================================================== */
@media (max-width: 991px) {
    .cg-history-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cg-history-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .cg-history-main-card {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .cg-history-sidebar {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
}

@media (max-width: 640px) {
    .cg-page-banner {
        padding: 2.75rem 0 2.25rem 0;
    }

    .cg-banner-title {
        font-size: 1.75rem;
        margin-bottom: 0.65rem;
    }

    .cg-history-section {
        padding: 2.75rem 0 3.5rem 0;
    }

    .cg-history-main-card {
        padding: 1.5rem 1.15rem;
        border-radius: var(--radius-lg);
    }

    .cg-history-intro-box {
        padding: 1.15rem 1.15rem;
        margin-bottom: 1.35rem;
    }

    .cg-history-intro-title {
        font-size: 1.1rem;
    }

    .cg-history-intro-desc {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .cg-history-point-item {
        padding: 0.85rem 0.95rem;
        gap: 0.75rem;
    }

    .cg-history-point-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .cg-history-point-text {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .cg-history-family-banner {
        padding: 1rem 1.15rem;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .cg-family-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .cg-family-text {
        font-size: 0.85rem;
    }

    .cg-history-signoff-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.35rem;
        margin-top: 1.75rem;
        padding-top: 1.5rem;
    }

    .cg-btn-history-contact {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
    }
}
