/*
================================================================
* BRAND DESIGN SYSTEM - JAGANNATH SECURITY PLACEMENT
* Developed with Premium Vanilla CSS
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&family=Titillium+Web:wght@300;400;600;700;900&display=swap');

/* --- CUSTOM PROPERTIES (DESIGN TOKENS) --- */
:root {
    /* Brand Colors */
    --color-primary: #931b34;       /* Deep Crimson / Maroon */
    --color-primary-rgb: 147, 27, 52;
    --color-secondary: #292734;     /* Slate Dark Gray */
    --color-secondary-light: #383642; /* Medium Slate */
    --color-accent: #ffd200;        /* Yellow / Gold */
    --color-blue-gray: #393a59;     /* Slate Blue */
    --color-bg-light: #f3f3f4;      /* Clean Light Gray */
    --color-white: #ffffff;
    --color-text-dark: #1d1d1d;
    --color-text-muted: #555555;
    --color-border: #afaeae;
    --color-border-light: rgba(147, 27, 52, 0.15);

    /* Fonts */
    --font-heading: 'Titillium Web', 'Montserrat', sans-serif;
    --font-body: 'Roboto', 'Montserrat', sans-serif;
    --font-alt: 'Montserrat', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(41, 39, 52, 0.08);
    --shadow-premium: 0 15px 45px rgba(41, 39, 52, 0.12);
    --shadow-glow: 0 0 15px rgba(255, 255, 255, 0.2);

    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-large: 16px;
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-secondary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    text-align: justify;
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }

.section-padding {
    padding: 80px 0;
}

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

.bg-dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.bg-crimson {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Subtitle lines used in original designs */
.section-subtitle {
    font-family: var(--font-alt);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: none;
    margin-bottom: 45px;
    position: relative;
    padding-left: 20px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 32px;
    background-color: var(--color-secondary);
    border-radius: 3px;
}

/* --- BRAND BUTTONS --- */
/* The premium slide-left button effect */
.btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white) !important;
    background: linear-gradient(to right, var(--color-primary) 50%, var(--color-secondary) 50%) no-repeat right bottom / 210% 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-position 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.btn-theme:hover {
    background-position: left bottom;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 27, 52, 0.3);
}

.btn-theme:active {
    transform: translateY(0);
}

/* Alternate light theme slide button */
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary) !important;
    background: linear-gradient(to right, var(--color-white) 50%, var(--color-primary) 50%) no-repeat right bottom / 210% 100%;
    border: 2px solid var(--color-white);
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-position 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease, transform 0.2s ease;
}

.btn-light:hover {
    background-position: left bottom;
    /* color: var(--color-white) !important; */
    transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-blue-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-list a {
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 10px 0;
    position: relative;
}

.menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-blue-gray);
    transition: var(--transition-normal);
}

.menu-list a:hover {
    color: var(--color-blue-gray);
}

.menu-list a:hover::after {
    width: 100%;
}

.menu-list li.active a {
    color: var(--color-blue-gray);
}

.menu-list li.active a::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    background: none;
    border: none;
}

/* Mobile Overlay Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-secondary);
    color: var(--color-white);
    z-index: 2000;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: var(--transition-normal);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-drawer .close-btn {
    align-self: flex-end;
    font-size: 2rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-drawer .drawer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    align-self: center;
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-list a {
    font-family: var(--font-alt);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu-list a:hover, .mobile-menu-list li.active a {
    color: var(--color-primary);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

/* Page Hero Header (Inside all internal pages) */
.page-hero-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.breadcrumbs a {
    color: var(--color-white);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs-separator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* --- SLIDER / HERO SECTION --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--color-secondary);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 39, 52, 0.45); /* Soft overlay to ensure readability */
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 24px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.slide-btn {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HOME PAGE BLOCKS --- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.welcome-text strong {
    color: var(--color-text-dark);
}

/* --- SERVICES CAROUSEL & CARDS --- */
.services-section {
    position: relative;
}

.services-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 30px;
}

.services-carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 15px 5px;
}

.services-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.services-carousel-track .service-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
}

/* Glassmorphic Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(147, 27, 52, 0.2);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    user-select: none;
}

.carousel-nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-medium);
}

.carousel-nav-btn.prev {
    left: -24px;
}

.carousel-nav-btn.next {
    right: -24px;
}

/* Dots Indicator Pagination */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.3);
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(147, 27, 52, 0.08);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(147, 27, 52, 0.25);
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.service-card-title a:hover {
    color: var(--color-secondary);
}

.service-card-tag {
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card .btn-theme {
    align-self: flex-start;
    padding: 8px 24px;
    font-size: 0.85rem;
}

/* ISO Certification Banner */
.action-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    color: var(--color-white);
    text-align: center;
}

.action-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(57, 58, 89, 0.9);  */
}

.action-banner-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.action-banner-title {
    color: var(--color-accent);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.action-banner-desc {
    color: var(--color-white);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: center;
}

/* About Split Agency Block */
.about-agency-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-agency-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.about-agency-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-premium);
}

/* Delivering best security CTA banner */
.delivering-cta {
    background-color: var(--color-blue-gray);
    color: var(--color-white);
    padding: 50px 0;
}

.delivering-cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.delivering-cta-title {
    color: var(--color-white);
    font-size: 1.85rem;
    font-weight: 700;
    max-width: 700px;
}

/* Download Application Form Block */
.download-application {
    border-bottom: 1px solid var(--color-bg-light);
}

.download-application-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
    padding: 30px 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(147,27,52,0.1);
}

.download-application-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-application-title {
    color: var(--color-secondary);
    font-size: 1.65rem;
    font-weight: 800;
}

