/* --- Global Styles --- */
body {
     /* CHANGED: Using standard System Fonts for independence */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    /* Background Gradient */
    min-height: 100vh;
    background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);  
    background-image:    -moz-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);  
    background-image:     -ms-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);  
    background-image:      -o-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);  
    background-image:         linear-gradient(to bottom, #FFFFFF 0%, #00A3EF 100%); 
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Helper class */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Section-by-Section Styles --- */

/* Line 1: Header (UPDATED - Doubled height, Right Aligned, Bold) */
.line-1 {
    display: flex;
    justify-content: flex-end; /* Moves everything to the right */
    align-items: center;
    padding: 20px 40px; /* Increased padding */
    min-height: 160px; /* Doubled height approx */
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.company-names {
    display: flex;
    flex-direction: column; /* Stack Hebrew on top of English */
    align-items: flex-end;  /* Align text to the right */
    margin-right: 25px;     /* Space between text and logo */
    font-weight: 700;       /* Bold text as requested */
}

.company-hebrew {
    font-size: 1.6rem; /* Larger Hebrew text */
    line-height: 1.2;
    color: #000;
}

.company-english {
    font-size: 1.2rem; /* English text under it */
    color: #333;
}

.logo {
    height: 110px; /* Logo size */
    width: auto;
}

/* Line 2: Blue line */
.line-2 {
    background-color: #004a99;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Line 3: Welcome Line (FIXED FOR JUMPING) */
.line-3 {
    text-align: center;
    /* We use 'relative' so the inner spans can be 'absolute' relative to this box */
    position: relative; 
    /* Fixed height ensures the box never collapses or jumps */
    height: 60px; 
    /* Flexbox centers the content vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.2rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ADD THIS NEW RULE: It forces all welcome messages to sit in the same spot */
#welcome-line span {
    position: absolute !important; /* Overrides any JavaScript movement */
    width: 100%;
    left: 0;
    margin: 0;
}

/* Line 4: Music Player */
.line-4 {
    text-align: center;
    padding: 20px;
}
.music-player {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Lines 5-7: Language Grid --- */
.language-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.language-column {
    flex-basis: 200px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 150px;
}

.language-column:hover {
    border-color: #004a99;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.15);
    transform: translateY(-5px);
}

.flag {
    width: 100px;
    height: auto;
    margin: 10px 0;
}

.choose-text {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.lang-name {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

/* --- Lines 8-9: Links Grid --- */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.link-box-multiple,
.link-box {
    flex-basis: 300px;
    flex-grow: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.link-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.link-box:hover {
    border-color: #004a99;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.15);
    transform: translateY(-5px);
}

.link-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.link-box span {
    font-weight: 500;
    font-size: 1.1rem;
}

.link-box-multiple img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.multi-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* --- Lines 10-11: Media Grid --- */
.media-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.media-column {
    flex-basis: 250px;
    flex-grow: 1;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.media-item {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #ccc;
}

/* --- Styled Link --- */
.styled-link {
    color: #004a99;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.styled-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #004a99;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.styled-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* --- Contact Us Form --- */
.contact-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-section h2 {
    text-align: center;
    color: #004a99;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #004a99;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #003366;
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #aaa;
    margin-top: 30px;
}