/* Root Variables */
:root {
    --primary-color: #1a237e;     /* Deep Blue */
    --secondary-color: #283593;    /* Slightly lighter blue */
    --accent-color: #1e88e5;       /* Bright blue */
    --light-bg: #f5f6fa;          /* Light background */
    --card-hover: #ffffff;        /* White */
    --text-dark: #1a237e;         /* Dark blue for text */
    --text-light: #546e7a;        /* Blue-gray for muted text */
    --success-color: #43a047;     /* Green */
    --warning-color: #fb8c00;     /* Orange */
    --danger-color: #e53935;      /* Red */
    --bg-primary: #f8f9ff;        /* Light blue-tinted white */
    --bg-secondary: #ffffff;      /* Pure white */
    --bg-accent: #f1f5f9;        /* Light gray with blue tint */
    --section-padding: 5rem;      /* Consistent section padding */
    --header-height: 76px;        /* Navbar height */
}

html, body {
    height: 100%;
    margin: 0;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout */
.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: rgb(199, 210, 236);
    box-shadow: 0 2px 10px rgba(83, 162, 211, 0.1);
    padding: 1rem 0;
    min-height: 76px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    padding: 0;
}

.navbar-brand span {
    margin-left: 0.5rem;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu {
    margin-top: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(28, 66, 119, 0.92), rgba(28, 66, 119, 0.95)),
                url('/static/your-background-image.png') no-repeat center center;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    margin-top: -25px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.hero-logo {
    height: 450px;
    width: auto;
    object-fit: contain;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

.page-header {
    position: relative;
    padding: 8rem 0 4rem;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(44, 82, 130, 0.92), rgba(44, 82, 130, 0.95));
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
}

.page-header .page-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-top: 0;
}

.page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
    padding-top: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title.text-start {
    text-align: left;
    margin-bottom: 2rem;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Card Styles */
.service-card, .card {
    border: none;
    border-radius: 15px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.15);
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Fixed Image Container for Teams */
.team-image-container {
    width: 100%;
    height: 200px; /* Reduced from 280px */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border-radius: 15px 15px 0 0;
    margin: 0 auto;
    max-width: 300px; /* Added max-width */
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Changed to center top */
    transition: transform 0.3s ease;
}

.team-image:hover {
    transform: scale(1.05);
}

.team-image-flexible {
    width: 100%;
    min-height: 250px;
    max-height: 320px;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

/* Card Image Top - Override Bootstrap default */
.card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center; /* Changed from 'center top' to 'center center' */
    border-radius: 15px 15px 0 0; /* Only round top corners to match card */
    transition: transform 0.3s ease;
}

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

/* Team Role/Position Styling */
.team-role {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Equal height cards */
.team-section .row {
    display: flex;
    flex-wrap: wrap;
}

.team-section [class*="col-"] {
    display: flex;
    margin-bottom: 2rem;
}

/* Leadership section specific */
.leadership-section .service-card {
    max-width: 100%;
    margin: 0 auto;
}

/* Alternative: Circle images for team (optional) */
.team-img-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.1);
    transition: all 0.3s ease;
}

.team-img-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.15);
}

/* Placeholder for missing images */
.team-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-placeholder i {
    opacity: 0.7;
}

/* Value Items */
.values-section {
    margin-top: 0;
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.values-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.values-section .row {
    justify-content: center;
    align-items: stretch;
}

.values-section .col-sm-6,
.values-section .col-lg-3 {
    margin-bottom: 2rem;
    display: flex;
}

.value-item {
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(44, 82, 130, 0.15);
}

.value-item i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.value-item h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-item p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Statistics Styles */
.stat-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(26, 35, 126, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.milestone-stats {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

/* About us styles */
.section-content p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Better spacing for legacy section */
.legacy-section .col-lg-6 {
    padding: 0 2rem;
}

.legacy-section p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Improve founding principles box */
.founding-principles {
    background-color: var(--bg-accent);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
}

.founding-principles h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.founding-principles ul li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.founding-principles strong {
    color: var(--primary-color);
}

/* Journey section improvements */
.journey-section p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.journey-section .section-content {
    margin-bottom: 2rem;
}

/* Section spacing */
.history-values-section {
    padding: 4rem 0;
}

.history-values-section .row {
    align-items: flex-start;
}

/* Legacy Team Styles (for backward compatibility) */
.team-card {
    border: none;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.1);
}

.team-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
}

/* Form Styles */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-color: #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.2);
}

