:root{
    --primary:#176b87;
    --primary-dark:#0f4f65;
    --secondary:#f2b84b;
    --accent:#e56b6f;
    --background:#f7fafc;
    --surface:#fff;
    --surface-alt:#eef6f8;
    --text:#18323d;
    --text-light:#647982;
    --border:#dce7eb;
    --shadow:0 15px 40px rgba(24,50,61,.1);
    --shadow-hover:0 20px 50px rgba(24,50,61,.16);
    --radius:18px;
    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:90px;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:var(--background);
    color:var(--text);
    line-height:1.7;
    overflow-x:hidden;
    transition:background .3s ease,color .3s ease;
}

body.dark-mode{
    --background:#101c22;
    --surface:#172830;
    --surface-alt:#1c313a;
    --text:#f2f7f8;
    --text-light:#b6c7cd;
    --border:#2b434d;
    --shadow:0 15px 40px rgba(0,0,0,.25);
    --shadow-hover:0 20px 50px rgba(0,0,0,.35);
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
textarea,
select{
    font:inherit;
}

button{
    border:0;
    cursor:pointer;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:min(1180px,92%);
    margin:auto;
}

.section{
    padding:100px 0;
}

.section-header{
    max-width:760px;
    margin:0 auto 60px;
    text-align:center;
}

.section-label,
.small-label{
    display:inline-block;
    margin-bottom:12px;
    color:var(--primary);
    font-size:.85rem;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.small-label{
    margin-bottom:10px;
    font-size:.8rem;
}

.section-header h2{
    margin-bottom:18px;
    font-size:clamp(2rem,4vw,3.1rem);
    line-height:1.15;
}

.section-header p{
    color:var(--text-light);
    font-size:1.05rem;
}

.header{
    position:fixed;
    inset:0 0 auto;
    width:100%;
    z-index:1000;
    background:rgba(255,255,255,.95);
    border-bottom:1px solid rgba(220,231,235,.8);
    backdrop-filter:blur(15px);
    transition:var(--transition);
}

body.dark-mode .header{
    background:rgba(16,28,34,.95);
    border-color:var(--border);
}

.navbar{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.logo-icon{
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:var(--primary);
    overflow:hidden;
}

.logo-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.logo strong{
    display:block;
    color:var(--primary);
    font-size:1.15rem;
    line-height:1.2;
}

.logo small{
    display:block;
    color:var(--text-light);
    font-size:.68rem;
    line-height:1.2;
}

.nav-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
}

.nav-links a{
    position:relative;
    color:var(--text);
    font-size:.9rem;
    font-weight:600;
    transition:var(--transition);
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    border-radius:10px;
    background:var(--primary);
    transition:var(--transition);
}

.nav-links a:hover{
    color:var(--primary);
}

.nav-links a:hover::after{
    width:100%;
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.language-selector{
    position:relative;
}

.language-btn,
.theme-toggle,
.menu-toggle{
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--surface);
    color:var(--text);
    transition:var(--transition);
}

.language-btn{
    min-height:40px;
    padding:0 12px;
    display:flex;
    align-items:center;
    gap:5px;
    font-size:.82rem;
    font-weight:700;
}

.theme-toggle,
.menu-toggle{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    font-size:1rem;
}

.menu-toggle{
    display:none;
}

.language-btn:hover,
.theme-toggle:hover,
.menu-toggle:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.language-menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:160px;
    padding:7px;
    display:none;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface);
    box-shadow:var(--shadow);
    z-index:1100;
}

.language-menu.show{
    display:block;
    animation:dropdown .2s ease;
}

.language-menu button{
    width:100%;
    padding:10px 12px;
    display:block;
    border-radius:8px;
    background:transparent;
    color:var(--text);
    text-align:left;
    transition:var(--transition);
}

.language-menu button:hover{
    background:var(--surface-alt);
    color:var(--primary);
}

.hero::before,
.hero::after,
.intro-visual::before,
.intro-visual::after,
.values-box::before,
.cta::before{
    content:"";
    position:absolute;
    border:1px solid rgba(255,255,255,.13);
    border-radius:50%;
}

.hero{
    position:relative;
    min-height:calc(100vh - 82px);
    display:flex;
    align-items:center;
    margin-top:82px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--primary-dark),var(--primary));
}

.hero::before{
    width:600px;
    height:600px;
    right:-260px;
    top:-250px;
}

