:root {
    --talpiot-dark-blue: #0B132B;
    --talpiot-gold: #D4AF37;
    --talpiot-hover-blue: #0A1B32;
    --talpiot-light-blue: #2a4070;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Assistant', sans-serif;
    color: #0d1a2e;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    background-image: url('../images/blue-background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--talpiot-dark-blue);
}

body.registration-page {
    background-image: none;
    background-color: #f0f2f5;
    color: #333;
}

main {
    flex-grow: 1;
    min-height: calc(100vh - 80px);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: #D4AF37;
    text-decoration: none;
}

a:hover {
    color: #f0c859;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100%;
    max-width: 100vw;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    overflow-x: hidden;
}

.site-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
}

.header-actions {
    margin-right: auto;
}

.logo a {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0d1a2e;
    text-decoration: none;
}

.header-logo {
    height: 120px;
    max-height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0px;
    flex-wrap: nowrap;
}

.main-nav a {
    text-decoration: none;
    color: #343a40;
    font-weight: 600;
    padding: 4px;
    bottom: 5px;
    position: relative;
    transition: color 0.3s, transform 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #007bff;
    transform: translateX(-5px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #007bff;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.lang-button {
    background: transparent;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-button:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.cta-button {
    background-color: var(--talpiot-gold);
    color: var(--talpiot-dark-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #9c7430;
}

.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
}

.nav-line-2 {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }

    .header-logo {
        height: 65px !important;
        max-height: 65px !important;
        width: auto !important;
        flex-shrink: 0;
    }

    .site-header .container {
        gap: 0px;
        flex-wrap: nowrap;
    }

    .main-nav a {
        font-size: 0.65rem;
        padding: 0;
    }

    .cta-button {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .lang-button {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .nav-line-2 {
        margin-top: 8px !important;
    }

    .main-nav ul li {
        padding: 0 0px;
    }
}

@media (max-width: 480px) {
    .site-header .header-logo {
        height: 55px !important;
        max-height: 55px !important;
        width: auto !important;
        flex-shrink: 0;
    }

    .site-header .container {
        gap: 5px;
    }

    .main-nav ul {
        gap: 4px;
    }

    .main-nav a {
        font-size: 0.55rem;
    }

    .cta-button {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
    }

    .nav-line-2 {
        margin-top: 4px !important;
    }

    .main-nav ul li {
        padding: 0 2px;
    }
}

.home-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: var(--talpiot-dark-blue);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
    border-bottom: none;
    width: 100%;
    max-width: 100vw;
}

.home-header .main-nav a {
    color: var(--talpiot-gold);
}

.home-header .main-nav a::after {
    background-color: var(--talpiot-gold);
}

.home-header .main-nav a:hover {
    color: white;
}

.home-header .lang-button {
    border: 1px solid var(--talpiot-gold);
    color: var(--talpiot-gold);
    background-color: transparent;
}

.home-header .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--talpiot-gold);
    border-radius: 6px;
    color: var(--talpiot-gold);
    gap: 12px;
    padding: 5px 8px;
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 100%;
    margin: auto 0;
}

.home-header .cta-button svg {
    stroke: var(--talpiot-gold);
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.home-header .cta-button:hover {
    color: white;
    transform: translateY(0);
    border-radius: 6px;
    border: 1px solid var(--talpiot-gold);
}

.home-header .cta-button:hover svg {
    stroke: white;
    transform: translateX(-3px);
}

.hero-section {
    position: relative;
    color: white;
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-background {
        background-size: cover;
        background-position: center center;
    }
}

.main-nav {
    gap: 4px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1rem 1rem;
    max-width: 350px;
    width: 70%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-logo-inside {
    width: 130px;
    height: auto;
    margin-bottom: 0rem;
    clip-path: inset(0 0 26% 0);
    margin: 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--talpiot-dark-blue);
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
    word-wrap: break-word;
}

.hero-section h1 .word {
    display: inline-block;
    margin: 0 0.2rem;
}

.hero-section h1 span span {
    animation: run-light 4s infinite;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--talpiot-dark-blue);
    opacity: 0.9;
    margin: 0 auto 1.5rem auto;
    max-width: 48rem;
    word-wrap: break-word;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--talpiot-dark-blue);
    opacity: 0.9;
    word-wrap: break-word;
    margin: 0;
    margin-bottom: 0.5rem;
}

