/* Custom CSS for Thesis Showcase - Bootstrap Compatible */

/* Color Variables */
:root {
    --primary-color: #b91c1c;
    --primary-hover: #991b1b;
    --secondary-color: #1e40af;
    --background-light: #f5f7f8;
    --background-dark: #111827;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --border-light: #e5e7eb;
    --card-light: #ffffff;
    --card-dark: #1f2937;
}

/* Dark mode variables */
.dark-mode {
    --background-light: #111827;
    --text-main: #f9fafb;
    --text-sub: #d1d5db;
    --border-light: #374151;
    --card-light: #1f2937;
}

/* Global Styles */
body {
    font-family: "Inter", sans-serif;
    background-color: var(--background-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background-color: #475569;
}

/* Primary Button */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(185, 28, 28, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--primary-color);
    overflow: hidden;
    min-height: 500px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    /*background: linear-gradient(to bottom, rgba(185, 28, 28, 0.9), rgba(185, 28, 28, 0.95), var(--primary-color));*/
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
    fill: var(--background-light);
}

/* Search Box */
.search-box-wrapper {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.search-box-wrapper:hover {
    transform: scale(1.01);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

.search-input:focus {
    box-shadow: none;
}

/* Program Cards */
.program-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.program-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.program-card:hover .program-card-image {
    transform: scale(1.1);
}

.program-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.5),
        transparent
    );
    opacity: 0.9;
}

.program-card-content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.program-card-bar {
    background-color: var(--primary-color);
    width: 3rem;
    height: 0.375rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
}

.program-card-title {
    color: white;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.program-card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.program-card-description {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.program-card:hover .program-card-description {
    max-height: 100px;
    opacity: 1;
}

/* Project Cards */
.project-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(185, 28, 28, 0.3);
}

.project-card-header {
    height: 6px;
    background-color: var(--secondary-color);
    width: 100%;
}

.project-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-badge-primary {
    background-color: #dbeafe;
    color: var(--secondary-color);
    border: 1px solid #bfdbfe;
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.project-card:hover .project-card-title {
    color: var(--primary-color);
}

.project-card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: auto;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 6rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Modern Header Styles */
.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.header-modern.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Brand Section */
.header-brand {
    flex-shrink: 0;
}

.header-brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-brand-link:hover {
    transform: translateY(-2px);
}

.header-logo-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(
        135deg,
        rgba(185, 28, 28, 0.1),
        rgba(185, 28, 28, 0.05)
    );
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 28, 28, 0.15);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
    transition: all 0.3s ease;
}

.header-brand-link:hover .header-logo-wrapper {
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.2);
    transform: scale(1.05);
}

.header-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Desktop Navigation */
.header-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .header-nav {
        display: flex;
    }
}