.hero::after{
    width:400px;
    height:400px;
    left:-180px;
    bottom:-220px;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 75% 40%,rgba(242,184,75,.16),transparent 30%);
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-text{
    max-width:800px;
    color:#fff;
}

.hero-badge{
    display:inline-flex;
    padding:7px 15px;
    margin-bottom:22px;
    border:1px solid rgba(255,255,255,.3);
    border-radius:30px;
    background:rgba(255,255,255,.1);
    backdrop-filter:blur(10px);
    font-size:.85rem;
    font-weight:700;
}

.hero h1{
    margin-bottom:25px;
    font-size:clamp(3rem,7vw,6.5rem);
    line-height:.98;
    letter-spacing:-3px;
}

.hero h1 span{
    display:block;
}

.hero h1 span:last-child{
    color:var(--secondary);
}

.hero-text>p{
    max-width:680px;
    margin-bottom:35px;
    color:rgba(255,255,255,.9);
    font-size:1.1rem;
}

.hero-buttons,
.cta-buttons{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.btn{
    min-height:50px;
    padding:13px 25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-weight:800;
    transition:var(--transition);
}

.btn-primary{
    background:var(--secondary);
    color:#18252a;
}

.btn-primary:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 25px rgba(242,184,75,.3);
}

.btn-secondary{
    border:1px solid rgba(255,255,255,.4);
    background:rgba(255,255,255,.1);
    color:#fff;
    backdrop-filter:blur(10px);
}

.btn-secondary:hover{
    background:#fff;
    color:var(--primary);
    transform:translateY(-3px);
}

.hero-scroll{
    position:absolute;
    left:50%;
    bottom:25px;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    color:rgba(255,255,255,.75);
    font-size:.75rem;
    transform:translateX(-50%);
}

.hero-scroll span:last-child{
    font-size:1.3rem;
    animation:bounce 1.5s infinite;
}

.intro,
.approach,
.values,
.contact{
    background:var(--surface);
}

.subjects,
.daily,
.life{
    background:var(--background);
}

.intro-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.intro-content{
    max-width:600px;
}

.intro-content h3{
    margin-bottom:20px;
    font-size:2.3rem;
    line-height:1.2;
}

.intro-content>p{
    margin-bottom:18px;
    color:var(--text-light);
}

.check-list{
    margin-top:30px;
    display:grid;
    gap:13px;
}

.check-item{
    display:flex;
    align-items:center;
    gap:12px;
}

.check-item span{
    width:27px;
    height:27px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border-radius:50%;
    background:rgba(23,107,135,.12);
    color:var(--primary);
    font-size:.8rem;
    font-weight:900;
}

.check-item p{
    font-weight:600;
}

.intro-visual{
    position:relative;
    min-height:480px;
    padding:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:30px;
    background:linear-gradient(145deg,var(--primary),var(--primary-dark));
    overflow:hidden;
}

.intro-visual::before{
    width:380px;
    height:380px;
}

.intro-visual::after{
    width:250px;
    height:250px;
}

.visual-card{
    position:absolute;
    display:flex;
    flex-direction:column;
    padding:22px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:18px;
    background:rgba(255,255,255,.11);
    color:#fff;
    backdrop-filter:blur(12px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
    z-index:2;
}

.visual-card strong{
    margin-bottom:3px;
    font-size:1.15rem;
}

.visual-card span{
    color:rgba(255,255,255,.72);
    font-size:.78rem;
}

.visual-icon{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    margin-bottom:15px;
    border-radius:14px;
    background:rgba(255,255,255,.14);
    font-size:1.5rem;
}

.main-visual{
    width:220px;
    align-items:center;
    text-align:center;
}

.visual-one,
.visual-two{
    width:185px;
}

.visual-one{
    left:25px;
    top:60px;
}

.visual-two{
    right:25px;
    bottom:60px;
}

.subjects-grid,
.approach-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.subject-card,
.approach-card{
    position:relative;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:var(--radius);
    transition:var(--transition);
}

.subject-card:hover,
.approach-card:hover{
    transform:translateY(-8px);
}

.subject-card{
    min-height:290px;
    padding:30px 25px;
    background:var(--surface);
    box-shadow:var(--shadow);
}

.subject-card:hover{
    box-shadow:var(--shadow-hover);
    border-color:rgba(23,107,135,.35);
}

.approach-card{
    padding:35px 30px;
    background:var(--background);
}

.approach-card:hover{
    box-shadow:var(--shadow);
}

.subject-icon,
.approach-icon{
    width:62px;
    height:62px;
    display:grid;
    place-items:center;
    margin-bottom:22px;
    border-radius:15px;
    background:var(--surface-alt);
    font-size:1.7rem;
}

.subject-card h3{
    margin-bottom:12px;
    font-size:1.35rem;
}

.approach-card h3{
    margin-bottom:10px;
    font-size:1.3rem;
}

.subject-card p,
.approach-card p{
    color:var(--text-light);
    font-size:.9rem;
}

.subject-number{
    position:absolute;
    right:20px;
    bottom:10px;
    color:rgba(23,107,135,.08);
    font-size:4rem;
    font-weight:900;
    line-height:1;
}

.approach-number{
    position:absolute;
    top:20px;
    right:22px;
    color:rgba(23,107,135,.12);
    font-size:2.5rem;
    font-weight:900;
}

.daily-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:70px;
    align-items:center;
}

