/**
 * Enterprise Dynamic UI Builder - Frontend Styles
 * Bootstrap 5.3 + Minimal Custom CSS
 * Uses Bootstrap utilities: spacing, grid, shadows, borders
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --eduib-primary: #1a365d;
    --eduib-primary-light: #2c5282;
    --eduib-accent: #ed8936;
    --eduib-navy: #0f2744;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.eduib-section-title {
    color: var(--eduib-navy);
    line-height: 1.3;
}

.eduib-card-title {
    color: var(--eduib-navy);
    font-weight: 600;
}

/* ========================================
   HERO SECTION
   ======================================== */
.eduib-hero {
    background-size: cover;
    background-position: center;
}

.heroinnerpage-bnk {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.heroinnerpage-bnk .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .heroinnerpage-bnk { min-height: 240px; }
    .heroinnerpage-bnk .container { padding-top: 2rem; padding-bottom: 2rem; }
}
@media (max-width: 575.98px) {
    .heroinnerpage-bnk { min-height: 180px; }
}

.eduib-hero .object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.eduib-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,54,93,0.95) 0%, rgba(15,39,68,0.9) 100%);
}

.eduib-check-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-weight: bold;
    font-size: 14px;
}

/* ========================================
   HISTORY / MILESTONE
   ======================================== */
.eduib-year-card {
    min-height: 280px;
}

.eduib-year-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.eduib-year-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eduib-year-logo img {
    max-width: 100px;
    max-height: 100px;
    filter: brightness(0) invert(1);
}

.eduib-history-content-card {
    min-height: 280px;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    overflow: hidden;
}

/* Chevron Background Pattern */
.eduib-chevron-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.eduib-chevron {
    position: absolute;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    transform: skewX(-25deg);
}

.eduib-chevron-1 {
    right: 20%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.eduib-chevron-2 {
    right: 5%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.02) 100%);
}

.eduib-chevron-3 {
    right: -10%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, transparent 100%);
}

.eduib-history-logo-main {
    max-width: 200px;
    max-height: 200px;
}

.eduib-history-title {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   NEW DESIGN ELEMENTS
   ======================================== */

/* Title Underline */
.eduib-title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #f97316 100%);
    border-radius: 2px;
}

/* Quote Box */
.eduib-quote-box {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Badge Blue */
.eduib-badge-blue {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Green Check */
.eduib-check-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* Icon Box */
.eduib-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.eduib-about-img {
    transition: transform 0.3s ease;
}

.eduib-about-img:hover {
    transform: translateY(-5px);
}

/* ========================================
   CONTENT CARDS - FLEXIBLE LAYOUTS
   ======================================== */
.eduib-card-icon {
    display: inline-flex;
}

.eduib-card-icon i {
    font-size: 2rem;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.eduib-service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eduib-service-card:hover {
    transform: translateY(-8px);
}

.eduib-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--eduib-primary) 0%, var(--eduib-primary-light) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.eduib-service-icon i {
    display: none;
}

.eduib-service-img img {
    transition: transform 0.5s ease;
}

.eduib-service-card:hover .eduib-service-img img {
    transform: scale(1.05);
}

/* ========================================
   TEAM CARDS
   ======================================== */
.eduib-team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eduib-team-card:hover {
    transform: translateY(-5px);
}

.eduib-team-img {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.eduib-team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eduib-team-card:hover .eduib-team-img img {
    transform: scale(1.1);
}

.eduib-team-social {
    position: absolute;
    inset: 0;
    background: rgba(26,54,93,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eduib-team-card:hover .eduib-team-social {
    opacity: 1;
}

.eduib-team-social a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--eduib-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.eduib-team-social a:hover {
    background: var(--eduib-accent);
    color: #fff;
}

/* ========================================
   REPORTS TABLE
   ======================================== */
.eduib-report-year {
    background: var(--eduib-accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.eduib-faq .accordion-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
}

.eduib-faq .accordion-button {
    background: transparent;
    box-shadow: none;
    padding: 1.25rem 0;
    font-weight: 600;
    color: var(--eduib-navy);
}

.eduib-faq .accordion-button:not(.collapsed) {
    color: var(--eduib-primary);
    background: transparent;
}

.eduib-faq-number {
    width: 2rem;
    height: 2rem;
    background: var(--eduib-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.eduib-testimonial-card {
    transition: transform 0.3s ease;
}

.eduib-testimonial-card:hover {
    transform: translateY(-5px);
}

.eduib-testimonial-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 4px solid #fff;
}

.eduib-quote-icon {
    color: var(--eduib-accent);
    font-size: 2rem;
    opacity: 0.3;
}

/* ========================================
   CTA SECTION
   ======================================== */
.eduib-cta-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,54,93,0.95) 0%, rgba(44,82,130,0.95) 100%);
}

.eduib-cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15,39,68,0.95);
}

/* ========================================
   GALLERY
   ======================================== */
.eduib-gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.eduib-gallery-item img {
    transition: transform 0.5s ease;
}

.eduib-gallery-item:hover img {
    transform: scale(1.08);
}

.eduib-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,54,93,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eduib-gallery-item:hover .eduib-gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.eduib-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.eduib-lightbox.active {
    display: flex;
}

.eduib-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}

.eduib-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.eduib-lightbox-close:hover { opacity: 1; }

.eduib-lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.eduib-animate {
    opacity: 0;
}

.eduib-animate.in-view {
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

.eduib-fade-up.in-view { animation-name: eduibFadeUp; }
.eduib-fade-left.in-view { animation-name: eduibFadeLeft; }
.eduib-fade-right.in-view { animation-name: eduibFadeRight; }
.eduib-zoom-in.in-view { animation-name: eduibZoomIn; }

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

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

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

@keyframes eduibZoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ========================================
   COUNTER ANIMATION
   ======================================== */
.eduib-counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
    .eduib-counter-number {
        font-size: 2rem;
    }
    
    .eduib-hero-title {
        font-size: 2rem;
    }
}

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */
.eduib-breadcrumb {
    font-size: 0.875rem;
}

.eduib-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}

.eduib-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
}

.eduib-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.eduib-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.eduib-breadcrumb .breadcrumb-item.active {
    font-weight: 600;
}

.eduib-breadcrumb .text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}


/* ========================================
   HOVER EFFECTS
   ======================================== */
.eduib-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eduib-hover-lift:hover {
    transform: translateY(-5px);
}

