:root {
    --purple-main: #8A2BE2;
    --purple-light: #9D4EDD;
    --purple-dark: #5A189A;
    --purple-x-dark: #3C096C;
    --black-main: #121212;
    --black-light: #1E1E1E;
    --black-lighter: #2A2A2A;
    --white-main: #FFFFFF;
    --white-accent: #E0E0E0;
    --gray-text: #D0D0D0;
    --gray-border: #383838;
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Noto Sans Hebrew', sans-serif; /* Kept for consistency, consider Noto Sans for LTR body */
    --header-height: 70px;

    --hero-bg-gradient: radial-gradient(circle at 60% 40%, rgba(60, 9, 108, 0.18) 0%, var(--black-main) 70%);
    --section-bg-gradient-subtle: 
        radial-gradient(circle at 10% 10%, rgba(90, 24, 154, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(60, 9, 108, 0.04) 0%, transparent 45%);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--black-main);
    color: var(--white-main);
    line-height: 1.8;
    overflow-x: hidden;
}

html[dir="rtl"] { text-align: right; }
html[dir="ltr"] { text-align: left; }

.container {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

h1, h2, h3, h4, .site-title-header, .nav-item, .btn, .footer-column-title, .card-title {
    font-family: var(--font-heading);
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.35;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.4rem); font-weight: 700;}
h3 { font-size: clamp(1.4rem, 3.5vw, 1.65rem); font-weight: 600;}
h4 { font-size: clamp(1.15rem, 2.8vw, 1.3rem); font-weight: 500;}

p {
    margin-bottom: 1.35em;
    color: var(--gray-text);
    font-size: clamp(0.98rem, 2.1vw, 1.1rem);
}
strong { font-weight: 600; }


a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--purple-main);
}

ul, ol {
    list-style: none;
}

.image-placeholder-container {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}
.image-placeholder-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.profile-image-placeholder-container {
    position: relative;
}
.profile-image-placeholder-container img {
     object-fit: cover;
}
.profile-image-placeholder-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    background: linear-gradient(to bottom, transparent 0%, rgba(18,18,18,0.8) 70%, var(--black-main) 100%);
    pointer-events: none; 
    border-radius: 0 0 12px 12px;
    display: none;
}


.btn {
    display: inline-block;
    padding: 0.85em 1.7em;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}
.btn-purple {
    background-color: var(--purple-main);
    color: var(--white-main);
    border-color: var(--purple-main);
}
.btn-purple:hover {
    background-color: var(--purple-light);
    border-color: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    color: var(--black-main); /* Changed text color on hover */
}
.whatsapp-btn {
    background-color: #25D366;
    color: var(--black-main); 
    border-color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}
.whatsapp-btn:hover {
    background-color: #1DAE50;
    border-color: #1DAE50;
    color: var(--black-main); /* Ensure text color remains on hover */
}
.whatsapp-btn .icon-whatsapp {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}


.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 2.5em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 0; 
    height: 3px;
    background-color: var(--purple-main);
    transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s; 
}
html[dir="rtl"] .section-title::after { right: 0; transform-origin: right; }
html[dir="ltr"] .section-title::after { left: 0; transform-origin: left; }

.section-title[data-aos="fade-up"].aos-animate::after {
    width: 60%;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
@keyframes slideDownNav {
    from { 
        opacity: 0;
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.92);
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0;
    transition: background-color 0.3s ease;
}
.site-header.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area .site-title-header {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.logo-area .site-title-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-navigation ul {
    display: flex;
    gap: 1.75rem;
}
.nav-item {
    position: relative;
    cursor: pointer;
    color: var(--white-main);
    padding-bottom: 0.3rem;
    font-size: 1rem;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--purple-main);
    transition: width 0.3s ease;
}
html[dir="rtl"] .nav-item::after { right: 0; }
html[dir="ltr"] .nav-item::after { left: 0; }

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lang-switch-link {
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--purple-main);
    border-radius: 9999px;
    background: none;
    color: var(--white-main);
    line-height: 1.2;
}
.lang-switch-link:hover {
    color: var(--purple-light);
    border-color: var(--purple-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white-main);
    cursor: pointer;
    padding: 0.5rem;
    margin-inline-start: auto; /* Handles LTR/RTL automatically */
    z-index: 1001; 
}
.mobile-menu-toggle .icon-menu,
.mobile-menu-toggle .icon-close {
    width: 1.75rem;
    height: 1.75rem;
}