.hero-content p:first-of-type {
    margin-top: -1.5rem;
}

.hero-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    background-color: #1a2845;
    color: var(--talpiot-gold);
    border: 2px solid #1a2845;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.hero-button:hover {
    background-color: var(--talpiot-gold);
    color: #1a2845;
    border-color: var(--talpiot-gold);
}

.hero-button > span,
.hero-button > i,
.hero-button > svg {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 5px !important;
    color: inherit !important;
    display: inline-block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
}

.hero-content .hero-button {
    margin-top: 0.5rem;
    display: inline-flex;
    background-color: var(--talpiot-dark-blue);
    color: var(--talpiot-gold);
    border-color: var(--talpiot-dark-blue);
}

.hero-content .hero-button:hover {
    background-color: var(--talpiot-hover-blue);
    color: white;
    border-color: var(--talpiot-hover-blue);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        height: 70vh;
    }
    .hero-content {
        max-width: 300px;
        width: 85%;
        padding: 0.8rem 0.8rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .hero-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

#about-section {
    background-color: transparent;
    color: #ffffff;
    padding: 4rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

#about-section .section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

#about-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    word-wrap: break-word;
    color: white;
}

#about-section .section-header p {
    font-size: 1.35rem !important;
    color: var(--talpiot-gold) !important;
    font-weight: 600 !important;
    line-height: 1.8;
    word-wrap: break-word;
}

.cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

.flip-card {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

@keyframes hover-flip-return {
    0% {
        transform: rotateY(0deg);
    }
    12.5% {
        transform: rotateY(180deg);
    }
    87.5% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.flip-card:hover .flip-card-inner {
    animation: hover-flip-return 5s ease-in-out;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.flip-card-front {
    background: var( linear-gradient(135deg, rgba(41, 128, 185, 0.1), rgba(142, 68, 173, 0.1)));
    border: 1px solid #3e4c66;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: pulse-glow 5s infinite ease-in-out;
}

.cards-grid .flip-card:nth-child(2) .flip-card-front {
    animation-delay: 0.4s;
}

.cards-grid .flip-card:nth-child(3) .flip-card-front {
    animation-delay: 0.8s;
}

.icon-wrapper {
    width: 80px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.icon-wrapper.style-2 {
    background-color: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
}

.icon-wrapper.style-3 {
    background-color: rgba(255, 193, 7, 0.1);
    color:#9c7430;
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.flip-card-front h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    color: white;
    word-wrap: break-word;
    text-align: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    overflow: hidden;
}

.flip-card:nth-child(1) .flip-card-back {
    background: rgba(52, 152, 219, 0.35) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
}

.flip-card:nth-child(2) .flip-card-back {
    background: rgba(155, 89, 182, 0.35) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(155, 89, 182, 0.3) !important;
}

.flip-card:nth-child(3) .flip-card-back {
    background: rgba(212, 175, 55, 0.35) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.flip-card-back h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--talpiot-gold) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.flip-card-back p {
    font-size: 0.95rem;
    color: #ffffff !important;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.back-button {
    display: none !important;
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(-5px);
    }
}

.flip-card:nth-child(1) .icon-wrapper svg {
    animation: float-bounce 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.flip-card:nth-child(2) .icon-wrapper svg {
    animation: sparkle 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rotate-star {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.flip-card:nth-child(3) .icon-wrapper svg {
    animation: rotate-star 4s linear infinite;
    transform-origin: center;
}

@media (max-width: 768px) {
    #about-section {
        padding: 3rem 0.5rem;
    }

    #about-section h2 {
        font-size: 2rem;
    }

    #about-section .section-header p {
        font-size: 1.1rem !important;
    }

    .cards-grid {
        gap: 0.8rem !important;
        padding: 0 0.3rem;
    }

    .flip-card {
        height: 150px;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .icon-wrapper svg {
        width: 22px;
        height: 22px;
    }

    .flip-card-front h3 {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }

    .flip-card-back {
        padding: 0.6rem;
    }

    .flip-card-back h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .flip-card-back p {
        font-size: 0.62rem;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        gap: 0.6rem !important;
        padding: 0 0.2rem;
    }

    .flip-card {
        height: 135px;
    }

    .icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .icon-wrapper svg {
        width: 16px;
        height: 16px;
    }

    .flip-card-front h3 {
        font-size: 0.72rem;
    }

    .flip-card-back {
        padding: 0.5rem;
    }

    .flip-card-back h3 {
        font-size: 0.72rem;
    }

    .flip-card-back p {
        font-size: 0.53rem;
        line-height: 1.15;
    }
}

#staff-section,
#coordinators-section {
    background-color: transparent;
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

#staff-section .section-header h2,
#coordinators-section .section-header h2 {
    color: #ffffff;
    word-wrap: break-word;
}

#staff-section h2,
#coordinators-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
    padding: 0 1rem;
}

.coordinators-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member-card {
    color: #ffffff;
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card p {
    color: #adb5bd;
    word-wrap: break-word;
}

.team-member-card img {
    border: 1.5px solid var(--talpiot-gold);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%; 
    margin-bottom: 0.8rem; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#staff-section .team-member-card img {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    object-position: center 35%;
}

.team-member-card h4 {
    margin: 0 0 0.2rem 0; 
    font-size: 1.5rem;
    font-weight: 700;
    word-wrap: break-word;
    color: var(--talpiot-gold);
}

.team-member-card p {
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 0.5rem; 
}


.team-member-card.israel-no-image-fix p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #staff-section,
    #coordinators-section {
        padding: 1rem 0;
    }

    #staff-section h2,
    #coordinators-section h2 {
        font-size: 2rem;
    }

    @media (max-width: 768px) {
    /* ... (כללים שאינם קשורים לרכזים נשארים) ... */
    
    .team-member-card img {
        width: 80px;
        height: 80px;
    }
    

    #coordinators-section .coordinators-grid .team-member-card:nth-child(4) h4 {
        margin-top: 0 !important;
    }
    
    .team-member-card h4 {
        font-size: 1.2rem;
    }

   
    }

    .team-member-card p {
        font-size: 0.85rem;
    }
}

