* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', 'Tahoma', 'Arabic UI Display', 'Arabic UI Text', sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e3a5f;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px 40px 20px;
    overflow: hidden;
    min-height: 220px;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    margin-top: 20px;
}

.header-line-1 {
    display: block;
}

.header-line-2 {
    display: block;
}

.logo-ticker-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    /* Ensure animation starts immediately on page load */
}

.logo-ticker {
    display: flex;
    align-items: center;
    gap: 100px;
    width: fit-content;
    height: 100%;
    animation: tickerScroll 50s linear infinite;
    animation-play-state: running;
    will-change: transform;
    padding-top: 30px;
    opacity: 0.45;
    /* Slow, smooth, continuous animation from right to left */
    /* Calculate: 3 items (200px each) + 2 gaps (100px each) = 800px */
    /* Animation moves exactly 800px so duplicate set aligns perfectly for seamless loop */
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-800px);
    }
}

.ticker-item {
    flex-shrink: 0;
    width: 200px;
    height: 80px;
    max-width: 200px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: width 0.3s ease, height 0.3s ease;
}

.ticker-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: transform 0.3s ease;
}


header h1 {
    font-size: 2.5rem;
    color: #1e3a5f;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(179, 229, 252, 0.3);
    position: relative;
    display: inline-block;
    z-index: 3;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #b3e5fc, #4fc3f7, #b3e5fc);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.8rem;
    color: #1e3a5f;
    font-weight: 700;
    position: relative;
    z-index: 3;
    margin-top: 0;
    display: inline-block;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(79, 195, 247, 0.4);
    animation: pulse 2s ease-in-out infinite, fadeInUp 1s ease-out;
    background: linear-gradient(135deg, #1e3a5f 0%, #4fc3f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

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

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

.job-dropdown {
    width: 100%;
    max-width: 500px;
    padding: 14px 20px;
    background-color: #ffffff;
    border: 2px solid #b3e5fc;
    border-radius: 25px;
    font-size: 1rem;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234fc3f7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 12px;
    padding-left: 50px;
    padding-right: 20px;
    text-align: right;
    direction: rtl;
}

.job-dropdown:hover {
    background-color: #e1f5fe;
    border-color: #81d4fa;
}

.job-dropdown:focus {
    outline: none;
    border-color: #4fc3f7;
    background-color: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.job-dropdown option {
    padding: 12px;
    background-color: #ffffff;
    color: #1e3a5f;
    text-align: right;
    direction: rtl;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

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

.job-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(179, 229, 252, 0.3);
    display: flex;
    gap: 35px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
    direction: rtl;
}

.job-image {
    flex: 0 0 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(179, 229, 252, 0.2);
    max-width: 100%;
}

.job-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.job-description {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    text-align: right;
}

.job-description h2 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 10px;
    font-weight: 400;
    text-align: right;
}

.location {
    color: #5a7a9a;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: right;
}

.job-description > p {
    line-height: 2;
    color: #4a6a8a;
    margin-bottom: 25px;
    font-size: 1.05rem;
    text-align: right;
    word-spacing: 2px;
}

.job-description h3 {
    font-size: 1.3rem;
    color: #1e3a5f;
    margin: 25px 0 15px 0;
    font-weight: 400;
    text-align: right;
}

.job-description ul {
    list-style: none;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 25px;
}

.job-description ul li {
    padding: 10px 0;
    padding-right: 35px;
    position: relative;
    color: #4a6a8a;
    line-height: 1.8;
    text-align: right;
    margin-bottom: 5px;
}

.job-description ul li:before {
    content: "✓";
    position: absolute;
    right: 5px;
    color: #4fc3f7;
    font-weight: bold;
    font-size: 1.1rem;
}

.apply-btn {
    background-color: #b3e5fc;
    color: #1e3a5f;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 20px;
    display: inline-block;
}

.apply-btn:hover {
    background-color: #81d4fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 195, 247, 0.3);
}

.job-description a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-description a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* Large Tablets and Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    header {
        padding: 40px 15px;
        min-height: 180px;
    }
    
    .ticker-item {
        width: 150px;
        height: 60px;
    }
    
    .logo-ticker {
        gap: 80px;
        padding-top: 35px;
        animation-duration: 45s;
    }
    
    .job-card {
        padding: 25px;
        gap: 25px;
    }
    
    .job-image {
        flex: 0 0 280px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    body {
        padding: 15px;
    }
    
    header {
        padding: 35px 15px;
        min-height: 160px;
    }
    
    .ticker-item {
        width: 130px;
        height: 50px;
    }
    
    .logo-ticker {
        gap: 70px;
        padding-top: 30px;
        animation-duration: 40s;
    }
    
    header {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    header h1 {
        font-size: 2.2rem;
        font-weight: 700;
    }
    
    header h1::after {
        width: 70px;
        height: 3px;
    }
    
    .job-card {
        padding: 25px;
        gap: 20px;
    }
    
    .job-image {
        flex: 0 0 250px;
    }
    
    .job-image img {
        height: 220px;
    }
    
    .job-description h2 {
        font-size: 1.8rem;
    }
    
    .tabs-container {
        margin-bottom: 25px;
    }
    
    .job-dropdown {
        padding: 12px 18px;
        font-size: 0.95rem;
        padding-left: 45px;
        padding-right: 18px;
        background-position: left 18px center;
    }
}

/* Small Tablets (600px - 768px) */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    header {
        padding: 30px 12px;
        min-height: 140px;
    }
    
    .ticker-item {
        width: 110px;
        height: 45px;
    }
    
    .logo-ticker {
        gap: 60px;
        padding-top: 25px;
        animation-duration: 35s;
    }
    
    header {
        padding: 20px 0;
        margin-bottom: 25px;
    }
    
    header h1 {
        font-size: 2rem;
        font-weight: 700;
    }
    
    header h1::after {
        width: 60px;
        height: 3px;
        bottom: -6px;
    }
    
    .subtitle {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }
    
    .job-card {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .job-image {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .job-image img {
        height: 200px;
    }
    
    .job-description {
        min-width: 100%;
        width: 100%;
    }
    
    .job-description h2 {
        font-size: 1.7rem;
    }
    
    .job-description h3 {
        font-size: 1.2rem;
    }
    
    .job-description > p {
        font-size: 1rem;
    }

    .tabs-container {
        margin-bottom: 20px;
    }
    
    .job-dropdown {
        padding: 12px 18px;
        font-size: 0.9rem;
        padding-left: 45px;
        padding-right: 18px;
        background-size: 11px;
        background-position: left 18px center;
    }
    
    .apply-btn {
        width: 100%;
        padding: 14px 30px;
    }
}

/* Mobile Phones (480px - 600px) */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 25px 10px;
        min-height: 120px;
    }
    
    .ticker-item {
        width: 90px;
        height: 35px;
    }
    
    .logo-ticker {
        gap: 50px;
        padding-top: 20px;
        animation-duration: 30s;
    }
    
    header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.75rem;
        font-weight: 700;
    }
    
    header h1::after {
        width: 50px;
        height: 3px;
        bottom: -5px;
    }
    
    .subtitle {
        font-size: 1.4rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }
    
    .job-card {
        padding: 18px;
        border-radius: 15px;
    }
    
    .job-image {
        border-radius: 12px;
    }
    
    .job-image img {
        height: 180px;
    }
    
    .job-description h2 {
        font-size: 1.5rem;
    }
    
    .job-description h3 {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
    }
    
    .job-description > p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .job-description ul li {
        font-size: 0.9rem;
        padding: 6px 0;
        padding-right: 40px;
    }
    
    .job-description ul li:before {
        right: 5px;
    }
    
    .location {
        font-size: 0.9rem;
    }
    
    .tabs-container {
        margin-bottom: 15px;
    }
    
    .job-dropdown {
        padding: 11px 16px;
        font-size: 0.85rem;
        padding-left: 40px;
        padding-right: 16px;
        background-size: 10px;
        background-position: left 16px center;
    }
    
    .apply-btn {
        font-size: 0.95rem;
        padding: 12px 25px;
    }
}

/* Small Mobile Phones (< 480px) */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    header {
        padding: 20px 8px;
        min-height: 100px;
    }
    
    .ticker-item {
        width: 70px;
        height: 30px;
    }
    
    .logo-ticker {
        gap: 40px;
        padding-top: 15px;
        animation-duration: 25s;
    }
    
    header {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        font-weight: 700;
    }
    
    header h1::after {
        width: 45px;
        height: 2.5px;
        bottom: -4px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 1px;
    }
    
    .job-card {
        padding: 15px;
        border-radius: 12px;
        gap: 15px;
    }
    
    .job-image img {
        height: 160px;
    }
    
    .job-description h2 {
        font-size: 1.3rem;
    }
    
    .job-description h3 {
        font-size: 1rem;
        margin: 15px 0 10px 0;
    }
    
    .job-description > p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .job-description ul {
        margin-bottom: 20px;
    }
    
    .job-description ul li {
        font-size: 0.85rem;
        padding: 5px 0;
        padding-right: 35px;
    }
    
    .job-description ul li:before {
        right: 5px;
    }
    
    .location {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .tabs-container {
        margin-bottom: 12px;
    }
    
    .job-dropdown {
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
        padding-left: 38px;
        padding-right: 14px;
        background-size: 10px;
        background-position: left 14px center;
    }
    
    .apply-btn {
        font-size: 0.9rem;
        padding: 11px 20px;
        width: 100%;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 360px) {
    header {
        padding: 15px 6px;
        min-height: 90px;
    }
    
    .ticker-item {
        width: 60px;
        height: 25px;
    }
    
    .logo-ticker {
        gap: 35px;
        padding-top: 12px;
        animation-duration: 20s;
    }
    
    header h1 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    header h1::after {
        width: 40px;
        height: 2.5px;
        bottom: -4px;
    }
    
    .subtitle {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 1px;
    }
    
    .job-dropdown {
        padding: 9px 12px;
        font-size: 0.75rem;
        padding-left: 35px;
        padding-right: 12px;
        background-size: 9px;
        background-position: left 12px center;
    }
    
    .job-description h2 {
        font-size: 1.2rem;
    }
    
    .job-description ul li {
        padding-right: 30px;
    }
    
    .job-description ul li:before {
        right: 3px;
    }
    
    .job-image img {
        height: 140px;
    }
}

/* Landscape Orientation for Tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .job-card {
        flex-direction: row;
    }
    
    .job-image {
        flex: 0 0 200px;
    }
    
    .job-image img {
        height: 180px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .job-dropdown {
        padding: 14px 20px;
        min-height: 44px;
        padding-left: 50px;
        padding-right: 20px;
        background-position: left 20px center;
    }
    
    .apply-btn {
        padding: 14px 30px;
        min-height: 44px;
    }
    
    .apply-btn:hover {
        transform: none;
    }
}