.daily-content h2{
    max-width:600px;
    margin-bottom:18px;
    font-size:clamp(2rem,4vw,3.1rem);
    line-height:1.15;
}

.daily-content>p{
    max-width:600px;
    margin-bottom:35px;
    color:var(--text-light);
}

.activity-list{
    display:grid;
    gap:22px;
}

.activity-item{
    display:flex;
    gap:15px;
}

.activity-icon{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border-radius:14px;
    background:var(--surface);
    box-shadow:var(--shadow);
    font-size:1.4rem;
}

.activity-item h3{
    margin-bottom:3px;
    font-size:1rem;
}

.activity-item p{
    color:var(--text-light);
    font-size:.85rem;
}

.daily-panel{
    padding:35px;
    border:1px solid var(--border);
    border-radius:22px;
    background:var(--surface);
    box-shadow:var(--shadow);
}

.daily-panel-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:20px;
    margin-bottom:5px;
    border-bottom:1px solid var(--border);
    font-weight:800;
}

.daily-panel-header span:last-child{
    padding:5px 12px;
    border-radius:20px;
    background:rgba(23,107,135,.1);
    color:var(--primary);
    font-size:.75rem;
}

.timeline{
    position:relative;
    padding-top:15px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:51px;
    top:25px;
    bottom:25px;
    width:2px;
    background:var(--border);
}

.timeline-item{
    position:relative;
    display:grid;
    grid-template-columns:70px 1fr;
    gap:15px;
    padding:16px 0;
}

.time{
    position:relative;
    z-index:2;
    color:var(--primary);
    font-size:.78rem;
    font-weight:900;
}

.timeline-item strong{
    display:block;
    margin-bottom:3px;
}

.timeline-item p{
    color:var(--text-light);
    font-size:.82rem;
}

.values-box,
.cta{
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
}

.values-box{
    padding:60px;
    border-radius:30px;
}

.values-box::before{
    width:500px;
    height:500px;
    right:-250px;
    top:-250px;
}

.values-heading{
    position:relative;
    z-index:2;
    max-width:700px;
    margin-bottom:45px;
}

.values-heading .section-label,
.cta .section-label{
    color:var(--secondary);
}

.values-heading h2{
    margin-bottom:18px;
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.15;
}

.values-heading p{
    color:rgba(255,255,255,.78);
}

.values-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
}

.value{
    min-height:120px;
    padding:20px 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:15px;
    background:rgba(255,255,255,.08);
    text-align:center;
    transition:var(--transition);
}

.value:hover{
    background:rgba(255,255,255,.14);
    transform:translateY(-5px);
}

.value span{
    font-size:1.5rem;
}

.value strong{
    font-size:.8rem;
}

.cta::before{
    width:450px;
    height:450px;
    right:-150px;
    top:-250px;
}

.cta-content{
    position:relative;
    z-index:2;
    max-width:780px;
    margin:auto;
    text-align:center;
}

.cta h2{
    margin-bottom:18px;
    font-size:clamp(2rem,4vw,3.5rem);
    line-height:1.1;
}

.cta p{
    max-width:650px;
    margin:0 auto 30px;
    color:rgba(255,255,255,.82);
}