.coordinators-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

#staff-section .section-header h2::before,
#coordinators-section .section-header h2::before {
    content: '';
    display: block;
    width: 250px;
    height: 0.1px;
    background-color: var(--talpiot-gold);
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

#graduates-testimonials-section {
    padding: 4rem 2rem;
    background-color: transparent;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.graduates-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.graduates-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--talpiot-gold);
    text-align: right;
    margin-bottom: 3rem;
    text-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    word-wrap: break-word;
}

.year-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--talpiot-gold);
    text-align: center;
    margin: 3rem 0 2rem 0;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    word-wrap: break-word;
}

.testimonials-grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

.testimonials-grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
}

.graduate-card {
    background: rgba(255, 255, 255, 0.50);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.graduate-card.is-visible {
    animation: fadeInUp 1s ease-out forwards;
}

.graduate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.graduate-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    margin: 2rem auto 1rem;
    display: block;
    border: 3px solid var(--talpiot-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.graduate-card:hover .graduate-photo {
    transform: scale(1.05);
}

.graduate-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--talpiot-gold);
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    word-wrap: break-word;
}

.graduate-card.no-photo .graduate-name {
    margin-top: 3rem !important;
}

.graduate-position {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--talpiot-gold);
    margin-bottom: 0.5rem;
    font-style: italic;
    word-wrap: break-word;
}

.graduate-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #0B132B;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 992px) {
    .testimonials-grid.grid-3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .testimonials-grid.grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 100%;
    }

    .graduate-card {
        padding: 2rem;
    }

    .graduate-name {
        font-size: 1.6rem;
    }

    .graduate-position {
        font-size: 1rem;
    }

    .graduate-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #graduates-testimonials-section {
        padding: 3rem 1rem;
    }

    .graduate-photo {
        width: 70px;
        height: 70px;
        margin: 1.5rem auto 0.8rem;
        border: 2px solid var(--talpiot-gold);
    }

    .graduate-card.no-photo .graduate-name {
        margin-top: 2.5rem !important;
    }

    .graduates-main-title {
        font-size: 2.2rem;
    }

    .year-heading {
        font-size: 1.8rem;
        margin: 2.5rem 0 1.5rem 0;
    }

    .testimonials-grid.grid-3,
    .testimonials-grid.grid-2 {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .graduate-card {
        padding: 2rem;
    }

    .graduate-name {
        font-size: 1.5rem;
    }

    .graduate-position {
        font-size: 1.1rem;
    }

    .graduate-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    #graduates-testimonials-section {
        padding: 2rem 0.5rem;
    }

    .graduate-photo {
        width: 60px;
        height: 60px;
        margin: 1.2rem auto 0.6rem;
        border: 2px solid var(--talpiot-gold);
    }

    .graduate-card.no-photo .graduate-name {
        margin-top: 2rem !important;
    }

    .graduates-main-title {
        font-size: 1.8rem;
    }

    .year-heading {
        font-size: 1.5rem;
    }

    .testimonials-grid.grid-3,
    .testimonials-grid.grid-2 {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .graduate-card {
        padding: 1.5rem;
    }

    .graduate-name {
        font-size: 1.3rem;
    }

    .graduate-position {
        font-size: 0.9rem;
    }

    .graduate-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.hero-content {
    max-width: 280px;
    width: 90%;
    padding: 0.5rem 0.5rem;
}

#graduates-gallery-section {
    padding: 4rem 1rem;
    background-color: transparent;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--talpiot-gold);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    aspect-ratio: 1 / 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
    width: 100%;
    max-width: 100%;
}

