* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img {
    content-visibility: auto;
    image-rendering: auto;
}

html,
body {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    background: #FFFFFF;
    color: #858b98;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-weight: 900;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: #2D3748;
}

/* ======= HEADER ======= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    border-bottom: #2D3748 solid 2px;
    background: rgba(255, 255, 255, 0.96);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.header-h1 {
    font-size: medium;
    margin: 0;
}

.header-h1 span {
    color: #6B7280;
    font-size: small;
}

nav {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    margin: 10px auto;
}

nav a {
    text-decoration: none;
    color: #6B7280;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
    font-size: small;
    transition: all 0.3s ease;
}

nav a::after {
    content: "";
    height: 3px;
    background: #2E8B57;
    width: 0;
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #1B6B3A;
    transform: translateY(-3px);
}

.nav-a-header {
    background: #1B6B3A;
    color: #FFFFFF;
    padding: 8px 22px 6px;
    border-radius: 25px;
    font-weight: 900;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 107, 58, 0.3);
    text-decoration: none;
    font-size: medium;
    margin: 0 10px;
}

.nav-a-header:hover {
    background: #2E8B57;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 107, 58, 0.35);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.burger:hover {
    background: rgba(27, 107, 58, 0.08);
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1B6B3A;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 99;
    flex-direction: column;
    padding: 100px 24px 40px;
    gap: 8px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transition: right 0.35s ease;
    border-left: 3px solid #1B6B3A;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: #2D3748;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(27, 107, 58, 0.08);
    color: #1B6B3A;
    border-right-color: #1B6B3A;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
    backdrop-filter: blur(2px);
}

/* ======= MAIN ======= */
main {
    margin: 0 auto;
    width: 100%;
    padding-top: 85px;
}