.header-nav-link {
    position: relative;
    padding: 0.625rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.header-nav-text {
    position: relative;
}

.header-nav-link::before {
    content: "";
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-nav-link:hover {
    color: var(--primary-color);
    background: rgba(185, 28, 28, 0.04);
}

.header-nav-link:hover::before {
    transform: scaleX(1);
}

/* Dropdown Menu */
.header-dropdown {
    position: relative;
}

.header-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-dropdown-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.header-dropdown:hover .header-dropdown-icon {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.header-dropdown:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-dropdown-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

.header-dropdown-item:hover {
    background: rgba(185, 28, 28, 0.06);
    color: var(--primary-color);
}

/* CTA Button */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #991b1b);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
    margin-left: 0.5rem;
}

.header-cta-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(185, 28, 28, 0.35);
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
}

.header-cta-btn:hover .header-cta-icon {
    transform: translateX(3px);
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

@media (min-width: 992px) {
    .header-mobile-toggle {
        display: none;
    }
}

.header-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.header-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.header-hamburger-line {
    width: 100%;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-mobile-toggle.active .header-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.header-mobile-toggle.active .header-hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-mobile-toggle.active .header-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Menu */
.header-mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
    .header-mobile-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-mobile-nav {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header-mobile-link .material-symbols-outlined {
    font-size: 22px;
}

.header-mobile-link:hover {
    background: rgba(185, 28, 28, 0.04);
    color: var(--primary-color);
}

.header-mobile-link-cta {
    background: linear-gradient(135deg, var(--primary-color), #991b1b);
    color: white;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.header-mobile-link-cta:hover {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    color: white;
}

/* Mobile Dropdown */
.header-mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.header-mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-mobile-dropdown-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.header-mobile-dropdown-toggle.active .header-mobile-dropdown-icon {
    transform: rotate(180deg);
}

.header-mobile-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 2.75rem;
    margin-top: 0.5rem;
}

.header-mobile-dropdown-content.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

.header-mobile-dropdown-item {
    padding: 0.625rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.header-mobile-dropdown-item:hover {
    background: rgba(185, 28, 28, 0.04);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .header-container {
        padding: 0 1.25rem;
    }

    .header-content {
        height: 70px;
    }

    .header-logo-wrapper {
        width: 46px;
        height: 46px;
    }

    .header-logo-img {
        width: 28px;
        height: 28px;
    }

    .header-title {
        font-size: 1.125rem;
    }

    .header-subtitle {
        font-size: 0.688rem;
    }
}

/* Modern Footer Styles */
.footer-modern {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    margin-top: auto;
    padding-top: 80px;
    overflow: hidden;
}

.footer-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(185, 28, 28, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(59, 130, 246, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.02) 0%,
            transparent 70%
        );
    pointer-events: none;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    color: #ffffff;
    height: 80px;
    z-index: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-content {
    position: relative;
    z-index: 1;
}

/* Brand Section */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-logo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0;
}

.footer-subtitle {
    font-size: 0.813rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-about {
    color: #cbd5e1;
    font-size: 0.938rem;
    line-height: 1.7;
    margin-top: 1rem;
}

/* Social Media */
.footer-social-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(185, 28, 28, 0.2),
        rgba(185, 28, 28, 0.1)
    );
    border: 1px solid rgba(185, 28, 28, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-icon .material-symbols-outlined {
    font-size: 22px;
}

.footer-social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 24px rgba(185, 28, 28, 0.4);
}

/* Navigation Headings */
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.875rem;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-nav-icon {
    font-size: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.footer-nav-link:hover .footer-nav-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Section */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.footer-contact-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(
        135deg,
        rgba(185, 28, 28, 0.15),
        rgba(185, 28, 28, 0.08)
    );
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-contact-row:hover .footer-contact-badge {
    background: linear-gradient(135deg, var(--primary-color), #991b1b);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.footer-contact-badge .material-symbols-outlined {
    font-size: 20px;
    color: #ffffff;
}

.footer-contact-info {
    flex: 1;
    /* padding-top: 0.5rem; */
}

.footer-contact-value {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
    display: block;
    word-break: break-word;
}

.footer-contact-clickable {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-clickable:hover {
    color: #ffffff;
}

/* Footer Bottom Bar */
.footer-bar {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-copy strong {
    color: #e2e8f0;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal-item {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-legal-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.footer-legal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #475569;
}

/* Responsive Design */
@media (max-width: 991px) {
    .footer-modern {
        padding-top: 60px;
    }

    .footer-brand {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .footer-wave {
        height: 60px;
    }

    .footer-wave svg {
        height: 60px;
    }
}

@media (max-width: 767px) {
    .footer-modern {
        padding-top: 50px;
    }

    .text-primary-custom {
        color: var(--primary-color) !important;
        font-weight: 600;
        font-size: 1.35rem !important;
    }
    .footer-wave {
        height: 50px;
    }

    .footer-wave svg {
        height: 50px;
    }

    .footer-title {
        font-size: 1.25rem;
    }

    .footer-heading {
        font-size: 0.938rem;
    }

    .footer-social-icon {
        width: 44px;
        height: 44px;
    }
}

/* Badge Styles */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Breadcrumb Styles */
.breadcrumb-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-custom a {
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: var(--primary-color);
}

/* Detail Page Styles */
.detail-sidebar-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.detail-abstract-box {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-abstract-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

/* Material Icons */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

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

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .program-card {
        aspect-ratio: 4/3;
    }

    .program-card-title {
        font-size: 1.5rem;
    }
}

/* Avatar Styles */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: rgba(185, 28, 28, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(185, 28, 28, 0.2);
}

/* Pagination Styles */
.pagination-custom {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.pagination-custom .page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    background-color: white;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-custom .page-btn:hover {
    background-color: #f9fafb;
}

.pagination-custom .page-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(185, 28, 28, 0.2);
    border-color: var(--primary-color);
}

/* Table Styles */
.table-custom {
    width: 100%;
    font-size: 0.875rem;
    text-align: left;
    color: #6b7280;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-custom thead {
    font-size: 0.75rem;
    text-transform: uppercase;
    background-color: #f9fafb;
    color: #374151;
}

.table-custom th,
.table-custom td {
    padding: 0.75rem 1.5rem;
}

.table-custom tbody tr {
    background-color: white;
    border-bottom: 1px solid var(--border-light);
}

.table-custom tbody tr:last-child {
    border-bottom: none;
}

/* Gradient Backgrounds for Project Cards */
.gradient-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

.gradient-rose {
    background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
}

/* Checkbox Styles */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(185, 28, 28, 0.25);
}

/* Select Dropdown Styles */
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(185, 28, 28, 0.25);
}

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease,
        border-color 0.3s ease;
}

/* ============================================
   CKEditor Content Styling
   ============================================ */

.ckeditor-content {
    font-family: "Inter", sans-serif;
}

/* Headings from CKEditor */
.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-top: 2rem;
}

.ckeditor-content h1 {
    font-size: 1.75rem;
}

.ckeditor-content h2 {
    font-size: 1.75rem;
}

.ckeditor-content h3 {
    font-size: 1.5rem;
}

.ckeditor-content h4 {
    font-size: 1.25rem;
}

.ckeditor-content h5 {
    font-size: 1.125rem;
}

.ckeditor-content h6 {
    font-size: 1rem;
}

/* First heading should not have top margin */
.ckeditor-content h1:first-child,
.ckeditor-content h2:first-child,
.ckeditor-content h3:first-child,
.ckeditor-content h4:first-child,
.ckeditor-content h5:first-child,
.ckeditor-content h6:first-child {
    margin-top: 0;
}

/* Wrap each section in spacing */
.ckeditor-content > h1,
.ckeditor-content > h2,
.ckeditor-content > h3,
.ckeditor-content > h4,
.ckeditor-content > h5,
.ckeditor-content > h6 {
    margin-bottom: 1.5rem;
}

/* Paragraphs */
.ckeditor-content p {
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.ckeditor-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.ckeditor-content ul,
.ckeditor-content ol {
    color: var(--text-sub);
    line-height: 1.75;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.ckeditor-content ul li,
.ckeditor-content ol li {
    margin-bottom: 0.5rem;
}

.ckeditor-content ul li:last-child,
.ckeditor-content ol li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.ckeditor-content ul ul,
.ckeditor-content ul ol,
.ckeditor-content ol ul,
.ckeditor-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Tables from CKEditor */
.ckeditor-content table {
    width: 100% !important;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: auto;
}

/* Table wrapper for responsive scrolling */
.ckeditor-content {
    overflow-x: auto;
}

.ckeditor-content table {
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ckeditor-content table thead {
    background-color: #f9fafb;
}

.ckeditor-content table thead th {
    padding: 0.75rem 1.5rem;
    text-align: center !important;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

.ckeditor-content table tbody tr {
    background-color: white;
    border-bottom: 1px solid var(--border-light);
}

.ckeditor-content table tbody tr:last-child {
    border-bottom: none;
}

.ckeditor-content table tbody td {
    padding: 0.75rem 1.5rem;
    color: var(--text-sub);
    text-align: center !important;
}

.ckeditor-content table tbody td:first-child {
    font-weight: 500;
    color: var(--text-main);
    text-align: center !important;
}

/* Blockquotes */
.ckeditor-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-sub);
}

/* Links */
.ckeditor-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ckeditor-content a:hover {
    color: var(--primary-hover);
}

/* Strong/Bold text */
.ckeditor-content strong,
.ckeditor-content b {
    font-weight: 700;
}

/* Strong inside headings should inherit heading color */
.ckeditor-content h1 strong,
.ckeditor-content h2 strong,
.ckeditor-content h3 strong,
.ckeditor-content h4 strong,
.ckeditor-content h5 strong,
.ckeditor-content h6 strong,
.ckeditor-content h1 b,
.ckeditor-content h2 b,
.ckeditor-content h3 b,
.ckeditor-content h4 b,
.ckeditor-content h5 b,
.ckeditor-content h6 b {
    color: inherit !important;
}

/* Strong in regular text */
.ckeditor-content p strong,
.ckeditor-content li strong,
.ckeditor-content p b,
.ckeditor-content li b {
    color: var(--text-main);
}

/* Emphasis/Italic text */
.ckeditor-content em,
.ckeditor-content i {
    font-style: italic;
}

/* Code blocks */
.ckeditor-content pre {
    background-color: #f3f4f6;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.ckeditor-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: "Courier New", monospace;
    font-size: 0.875em;
    color: #e11d48;
}

.ckeditor-content pre code {
    background-color: transparent;
    padding: 0;
    color: var(--text-main);
}

/* Images */
.ckeditor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Figures */
.ckeditor-content figure {
    margin: 1.5rem 0;
}

.ckeditor-content figcaption {
    font-size: 0.875rem;
    color: var(--text-sub);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

/* Horizontal Rule */
.ckeditor-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2rem 0;
}

/* Section spacing - add margin after each major heading */
.ckeditor-content h2 ~ p,
.ckeditor-content h2 ~ ul,
.ckeditor-content h2 ~ ol,
.ckeditor-content h2 ~ table,
.ckeditor-content h2 ~ blockquote {
    margin-bottom: 1.5rem;
}

/* Italic captions (like table captions) */
.ckeditor-content p em:only-child {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

/* Preserve spacing between sections */
.ckeditor-content > * + h2,
.ckeditor-content > * + h3 {
    margin-top: 3rem;
}

/* Table caption styling */
.ckeditor-content table + p {
    font-size: 0.875rem;
    color: var(--text-sub);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Ensure table container doesn't overflow */
.ckeditor-content figure.table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* Media queries for responsive tables */
@media (max-width: 768px) {
    .ckeditor-content table {
        font-size: 0.75rem;
    }

    .ckeditor-content table thead th,
    .ckeditor-content table tbody td {
        padding: 0.5rem;
    }
}