.gallery-image.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.gallery-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    box-shadow: 0 0 0 0 var(--talpiot-gold);
    opacity: 0;
    transition: box-shadow 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    border-radius: 12px;
    z-index: 2;
}

.gallery-image:hover img {
    transform: scale(1.06);
    filter: brightness(0.8);
}

.gallery-image:hover::after {
    box-shadow: 0 0 20px 8px var(--talpiot-gold) !important;
    opacity: 1 !important;
}

.gallery-grid .gallery-image:nth-child(1) { transition-delay: 0.1s; }
.gallery-grid .gallery-image:nth-child(2) { transition-delay: 0.25s; }
.gallery-grid .gallery-image:nth-child(3) { transition-delay: 0.4s; }
.gallery-grid .gallery-image:nth-child(4) { transition-delay: 0.55s; }
.gallery-grid .gallery-image:nth-child(5) { transition-delay: 0.3s; }
.gallery-grid .gallery-image:nth-child(6) { transition-delay: 0.45s; }
.gallery-grid .gallery-image:nth-child(7) { transition-delay: 0.6s; }
.gallery-grid .gallery-image:nth-child(8) { transition-delay: 0.75s; }
.gallery-grid .gallery-image:nth-child(9) { transition-delay: 0.5s; }
.gallery-grid .gallery-image:nth-child(10) { transition-delay: 0.65s; }
.gallery-grid .gallery-image:nth-child(11) { transition-delay: 0.8s; }
.gallery-grid .gallery-image:nth-child(12) { transition-delay: 0.95s; }

@media (max-width: 768px) {
    #graduates-gallery-section {
        padding: 3rem 0.5rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-grid {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        gap: 0.3rem;
    }
}

#about-story-section {
    position: relative;
    padding: 3rem 2rem;
    min-height: 100vh;
    background: transparent;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color:#bb7d00;
    text-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    word-wrap: break-word;
}

.story-text-box h2,
.story-text-box p,
.story-text-box ul li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.story-text-box h2.is-visible,
.story-text-box p.is-visible,
.story-text-box ul li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.story-text-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #D4AF37;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-right: 5px solid #D4AF37;
    padding-right: 1.5rem;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    word-wrap: break-word;
}

.story-text-box p {
    font-size: 1.25rem;
    line-height: 2;
    margin-bottom: 1.8rem;
    color: #ffffff;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.story-text-box p strong {
    color: #D4AF37;
    font-weight: 700;
}

.story-text-box ul {
    list-style: none;
    padding-right: 0;
    margin: 2rem 0;
}

.story-text-box ul li {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    padding-right: 2.5rem;
    position: relative;
    color: #ffffff;
    word-wrap: break-word;
}

.story-text-box ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.4rem;
}

.story-text-box ul li strong {
    color: #D4AF37;
}

.highlight-text {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0;
    border: none;
    box-shadow: none;
    color: #D4AF37;
    word-wrap: break-word;
}

.highlight-text strong {
    color: #D4AF37;
}

.final-message {
    text-align: center;
    font-weight: 800;
    color: var(--talpiot-gold);
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--talpiot-gold);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    max-width: 90%;
    animation: gold-glow 4s infinite ease-in-out;
    background-color: rgba(11, 19, 43, 0.5);
}

.final-message .final-highlight {
    font-size: 1rem;
    font-weight: 800;
    color: var(--talpiot-gold);
    margin-bottom: 0.5rem;
    padding: 0;
    line-height: 1.2;
}