/* Map Styles */
.map-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Enhanced Career Page Styles */
.opportunity-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(26, 35, 126, 0.15);
}

.opportunity-header {
    position: relative;
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.opportunity-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3);
}

.opportunity-badge {
    background: linear-gradient(135deg, var(--success-color) 0%, #66bb6a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.opportunity-content {
    padding: 0 2rem 2rem;
}

.opportunity-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.opportunity-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.opportunity-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 136, 229, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(30, 136, 229, 0.1);
    transform: translateX(5px);
}

.benefit-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.benefit-item span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.opportunity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 35, 126, 0.1);
}

.opportunity-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.opportunity-info span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-info i {
    color: var(--accent-color);
    width: 16px;
}

.btn-apply {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

/* Job Details Grid */
.job-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.job-detail i {
    color: var(--accent-color);
    width: 18px;
}

/* Why Choose Us Cards */
.why-choose-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 24px rgba(26, 35, 126, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(26, 35, 126, 0.15);
}

.why-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
}

.why-icon i {
    font-size: 1.8rem;
    color: white;
}

.why-choose-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.why-choose-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Color variations for opportunity cards */
.opportunity-card.student-internship .opportunity-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.opportunity-card.graduate-internship .opportunity-icon {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

.opportunity-card.articleship .opportunity-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.3);
}

.opportunity-card.job-posting .opportunity-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3);
}

/* Application Success Page Styles */
.success-icon {
    font-size: 5rem;
    color: white;
}

.application-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(26, 35, 126, 0.1);
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.step-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.step-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-details i {
    color: var(--accent-color);
}

.info-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.1);
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.action-buttons {
    margin-top: 2rem;
}

.success-message .alert {
    text-align: left;
}

/* Legacy Career Page Styles (kept for compatibility) */
.job-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.1);
}

.job-card .card-title {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.job-details {
    color: var(--text-light);
    font-size: 0.95rem;
}

.job-details i {
    color: var(--accent-color);
    width: 20px;
}

.benefit-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.1);
}

