/* --- Global Styles --- */
:root {
    --primary-navy: #0e1049;
    --brand-navy: #0e1049;
    --accent-blue: #2563eb;
    --brand-blue: #2563eb;
    --text-gray: #6b7280;
    --light-gray: #f9fafb;
    --slider-interval: 5000ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header --- */
/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    gap: 20px;
}

.logo img {
    height: 50px;
}

/* Central Search Bar */
.header-search-bar {
    flex: 1;
    max-width: 500px;
    background: var(--light-gray);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
    margin: 0 20px;
}

.header-search-bar:hover {
    background: white;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.header-search-bar span {
    font-size: 0.95rem;
    pointer-events: none;
}

.header-search-bar i {
    color: var(--accent-blue);
    pointer-events: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    color: var(--primary-navy);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}

.register-btn {
    background: var(--accent-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.register-btn:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-navy);
}

/* Mobile Search Icon (Hidden on Desktop) */
.mobile-search-icon {
    display: none;
    font-size: 1.2rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 16, 73, 0.9), rgba(37, 99, 235, 0.7));
}

.content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    color: white;
}

.subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.country-list {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.country-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-btn {
    background: white;
    color: var(--primary-navy);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.anim-item:nth-child(1) {
    animation-delay: 0.2s;
}

.anim-item:nth-child(2) {
    animation-delay: 0.4s;
}

.anim-item:nth-child(3) {
    animation-delay: 0.6s;
}

.anim-item:nth-child(4) {
    animation-delay: 0.8s;
}

.anim-item:nth-child(5) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hiring Section --- */
.hiring-section {
    padding: 80px 5%;
    background-color: white;
}

.hiring-intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.hiring-title {
    flex: 2;
}

.hiring-title h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hiring-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hiring-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-navy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: white;
}

.hiring-subtext {
    flex: 1;
    border-left: 4px solid var(--accent-blue);
    padding-left: 30px;
}

.hiring-subtext p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.hiring-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.hiring-image-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hiring-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brain-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--accent-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.brain-icon svg {
    width: 30px;
    height: 30px;
}

.hiring-problem-description {
    flex: 1;
    min-width: 300px;
}

.hiring-problem-description h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.hiring-problem-description p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

/* --- Who We Help Section --- */
.section-padding {
    padding: 80px 5%;
    background-color: var(--light-gray);
}

.help-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.help-header h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    overflow: hidden;
    /* Prevent content spill */
    display: flex;
    flex-direction: column;
}

.industry-card h3 {
    text-align: left;
}

.industry-card p {
    text-align: left;
}

@media (max-width: 480px) {
    .industry-card {
        padding: 20px;
    }

    .industry-card h3 {
        font-size: 1.1rem !important;
    }
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box svg {
    width: 25px;
    height: 25px;
}

.industry-card h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.industry-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- About TAACS Section --- */
.about-taacs-section {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--primary-navy);
    color: white;
}

.taacs-content-left {
    flex: 1;
    min-width: 300px;
    padding: 80px 5%;
}

.subheading {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.taacs-content-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.taacs-content-left p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

.progress-item {
    margin-bottom: 25px;
}

.progress-item-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
}

.taacs-image-right {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2671&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taacs-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 16, 73, 0.7);
}

.taacs-image-right-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.taacs-image-right-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.contact-us-btn {
    padding: 15px 40px;
    background: white;
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    display: inline-block;
}

.contact-us-btn:hover {
    background: var(--accent-blue);
    color: white;
}

/* --- Footer --- */
footer {
    background-color: #0a0c35;
    color: white;
    padding: 60px 5% 20px 5%;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0 300c50-50 100-50 150 0s100 50 150 0 100-50 150 0 100 50 150 0 100-50 150 0 100 50 150 0 100-50 150 0 100 50 150 0V0H0v300zM0 300c50 50 100 50 150 0s100-50 150 0 100 50 150 0 100-50 150 0 100 50 150 0 100-50 150 0 100 50 150 0 100-50 150 0V600H0V300z'/%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='200' cy='150' r='3'/%3E%3Ccircle cx='400' cy='200' r='3'/%3E%3Ccircle cx='600' cy='180' r='3'/%3E%3Ccircle cx='800' cy='220' r='3'/%3E%3Ccircle cx='1000' cy='160' r='3'/%3E%3Ccircle cx='300' cy='350' r='3'/%3E%3Ccircle cx='500' cy='400' r='3'/%3E%3Ccircle cx='700' cy='380' r='3'/%3E%3Ccircle cx='900' cy='420' r='3'/%3E%3Ccircle cx='1100' cy='360' r='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

footer>* {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

/* Footer Countries Section */
.footer-countries {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.country-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.country-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.country-column a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        flex-wrap: wrap;
        /* Allow items to wrap */
    }

    .header-search-bar {
        display: flex;
        /* Show it on mobile */
        width: 100% !important;
        order: 3 !important;
        /* Move to bottom of header flex container */
        margin: 15px 0 0 0 !important;
        max-width: none !important;
        /* Full width */
        flex: 0 0 100% !important;
        justify-content: center !important;
    }

    .header-search-bar span {
        flex: 1;
        text-align: center;
    }

    .mobile-search-icon {
        display: none;
        /* Hide icon, using wide bar instead */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-register {
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .register-btn {
        display: inline-block;
        width: auto;
    }

    .content h1 {
        font-size: 2.5rem;
    }

    .hiring-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .hiring-subtext {
        border-left: none;
        border-top: 4px solid var(--accent-blue);
        padding-left: 0;
        padding-top: 20px;
    }

    .taacs-image-right-content h2 {
        font-size: 2rem;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 16, 73, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    width: 90%;
    max-width: 800px;
    text-align: center;
    position: relative;
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close-search:hover {
    color: var(--accent-blue);
}

.search-input {
    width: 100%;
    padding: 20px 30px;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-bottom-color: var(--accent-blue);
}

.search-results {
    margin-top: 30px;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-result-title {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-type {
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* --- Countries Page Styles --- */
.countries-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('https://images.unsplash.com/photo-1529321044792-949d1f03e61e?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
}

.countries-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 16, 73, 0.9), rgba(37, 99, 235, 0.7));
}

.countries-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.countries-section {
    padding: 80px 5%;
    background: var(--light-gray);
}

.countries-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}


.country-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure full height in grid */
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.country-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    /* Prevent image shrinking */
}

.country-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.country-card:hover .country-image img {
    transform: scale(1.1);
}

.country-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Space out content vertically */
}

.country-info h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.view-opportunities-btn {
    align-self: flex-start;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    padding-bottom: 2px;
}

.view-opportunities-btn:hover {
    border-bottom-color: var(--accent-blue);
    padding-right: 5px;
}