.final-message .final-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.6;
    max-width: 90%;
    text-align: center;
}

@media (max-width: 768px) {
    #about-story-section {
        padding: 2rem 1rem;
    }

    .story-content {
        padding: 1rem;
    }

    .story-title {
        font-size: 2rem;
    }

    .story-text-box h2 {
        font-size: 1.6rem;
        padding-right: 1rem;
    }

    .story-text-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .story-text-box ul li {
        font-size: 1rem;
        padding-right: 2rem;
    }

    .final-message {
        font-size: 1.4rem;
    }
}

#partners-section {
    padding: 5rem 1rem;
    min-height: calc(100vh - 80px);
    background-color: transparent;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partners-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.partners-intro h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--talpiot-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.partners-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    word-wrap: break-word;
}

.partners-subheadline-decorated {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--talpiot-gold);
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    word-wrap: break-word;
    padding: 0 1rem;
}

.partners-subheadline-decorated::before,
.partners-subheadline-decorated::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.5);
    max-width: 150px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.partner-logo {
    background-color: rgba(11, 19, 43, 0.65);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.partner-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(11, 19, 43, 0.8);
}

.partner-logo img {
    max-height: 80px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-logo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.partners-grid .partner-logo:nth-child(1) { transition-delay: 0.1s; }
.partners-grid .partner-logo:nth-child(2) { transition-delay: 0.25s; }
.partners-grid .partner-logo:nth-child(3) { transition-delay: 0.4s; }
.partners-grid .partner-logo:nth-child(4) { transition-delay: 0.55s; }
.partners-grid .partner-logo:nth-child(5) { transition-delay: 0.3s; }
.partners-grid .partner-logo:nth-child(6) { transition-delay: 0.45s; }
.partners-grid .partner-logo:nth-child(7) { transition-delay: 0.6s; }
.partners-grid .partner-logo:nth-child(8) { transition-delay: 0.75s; }

@media (max-width: 768px) {
    #partners-section {
        padding: 3rem 0.5rem;
    }

    .partners-intro h1 {
        font-size: 2.3rem;
    }

    .partners-intro p {
        font-size: 1.1rem;
    }

    .partners-subheadline-decorated {
        font-size: 1.5rem;
        gap: 1rem;
    }

    .partners-grid {
        gap: 1rem;
    }

    .partner-logo {
        height: 100px;
        padding: 1rem;
    }

    .partner-logo img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .partners-intro h1 {
        font-size: 2rem;
    }

    .partners-intro p {
        font-size: 1rem;
    }

    .partners-subheadline-decorated {
        font-size: 1.3rem;
    }

    .partners-grid {
        gap: 0.5rem;
    }

    .partner-logo {
        height: 80px;
        padding: 0.7rem;
    }

    .partner-logo img {
        max-height: 45px;
    }
}

#community-section {
    padding: 5rem 1rem;
    min-height: calc(100vh - 80px);
    background-color: transparent;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.community-intro.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.community-intro h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--talpiot-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.community-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    word-wrap: break-word;
}

.social-links-section {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1.8px solid rgba(212, 175, 55, 0.3);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out 0.3s, transform 1.5s ease-out 0.3s;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
}

.social-links-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-links-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--talpiot-gold);
    margin-bottom: 2.5rem;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    #community-section {
        min-height: 100vh;
        justify-content: center;
        padding: 2rem 0.5rem;
    }
}

.social-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--talpiot-gold);
    color: var(--talpiot-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.social-icon-link i {
    font-size: 2.5rem;
    margin: 0;
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-10px);
    animation: bounce 0.6s ease;
    color: white;
    z-index: 10;
}

.social-icon-link:hover i {
    transform: scale(1.1);
}

.social-icon-link.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-icon-link.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #DD2A7B;
}

.social-icon-link.linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

.social-icon-link.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
}

@media (max-width: 768px) {
    .community-intro h1 {
        font-size: 2.3rem;
    }

    .community-intro p {
        font-size: 1.1rem;
    }

    .social-links-section {
        width: 80% !important;
    }

    .social-links-section h2 {
        font-size: 1.6rem;
    }

    .social-icons-wrapper {
        gap: 2rem;
    }

    .social-icon-link {
        width: 60px;
        height: 60px;
    }

    .social-icon-link i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .social-links-section {
        width: 90% !important;
    }

    .social-links-section h2 {
        font-size: 1.4rem;
    }

    .social-icons-wrapper {
        gap: 1.5rem;
    }

    .social-icon-link {
        width: 55px;
        height: 55px;
    }

    .social-icon-link i {
        font-size: 1.6rem;
    }
}

