@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Colors */
    --primary-blue: #004a99;
    --accent-blue: #007bff;
    --light-blue: #e6f0ff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --white: #ffffff;
    --bg-light: #f8fbff;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Custom Utilities */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#header.custom-header {
    background: #ffffff !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 74, 153, 0.05) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

@media (max-width: 991.98px) {
    .mobile-toggle {
        display: block;
    }

    .nav-box {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
    }

    .nav-box.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-box ul {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center;
    }

    .nav-box ul li {
        width: 100%;
    }

    .nav-box ul li.nav-btn-highlight a {
        margin-left: 0 !important;
        display: inline-block;
        width: auto;
    }
}

.header-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.logo-box img {
    height: 40px !important;
    width: auto !important;
    display: block !important;
}

.nav-box ul li.nav-btn-highlight a {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    margin-left: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.2);
}

.nav-box ul li.nav-btn-highlight a:hover {
    background: #003d80;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 153, 0.3);
}

.verify-container {
    width: 100%;
    height: calc(100vh - 80px);
    /* Adjust based on header height */
    background: var(--bg-light);
    overflow: hidden;
}

.verify-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nav-box ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 25px !important;
}

.nav-box a {
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.nav-box li.active a {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
}

.nav-box a::after {
    display: none !important;
}

.lang-switcher a {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    background: rgba(0, 74, 153, 0.03);
    transition: all 0.3s ease !important;
}

.lang-switcher a:hover {
    background: rgba(0, 74, 153, 0.1);
    transform: translateY(-1px);
}

/* Compensate for fixed header */
body {
    padding-top: 70px !important;
}

.card-professional {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 74, 153, 0.05);
}

.card-professional:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.btn-professional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    transform: scale(1.02);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue) !important;
}

.btn-outline:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: scale(1.02);
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-left: 15px;
    border-left: 3px solid rgba(0, 74, 153, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -53px;
    top: 24px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 3px solid var(--light-blue);
    border-radius: 50%;
    z-index: 2;
    transition: border-color 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--primary-blue);
}

.timeline-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 74, 153, 0.05);
    padding: 24px;
    margin-left: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 74, 153, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 24px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ffffff;
    filter: drop-shadow(-1px 0 0 rgba(0, 74, 153, 0.05));
}