.mobile-nav {
    display: none;
    background-color: rgba(18, 18, 18, 0.98); 
    padding: 1.5rem 1rem;
    position: absolute; 
    top: 100%; 
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    border-top: 1px solid var(--gray-border);
    opacity: 0; 
    transform: translateY(-30px); 
    animation-duration: 0.4s;
    animation-timing-function: ease-out;
}
.mobile-nav.open {
    display: block;
    animation-name: slideDownNav;
    animation-fill-mode: forwards; 
}
.mobile-nav ul {
    flex-direction: column;
    gap: 1.25rem;
}
.mobile-nav .nav-item {
    display: block;
    text-align: center;
    font-size: 1.1rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: var(--hero-bg-gradient);
    background-color: var(--black-main);
    padding-top: var(--header-height);
    overflow: hidden;
}
.hero-full-width-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    width: 100%;
    height: calc(100vh - var(--header-height));
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-background-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.bg-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}
.bg-blur-circle.circle-1 {
    width: 25rem;
    height: 25rem;
    background-color: var(--purple-dark);
    top: 2rem;
}
html[dir="rtl"] .bg-blur-circle.circle-1 { right: 2rem; }
html[dir="ltr"] .bg-blur-circle.circle-1 { left: 2rem; }

.bg-blur-circle.circle-2 {
    width: 30rem;
    height: 30rem;
    background-color: var(--purple-x-dark);
    bottom: 1rem;
}
html[dir="rtl"] .bg-blur-circle.circle-2 { left: 1rem; }
html[dir="ltr"] .bg-blur-circle.circle-2 { right: 1rem; }

.hero-image-wrapper { 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.hero-image-wrapper .profile-image-placeholder-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    aspect-ratio: unset;
}
 .hero-image-wrapper .profile-image-placeholder-container::after {
    display: block;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(18,18,18,0.8) 70%, var(--black-main) 100%);
}
.hero-image-wrapper .profile-image-placeholder-container img {
    object-fit: cover;
}

.hero-text-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    background: rgba(18,18,18, 0.3);
    border-radius: 12px;
    width: calc(100% - 1rem); /* Adjusted for mobile */
    max-width: 500px;
}
.hero-identity-block {
    display: inline-block; 
}
html[dir="rtl"] .hero-identity-block { text-align: right; }
html[dir="ltr"] .hero-identity-block { text-align: left; }


.hero-tagline {
    display: block;
    margin-bottom: 0.25rem;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 500;
    color: var(--purple-light);
}

.hero-title { 
    font-weight: 900;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}
.hero-subtitle {
    margin-bottom: 1rem;
    color: var(--white-accent);
    line-height: 1.8;
    text-align: center;
}

.scroll-down-arrow {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--white-main);
    text-decoration: none;
    animation: bounce 2s infinite 2s;
}
.scroll-down-arrow svg {
    width: 2.5rem;
    height: 2.5rem;
}

.content-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-image: var(--section-bg-gradient-subtle); /* Subtle gradient for sections */
    background-repeat: no-repeat;
    background-position: center center; /* Adjust as needed */
}

.about-section { background-color: var(--black-main); }
.lectures-section { background-color: var(--black-light); }
.purple-front-section { background-color: var(--black-main); }
.donations-section { background-color: var(--black-light); }
.contact-section { background-color: var(--black-main); }


.about-content-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}
.about-image-column {
    width: 100%;
}
.decorative-image-wrapper {
    position: relative;
    box-shadow: 5px 10px 30px rgba(var(--purple-dark-rgb, 90, 24, 154), 0.25);
    border-radius: 12px;
}
.decorative-image-wrapper::before {
   display: none;
}

.about-image-placeholder-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    z-index: 1;
    border-radius: 12px;
}
.about-text-column {
    width: 100%;
}
.about-text-column h3 {
    font-size: clamp(1.4rem, 3.5vw, 1.6rem);
    margin-bottom: 0.75rem;
    color: var(--white-main); 
}
.about-text-column p {
    margin-bottom: 1.25rem;
}
 .divider {
    text-align: center;
    color: var(--purple-main);
    font-size: 1.5em;
    margin: 0 auto 2.5em;
    font-weight: bold;
    width: fit-content;
}
section + .divider {
    margin-top: 0; 
    margin-bottom: 2.5em;
}


