:root {
    /* --primary-color: ; */
    --primary-color: #3a5a40;
    --secondary-color: #f59e0b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --accent-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark-color);
    line-height: 1.6;
}

header {
    background-color: #a3b18a;
    color: white;
    /* padding: 1rem 0; */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: #132a13;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #132a13;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/Al-Huda.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-in-out;
}

.btn {
    display: inline-block;
    background-color: #3a5a40;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #132a13;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* .section {
    padding: 5rem 0;
} */

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

/* About Section Styles */
.about-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: #2a4365;
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 8px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievements {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.achievement-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 0 5px;
}

.achievement-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2a4365;
}

.achievement-text {
    font-size: 14px;
    color: #555;
}


.section-title h2 {
    font-size: 2.5rem;
    color: #3a5a40;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #132a13;
}

/* audio */

.audio-box {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
    gap: 20px;
}

.audio-card {
    background-color: #f8f8f8;
    padding: 20px;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: sans-serif;

}

.audio-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.audio-info p {
    margin: 5px 0 15px;
    color: #666;
    font-size: 0.95rem;
}

audio {
    width: 100%;
    outline: none;
}

.courses {
    background-color: var(--light-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Adjust for mobile menu */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
    }
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3a5a40;
}

.course-content p {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.course-meta i {
    margin-right: 0.5rem;
    color: #132a13;
}

.timeline-section {
    background-color: white;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #132a13;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: 2px;
    background-color: white;
    border: 4px solid #132a13;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: 2px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-color);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #3a5a40;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
}

.gallery {
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.events {
    background-color: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-date {
    background-color: #3e8914;
    color: white;
    padding: 1rem;
    text-align: center;
}

.event-date h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-content p {
    margin-bottom: 1rem;
}


/* Team Section - Developers */
.team-content {
    text-align: center;
}

.position {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-social a {
    color: #7f8c8d;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.team-social a:hover {
    color: #3498db;
}

/* Technology Stack */
.tech-stack {
    margin-top: 4rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.admission-form {
    background-color: var(--light-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #132a13;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #e69009;
}

footer {
    background-color: #588157;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: #132a13;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #132a13;
}

.footer-col p {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page {
    display: none;
    /* padding: 5rem 0; */
}

.page.active {
    display: block;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/Al-Huda.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    /* margin-bottom: 3rem; */
}

.page-header h1 {
    font-size: 3rem;
    animation: fadeIn 1.5s ease-in-out;
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-content {
    padding: 25px;
    text-align: center;
}

.team-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.position {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.qualification {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.bio {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    color: #7f8c8d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

.team-social a:hover {
    color: #fff;
    background: #3498db;
    transform: translateY(-3px);
}

/* Technology Stack Styles */
.tech-stack {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-color: #3498db;
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #3498db;
}

.tech-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

/* About Section Styles */
.about-section {
    /* padding: 60px 0; */
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: #2a4365;
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 8px;
}

/* Books Section Styles */
.books-section {
    padding: 80px 0;
    background-color: #fff;
}

.books-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.books-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2a4365;
    color: #fff;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.book-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.book-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #132a13;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.book-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    color: #2a4365;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.book-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #777;
}

.book-meta i {
    margin-right: 5px;
    color: #132a13;
}

.book-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    align-self: flex-start;
}

/* Developer Team Section Styles */
.dev-team-section {
    /* padding: 80px 0; */
    background-color: #f8f9fa;
}

.dev-team-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.dev-team-section .section-title h2 {
    color: #2a4365;
    position: relative;
    display: inline-block;
}

.dev-team-section .section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: #132a13;
    bottom: -10px;
    left: 25%;
}

.dev-team-section .section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
}

.dev-team-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.dev-team-text {
    flex: 1;
}

.dev-team-text h3 {
    color: #2a4365;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.dev-team-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dev-team-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.dev-team-text ul li {
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.dev-team-text ul li::before {
    content: '•';
    color: #132a13;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.dev-team-image {
    flex: 1;
    position: relative;
}

.dev-team-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-stats {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.stat-item {
    text-align: center;
    padding: 0 15px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2a4365;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.principle-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
}

.principle-card i {
    font-size: 2.5rem;
    color: #132a13;
    margin-bottom: 15px;
}

.principle-card h4 {
    color: #2a4365;
    margin-bottom: 10px;
}

.principle-card p {
    color: #666;
    font-size: 0.9rem;
}

.tech-stack {
    text-align: center;
    margin-top: 50px;
}

.tech-stack h3 {
    color: #2a4365;
    margin-bottom: 30px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tech-icons i {
    font-size: 3rem;
    color: #2a4365;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-icons i:hover {
    color: #f8b400;
    transform: scale(1.2);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievements {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.achievement-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 0 5px;
}

.achievement-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2a4365;
}

.achievement-text {
    font-size: 14px;
    color: #555;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .dev-team-content {
        flex-direction: column;
    }

    .team-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }
}


@media (max-width: 768px) {
    /* .header-container {
        flex-direction: column;
        text-align: center;
    } */

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .achievements {
        flex-direction: column;
    }

    .achievement-item {
        margin: 5px 0;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }


    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    nav.active {
        display: block;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .logo {
        margin-bottom: 1rem;
        justify-content: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .left::after,
    .right::after {
        left: 1px;
    }

    .right {
        left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    nav.active {
        display: block;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .team-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        padding: 10px 0;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}