.benefit-card .card-title {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.benefit-card i {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: rgb(44, 82, 130);
    color: var(--bg-secondary);
    padding: 0.5rem 0;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.bg-light {
    background-color: var(--bg-accent) !important;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.opportunity-icon:hover {
    animation: pulse 2s infinite;
}

.btn-apply:hover {
    animation: none;
}

[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 62px;
    }

    .navbar {
        min-height: 62px;
    }

    .hero-section {
        margin-top: -62px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo {
        height: 60px;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    .page-header {
        padding: 6rem 0 3rem;
        min-height: 250px;
    }

    .page-header .page-title {
        font-size: 2.2rem;
    }

    .page-header .page-subtitle {
        font-size: 1.1rem;
    }

    .team-img {
        width: 150px;
        height: 150px;
    }

    .benefit-card {
        text-align: center;
    }

    .navbar-logo {
        height: 50px;
    }

    /* Team image responsive adjustments */
    .team-image-container,
    .card-img-top {
        height: 250px;
    }
    
    .team-img-circle {
        width: 150px;
        height: 150px;
    }

    /* Responsive text alignment */
    .legacy-section .col-lg-6 {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .legacy-section p,
    .journey-section p {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .founding-principles {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .values-section .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .value-item {
        padding: 2rem 1.5rem;
    }
    
    .value-item h4 {
        font-size: 1.2rem;
    }

    /* Enhanced career page responsive adjustments */
    .opportunity-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .opportunity-content {
        padding: 0 1.5rem 1.5rem;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .opportunity-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .job-details-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .why-choose-card {
        padding: 2rem 1rem;
    }
    
    .opportunity-content h3 {
        font-size: 1.5rem;
    }

    /* Success page responsive adjustments */
    .success-icon {
        font-size: 3.5rem;
    }
    
    .application-details {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        margin-top: 1.5rem;
    }
    
    .action-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .action-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .step-item {
        padding: 1rem 0.75rem;
    }
    
    .info-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .team-image-container {
        height: 180px; /* Even smaller on mobile */
    }
    .team-image-container,
    .card-img-top {
        height: 180px;
    }
    
    .team-image,
    .card-img-top {
        object-position: center top; /* Ensure center positioning on mobile */
    }
}

@media (max-width: 576px) {
    .team-image-container,
    .card-img-top {
        height: 160px;
    }
}

/* Large screen improvements */
@media (min-width: 992px) {
    .values-section .row {
        margin: 0 -15px;
    }
    
    .values-section .col-sm-6 {
        padding: 0 15px;
    }
}

/* Quick fix - add this at the end of your CSS file */
.team-image,
.card-img-top {
    object-position: center top !important;
}

/* Department Tabs Enhancement */
.department-tabs {
    border-bottom: 2px solid var(--bg-accent);
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.department-tabs .nav-item {
    flex: 1;
    min-width: 200px;
}

.department-tabs .nav-link {
    border: none;
    padding: 1.25rem 2rem;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    background: var(--bg-accent);
}

.department-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.department-tabs .nav-link.active {
    color: var(--primary-color);
    background: white;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.department-tabs .nav-link.active::after {
    transform: scaleX(1);
}

.department-tabs .nav-link:hover:not(.active) {
    background: rgba(30, 136, 229, 0.05);
    color: var(--accent-color);
}

.department-tabs .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Department Content Styling */
.department-header {
    padding: 2rem 0 3rem;
    text-align: center;
    position: relative;
}

.department-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.department-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Legal Department Specific Styles */
.opportunity-card.legal {
    border-color: rgba(156, 39, 176, 0.1);
}

.opportunity-card.legal .opportunity-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.3);
}

.opportunity-card.legal:hover {
    border-color: #9C27B0;
    box-shadow: 0 16px 48px rgba(156, 39, 176, 0.15);
}

.opportunity-card.legal .opportunity-badge {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.opportunity-card.legal .benefit-item {
    background: rgba(156, 39, 176, 0.05);
}

.opportunity-card.legal .benefit-item:hover {
    background: rgba(156, 39, 176, 0.1);
}

.opportunity-card.legal .benefit-item i {
    color: #9C27B0;
}

/* Tab Animation */
.tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-pane.show.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Responsive Styles for Departments */
@media (max-width: 768px) {
    .department-tabs {
        gap: 0.5rem;
    }

    .department-tabs .nav-link {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .department-tabs .nav-item {
        min-width: 150px;
    }

    .department-header {
        padding: 1.5rem 0 2rem;
    }

    .department-header h2 {
        font-size: 2rem;
    }

    .opportunity-card.legal .opportunity-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .opportunity-card.legal .opportunity-content {
        padding: 1.5rem;
    }

    .opportunity-card.legal .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .department-tabs {
        display: none;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .opportunity-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Enhanced Team Image Styles */
.team-section .service-card {
    max-width: 350px;
    margin: 0 auto;
}

.team-image-container {
    width: 100%;
    height: 400px !important; /* Force taller height */
    max-width: 100% !important; /* Remove max-width restriction */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border-radius: 15px 15px 0 0;
    margin: 0 auto;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center !important; /* Force top positioning */
    transition: transform 0.3s ease;
}

/* Card Image Adjustments */
.card-img-top {
    width: 100%;
    height: 400px !important; /* Match team image height */
    object-fit: cover;
    object-position: top center !important;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

/* Image hover effects */
.team-image:hover,
.card-img-top:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .team-image-container,
    .card-img-top {
        height: 350px !important;
    }
    
    .team-section .service-card {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .team-image-container,
    .card-img-top {
        height: 300px !important;
    }
}

/* Legal expert specific image styling */
.legal-expert .team-image-container {
    height: 450px !important;
}

/* Override any conflicting styles */
.team-image,
.card-img-top {
    object-position: top center !important;
}

.team-section [class*="col-"] {
    display: flex;
    justify-content: center;
}

.team-image,
.card-img-top,
.team-member-image {
    object-fit: contain !important;
    object-position: center center !important;
    background-color: #f8f9ff; /* Optional: matches your card bg */
    width: 100%;
    height: 100%;
    padding: 10px; /* Optional: adds some space around the image */
}

/* Ensure team image containers use flex and align items to the start (top) */
.team-member-container,
.team-image-container {
    height: 400px; /* Increased from 280px */
    width: 100%;
    max-width: 500px; /* Increased from 300px */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f8f9ff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.team-member-image,
.team-image,
.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 15px 15px 0 0;
    background: #f8f9ff;
    display: block;
}

.disclaimer-content {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.disclaimer-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.disclaimer-content li {
    margin-bottom: 10px;
}