.download-application-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.download-application .btn-theme {
    flex-shrink: 0;
}

/* Helpline recruitment details section */
.recruitment-tender {
    padding-bottom: 80px;
}

.recruitment-desc {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 40px;
    font-family: var(--font-body);
}

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

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.tender-card {
    background-color: var(--color-white);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--color-bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-normal);
}

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

.tender-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid var(--color-border);
}

/* --- SERVICES GRID PAGE --- */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* --- SERVICE DETAIL PAGE --- */
.service-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.service-detail-content {
    background-color: var(--color-white);
}

.service-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.service-detail-title {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.widget-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-services-list a {
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-services-list a::before {
    content: '▶';
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.widget-services-list a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.widget-services-list li.active a {
    color: var(--color-primary);
    font-weight: 700;
}

/* --- CAREER PORTAL --- */
.career-portal-header {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-bg-light);
    margin-bottom: 40px;
}

.career-search-box {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.career-search-input {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.career-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(147, 27, 52, 0.1);
}

.career-filter-select {
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-alt);
    font-weight: 600;
    background-color: var(--color-white);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.career-filter-select:focus {
    border-color: var(--color-primary);
}

/* Career Jobs Table */
.job-unit-block {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-bg-light);
    padding: 40px;
    margin-bottom: 40px;
    transition: var(--transition-normal);
}

.job-unit-block:hover {
    box-shadow: var(--shadow-medium);
}

.job-unit-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 15px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
}

.job-table th, .job-table td {
    padding: 14px 18px;
    text-align: left;
    border: 1px solid var(--color-border);
}

.job-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-alt);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.job-table td {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.job-table tr:nth-child(even) td {
    background-color: var(--color-bg-light);
}

.job-table tr:hover td {
    background-color: rgba(147, 27, 52, 0.03);
}

.job-table td:first-child {
    text-align: center;
    font-weight: 700;
    width: 60px;
}

.job-table td:nth-child(3) {
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    width: 160px;
}

.job-table td:nth-child(4) {
    text-align: center;
    font-weight: 600;
    width: 100px;
}

.job-unit-cta {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* --- CONTACT US PAGE --- */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-large);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.02);
}

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

.contact-card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    object-fit: contain;
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

.contact-card-value {
    font-size: 1.15rem;
    color: var(--color-text-dark);
}

.contact-card-value a {
    color: var(--color-primary);
    font-weight: 700;
}

.contact-card-value a:hover {
    color: var(--color-blue-gray);
    text-decoration: underline;
}

/* Contact Form Grid */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 50px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--color-bg-light);
}

.contact-form-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 35px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: span 2;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-bg-light);
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(147, 27, 52, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.form-submit-row {
    display: flex;
    justify-content: center;
}

.form-submit-row .btn-theme {
    padding: 14px 50px;
    font-size: 1rem;
}

/* Contact Validation Feedback */
.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: rgba(0, 208, 132, 0.1);
    color: #00d084;
    border: 1px solid rgba(0, 208, 132, 0.2);
}

.form-feedback.error {
    display: block;
    background-color: rgba(207, 46, 70, 0.1);
    color: #cf2e2e;
    border: 1px solid rgba(207, 46, 70, 0.2);
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    margin-top: 80px;
}

.footer-copyright {
    background-color: var(--color-secondary);
    padding: 30px 0;
    text-align: center;
}

.footer-copyright-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-white);
    line-height: 1.7;
}

.footer-copyright-text a {
    color: var(--color-white);
    font-weight: 700;
}

.footer-copyright-text a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Scroll To Top Indicator */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-medium);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

/* --- MEDIA QUERY RESPONSIVENESS --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .services-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Carousel displays 2 cards beautifully on tablet views */
    .services-carousel-track .service-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    /* Header toggle visibility */
    .menu-list {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Responsive Spacing & Typo Scaling */
    .section-padding {
        padding: 50px 0;
    }

    .section-subtitle {
        font-size: 1.55rem;
        margin-bottom: 30px;
        padding-left: 15px;
    }

    .section-subtitle::before {
        height: 24px;
        width: 5px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2.35rem;
    }
    
    /* Layout rows */
    .about-agency-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .delivering-cta-row {
        flex-direction: column;
        text-align: center;
    }
    
    .download-application-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }
    
    .tender-grid, .docs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Service Detail Split */
    .service-detail-container {
        grid-template-columns: 1fr;
    }
    
    /* Contact Details page & Forms */
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px; /* Kept vertical gap for mobile form layout */
    }
    
    .form-group-full {
        grid-column: span 1;
    }
    
    .career-search-box {
        flex-direction: column;
    }

    /* Carousel displays 1 card with swipe gestures on mobile screens */
    .services-carousel-track .service-card {
        flex: 0 0 calc(100% - 20px);
    }

    /* Adjusted Glassmorphic Carousel Buttons to avoid edge clipping */
    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }

    .carousel-nav-btn.prev {
        left: -10px;
    }

    .carousel-nav-btn.next {
        right: -10px;
    }

    /* Mini Scroll To Top Button */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    /* Action Banner font scaling */
    .action-banner-title {
        font-size: 1.85rem;
    }

    .action-banner-desc {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .services-carousel, .services-grid-container {
        grid-template-columns: 1fr;
    }
    
    .job-unit-block {
        padding: 20px;
    }
    
    .job-table th, .job-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .contact-form-container {
        padding: 25px;
    }

    /* Logo size scaled down dynamically to prevent header layout breakdown on tiny viewports */
    .logo img {
        height: 48px;
    }

    .nav-row {
        padding: 8px 0;
    }

    .mobile-toggle {
        font-size: 1.35rem;
    }
}