.lecture-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.card {
    background-color: var(--black-main);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--gray-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.card .image-placeholder-container {
    height: auto;
    aspect-ratio: 4 / 3; 
    background-color: rgba(88, 28, 135, 0.3);
}
.card .image-placeholder-container img {
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.card-description {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}
.card .btn {
    margin-top: auto;
}

/* Purple Homefront / Oref Section */
.homefront-logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}
.homefront-logo {
    max-width: 150px; /* Adjust as needed */
    height: auto;
    display: inline-block; /* For centering if parent is text-align:center */
}

.purple-front-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.purple-front-text-content p,
.purple-front-text-content .styled-list {
    margin-bottom: 1.25rem;
}
.styled-list {
    list-style: disc;
    color: var(--gray-text);
}
html[dir="rtl"] .styled-list { padding-right: 1.75em; }
html[dir="ltr"] .styled-list { padding-left: 1.75em; }
.styled-list li {
    margin-bottom: 0.75rem;
}

.purple-front-gallery-wrapper {
    margin-top: 2rem;
}
.swiper.purple-front-gallery {
    width: 100%;
    height: auto;
    padding-bottom: 40px;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.swiper-pagination {
    bottom: 0 !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--purple-main);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.5rem !important;
}

.donations-intro {
    max-width: 48rem;
    margin: 0 auto 3rem auto;
    text-align: center;
}
.donations-intro p {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 1.5rem;
}
.bank-transfer-details {
    background-color: var(--black-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}
.bank-transfer-details h3 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.bank-transfer-details p {
    color: var(--white-accent); 
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}
.bank-transfer-details strong {
    color: var(--white-main);
    font-weight: 500;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.contact-form-wrapper,
.contact-details-wrapper {
    background-color: var(--black-light);
    padding: 2rem;
    border-radius: 8px;
}
.contact-details-wrapper {
     height: fit-content;
}
.contact-form .form-title {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background-color: var(--black-main);
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    color: var(--white-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}
.form-group textarea {
    min-height: 6rem;
    resize: vertical;
}
.contact-form .main-contact-form textarea { min-height: 8rem; }

.btn-submit-full {
    width: 100%;
    padding-top: 0.7em;
    padding-bottom: 0.7em;
}
#form-feedback {
    margin-top: 1em;
    padding: 0.75em;
    border-radius: 6px;
    font-weight: 500;
}
#form-feedback.success {
    background-color: rgba(37, 211, 102, 0.2); /* Light green */
    color: #25D366;
    border: 1px solid #1DAE50;
}
#form-feedback.error {
    background-color: rgba(220, 53, 69, 0.2); /* Light red */
    color: #dc3545;
    border: 1px solid #bd2130;
}


.contact-details-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-info-item {
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    width: fit-content;
}
.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--purple-main);
    flex-shrink: 0;
}
.contact-info-item h4 {
    font-weight: 500;
    margin-bottom: 0.15rem;
    color: var(--white-main);
}
.contact-info-item p {
    color: var(--gray-text);
    margin-bottom: 0;
    font-size: 0.9rem;
}
.contact-info-item p a {
    color: var(--gray-text);
}
.contact-info-item p a:hover {
    color: var(--purple-light);
}
.contact-info-item p a.whatsapp-btn {
    color: var(--black-main); /* Specific for WhatsApp button text */
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
}
.social-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-text);
    transition: color 0.3s ease;
}
.social-icon svg {
    width: 100%;
    height: 100%;
}
.social-icon:hover {
    color: var(--purple-main);
}