/* ======= HERO ======= */
.hero {
    text-align: center;
    background: linear-gradient(160deg, #1A2E23 0%, #1B3A28 60%, #1B6B3A 100%);
    width: 100%;
    padding: 80px 20px 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(200, 146, 42, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero-p {
    background: rgba(200, 146, 42, 0.3);
    color: #C8922A;
    padding: 8px 22px;
    border-radius: 60px;
    width: fit-content;
    margin: 10px auto;
    font-size: 18px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.hero-h1 {
    font-size: 52px;
    color: #FFFFFF;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-h1 span {
    background: linear-gradient(135deg, #F0C060, #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: larger;
}

.hero-goal-massge {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px auto 0;
    padding: 0 20px;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.hero-massge,
.hero-goal {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 146, 42, 0.35);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: right;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.hero-massge::before,
.hero-goal::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(200, 146, 42, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-massge:hover,
.hero-goal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 146, 42, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-massge h3,
.hero-goal h3 {
    font-size: 20px;
    font-weight: 900;
    color: #F0C060;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-massge h3::before {
    content: '📜';
    font-size: 22px;
}

.hero-goal h3::before {
    content: '🎯';
    font-size: 22px;
}

.hero-massge p,
.hero-goal p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    line-height: 2;
}

.hero-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px auto;
    position: relative;
    z-index: 1;
}

.hero-nav-a {
    background-color: #C8922A;
    color: #2D3748;
    font-weight: 900;
    padding: 14px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.hero-nav-a:hover {
    background-color: #F0C060;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 146, 42, 0.4);
}

.info-hero {
    display: flex;
    gap: 70px;
    justify-content: center;
    margin-top: 55px;
    position: relative;
    z-index: 1;
}

.info-hero p {
    font-size: 30px;
    font-weight: 900;
    color: #F0C060;
}

.info-hero p span {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.dev-hero {
    margin-top: 55px;
    background-color: rgb(200, 146, 42, 0.2);
    border: 1px solid rgba(27, 107, 58, 0.1);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 20px;
    border-radius: 20px;
}

.dev-hero:hover {
    transform: translateY(10px) scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dev-hero h2 {
    margin: 30px;
    margin-top: 40px;
    font-size: 30px;
    font-weight: 900;
    color: aliceblue;
    text-align: center;
    transition: all 0.3s;
}

.dev-hero:hover h2 {
    transform: translateY(-20px);
    font-size: 35px;
    color: black;
}

.dev-hero-css {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.dev-hero h3 {
    font-size: 20px;
    font-weight: 900;
    color: #C8922A;
}

.dev-nav {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 30px;
    position: relative;
    z-index: 1;
    margin: 20px auto;
}

.dev-nav-a {
    background-color: #C8922A;
    color: #2D3748;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.dev-nav-a:hover {
    background-color: #F0C060;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 146, 42, 0.4);
}

.saloom-zayed-dev-hero {
    transition: all 0.3s;
    margin: 10px;
}

.dev-hero:hover .saloom-zayed-dev-hero {
    transform: translateY(15px) scale(1);
    text-shadow: 0 2px 10px black;
}

/* ======= من نحن ======= */
.who {
    padding: 85px 20px;
    background: #F4F6F5;
}

.who-container {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.who-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.who-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 22px;
    text-align: center;
}

.who-title span {
    color: #1B6B3A;
}

.who-desc {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.9;
    margin-bottom: 18px;
    font-weight: 400;
}

.who-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.who-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 26px 20px;
    text-align: center;
    border: 1px solid rgba(27, 107, 58, 0.1);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.who-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(27, 107, 58, 0.12);
    border-color: rgba(27, 107, 58, 0.25);
}

.who-card-icon {
    font-size: 34px;
    margin-bottom: 12px;
    display: block;
}

.who-card strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #1B6B3A;
    margin-bottom: 6px;
}

.who-card span {
    font-size: 13px;
    color: #6B7280;
}

/* ======= جولة في المدرسة ======= */
.vedio {
    padding: 85px 20px;
    background: #FFFFFF;
    text-align: center;
}

.vedio-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.vedio-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 14px;
}

.vedio-title span {
    color: #1B6B3A;
}

.vedio-sub {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto 45px auto;
}

.vedio-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.vedio-wrap video {
    width: 100%;
    display: block;
}

/* ======= معرض الصور ======= */
.gallry {
    padding: 40px;
    background: #F4F6F5;
}

.g-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.g-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 22px;
    text-align: center;
}

.g-title span {
    color: #1B6B3A;
}

.g-sub {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto 20px auto;
    text-align: center;
}

.gallry-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.gallry-tab {
    padding: 10px 25px;
    border-radius: 30px;
    border: 1.5px solid rgba(27, 107, 58, 0.3);
    background: transparent;
    color: #1B6B3A;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.gallry-tab:hover {
    background: rgba(27, 107, 58, 0.1);
    transform: translateY(-2px);
}

.gallry-tab.active {
    background: #1B6B3A;
    color: #FFFFFF;
    border-color: #1B6B3A;
    box-shadow: 0 4px 14px rgba(27, 107, 58, 0.3);
}

.gallry-semester-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 15px 0 30px;
    flex-wrap: wrap;
    transition: all 0.3s;
}

.gallry-semester-tab {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1.5px solid rgba(27, 107, 58, 0.3);
    background: transparent;
    color: #1B6B3A;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.gallry-semester-tab:hover {
    background: rgba(27, 107, 58, 0.1);
}

.gallry-semester-tab.active {
    background: #1B6B3A;
    color: #FFFFFF;
    border-color: #1B6B3A;
    box-shadow: 0 4px 14px rgba(27, 107, 58, 0.3);
}

.gallry-panel {
    display: none;
}

.gallry-panel.active {
    display: block;
}

.horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.img-scrol {
    display: inline-flex;
    gap: 25px;
}

.image-card {
    display: inline-block;
    width: 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    contain: layout style;
}

.image-card:hover {
    transform: translateY(8px);
    box-shadow: 0 15px 30px rgba(27, 107, 58, 0.2);
}

.image-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    will-change: transform;
}

.image-card:hover img {
    transform: translateY(-16px) scale(0.95);
}

.image-caption {
    padding: 15px;
    text-align: right;
}

.image-caption h4 {
    font-size: 18px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 6px;
}

.image-caption p {
    font-size: 13px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.5;
}

/* ======= BOOKS ======= */
/* ======= BOOKS ======= */
.books {
    padding: 85px 20px;
    background: #FFFFFF;
}

.books-container {
    max-width: 1150px;
    margin: 0 auto;
}

.books-head {
    margin-bottom: 55px;
}

.books-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.books-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 14px;
    text-align: center;
}

.books-title span {
    color: #1B6B3A;
}

.books-sub {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
}

.grades-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    justify-content: center;
}

.grade-tab {
    padding: 8px 22px;
    border-radius: 28px;
    border: 1.5px solid rgba(27, 107, 58, 0.25);
    background: transparent;
    color: #6B7280;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.grade-tab:hover,
.grade-tab.active {
    background: #1B6B3A;
    color: #FFFFFF;
    border-color: #1B6B3A;
    box-shadow: 0 4px 14px rgba(27, 107, 58, 0.3);
}

.semester-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 35px;
    margin-top: 10px;
}

.semester-tab {
    padding: 10px 25px;
    border-radius: 30px;
    border: 1.5px solid rgba(27, 107, 58, 0.3);
    background: transparent;
    color: #1B6B3A;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.semester-tab:hover {
    background: rgba(27, 107, 58, 0.1);
    transform: translateY(-2px);
}

.semester-tab.active {
    background: #1B6B3A;
    color: #FFFFFF;
    border-color: #1B6B3A;
    box-shadow: 0 4px 14px rgba(27, 107, 58, 0.3);
}

.ministry-btn-container {
    text-align: center;
    margin-bottom: 35px;
}

.ministry-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1B6B3A, #2E8B57);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(27, 107, 58, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ministry-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2E8B57, #1B6B3A);
    box-shadow: 0 12px 28px rgba(27, 107, 58, 0.45);
}

