/* General and Reset Styles */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Hebrew:wght@400;700&display=swap');

@font-face {
    font-family: 'IranNastaliq';
    src: url('https://cdn.jsdelivr.net/gh/font-online/font-online/fonts/IranNastaliq/IRAN%20Nastaliq.woff') format('woff');
}

:root {
    --primary-color: #2c3e50; /* Deep Blue */
    --secondary-color: #3498db; /* Bright Blue */
    --accent-color: #e67e22; /* Orange for Call to Action */
    --light-gray: #f8f9fa;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --danger-color: #e74c3c;
    --font-nastaliq: 'IranNastaliq', 'Vazirmatn', sans-serif;
    --font-hebrew: 'Noto Serif Hebrew', serif;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--white);
    margin: 0;
    color: #333;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 15px;
}

/* === Public Pages (Homepage, About) Styles === */

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.main-nav a {
    color: var(--primary-color);
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--accent-color);
}
.btn-login {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

/* Hero Section */
.hero-section {
    background-image:  url(logo.png), url(Clip_7.jpg);
    background-size: 20%, cover;
    background-position: 97% 8% ,center;
    color: var(--white);
    text-align: center;
    padding: 21vw 0;
    background-repeat: no-repeat;
    background-blend-mode: luminosity;
}
.hero-section h1 {
    font-family: var(--font-nastaliq);
    font-size: 4rem;
    margin-bottom: 10px;
}
.hero-section .hebrew-slogan {
    font-family: var(--font-hebrew);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}
.btn-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s;
}
.btn-cta:hover {
    transform: translateY(-3px);
}

