/* ============================================================
   History Page — History.css
   Extends: style.css (Satyadeo College Gouripur)
   ============================================================ */

/* ============================================================
   INNER PAGE BANNER
   ============================================================ */
.inner-page-banner {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 60%, var(--primary-blue-light) 100%);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}

.inner-page-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(253, 163, 27, 0.10);
    pointer-events: none;
}

.inner-page-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.inner-banner-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-orange-light);
    margin-bottom: 14px;
}

.inner-banner-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

.inner-banner-title span {
    color: var(--primary-orange-light);
}

.inner-banner-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.inner-banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.inner-banner-breadcrumb a:hover {
    color: var(--primary-orange-light);
}

.inner-banner-breadcrumb .separator {
    color: var(--primary-orange);
    font-size: 0.7rem;
}

.banner-dots {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    opacity: 0.18;
}

.banner-dots span {
    display: block;
    width: 7px;
    height: 7px;
    background: var(--white);
    border-radius: 50%;
}

/* ============================================================
   HISTORY INTRO SECTION
   ============================================================ */
.history-intro-section {
    padding: 90px 0 70px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Subtle watermark circle behind content */
.history-intro-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253,163,27,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- College Image Card ---- */
.history-img-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.history-img-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(17, 110, 99, 0.75) 100%
    );
    z-index: 1;
    border-radius: 24px;
}

.history-img-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    transition: transform 0.6s ease;
}

.history-img-card:hover img {
    transform: scale(1.04);
}

/* Est. badge overlaid on image */
.history-est-badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 14px 20px;
}

.history-est-badge .est-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(253,163,27,0.4);
}

.history-est-badge .est-text {
    color: var(--white);
}

.history-est-badge .est-text strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
}

.history-est-badge .est-text span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Top-right tag */
.history-img-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(253,163,27,0.4);
}

/* ---- Right: Intro Content ---- */
.history-content-col {
    padding-left: 14px;
}

.history-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 14px;
}

.history-pretitle::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.history-heading {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 10px;
}

.history-heading span {
    color: var(--primary-blue);
}

.history-sub {
    font-size: 0.92rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.history-intro-text {
    font-size: 0.97rem;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Highlight quote box */
.history-quote-box {
    background: linear-gradient(135deg, rgba(17,110,99,0.06), rgba(253,163,27,0.04));
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 14px 14px 0;
    padding: 18px 22px;
    margin: 26px 0 28px;
    position: relative;
}

.history-quote-box p {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

.history-quote-mark {
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
    opacity: 0.2;
}

/* ============================================================
   QUICK FACTS STRIP
   ============================================================ */
.history-facts-strip {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.history-facts-strip::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.history-facts-strip::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -40px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(253,163,27,0.07);
    pointer-events: none;
}

.fact-card {
    text-align: center;
    padding: 28px 20px;
    position: relative;
}

.fact-card + .fact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.fact-icon-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(253,163,27,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-orange-light);
    margin: 0 auto 16px;
    background: rgba(253,163,27,0.08);
    transition: var(--transition);
}

.fact-card:hover .fact-icon-ring {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    transform: scale(1.08);
}

.fact-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.fact-number sup {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-orange-light);
    vertical-align: super;
}

.fact-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.history-timeline-section {
    padding: 90px 0 100px;
    background: var(--light-bg);
    position: relative;
}

.section-pretitle-center {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 12px;
    justify-content: center;
}

.section-pretitle-center::before,
.section-pretitle-center::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.section-heading-center {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
}

.section-heading-center span {
    color: var(--primary-blue);
}

.section-sub-center {
    font-size: 0.93rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

/* Timeline track */
.history-timeline {
    position: relative;
    padding: 0 0 20px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-blue), var(--primary-orange));
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Individual timeline item */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 36px);
    margin-bottom: 48px;
    position: relative;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 36px);
}

/* Centre dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 24px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 4px solid var(--primary-orange);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 0 4px rgba(253,163,27,0.15);
}

.timeline-item:hover::after {
    background: var(--primary-orange);
    box-shadow: 0 0 0 6px rgba(253,163,27,0.2);
    transform: translateX(-50%) scale(1.15);
}

/* Card */
.timeline-card {
    background: var(--white);
    border-radius: 16px;
    padding: 22px 26px;
    max-width: 380px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-grey);
    position: relative;
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(253,163,27,0.3);
    transform: translateY(-3px);
}

/* Arrow pointing to center line */
.timeline-item:not(.right) .timeline-card::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 22px;
    border: 10px solid transparent;
    border-left-color: var(--white);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.04));
}

.timeline-item.right .timeline-card::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 22px;
    border: 10px solid transparent;
    border-right-color: var(--white);
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.04));
}

.timeline-year {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.timeline-card h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   HIGHLIGHTS / KEY INFO CARDS
   ============================================================ */
.history-highlights-section {
    padding: 80px 0 90px;
    background: var(--white);
}

.highlight-card {
    background: var(--white);
    border-radius: 18px;
    padding: 30px 26px;
    border: 1px solid var(--light-grey);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    transition: var(--transition);
}

.highlight-card.orange::before { background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-dark)); }
.highlight-card.teal::before   { background: linear-gradient(90deg, var(--primary-blue),   var(--primary-blue-dark));   }

.highlight-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: transparent;
}

.highlight-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 18px;
    transition: var(--transition);
}

.highlight-card.orange .highlight-icon { background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark)); box-shadow: 0 6px 18px rgba(253,163,27,0.3); }
.highlight-card.teal   .highlight-icon { background: linear-gradient(135deg, var(--primary-blue),   var(--primary-blue-dark));   box-shadow: 0 6px 18px rgba(17,110,99,0.25);  }

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
}

.highlight-card h5 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .inner-banner-title   { font-size: 2.2rem; }
    .history-heading,
    .section-heading-center { font-size: 2rem; }
    .history-content-col  { padding-left: 0; margin-top: 36px; }
    .history-img-card img { height: 340px; }

    /* Collapse timeline to single column */
    .history-timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item.right {
        justify-content: flex-start;
        padding-left: 56px;
        padding-right: 0;
    }
    .timeline-item::after {
        left: 20px;
        transform: translateX(-50%);
    }
    .timeline-item:hover::after { transform: translateX(-50%) scale(1.15); }
    .timeline-item:not(.right) .timeline-card::after { display: none; }
    .timeline-item.right .timeline-card::after {
        left: -10px;
        right: auto;
        border-right-color: var(--white);
        border-left-color: transparent;
    }
    .timeline-card { max-width: 100%; }

    .fact-number { font-size: 2rem; }
}

@media (max-width: 767px) {
    .inner-page-banner { padding: 52px 0 44px; }
    .inner-banner-title { font-size: 1.75rem; }
    .banner-dots        { display: none; }
    .history-intro-section,
    .history-timeline-section,
    .history-highlights-section { padding: 60px 0 70px; }
    .history-img-card img  { height: 260px; }
    .history-facts-strip   { padding: 40px 0; }
    .fact-card + .fact-card::before { display: none; }
    .section-heading-center { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .history-est-badge { flex-direction: column; gap: 8px; padding: 14px 16px; text-align: center; }
}