.books-panel {
    display: none;
}

.books-panel.active {
    display: grid;
}

.books-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

.book-card {
    background: #F4F6F5;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.book-card:hover {
    background: #E8F5EE;
    border-color: #1B6B3A;
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(27, 107, 58, 0.12);
}

.book-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1B6B3A, #2E8B57);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.book-name {
    font-size: 17px;
    font-weight: 800;
    color: #1A2E23;
}

.book-size {
    font-size: 12px;
    color: #858b98;
    font-weight: 500;
    background: rgba(27, 107, 58, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.book-dl {
    font-size: 14px;
    font-weight: 700;
    background: #1B6B3A;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 6px;
    transition: all 0.3s;
    width: fit-content;
}

.book-card:hover .book-dl {
    background: #C8922A;
    transform: scale(1.02);
    letter-spacing: 0.5px;
}

.books-note {
    text-align: center;
    margin-top: 30px;
    padding: 12px;
    background: #E8F5EE;
    border-radius: 12px;
    border-right: 4px solid #1B6B3A;
}

.books-note p {
    color: #1B6B3A;
    font-size: 14px;
    font-weight: 500;
}


/* ======= APPS ======= */
.apps {
    padding: 85px 20px;
    background: #F4F6F5;
}

.apps-container {
    max-width: 1150px;
    margin: 0 auto;
}

.apps-head {
    margin-bottom: 55px;
}

.apps-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.apps-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 14px;
    text-align: center;
}

.apps-title span {
    color: #1B6B3A;
}

.apps-sub {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.app-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 26px 22px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 107, 58, 0.2);
    box-shadow: 0 14px 30px rgba(27, 107, 58, 0.1);
    background: #E8F5EE;
}

.app-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.app-name {
    font-size: 22px;
    font-weight: 800;
    color: #1A2E23;
    margin-bottom: 10px;
}

.app-how {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.6;
}

.app-tag {
    display: inline-block;
    margin-top: 14px;
    background: #E8F5EE;
    color: #1B6B3A;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 22px;
    transition: all 0.3s ease;
}

#app-tag-move {
    color: rgb(26, 84, 179);
}

.app-card:hover .app-tag {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ======= FREK ======= */
.frek {
    padding: 60px 20px;
    background: #FFFFFF;
}

.f-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.f-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 22px;
    text-align: center;
}

.f-title span {
    color: #1B6B3A;
}

.f-sub {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto 20px auto;
    text-align: center;
}