#contact-section {
    padding: 5rem 1rem;
    min-height: calc(100vh - 80px);
    background-color: transparent;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    #contact-section {
        min-height: 100vh;
        justify-content: center;
        padding: 2rem 0.5rem;
    }
}

.contact-background,
.contact-overlay,
.divider {
    display: none;
}

.contact-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--talpiot-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.contact-divider-line {
    width: 300px !important;
    height: 1px !important;
    background-color: rgba(212, 175, 55, 0.5) !important;
    margin: 0 auto 2rem auto !important;
    display: block !important;
}

.contact-grid {
    text-align: center;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-person {
    text-align: center;
    width: 100%;
}

.contact-person h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 2.5rem;
    word-wrap: break-word;
}

.icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--talpiot-gold);
    color: var(--talpiot-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.contact-icon-link i {
    font-size: 2.5rem;
    margin: 0;
    transition: transform 0.3s ease;
}

.contact-icon-link:hover {
    transform: translateY(-10px);
    animation: bounce 0.6s ease;
    color: white;
    z-index: 10;
}

.contact-icon-link:hover i {
    transform: scale(1.1);
}

.contact-icon-link.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
}

.contact-icon-link.email:hover {
    background-color: #007bff;
    border-color: #007bff;
}

.contact-wrapper.fade-in-up {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 1.5s ease-out 0.1s, transform 1.5s ease-out 0.1s !important;
}

.contact-wrapper.fade-in-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.contact-grid.fade-in-up {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 1.5s ease-out 0.5s, transform 1.5s ease-out 0.5s !important;
}

.contact-grid.fade-in-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .contact-wrapper h2 {
        font-size: 2rem;
    }

    .contact-person h3 {
        font-size: 1.7rem;
    }

    .contact-wrapper,
    .contact-grid {
        max-width: 90%;
    }

    .icons-wrapper {
        gap: 2rem;
    }

    .contact-icon-link {
        width: 60px;
        height: 60px;
    }

    .contact-icon-link i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contact-wrapper,
    .contact-grid {
        max-width: 95%;
    }

    .contact-person h3 {
        font-size: 1.5rem;
    }

    .icons-wrapper {
        gap: 1.5rem;
    }

    .contact-icon-link {
        width: 55px;
        height: 55px;
    }

    .contact-icon-link i {
        font-size: 1.6rem;
    }
}

body.registration-page {
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background-image: none;
}

.registration-page .container {
    max-width: 700px;
    width: 95%;
    background-color: #1a2845;
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    position: relative;
}

.close-page-btn {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 50px;
    font-weight: bold;
    color: #aaa;
    text-decoration: none;
    line-height: 0.8;
    transition: color 0.2s;
    z-index: 10;
}

.close-page-btn:hover {
    color: #ffffff;
}

.registration-page .header {
    text-align: center;
    border-bottom: 1px solid #3a4b6c;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.registration-page .header .logo img {
    max-width: 100px;
    margin-bottom: 10px;
}

.registration-page .header h1 {
    color: #fff;
    margin: 0;
    font-size: 2.2rem;
    word-wrap: break-word;
}

.registration-page .header p {
    color: #bdc3c7;
    font-size: 1rem;
    margin: 5px 0 0;
    word-wrap: break-word;
}

.registration-page .form-group {
    margin-bottom: 22px;
}

.registration-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
}

.registration-page .form-group .required {
    color: #e74c3c;
    margin-left: 5px;
}

.registration-page .form-group input[type="text"],
.registration-page .form-group input[type="email"],
.registration-page .form-group input[type="tel"],
.registration-page .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #4a5a7c;
    border-radius: 6px;
    background-color: #f0f2f5;
    color: #1a2845;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.registration-page .form-group input::placeholder {
    color: #99a;
}