.cta-buttons{
    justify-content:center;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.contact-card{
    padding:30px 20px;
    text-align:center;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:var(--background);
    transition:var(--transition);
}

.contact-card:hover{
    transform:translateY(-7px);
    box-shadow:var(--shadow);
}

.contact-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    margin:0 auto 15px;
    border-radius:50%;
    background:var(--surface-alt);
    font-size:1.5rem;
}

.contact-card h3{
    margin-bottom:7px;
    font-size:1rem;
}

.contact-card p{
    color:var(--text-light);
    font-size:.85rem;
}

.life-slider{
    --per-view:1;
    position:relative;
}

.life-viewport{
    overflow:hidden;
    border-radius:24px;
}

.life-track{
    display:flex;
    transition:transform .7s cubic-bezier(.65,0,.35,1);
}

.life-slide{
    flex:0 0 calc(100% / var(--per-view));
    padding:0 10px;
}

.life-frame{
    position:relative;
    aspect-ratio:4/5;
    overflow:hidden;
    border-radius:20px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:var(--shadow);
}

.life-frame img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

.life-slide:hover .life-frame img{
    transform:scale(1.05);
}

.life-frame figcaption{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:48px 20px 18px;
    color:#fff;
    font-weight:600;
    font-size:1.05rem;
    background:linear-gradient(to top,rgba(0,0,0,.65),transparent);
}

.life-slide.no-image img{
    display:none;
}

.life-slide.no-image .life-frame::before{
    content:"📷";
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:3rem;
    opacity:.55;
}

.life-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    width:46px;
    height:46px;
    padding:0 0 4px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--surface);
    color:var(--text);
    font-size:1.9rem;
    line-height:1;
    box-shadow:0 6px 16px rgba(0,0,0,.22);
    transition:var(--transition);
}

.life-arrow:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-50%) scale(1.08);
}

.life-prev{
    left:-14px;
}

.life-next{
    right:-14px;
}

.life-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:22px;
}

.life-dot{
    width:10px;
    height:10px;
    padding:0;
    border-radius:999px;
    background:rgba(23,107,135,.25);
    transition:var(--transition);
}

.life-dot.active{
    width:28px;
    background:var(--primary);
}

.footer{
    padding:70px 0 25px;
    background:#102831;
    color:#fff;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:50px;
    padding-bottom:50px;
}

.footer-brand .logo strong{
    color:#fff;
}

.footer-brand .logo small{
    color:rgba(255,255,255,.6);
}

.footer-brand>p{
    max-width:330px;
    margin-top:20px;
    color:rgba(255,255,255,.65);
    font-size:.9rem;
}

.footer-column{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

.footer-column h3{
    margin-bottom:8px;
    font-size:1rem;
}

.footer-column a{
    color:rgba(255,255,255,.62);
    font-size:.85rem;
    transition:var(--transition);
}

.footer-column a:hover{
    color:var(--secondary);
}

.social-links{
    display:flex;
    gap:12px;
}

.social-link{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:50%;
}

.social-link:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 14px rgba(0,0,0,.25);
}

.social-link.facebook{
    background:#1877f2;
    color:#fff;
}

.social-link.instagram{
    background:#fff;
}

.footer-column .social-link:hover{
    color:#fff;
}

.footer-bottom{
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
}

.footer-bottom p{
    color:rgba(255,255,255,.55);
    font-size:.8rem;
}