/* Sections Styling */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Features Section */
.features-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}
.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    flex: 1;
}
.feature-item .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Announcements Section */
.announcements-section {
    background-color: var(--light-gray);
}
.announcement-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.announcement-card .date {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-left: 20px;
    min-width: 70px;
}
.announcement-card .date span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}
.announcement-card h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* About Page Styles */
.about-hero {
    padding: 60px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-member {
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--secondary-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px 0;
    text-align: center;
}
.footer-links a {
    color: var(--white);
    margin: 0 10px;
}
.footer-social a {
    font-size: 1.5rem;
    color: var(--white);
    margin: 15px 10px 0 10px;
}
.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* === Dashboard & Login Styles (from previous step) === */
.login-container, .dashboard-wrapper {
    /* Paste all styles from the previous .css file here, starting from .login-container */
}
/* Login Page Styles */
.login-containerX {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding-top: 20px;
}
.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.login-box .form-control {
    text-align: right;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 12px;
}
.login-box .btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.login-box .btn:hover {
    opacity: 0.9;
}
/* Dashboard Layout Styles */
.dashboard-wrapper {
    display: flex;
}
.sidebar {
    width: 260px;
    background: var(--primary-color);
    color: var(--white);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    padding: 20px 0;
    transition: all 0.3s;
    z-index: 2;
}
.sidebar-header {
    padding: 0 20px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    color: var(--light-gray);
    padding: 15px 25px;
    transition: all 0.2s;
    font-size: 1.1rem;
}
.sidebar-nav li a .fa {
    margin-left: 15px;
    width: 20px;
}
.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    background: var(--secondary-color);
    color: var(--white);
    border-right: 4px solid var(--accent-color);
    padding-right: 21px;
}
.main-content {
    margin-right: 260px;
    width: calc(100% - 260px);
    padding: 30px;
    transition: all 0.3s;
    background-color: #f4f7f6;
}
.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}
.page-header h1 {
    margin: 0;
    color: var(--primary-color);
}
/* Card Styles */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
}
.stat-card .icon-container {
    font-size: 2.5rem;
    padding: 20px;
    border-radius: 50%;
    margin-left: 20px;
    color: var(--white);
}
.stat-card .card-text h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}
.stat-card .card-text p {
    margin: 0;
    color: var(--dark-gray);
}
.card-green .icon-container { background-color: #27ae60; }
.card-blue .icon-container { background-color: var(--secondary-color); }
.card-orange .icon-container { background-color: #f39c12; }
.card-red .icon-container { background-color: var(--danger-color); }
.content-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.content-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}
/* Table Styles */
.table th { cursor: pointer; }
.table th .fa { font-size: 0.8em; color: var(--dark-gray); margin-right: 5px; }
.table td .btn-sm { margin: 0 2px; }
/* Responsive Styles */
.mobile-header, #mobile-menu-toggle { display: none; }
@media (max-width: 992px) {
    .main-nav { display: none; }
    #mobile-menu-toggle { display: block; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); }
/* }
@media (max-width: 768px) { */
    .hero-section {
    padding: 120px 0;
}
#tableStudent td {
    padding: 0 !important;
    font-size: 70%;
    line-height: 90%;
}
.thMin{
    font-size: 20%;
}

    .sidebar { right: -260px; }
    .sidebar.active { right: 0; }
    .main-content { width: 100%; margin-right: 0; }
    .mobile-header { display: flex; justify-content: space-between; align-items: center; background: var(--primary-color); color: var(--white); padding: 10px 15px; }
    .mobile-header h3 { margin: 0; }
    .mobile-header #menu-toggle { font-size: 1.5rem; background: none; border: none; color: var(--white); }
    .page-header { padding-top: 15px; }
    .features-grid { flex-direction: column; }
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section .hebrew-slogan { font-size: 1.2rem; }
    .login-container {
        height: auto; /* Ø§Ø±ØªÙØ§Ø¹ Ø±Ø§ Ø¨Ù‡ Ø­Ø§Ù„Øª Ø®ÙˆØ¯Ú©Ø§Ø± ØªØºÛŒÛŒØ± Ù…ÛŒâ€ŒØ¯Ù‡Ø¯ */
        min-height: 100vh; /* Ø­Ø¯Ø§Ù‚Ù„ Ø§Ø±ØªÙØ§Ø¹ Ø±Ø§ Ø¨Ø±Ø§ÛŒ Ù¾ÙˆØ´Ø´ Ú©Ù„ ØµÙØ­Ù‡ Ø­ÙØ¸ Ù…ÛŒâ€ŒÚ©Ù†Ø¯ */
        align-items: flex-start; /* Ù…Ø­ØªÙˆØ§ Ø±Ø§ Ø§Ø² Ø¨Ø§Ù„Ø§ ØªØ±Ø§Ø² Ù…ÛŒâ€ŒÚ©Ù†Ø¯ */
        padding-top: 20px; /* ÛŒÚ© ÙØ§ØµÙ„Ù‡ Ú©ÙˆÚ†Ú© Ø§Ø² Ø¨Ø§Ù„Ø§ÛŒ ØµÙØ­Ù‡ Ø§Ø¶Ø§ÙÙ‡ Ù…ÛŒâ€ŒÚ©Ù†Ø¯ */
        padding-bottom: 20px; /* ÛŒÚ© ÙØ§ØµÙ„Ù‡ Ø¯Ø± Ù¾Ø§ÛŒÛŒÙ† ØµÙØ­Ù‡ Ø¨Ø±Ø§ÛŒ Ø§Ø³Ú©Ø±ÙˆÙ„ Ø¨Ù‡ØªØ± Ø§Ø¶Ø§ÙÙ‡ Ù…ÛŒâ€ŒÚ©Ù†Ø¯ */
    }    
}
/* Report Card Styles */
.report-card-container {
    border: 2px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
}
.report-card-header { text-align: center; margin-bottom: 20px; }
.report-card-header h4, .report-card-header h5 { margin: 5px 0; }
.student-info { display: flex; flex-wrap: wrap; justify-content: space-around; margin-bottom: 20px; }
.student-info span { margin: 5px 10px; }


