@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Override Bootstrap 5 Default Primary Color to Appasamy Blue */
    --bs-primary: #0055a4;
    --bs-primary-rgb: 0, 85, 164;
    --bs-primary-bg-subtle: #e6f0fa;
    --bs-primary-border-subtle: #99c2e8;

    /* Custom Appasamy Palette */
    --diq-primary: #0055a4;
    --diq-primary-dark: #003f7d;
    --diq-accent: #1396a5;
    --diq-soft: #f0f7f9;
    --diq-ink: #102a38;
    
    --diq-portal-bg: #f4f7f9;
    --diq-portal-surface: #ffffff;
    --diq-portal-border: #d8e2e6;
}

body {
    color: var(--diq-ink);
    background: #fff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   PUBLIC FRONTEND & HEADER STYLES
========================================= */
.navbar-brand img, .footer-logo { object-fit: contain; }
.nav-link { color: #334a54; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--diq-primary); }

.btn-primary {
    --bs-btn-bg: #82c8e5;
    --bs-btn-border-color: #82c8e5;
    --bs-btn-hover-bg: var(--diq-primary-dark);
    --bs-btn-hover-border-color: var(--diq-primary-dark);
}
.btn-secondary {
    --bs-btn-bg: #0055a4;
    --bs-btn-border-color: #0055a4;
    --bs-btn-hover-bg: var(--diq-primary-dark);
    --bs-btn-hover-border-color: var(--diq-primary-dark);
	--box-shadow:#0055a433
}
.fs-7{font-size:12px}

/* Stronger contrast for upload category choices in public and portal views. */
#uploadForm input[type="radio"][name="category_id"] { appearance: none; width: 22px; height: 22px; border: 3px solid #003e7a; border-radius: 50%; background: #fff; opacity: 1; }
#uploadForm input[type="radio"][name="category_id"]:checked { border-color: #003e7a; background: radial-gradient(circle, #0055a4 0 5px, #fff 5.5px); }
#uploadForm input[type="radio"][name="category_id"]:focus-visible { outline: 3px solid #82c8e5; outline-offset: 3px; box-shadow: none; }
#uploadForm input[type="radio"][name="category_id"]:disabled { opacity: .7; }

.text-brand-dark {
    color: #002952;
}





.hero {
    background: radial-gradient(circle at 85% 15%, rgba(19, 150, 165, .15), transparent 28rem), linear-gradient(135deg, #e6f0fa 0%, #f4f7f9 55%, #e1eff2 100%);
    padding: clamp(4rem, 9vw, 7rem) 0;
}
.eyebrow { color: var(--diq-primary); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.display-title { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -.04em; line-height: 1.02; color: var(--diq-primary-dark); }

.icon-tile {
    align-items: center; background: var(--diq-soft); border-radius: 1rem;
    color: var(--diq-primary); display: inline-flex; font-size: 1.5rem;
    height: 3.25rem; justify-content: center; width: 3.25rem;
}

.feature-card, .category-card {
    border: 1px solid #dce8eb; border-radius: 1.25rem; height: 100%; padding: 1.75rem;
    transition: transform .2s ease, box-shadow .2s ease; background: #fff;
}
.feature-card:hover, .category-card:hover { box-shadow: 0 1rem 2.5rem rgba(0, 85, 164, .09); transform: translateY(-3px); }

.page-hero { background: linear-gradient(135deg, var(--diq-primary-dark), var(--diq-primary)); color: #fff; padding: 4rem 0; }
.content-section { padding: 4.5rem 0; }
.timeline-step { border-left: 3px solid var(--diq-accent); padding: .25rem 0 .25rem 1.25rem; }
.notice-panel { background: var(--diq-soft); border: 1px solid #c0dce1; border-radius: 1.25rem; padding: 2rem; }
/* Appasamy corporate footer. Keep every rule scoped to the public footer. */
.site-footer {
    width: 100%;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, .05);
    background: #f3f4f6;
    color: #4b5563;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
}
.site-footer .footer-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.site-footer .footer-main { display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; margin-bottom: 4rem; }
.site-footer .footer-company { width: 100%; min-width: 0; padding-right: 1rem; }
.site-footer .footer-brand { position: relative;  margin-bottom: 1.5rem; }
.site-footer .footer-logo { display: block; width: auto; max-width: 100%; height: 2.5rem; object-fit: contain; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #0055a4; }
.site-footer a:focus-visible { outline: 2px solid #0055a4; outline-offset: 4px; }
.site-footer .footer-description { max-width: 24rem; margin-bottom: 1.5rem; font-size: .84375rem; font-weight: 500; line-height: 1.625; }
.site-footer .footer-office { margin-bottom: 1.5rem; font-size: .8125rem; line-height: 1.625; }
.site-footer .footer-office-title { margin-bottom: .25rem; color: #111827; font-weight: 600; }
.site-footer .footer-contact { margin-bottom: 2rem; font-size: .8125rem; }
.site-footer .footer-contact p + p { margin-top: .25rem; }
.site-footer .footer-contact span { color: #111827; font-weight: 600; }
.site-footer .footer-social { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 50%;
    background: #0055a4;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    transition: background-color .15s ease, transform .15s ease;
}
.site-footer .footer-social a:hover { background: #0044a0; color: #fff; transform: scale(1.1); }
.site-footer .footer-social svg { display: block; width: 1rem; height: 1rem; }
.site-footer .footer-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; width: 100%; }
.site-footer .footer-heading { margin: 0 0 1.5rem; color: #111827; font-size: .6875rem; font-weight: 800; line-height: 1.7; letter-spacing: .15em; text-transform: uppercase; }
.site-footer .footer-links { margin: 0; padding: 0; list-style: none; font-size: .84375rem; font-weight: 500; }
.site-footer .footer-links li + li { margin-top: 1rem; }
.site-footer .footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid rgba(198, 202, 214, .3); color: #6b7280; font-size: .6875rem; font-weight: 600; }
.site-footer .footer-locale { display: flex; align-items: center; gap: 1.5rem; padding-right: 4rem; }
.site-footer .footer-region,
.site-footer .footer-language { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; color: #0055a4; font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.site-footer .footer-region { opacity: .8; transition: opacity .3s ease; }
.site-footer .footer-region:hover { opacity: 1; }
.site-footer .footer-region svg { display: block; width: .875rem; height: .875rem; }
.site-footer .footer-language-globe { color: #6b7280; font-size: .875rem; font-weight: 600; letter-spacing: normal; opacity: .7; }
.site-footer .footer-language:hover .footer-language-globe { opacity: 1; }
.site-footer .footer-chevron { display: block; width: .75rem; height: .75rem; }
@media (min-width: 640px) {
    .site-footer .footer-region,
    .site-footer .footer-language { font-size: .6875rem; }
}
@media (min-width: 768px) {
    .site-footer .footer-bottom { flex-direction: row; }
    .site-footer .footer-locale { padding-right: 6rem; }
}
@media (min-width: 1024px) {
    .site-footer .footer-main { flex-direction: row; gap: 2rem; }
    .site-footer .footer-company { width: 33.333333%; }
    .site-footer .footer-navigation { width: 58.333333%; }
}
@media (max-width: 479px) {
    .site-footer .footer-container { padding-right: 1.5rem; padding-left: 1.5rem; }
    .site-footer .footer-navigation { gap: 1.5rem; }
    .site-footer .footer-bottom > p { text-align: center; }
    .site-footer .footer-locale { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer a { transition: none; }
    .site-footer .footer-social a:hover { transform: none; }
}

/* =========================================
   SLICK PORTAL STYLES
========================================= */
.portal-body {
    background-color: var(--diq-portal-bg);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.portal-body .card {
    background: var(--diq-portal-surface) !important;
    border: 1px solid var(--diq-portal-border) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}
.portal-body .table { border-collapse: separate; border-spacing: 0; margin-bottom: 0; }
.portal-body .table thead th {
    background: #eef3f5; color: #475569; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--diq-portal-border);
    padding: 1rem 1.25rem; border-top: none;
}
.portal-body .table tbody td {
    padding: 1.25rem; vertical-align: middle; border-bottom: 1px solid var(--diq-portal-border); color: #1e293b;
}
.portal-body .table tbody tr:last-child td { border-bottom: none; }
.portal-body .table tbody tr:hover { background-color: #f8fafc; }

.portal-body .form-control, .portal-body .form-select {
    border-radius: 0.5rem; border: 1px solid #cbd5e1; padding: 0.6rem 1rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.portal-body .form-control:focus, .portal-body .form-select:focus {
    border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.15);
}
.portal-body .badge { font-weight: 600; padding: 0.35em 0.65em; border-radius: 0.375rem; }

@keyframes hourglassPulse {
    0% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(0.95); }
}

.form-control:focus{box-shadow:none; }

#uploadForm .competition-category-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #003e7a; }
#uploadForm .competition-category-heading input { flex-shrink: 0; margin: 0; }