.site-footer-main {
    background-color: var(--black-main);
    border-top: 1px solid var(--gray-border);
    padding: 2.5rem 0 1.5rem;
}
.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.footer-branding {
    margin-bottom: 1.5rem;
}
.footer-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.footer-tagline {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.footer-navigation-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.footer-contact-info {
width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-contact-info .contact-info-item {
    justify-content: center;
    margin-bottom: 0.5rem;
}
.footer-column-title {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--white-main);
}
.footer-social-icons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-border);
    width: 100%;
}
.footer-social-icons .social-icons {
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 0; 
    }
    .hero-full-width-content {
        flex-direction: row;
        text-align: initial;
        gap: 0; 
        height: 100vh; 
        max-height: none; 
        max-width: none; 
        padding: 0; 
    }
    .hero-image-wrapper {
         flex: 0 0 50%; 
         order: 1; 
         position: relative; 
         height: 100vh; 
         top: 0; 
         padding-top: var(--header-height); 
    }
    html[dir="ltr"] .hero-image-wrapper { order: 0; }

    .hero-image-wrapper .profile-image-placeholder-container {
        width: 100%; 
        height: calc(100% - var(--header-height)); /* Full height minus header space */
        margin-bottom: 0; 
        border-radius: 0; 
    }
    .hero-image-wrapper .profile-image-placeholder-container img {
        object-fit: cover; 
        object-position: center top; 
    }
    .hero-image-wrapper .profile-image-placeholder-container::after {
         display: none; 
    }

     .hero-text-content {
        flex: 1; 
        display: flex;
        flex-direction: column;
        justify-content: center;
        order: 0;
        align-items: flex-start;
        position: relative; 
        z-index: 2;
        background: transparent; 
        padding: 2rem 5%; 
        margin-top: var(--header-height); 
        max-width: none; /* Override mobile max-width */
        width: auto; /* Override mobile width */
    }
    html[dir="rtl"] .hero-text-content { align-items: flex-end; padding-right: 5%; padding-left: 2rem;}
    html[dir="ltr"] .hero-text-content { align-items: flex-start; padding-left: 5%; padding-right: 2rem;}

    .hero-identity-block {
        align-items: flex-start;
    }
    html[dir="rtl"] .hero-identity-block { align-items: flex-end; }


    .desktop-nav { display: flex; }
    .mobile-menu-toggle { display: none; }
    .mobile-nav { display: none !important; }
    
    .about-content-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .about-image-column { width: 40%; }
    .about-image-placeholder-container { max-width: none; }
    .about-text-column { width: 60%; }

    .lecture-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .purple-front-gallery-wrapper { width: 40%; margin-top: 0; }
    html[dir="rtl"] .purple-front-text-content { width: 60%; order: 0;}
    html[dir="rtl"] .purple-front-gallery-wrapper { order: 1; }
    html[dir="ltr"] .purple-front-text-content { width: 60%; order: 1;}
    html[dir="ltr"] .purple-front-gallery-wrapper { order: 0; }

    .purple-front-grid {
        flex-direction: row;
        align-items: flex-start;
    }


    .contact-grid {
        flex-direction: row;
    }
    .contact-form-wrapper { width: 60%; }
    .contact-details-wrapper { width: 40%; height: fit-content; }
    .contact-details-box { text-align: initial; align-items: flex-start; }
    .contact-info-item { justify-content: flex-start; }
    .social-icons { justify-content: flex-start; }


    .footer-container {
        flex-direction: row;
        align-items: flex-start;
        text-align: initial;
    }
    .footer-branding { margin-bottom: 0; flex-shrink: 0; }
    .footer-navigation-wrapper {
        display: flex; /* Ensure it's flex for gap to work */
        flex-direction: row;
        margin-bottom: 0;
        margin-inline-start: auto; 
        gap: 3rem; /* This should create space */
        align-items: flex-start;
        width: auto; /* Allow it to take space based on content + gap */
    }
    .footer-contact-info, .footer-social-icons {
        /* These are children of footer-navigation-wrapper or footer-container */
        /* Ensure they are distinct columns */
    }
    .footer-contact-info {
        margin-top: 0;
    }
    .footer-contact-info .contact-info-item {
        justify-content: flex-start; 
    }
    .footer-social-icons {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        width: auto;
        margin-inline-start: 2rem; /* Space from the contact info */
        text-align: initial;
    }
    .footer-social-icons .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .site-header .desktop-nav { display: none; }
    .site-header .mobile-menu-toggle { display: block; }
    .lecture-cards-grid { grid-template-columns: 1fr; }
    
    .hero-full-width-content {
        justify-content: flex-end;
        padding-bottom: 4rem;
    }
    .hero-image-wrapper {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100vh;
        z-index: 0;
    }
    .hero-image-wrapper .profile-image-placeholder-container {
        width: 100%; height: 100%; border-radius: 0;
    }
    .hero-image-wrapper .profile-image-placeholder-container::after { display: block; }

    .hero-text-content {
        position: relative; z-index: 2;
        background: rgba(18,18,18, 0.6);
        padding: 1.5rem;
        border-radius: 8px;
        width: calc(100% - 2rem); /* Adjusted for mobile */
        max-width: 500px;
    }
    .hero-identity-block { align-items: center; }
    .hero-tagline, .hero-title { text-align: center; }
    html[dir="rtl"] .hero-tagline, 
    html[dir="rtl"] .hero-title {
        text-align: center;
    }

    .footer-social-icons { order: -1; margin-bottom: 1.5rem; border-top: none; padding-top: 0;}
    .footer-navigation-wrapper { order: 0; }
    .footer-contact-info .contact-info-item { /* Ensure centering on mobile */
        justify-content: center;
    }
}

@media (min-width: 1024px) {
     .lecture-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
     .purple-front-gallery { height: 450px; }
}

.swiper-pagination-bullet {
    background-color: var(--gray-text); /* Default color for inactive bullets */
    opacity: 0.7;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--purple-main) !important; /* Brand color for active bullet */
    opacity: 1;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, 
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 5px; /* Adjust spacing if needed */
}