/* Pixel Perfect Combined CSS */
:root {
    --primary: #00472f;
    --primary-light: #005f3f;
    --primary-dark: #003825;
    --accent: #c5a358;
    --text-main: #2d3436;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Branding specific addition */
    --biu-cyan: #4dcde6; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Assistant', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }


.biu-header {
    background-color: var(--primary);
    padding: 12px 0;
    direction: rtl;
    width: 100%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.header-content-wrapper {
    display: flex;
    justify-content: center; /* Align right for RTL */
    align-items: center;
    gap: 18px;
}

.header-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    color: var(--white);
    line-height: 1.15;
}

.header-text .line-1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.header-text .line-2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.header-text .line-3 {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 2px;
}

.header-text .line-4 {
    font-size: 1rem;
    font-weight: 500;
}

.header-text .line-5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--biu-cyan);
}

.header-logo img {
    height: 56px;
    width: auto;
    /* transition for interactive feel */
    transition: var(--transition);
}

/* Subtle hover effect for a Senior-level touch */
.header-logo img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}


.hero-section {
    position: relative;
    width: 100%;
    height: 640px; /* Adjust to match your design height */
    overflow: hidden;
    display: flex;
    align-items: center;
    direction: rtl;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the img act like a background-size: cover */
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2; /* Sits on top of the image */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    /* Subtle gradient to ensure text readability */
    background: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    margin-bottom: 100px;
}

.hero-title {
    color: var(--white);
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    font-size: 72px;
}

.hero-title .light-text {
    display: block;
    font-weight: 300; /* Use Assistant Light */
}

.hero-title .bold-text {
    display: block;
    font-weight: 800; /* Use Assistant ExtraBold */
}

/* --- Section Padding Utilities --- */

/* Vertical Padding (Top & Bottom) */
.py-section { padding-top: 60px !important; padding-bottom: 60px !important; }
.py-compact { padding-top: 40px !important; padding-bottom: 40px !important; }

/* Top Padding Only */
.pt-section { padding-top: 60px !important; }
.pt-compact { padding-top: 40px !important; }
.pt-none    { padding-top: 0 !important; }

/* Bottom Padding Only */
.pb-section { padding-bottom: 60px !important; }
.pb-compact { padding-bottom: 40px !important; }
.pb-none    { padding-bottom: 0 !important; }


/* Vertical Margin (Top & Bottom) */
.my-section { padding-top: 60px !important; padding-bottom: 60px !important; }
.my-compact { padding-top: 40px !important; padding-bottom: 40px !important; }

/* Top Padding Only */
.mt-section { padding-top: 60px !important; }
.mt-compact { padding-top: 40px !important; }
.mt-none    { padding-top: 0 !important; }

/* Bottom Padding Only */
.mb-section { padding-bottom: 60px !important; }
.mb-compact { padding-bottom: 40px !important; }
.mb-none    { padding-bottom: 0 !important; }


/* Mobile Adjustments (Optional but recommended) */
@media (max-width: 768px) {
    .py-section, .pt-section, .pb-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: var(--primary);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}


.intro-description {
    max-width: 850px;
    margin: 0 0 50px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* --- Section 1: Intro Grid (Dark Cards) --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.premium-card {
    background: var(--primary);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 2px; /* Sharp professional edges */
    position: relative;
    text-align: right;
    min-height: 200px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    flex-flow: column;
    gap: 20px;
}

.premium-card.dark {
    background: #003825; /* Slightly darker variant as seen in JPG */
}

.card-num {
    position: relative;
     /* RTL reversed */
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.premium-card p {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
}

/* --- Section 2: Procedures (Lists) --- */
.bg-light {
    background-color: #F5FAF0; /* Custom subtle green-tinted light bg */
}

.proc-grid {
    display: flex;
    gap: 30px;
    flex-flow: column;
}

.proc-column h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.proc-column ul {
    list-style: none;
    padding: 0;
}

.proc-column li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.proc-column li::before {
    content: "•";
    color: #4dcde6; /* The signature BIU light blue */
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    line-height: 1;
}

/* --- Section 3: Student Links (White Boxes) --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.link-card {
    background: var(--white);
    border: 3px solid var(--primary);
    padding: 35px 35px 35px 0;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
}

.link-card i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.link-card:hover {
    /* background: var(--primary); */
    /* color: var(--white); */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .intro-grid, .proc-grid, .links-grid {
        grid-template-columns: 1fr;
    }
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* Gallery */
.text-white { color: var(--white) !important; }
.gallery-section { 
    background: var(--primary); 
    color: var(--white);
    overflow: hidden; /* מונע סקרול אופקי מיותר */
}

.mySwiper {
    width: 100%;
    padding: 40px 0 0; /* רווח לפגנציה למטה */
}

.swiper-slide {
    transition: var(--transition);
}

.swiper-slide img { 
    width: 100%; 
    height: 500px; /* הגדלנו מעט לנוכחות Full Width */
    object-fit: cover;
    border-radius: 0; /* ב-Full Width בד"כ עדיף בלי רדיוס */
}

/* עיצוב הפגנציה שיתאים למיתוג */
.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--biu-cyan); /* שימוש בטורקיז שהגדרנו קודם */
    opacity: 1;
}