.f-css {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.f-card {
    background: #ffffff;
    border: 0.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.f-card:hover {
    border-color: #c8922a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid #e5e7eb;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(27, 107, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 18px;
    height: 18px;
    stroke: #1B6B3A;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A2E23;
}

.person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 0.5px solid #f3f4f6;
    gap: 8px;
    margin: 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.person:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.person-role {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.person-name {
    font-size: 13px;
    color: #1A2E23;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.person-id {
    font-size: 11px;
    color: #9ca3af;
    direction: ltr;
    white-space: nowrap;
    flex-shrink: 0;
}

.f-card:hover .person {
    transform: translateY(-10px) scale(1);
}

/* ======= نصيحة اليوم ======= */
.tip-daily {
    background: linear-gradient(135deg, #1A2E23 0%, #1B3A28 100%);
    padding: 70px 20px;
}

.tip-card {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.tip-icon {
    font-size: 52px;
    margin-bottom: 22px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.tip-label {
    font-size: 11px;
    letter-spacing: 5px;
    color: #F0C060;
    font-weight: 700;
    margin-bottom: 18px;
}

.tip-text {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.6;
}

.tip-author {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ======= روابط سريعة ======= */
.links-fast {
    padding: 85px 20px;
    background: #F4F6F5;
}

.links-container {
    max-width: 1150px;
    margin: 0 auto;
}

.links-head {
    margin-bottom: 55px;
}

.links-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1B6B3A;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.links-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A2E23;
    margin-bottom: 14px;
    text-align: center;
}

.links-title span {
    color: #1B6B3A;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

.link-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.3s;
    display: block;
}

.link-card:hover {
    border-color: #1B6B3A;
    background: #E8F5EE;
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(27, 107, 58, 0.12);
}

#saloom-link-card {
    background-color: rgb(27, 107, 58, 0.2);
}

.link-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.link-card strong {
    display: block;
    font-size: 16px;
    color: #1A2E23;
    margin-bottom: 6px;
}

.link-card span {
    font-size: 12px;
    color: #6B7280;
}

#saloom-link-card strong {
    color: #c8922a;
}

#saloom-link-card span {
    color: #1A2E23;
}

/* ======= FOOTER ======= */
.footer {
    background: #1A2E23;
    padding: 45px 24px 30px;
    text-align: center;
}

.footer-name {
    font-size: 20px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
}

.footer-contacts {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.footer-contacts a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contacts a:hover {
    color: #F0C060;
}

.footer-line {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}



/* ======= SCROLL TOP ======= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1B6B3A;
    color: #FFFFFF;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(27, 107, 58, 0.4);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    animation: showOnScroll linear both;
    animation-timeline: scroll();
    animation-range: 400px 401px;
}

@keyframes showOnScroll {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

.scroll-top:hover {
    transform: translateY(-4px);
    background: #2E8B57;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
    nav {
        gap: 20px;
    }

    .hero-h1 {
        font-size: 42px;
    }

    .who-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .f-css {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .header-icon img {
        width: 55px;
        height: 55px;
    }

    .header-h1 {
        font-size: 14px;
    }

    nav {
        display: none;
    }

    .nav-a-header {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .mobile-nav-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

    main {
        padding-top: 75px;
    }

    .hero {
        padding: 50px 16px 50px;
    }

    .hero-h1 {
        font-size: 28px;
    }

    .hero-p {
        font-size: 14px;
    }

    .hero-goal-massge {
        flex-direction: column;
        gap: 20px;
    }

    .hero-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-nav-a {
        padding: 12px 24px;
        font-size: 16px;
        width: 85%;
        text-align: center;
    }

    .info-hero {
        gap: 25px;
        flex-wrap: wrap;
    }

    .info-hero p {
        font-size: 22px;
    }

    .dev-hero-css {
        flex-direction: column;
        gap: 10px;
    }

    .dev-hero h3 {
        font-size: 15px;
        text-align: center;
    }

    .who-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .who-cards {
        grid-template-columns: 1fr 1fr;
    }

    .vedio-wrap {
        border-radius: 12px;
    }

    .gallry {
        padding: 30px 12px;
    }

    .gallry-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .gallry-semester-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .image-card {
        width: 240px;
    }

    .image-card img {
        height: 280px;
    }

    .grades-tabs {
        justify-content: center;
        gap: 8px;
    }

    .grade-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .semester-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .semester-tab {
        width: 85%;
        text-align: center;
    }

    .books-grid,
    .apps-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .f-css {
        grid-template-columns: 1fr;
    }

    .f-title {
        font-size: 22px;
    }

    .person {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px;
    }

    .person-name {
        text-align: right;
    }

    .tip-text {
        font-size: 18px;
    }

    .footer-name {
        font-size: 16px;
    }

    .footer-contacts {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .scroll-top {
        bottom: 20px;
        left: 16px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .ministry-btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    .book-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .book-name {
        font-size: 15px;
    }

    .book-dl {
        font-size: 12px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: 22px;
    }

    .who-title,
    .books-title,
    .apps-title,
    .links-title,
    .g-title,
    .vedio-title {
        font-size: 22px;
    }

    .who-cards {
        grid-template-columns: 1fr;
    }

    .who-card strong {
        font-size: 20px;
    }

    .image-card {
        width: 200px;
    }

    .image-card img {
        height: 220px;
    }

    .image-caption h4 {
        font-size: 14px;
    }

    .app-name {
        font-size: 18px;
    }

    .books-sub,
    .apps-sub,
    .g-sub,
    .vedio-sub,
    .f-sub {
        font-size: 14px;
    }

    .ministry-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}