.back-to-top{
    position:fixed;
    right:25px;
    bottom:25px;
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    font-size:1.2rem;
    opacity:0;
    visibility:hidden;
    transform:translateY(15px);
    transition:var(--transition);
    z-index:900;
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.back-to-top:hover{
    background:var(--primary-dark);
    transform:translateY(-3px);
}

@keyframes dropdown{
    from{
        opacity:0;
        transform:translateY(-5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes bounce{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(6px);
    }
}

.reveal{
    opacity:0;
    transform:translateY(25px);
    transition:opacity .7s ease,transform .7s ease;
}

.reveal-active{
    opacity:1;
    transform:translateY(0);
}

html[dir="rtl"] body{
    font-family:Arial,Tahoma,sans-serif;
}

html[dir="rtl"] .nav-links{
    direction:rtl;
}

html[dir="rtl"] .nav-actions,
html[dir="rtl"] .life-slider{
    direction:ltr;
}

html[dir="rtl"] .language-menu{
    right:auto;
    left:0;
}

html[dir="rtl"] .language-menu button{
    text-align:right;
}

html[dir="rtl"] .intro-content,
html[dir="rtl"] .subject-card,
html[dir="rtl"] .approach-card,
html[dir="rtl"] .daily-content,
html[dir="rtl"] .daily-panel,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .hero-text{
    text-align:right;
}

html[dir="rtl"] .back-to-top{
    right:auto;
    left:25px;
}

@media(min-width:640px){
    .life-slider{
        --per-view:2;
    }
}

@media(min-width:992px){
    .life-slider{
        --per-view:3;
    }
}

@media(max-width:1100px){
    .nav-links{
        gap:15px;
    }

    .subjects-grid,
    .approach-grid,
    .contact-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .values-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:900px){
    .navbar{
        min-height:75px;
        gap:10px;
    }

    .nav-links{
        position:fixed;
        top:75px;
        left:0;
        width:100%;
        max-height:0;
        overflow:hidden;
        flex-direction:column;
        align-items:stretch;
        gap:15px;
        background:var(--surface);
        border-bottom:1px solid var(--border);
        box-shadow:var(--shadow);
        transition:max-height .35s ease;
    }

    .nav-links.active{
        max-height:600px;
        padding:10px 5%;
    }

    .nav-links a{
        padding:13px 0;
        border-bottom:1px solid var(--border);
    }

    .nav-links a:last-child{
        border-bottom:0;
    }

    .nav-links a::after{
        display:none;
    }

    .menu-toggle{
        display:grid;
    }

    .theme-toggle,
    .logo small{
        display:none;
    }

    .logo strong{
        font-size:1rem;
    }

    .logo-icon{
        width:40px;
        height:40px;
    }

    .nav-actions{
        gap:6px;
    }

    .hero{
        min-height:760px;
        margin-top:75px;
    }

    .hero h1{
        font-size:clamp(2.7rem,13vw,4.5rem);
        letter-spacing:-2px;
    }

    .hero-text>p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-buttons .btn{
        width:100%;
    }

    .hero-scroll{
        display:none;
    }

    .intro-grid,
    .daily-grid{
        grid-template-columns:1fr;
        gap:45px;
    }

    .intro-visual{
        min-height:430px;
    }

    .values-box{
        padding:45px 30px;
    }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
        gap:35px;
    }
}

@media(max-width:650px){
    .section{
        padding:70px 0;
    }

    .section-header{
        margin-bottom:40px;
    }

    .subjects-grid,
    .approach-grid,
    .contact-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .values-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .values-box{
        padding:35px 20px;
    }

    .intro-visual{
        min-height:400px;
        padding:20px;
    }

    .main-visual{
        width:180px;
    }

    .visual-one,
    .visual-two{
        width:155px;
    }

    .visual-one{
        left:10px;
        top:35px;
    }

    .visual-two{
        right:10px;
        bottom:35px;
    }

    .daily-panel{
        padding:25px 18px;
    }

    .timeline::before{
        left:44px;
    }

    .timeline-item{
        grid-template-columns:60px 1fr;
        gap:12px;
    }

    .language-btn{
        padding:0 9px;
    }

    .language-menu{
        right:-45px;
    }

    .back-to-top{
        right:15px;
        bottom:15px;
    }

    html[dir="rtl"] .back-to-top{
        right:auto;
        left:15px;
    }

    .life-prev{
        left:6px;
    }

    .life-next{
        right:6px;
    }
}

@media(max-width:420px){
    .hero h1{
        font-size:2.7rem;
    }

    .hero-text>p{
        font-size:.92rem;
    }

    .section-header h2{
        font-size:2rem;
    }

    .value{
        min-height:100px;
    }

    .visual-one,
    .visual-two{
        transform:scale(.9);
    }
}

@media(prefers-reduced-motion:reduce){
    .life-track,
    .life-frame img{
        transition:none;
    }
}
@media(max-width:768px){
    .navbar{
        flex-wrap:nowrap;
        gap:10px;
    }
    .nav-actions{
        display:flex;
        align-items:center;
        gap:8px;
        margin-left:auto;
        flex-shrink:0;
    }
    .theme-toggle,
    .menu-toggle{
        display:inline-flex !important;
        align-items:center;
        justify-content:center;
        width:40px;
        height:40px;
        flex-shrink:0;
        visibility:visible !important;
        opacity:1 !important;
    }
    .language-btn{
        padding:8px 10px;
        font-size:14px;
    }
}

@media(max-width:420px){
    .logo small{
        display:none;
    }
}