:root {
    --primary-color: #0d47a1;
    /* Blue 900 */
    --secondary-color: #1565c0;
    /* Blue 800 */
    --accent-color: #ffd600;
    /* Amber A700 */
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --primary-soft: rgba(13, 71, 161, 0.1);
    --success-soft: rgba(25, 135, 84, 0.1);
    --warning-soft: rgba(255, 193, 7, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Modern Hero Section */
.hero-modern {
    background-color: var(--primary-color);
    padding: 160px 0 120px;
    /* Increased padding for grander feel */
    position: relative;
    overflow: hidden;
    /* Deep blue base if image loads slow */
}

.hero-modern .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Background image now set dynamically via inline style */
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Gradient Mask to ensure text readability + Premium Look */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(21, 101, 192, 0.85) 60%, rgba(21, 101, 192, 0.7) 100%);
    z-index: 1;
    mix-blend-mode: multiply;
    /* Blends color with image */
}

/* Second subtle gradient for depth */
.hero-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

/* Ensure content is above overlays */
.hero-modern .container {
    position: relative;
    z-index: 2;
}

.hero-modern h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.delay-300 {
    animation-delay: 0.6s;
}

/* Page Header */
.page-header {
    margin-top: -1px;
    /* Fix potential gap */
}

/* Utilities */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.news-img-wrapper {
    overflow: hidden;
}

.news-card:hover .news-img-wrapper img,
.news-card:hover .bg-secondary span {
    transform: scale(1.05);
    /* Zoom effect if we had real images, scaling the placeholder span for now */
    transition: transform 0.5s ease;
}

/* General Layout */
.section-heading {
    color: var(--dark-text);
    position: relative;
    display: inline-block;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

footer {
    background-color: #0a367a;
    /* Darker shade */
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

/* Modern Organizational Chart Styles */
.org-container {
    padding: 3rem 0;
    overflow-x: auto;
    background: #f8f9fa;
}

.org-chart {
    display: flex;
    justify-content: center;
    min-width: 900px;
}

.org-chart ul {
    padding-top: 40px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    padding-left: 0;
}

.org-chart li {
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 40px 10px 0 10px;
    transition: all 0.5s;
}

/* Connection Lines */
.org-chart li::before,
.org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #cbd5e0;
    width: 50%;
    height: 40px;
}

.org-chart li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #cbd5e0;
}

.org-chart li:only-child::after,
.org-chart li:only-child::before {
    display: none;
}

.org-chart li:only-child {
    padding-top: 0;
}

.org-chart li:first-child::before,
.org-chart li:last-child::after {
    border: 0 none;
}

.org-chart li:last-child::before {
    border-right: 2px solid #cbd5e0;
    border-radius: 0 10px 0 0;
}

.org-chart li:first-child::after {
    border-radius: 10px 0 0 0;
}

.org-chart ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #cbd5e0;
    width: 0;
    height: 40px;
}

/* Modern Card Design */
.org-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    display: inline-block;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.org-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(13, 71, 161, 0.12);
    border-color: var(--primary-color);
}

.org-photo-wrapper {
    width: 48px;
    height: 48px;
    margin: -35px auto 10px;
    border-radius: 50% !important;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #edf2f7;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-photo-wrapper:hover {
    transform: scale(1.1);
}

.org-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.org-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 2px;
}

.org-level-1 .org-card {
    background: linear-gradient(to bottom, #ffffff, #f0f4f8);
    border-top: 4px solid var(--primary-color);
}

.org-level-2 .org-card {
    border-top: 4px solid var(--secondary-color);
}

.org-level-3 .org-card {
    border-top: 4px solid #4a5568;
}

.card-icon {
    /* Legacy support for other pages if needed */
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Bento Grid Styles */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 15rem;
    /* Reduced height for better fit */
    gap: 1.5rem;
    padding: 1rem;
}

.bento-item {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Responsive Grid Helper Classes */
.col-span-12 {
    grid-column: span 12;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

.row-span-2 {
    grid-row: span 2;
}

.row-span-1 {
    grid-row: span 1;
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .col-span-8,
    .col-span-6,
    .col-span-4 {
        grid-column: span 1;
    }
}

/* Bento Item Specifics */
.bento-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.bento-content p {
    color: #6c757d;
    font-size: 0.95rem;
}

.bento-icon-lg {
    font-size: 3.5rem;
    opacity: 0.1;
    position: absolute;
    bottom: -10px;
    right: 10px;
    transform: rotate(-15deg);
    transition: all 0.4s ease;
}

.bento-item:hover .bento-icon-lg {
    opacity: 0.2;
    transform: rotate(0) scale(1.2);
}

.bento-decoration-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}