.news-date {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
        margin-left: 10px;
    }

    .timeline-marker {
        left: -41px;
        width: 20px;
        height: 20px;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    padding: 160px 0 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 74, 153, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.mascot-container {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Repository Section */
.section-padding {
    padding: 20px 0;
}

.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.repo-card:first-child {
    grid-column: span 3;
}

@media (max-width: 1200px) {
    .repo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repo-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .repo-grid {
        grid-template-columns: 1fr;
    }

    .repo-card:first-child {
        grid-column: span 1;
    }
}

.repo-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-card-body-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.repo-card-featured .repo-card-body-wrapper {
    flex-direction: row;
    gap: 40px;
}

.repo-card-featured .repo-content-left {
    flex: 2;
}

.repo-card-featured .repo-content-right {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.repo-card-featured .repo-description {
    height: 100%;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .repo-card-featured .repo-card-body-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

.repo-card-header {
    border-bottom: 1px solid rgba(0, 74, 153, 0.08);
    padding-bottom: 16px;
    margin-bottom: 20px;
    min-height: 80px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.repo-description {
    font-size: 13px;
    color: var(--text-muted);
    background: #fcfdfe;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 74, 153, 0.1);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row.property {
    flex-direction: row;
    border-top: 1px solid rgba(0, 74, 153, 0.05);
    padding-top: 8px;
}

.info-label {
    width: 130px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    flex-grow: 1;
    word-break: break-all;
    font-family: 'Inter', monospace;
    font-size: 12px;
    color: var(--text-dark);
}

.info-subject {
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
    margin-bottom: 4px;
    line-height: 1.4;
    padding: 4px 8px;
    background: rgba(0, 74, 153, 0.03);
    border-radius: 4px;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.resource-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.resource-item:hover {
    background: #eef5ff;
}

.resource-hash {
    font-size: 11px;
    color: var(--text-muted);
    word-break: break-all;
    overflow-wrap: anywhere;
    display: block;
    margin-top: 4px;
}

.resource-link {
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Statistics & Carousel */
.stats-container {
    padding: 60px 0;
    /* background: var(--white); */
}

.carousel-custom {
    padding: 0;
}

.carousel-indicators li {
    background-color: var(--light-blue) !important;
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

.carousel-indicators li.active {
    background-color: var(--primary-blue) !important;
}

/* Contact Section v2 */
.footer-main {
    /* background: var(--white); */
    padding: 100px 0;
    border-top: 1px solid rgba(0, 74, 153, 0.05);
}

.map-container-v2 {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: 480px;
    border: 1px solid rgba(0, 74, 153, 0.05);
    transition: transform 0.3s ease;
}

.map-container-v2:hover {
    transform: translateY(-5px);
}

.contact-info-content {
    padding-left: 50px;
}

.sub-label {
    display: inline-block;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 74, 153, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

.contact-info-list {
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.contact-info-item i {
    width: 54px;
    height: 54px;
    background: #ffffff;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 74, 153, 0.05);
    flex-shrink: 0;
}

.contact-info-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-text p,
.contact-info-text a {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.6;
}

.contact-info-text a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    background: var(--primary-blue);
    padding: 30px 0;
    color: var(--white);
    text-align: center;
}

/* Recognition Section */
.recognition-section {
    background: var(--white);
    border-top: 1px solid rgba(0, 74, 153, 0.05);
}

.section-title-alt {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title-alt.thin {
    font-weight: 600;
    font-size: 28px;
}

.section-subtitle-alt {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 60px;
    padding: 20px 0;
}

.logo-cloud.membership {
    gap: 30px 50px;
}

.logo-cloud-item {
    display: block;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-cloud-item img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.logo-cloud-item:hover {
    transform: translateY(-5px);
}

.logo-cloud-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 767.98px) {
    .logo-cloud {
        gap: 30px;
    }

    .logo-cloud-item img {
        height: 50px;
    }

    .section-title-alt {
        font-size: 26px;
    }
}

/* Footer Modern */
.footer-modern {
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 74, 153, 0.1);
    color: var(--text-muted);
}

.footer-modern p {
    font-size: 14px;
    opacity: 0.8;
    color: var(--text-dark);
    font-weight: 500;
}

.privacy-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.privacy-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .footer-modern .container-custom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Privacy Policy Page */
.privacy-content-wrapper {
    background: var(--bg-light);
}

.legal-text h2,
.legal-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    margin-top: 30px;
}

.legal-text p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.legal-text ol {
    list-style-type: decimal;
    margin-bottom: 20px;
    padding-left: 35px;
}

.legal-text ul {
    list-style-type: disc;
    margin-bottom: 20px;
    padding-left: 35px;
}

.legal-text li {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-dark);
}

.legal-text strong {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

@media (max-width: 991.98px) {
    .contact-info-content {
        padding-left: 0;
        margin-top: 60px;
    }

    .map-container-v2 {
        height: 380px;
    }
}

/* Leaflet Map Styles */
.map-container-v2 {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 74, 153, 0.1);
    background: var(--bg-light);
}

#map-leaflet {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Marker Styling */
.custom-map-marker {
    position: relative;
}

.custom-map-marker .marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-blue);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 4px 10px rgba(0, 74, 153, 0.3);
}

.custom-map-marker i {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    line-height: 30px;
    z-index: 2;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 5px;
}

.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    margin: 8px 12px;
}

@media (max-width: 991.98px) {
    .map-container-v2 {
        height: 380px;
    }
}