/* מיכל הניווט התחתון */
.gallery-footer-nav {
    display: flex;
    justify-content: flex-start; /* מרכוז החצים */
    gap: 15px; /* רווח בין החץ הימני לשמאלי */
    margin-bottom: 40px; /* רווח מהסליידר */
    flex-direction: row-reverse;
    max-width: 610px;
    margin: 0 auto;
    position: relative;
    top: 0;
}

/* עיצוב החצים */
.swiper-button-next,
.swiper-button-prev {
    position: static !important; /* ביטול ה-Absolute של Swiper */
    width: 50px !important;
    height: 50px !important;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white) !important;
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #00472f;
}

/* הקטנת האייקון הפנימי של החץ */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
}

/* אפקט Hover */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--white);
    color: var(--primary) !important; /* החלפת צבעים ב-Hover */
    transform: scale(1.1);
}

/* תיקון כיווניות ב-RTL (למנוע בלבול של Swiper) */
[dir="rtl"] .swiper-button-next { transform: rotate(0deg); }
[dir="rtl"] .swiper-button-prev { transform: rotate(0deg); }

/* FAQ */
.faq-item {background: var(--white);border-bottom: 1px solid #00472f;overflow: hidden;}
.faq-header {padding: 25px 0;cursor: pointer;display: flex;justify-content: space-between;font-weight: 800;color: var(--primary);width: 100%;background: none;border: 0;font-family: 'Assistant', sans-serif;font-size: 32px;}
.faq-content {max-height: 0;overflow: hidden;transition: var(--transition);padding: 0 25px;/* background: #fafafa; */font-size: 20px;color: #00472f;}
.faq-item.active .faq-content {max-height: 300px;padding: 25px 0;}

.contact-section {
    width: 100%;
    direction: rtl;
     /* צבע רקע ירקרק בהיר מה-JPG */
    overflow: hidden;
}

.contact-wrapper {
    display: flex;
    min-height: 550px;
    background: #f4f7f2;
}

/* --- צד שמאל (תמונה) --- */
.contact-info-side {
    position: relative;
    /* flex: 1; */
    display: flex;
    width: 700px;
    max-width: 100%;
}

.info-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.info-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    /* הגרדיאנט הירוק הכהה בתחתית התמונה */
    background: linear-gradient(to top, rgba(0, 71, 47, 0.9) 0%, rgba(0, 71, 47, 0.4) 30%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.info-text-content {
    color: var(--white);
    width: 100%;
}

.info-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 1.1rem;
}

.detail-row a {
    color: var(--white);
    text-decoration: underline;
}

/* --- צד ימין (טופס) --- */
.contact-form-side {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
    width: 500px;
    max-width: 100%;
}

.form-main-title {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-form {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 15px 50px; /* פאדינג בשמאל לאייקון */
    border: 1px solid #d1d1d1;
    border-radius: 30px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.input-container svg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
}

.submit-btn {
    align-self: flex-start;
    background-color: #006937;
    color: var(--white);
    border: none;
    padding: 12px 45px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.input-error {
    border: 2px solid red !important;
    background-color: #fff8f8;
}