/* Import Noto Sans Devanagari Google Font for premium Hindi typography */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;700;800&display=swap');

.history-hero-section {
    background-color: #f7f4ed; /* Cream background matching the graphic edge */
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #0c5836;
}

/* Texture overlay for extra premium look */
.history-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, #000 10%, transparent 11%), radial-gradient(circle, #000 10%, transparent 11%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Left Column Content styling */
.history-hero-content-col {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Container alignment calculations to line up text with standard Bootstrap containers */
@media (min-width: 768px) {
    .history-hero-content-col {
        padding-left: calc((100vw - 720px) / 2 + 15px);
        padding-right: 2rem;
    }
}
@media (min-width: 992px) {
    .history-hero-content-col {
        padding-left: calc((100vw - 960px) / 2 + 15px);
    }
}
@media (min-width: 1200px) {
    .history-hero-content-col {
        padding-left: calc((100vw - 1140px) / 2 + 15px);
    }
}
@media (min-width: 1400px) {
    .history-hero-content-col {
        padding-left: calc((100vw - 1320px) / 2 + 15px);
    }
}

.history-hero-title-green {
    font-family: 'Noto Sans Devanagari', 'Roboto', sans-serif;
    color: #0d5c34; /* Deep Forest Green */
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.history-hero-title-yellow {
    font-family: 'Noto Sans Devanagari', 'Roboto', sans-serif;
    color: #f39c12; /* Vibrant Gold/Yellow */
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 4.8rem);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Custom Green Divider */
.history-hero-divider {
    width: 65px;
    height: 5px;
    background: linear-gradient(90deg, #0d5c34 0%, #198754 100%);
    border-radius: 3px;
    margin-bottom: 1.8rem;
    position: relative;
    overflow: hidden;
}

.history-hero-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    animation: dividerShine 3s infinite ease-in-out;
}

@keyframes dividerShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.history-hero-text {
    font-family: 'Noto Sans Devanagari', 'Raleway', sans-serif;
    color: #3b3a36;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    font-weight: 500;
    max-width: 520px;
    margin-bottom: 0;
}

/* Right Column Graphic styling */
.history-hero-image-col {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out forwards;
}

.history-hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.history-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* Fade mask to blend the left side of the graphic into the cream background */
.history-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 25%;
    background: linear-gradient(90deg, #f7f4ed 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Decorative Slide Indicators (dots) */
.history-hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.history-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ==========================================================================
   Major Epochs of History (इतिहास के प्रमुख कालखंड) Section Styling
   ========================================================================== */

.history-epochs-section {
    background-color: #ffffff;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    position: relative;
}

.epochs-section-title-wrap {
    margin-bottom: 3.5rem;
}

.epochs-section-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.epochs-section-divider {
    width: 55px;
    height: 4px;
    background-color: #0c5836; /* Theme green line */
    border-radius: 2px;
}

/* Card Styling variables using theme accents */
.epoch-accent-green {
    --accent-color: #0d5c34;
    --border-color: #a3d9b9;
    --bg-color: #eaf8ee;
    --arrow-color: #0d5c34;
}

.epoch-accent-yellow {
    --accent-color: #f39c12;
    --border-color: #fde8a7;
    --bg-color: #fff9e6;
    --arrow-color: #f39c12;
}

.epoch-card {
    background: #ffffff;
    border: 1.5px solid #eaeaea;
    border-radius: 12px;
    padding: 1.25rem 0.75rem 1rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Circle Icon Circle styling */
.epoch-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.epoch-icon-circle svg {
    width: 28px !important;
    height: 28px !important;
}

.epoch-card-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

.epoch-card-years {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #777777;
    margin-bottom: 0.6rem;
}

.epoch-card-description {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes the arrow to the bottom */
}

/* Arrow indicator link */
.epoch-card-arrow-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
}

.epoch-card-arrow {
    display: inline-block;
    color: var(--arrow-color);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

@media (max-width: 991.98px) {
    .history-hero-section {
        min-height: auto;
        display: block;
        padding-top: 1rem;
    }
    
    .history-hero-content-col {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .history-hero-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .history-hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .history-hero-image-col {
        min-height: 320px;
    }
    
    .history-hero-image-wrapper {
        position: relative;
        height: 320px;
    }
    
    .history-hero-image-wrapper::before {
        width: 100%;
        height: 25%;
        background: linear-gradient(180deg, #f7f4ed 0%, transparent 100%);
        left: 0;
        top: 0;
        bottom: auto;
    }
    
    .history-epochs-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    .epochs-section-title-wrap {
        margin-bottom: 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .history-hero-content-col {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .history-hero-image-col {
        min-height: 240px;
    }
    
    .history-hero-image-wrapper {
        height: 240px;
    }
}

/* ==========================================================================
   Inspirational Personalities (प्रेरणास्रोत व्यक्तित्व) Section Styling
   ========================================================================== */

.history-personalities-section {
    background-color: #faf9f6; /* warm background separated from white epoch section */
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    position: relative;
    border-top: 1px solid #eaeaea;
}

.personalities-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}

.personalities-section-title-wrap {
    margin-bottom: 0;
}

.personalities-section-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.personalities-section-divider {
    width: 55px;
    height: 4px;
    background-color: #0c5836;
    border-radius: 2px;
}

.personalities-view-all-link {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    color: #0c5836;
    text-decoration: none;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.personalities-view-all-link:hover {
    color: #f39c12;
}

.personality-card {
    background: #ffffff;
    border: 1.5px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.personality-card-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f4ed; /* cream background matching portraits */
    display: flex;
    align-items: center;
    justify-content: center;
}

.personality-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personality-card-body {
    padding: 1.2rem 0.75rem;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.personality-card-name {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.personality-card-subtitle {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.4;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .personalities-header-wrap {
        margin-bottom: 2.5rem;
    }
    .history-personalities-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    .personalities-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   History Features & Promo (भारत के इतिहास की विशेषताएँ) Section Styling
   ========================================================================== */

.history-features-section {
    background-color: #ffffff;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    position: relative;
    border-top: 1px solid #eaeaea;
}

.features-card {
    background: #ffffff;
    border: 1.5px solid #eaeaea;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}

.features-card-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #0d5c34;
    background-color: #eaf8ee;
    color: #0d5c34;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-circle svg {
    width: 22px;
    height: 22px;
}

.feature-content {
    flex-grow: 1;
}

.feature-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.feature-desc {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 0;
}

.promo-card {
    background-image: url('../../images/india_gate_banner.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border: 1.5px solid #eaeaea;
    border-radius: 16px;
    padding: 3.5rem 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    position: relative;
    z-index: 1;
}

/* Semi-transparent gradient overlay to ensure text is readable while keeping India Gate visible */
.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.85) 50%, rgba(251, 250, 247, 0.1) 100%);
    border-radius: 14px;
    z-index: 2;
    pointer-events: none;
}
 
.promo-card-content {  
    /* width: 60%;
    max-width: 520px; */
    z-index: 5;
    position: relative;
}

.promo-card-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    color: #0c5836;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.35;
    margin-bottom: 1.2rem;
}

.promo-card-desc {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 500;
    color: #3b3a36;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.promo-card-btn {
    background-color: #0c5836;
    color: #ffffff;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.promo-card-btn:hover {
    background-color: #0a482c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(12, 88, 54, 0.2);
}

.promo-card-btn-arrow {
    color: #f39c12; /* yellow arrow */
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .history-features-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    .features-card {
        padding: 2rem 1.5rem;
    }
    
    .promo-card {
        padding: 3rem 2rem;
    }
    
    .promo-card::before {
        background: rgba(251, 250, 247, 0.92) !important; /* solid cover on mobile */
    }
    
    .promo-card-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}