.registration-page .form-group input:focus,
.registration-page .form-group select:focus {
    outline: none;
    border-color: #f39c12 !important;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.registration-page .form-group input.invalid,
.registration-page .form-group select.invalid {
    border-color: #e74c3c !important;
}

.registration-page .form-group input.valid,
.registration-page .form-group select.valid {
    border-color: #2ecc71 !important;
}

.registration-page .field-error {
    display: none;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.registration-page .field-error.show {
    display: block !important;
}

.registration-page .file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.registration-page .file-upload-btn {
    border: 2px dashed var(--talpiot-gold);
    color: var(--talpiot-gold);
    background-color: transparent;
    padding: 15px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.registration-page .file-upload-btn:hover {
    background-color: rgba(243, 156, 18, 0.1);
    color: #fff;
}

.registration-page .file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.registration-page .file-name {
    margin-top: 10px;
    color: #2ecc71;
    font-size: 0.9rem;
    display: none;
}

.registration-page .file-name.show {
    display: block !important;
}

.registration-page .submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a2845;
    background-color: var(--talpiot-gold);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.registration-page .submit-btn:hover {
    background-color: var(--talpiot-gold);
}

.registration-page .submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.registration-page .success-message,
.registration-page .error-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.registration-page .success-message.show {
    display: block;
    background-color: #2ecc71;
    color: #fff;
}

.registration-page .error-message.show {
    display: block;
    background-color: #e74c3c;
    color: #fff;
}

.registration-page .loading {
    text-align: center;
    display: none;
}

.registration-page .loading.show {
    display: block;
}

.registration-page .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #f39c12;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.registration-page {
        padding: 0;
    }

    .registration-page .container {
        width: 100%;
        margin: 0;
        padding: 20px 25px;
        padding-top: 60px;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .registration-page .header h1 {
        font-size: 1.9rem;
    }

    .registration-page .header p {
        font-size: 0.9rem;
    }

    .registration-page .form-group {
        margin-bottom: 18px;
    }

    .close-page-btn {
        top: 15px;
        left: 15px;
    }
}

.upload-success-message {
    background-color: #2ecc71;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.upload-success-message i {
    margin-left: 8px;
}

.close-success-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.close-success-btn:hover {
    opacity: 1;
}

.file-upload-area {
    border: 2px dashed #a0aec0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
}

.file-upload-area.dragover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--talpiot-gold);
}

.drop-zone-prompt {
    color: #cbd5e0;
}

.drop-zone-prompt i.fa-upload {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 10px;
}

.drop-zone-prompt p {
    margin: 5px 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.upload-link {
    color: var(--talpiot-gold);
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.upload-link:hover {
    color: #f0c859;
}

.drop-zone-prompt small {
    font-size: 0.8rem;
    color: #a0aec0;
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #4a5a7c;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.file-icon {
    font-size: 1.5rem;
    color: #a0aec0;
    flex-shrink: 0;
}

.file-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.file-name {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file-size {
    color: #a0aec0;
    font-size: 0.8rem;
}

.delete-file-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    flex-shrink: 0;
}

.delete-file-btn:hover {
    color: #e74c3c;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
}

.file-upload-btn {
    display: none;
}

.site-footer-bottom {
    width: 100%;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    margin-top: auto;
    background-color: transparent;
}

.footer-line {
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.5);
    margin: 0 auto;
    margin-bottom: 1rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin: 0;
}

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

@keyframes run-light {
    0% { color: white; }
    20% { color: white; }
    30% { color: #58a6ff; }
    40% { color: white; }
    100% { color: white; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(88, 166, 255, 0);
        border-color: #3e4c66;
    }
    50% {
        box-shadow: 0 0 25px 5px rgba(88, 166, 255, 0.3);
        border-color: #58a6ff;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gold-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 0 0 rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 5px rgba(212, 175, 55, 0.5);
    }
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: transparent;
    backdrop-filter: blur(5px);
    pointer-events: none;
    justify-content: center;
    align-items: center;
}

.lightbox-modal[style*="flex"] {
    pointer-events: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px 10px rgba(212, 175, 55, 0.5);
    animation: zoom-in 0.4s;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--talpiot-gold);
    text-decoration: none;
}

@keyframes zoom-in {
    from {transform: scale(0.1);}
    to {transform: scale(1);}
}

.gold-glow-text {
    color: var(--talpiot-gold) !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.main-nav ul li {
    position: relative;
    padding: 0 2px;
    display: inline-block;
}

.home-header .main-nav ul li:not(:last-child)::after {
    content: "|";
    position: absolute;
    left: -4px;
    color: var(--talpiot-gold);
    font-weight: 400;
    top: 20%;
    transform: translateY(-50%);
}