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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
    color: #1a2a1f;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: linear-gradient(135deg, #0f2b3d 0%, #1a5f7a 50%, #2d6a4f 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 100px;
    height: 100px;
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.bar {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active .bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar2 {
    opacity: 0;
}

.hamburger.active .bar3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

nav {
    background: linear-gradient(135deg, #0f2b3d 0%, #1a5f7a 50%, #2d6a4f 100%);
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    flex-wrap: wrap;
    padding-right: 30px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.15);
}

.contact-wa {
    background: #25D366;
    padding: 8px 15px;
    border-radius: 25px;
}

.contact-wa:hover {
    background: #128C7E;
    color: white !important;
}

.language-item a {
    margin: 0 3px;
}

.active-lang {
    color: #ffd700 !important;
    font-weight: bold;
    text-decoration: underline;
    background: rgba(255,215,0,0.2);
    border-radius: 20px;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-link:hover {
    text-decoration: underline;
    color: #128C7E;
}

.hero {
    position: relative;
}

.slideshow-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.mySlides {
    display: none;
    position: relative;
}

.mySlides img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    background: linear-gradient(135deg, rgba(15,43,61,0.85), rgba(45,106,79,0.85));
    color: white;
    padding: 20px 30px;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #ffd700;
}

.slide-caption p {
    font-size: 1rem;
}

.hero-text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    padding: 25px 35px;
    max-width: 500px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(15,43,61,0.85), rgba(45,106,79,0.85));
    border-radius: 10px;
    text-align: center;
}

.hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffd700;
}

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

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    text-decoration: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.about-madrasa {
    padding: 60px 30px;
    background: white;
}

.about-madrasa h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #0f2b3d, #2d6a4f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text { flex: 1; }

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.about-image { flex: 1; }

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.subjects-detailed {
    padding: 80px 30px;
    background: #f8f9fa;
}

.subjects-detailed h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a5f7a;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.subjects-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-detailed-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.subject-detailed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(26, 95, 122, 0.15);
}

.subject-detailed-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.subject-detailed-card:hover img {
    transform: scale(1.05);
}

.subject-detailed-card h3 {
    margin-bottom: 15px;
    color: #1a5f7a;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0;
}

.subject-detailed-card p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.7;
    text-align: left;
    font-size: 0.95rem;
    padding: 0;
}

.about-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.about-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #0f2b3d;
    font-weight: 700;
}

.about-section > .container > p {
    font-size: 1.15rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #444;
    line-height: 1.8;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.mission-box, .vision-box {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border-top: 5px solid #1a5f7a;
    transition: transform 0.3s ease;
}

.vision-box {
    border-top-color: #2d6a4f;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-5px);
}

.mission-box h3, .vision-box h3, .objectives-box h3 {
    font-size: 1.5rem;
    color: #0f2b3d;
    margin-bottom: 15px;
    font-weight: 600;
}

.mission-box p, .vision-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.objectives-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-bottom: 60px;
    border-top: 5px solid #ffd700;
    transition: transform 0.3s ease;
}

.objectives-box:hover {
    transform: translateY(-5px);
}

.objectives-box ul {
    list-style: none;
    padding-left: 5px;
}

.objectives-box ul li {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.objectives-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2d6a4f;
    font-weight: bold;
    font-size: 1.1rem;
}

.team-section {
    margin-top: 50px;
}

.team-section h3 {
    font-size: 2rem;
    text-align: center;
    color: #0f2b3d;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(26, 95, 122, 0.1);
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f0f4f8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-card h4 {
    font-size: 1.25rem;
    color: #1a5f7a;
    margin-bottom: 8px;
    font-weight: 600;
}

.team-card p {
    font-size: 0.95rem;
    color: #2d6a4f;
    font-weight: 500;
}

.projects-section {
    padding: 80px 30px;
    background: #f8f9fa;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a5f7a;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(26, 95, 122, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d6a4f 100%);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

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

.card h3 {
    margin-bottom: 15px;
    color: #1a5f7a;
    font-size: 1.3rem;
    font-weight: 600;
}

.card p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: left;
    font-size: 0.95rem;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d6a4f 100%);
    color: #ffffff;
    padding: 13px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(26, 95, 122, 0.3);
    border: none;
    cursor: pointer;
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 95, 122, 0.45);
    background: linear-gradient(135deg, #0f2b3d 0%, #1a5f7a 100%);
    color: #ffffff;
}

.donate-btn i {
    font-size: 1rem;
}

.no-projects {
    font-size: 1.2rem;
    color: #888;
    padding: 40px;
    text-align: center;
}

.fundraising {
    padding: 60px 30px;
    background: linear-gradient(135deg, #1a5f7a, #2d6a4f);
    color: white;
    text-align: center;
}

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

.fundraising-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.fundraising-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.donate-now-btn {
    display: inline-block;
    background: #ffd700;
    color: #0f2b3d;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.donate-now-btn:hover {
    background: #ff8c00;
    transform: scale(1.05);
}

footer {
    background: linear-gradient(135deg, #0f2b3d 0%, #1a5f7a 50%, #2d6a4f 100%);
    color: white;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 40px 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 10px;
    text-align: center;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #ffd700;
}

.footer-section p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}

.admin-section {
    padding: 60px 30px;
    min-height: 60vh;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #0f2b3d, #1a5f7a, #2d6a4f);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    margin: 20px 30px 0;
    border-radius: 5px;
    text-align: center;
}

.login-form {
    padding: 30px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #1a5f7a;
    outline: none;
    box-shadow: 0 0 5px rgba(26,95,122,0.3);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a5f7a, #2d6a4f);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0f2b3d, #1a5f7a);
    transform: translateY(-2px);
}

.login-footer {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 0.8rem;
    color: #666;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a5f7a, #2d6a4f);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0f2b3d, #1a5f7a);
    transform: translateY(-2px);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.admin-dashboard {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-header h2 {
    color: #1a5f7a;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.project-form input,
.project-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-form input:focus,
.project-form textarea:focus {
    border-color: #1a5f7a;
    outline: none;
    box-shadow: 0 0 5px rgba(26,95,122,0.3);
}

.admin-projects-list {
    margin-top: 30px;
}

.admin-project-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    transition: background 0.3s ease;
}

.admin-project-item:hover {
    background: #f5f5f5;
}

.admin-project-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.admin-project-item:hover img {
    transform: scale(1.05);
}

.admin-project-info {
    flex: 1;
}

.admin-project-info strong {
    display: block;
    color: #1a5f7a;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.donate-hero {
    background: linear-gradient(135deg, #0f2b3d 0%, #1a5f7a 50%, #2d6a4f 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.donate-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.donate-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.donate-section {
    padding: 40px 20px 80px;
    background: #f5f7fa;
}

.donate-form-wrapper {
    max-width: 600px;
    margin: -30px auto 0;
    padding: 35px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.donate-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5f7a;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-form-group {
    margin-bottom: 25px;
}

.donate-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.donate-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.donate-form-control:focus {
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
    outline: none;
}

.donate-form-hint {
    color: #666;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

.donate-networks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.donate-network-option {
    position: relative;
}

.donate-network-option input[type="radio"] {
    display: none;
}

.donate-network-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    text-align: center;
}

.donate-network-option label i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #5d6d7e;
}

.donate-network-option label span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
}

.donate-network-option input[type="radio"]:checked + label {
    border-color: #1a5f7a;
    background: rgba(26, 95, 122, 0.05);
}

.donate-network-option input[type="radio"]:checked + label i,
.donate-network-option input[type="radio"]:checked + label span {
    color: #1a5f7a;
}

.donate-submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d6a4f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.donate-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(26, 95, 122, 0.2);
}

.donate-submit-btn i {
    margin-right: 10px;
}

.donate-btn-loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.donate-info-box {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a5f7a;
}

.donate-info-box p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.donate-info-box i {
    color: #1a5f7a;
    margin-right: 8px;
}

.donate-palmpesa-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 95, 122, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.donate-palmpesa-badge i {
    color: #1a5f7a;
    margin-right: 8px;
}

.donate-palmpesa-badge span {
    color: #1a5f7a;
    font-size: 0.85rem;
    font-weight: 500;
}

.donate-errors {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.donate-errors ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .subjects-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 10px 15px !important;
    }
    
    .logo-area {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 80%;
    }
    
    .logo-img {
        width: 65px !important;
        height: 65px !important;
    }
    
    .logo-text {
        font-size: 1.2rem !important;
        line-height: 1.2;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
    }
    
    nav {
        display: none;
        width: 100%;
        background: linear-gradient(135deg, #0f2b3d, #1a5f7a, #2d6a4f);
        padding: 12px 0;
    }
    
    nav.show {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mySlides img {
        height: 350px;
    }
    
    .slide-caption {
        bottom: 10%;
        left: 5%;
        padding: 12px 18px;
        max-width: 90%;
    }
    
    .slide-caption h3 { font-size: 1rem; }
    .slide-caption p { font-size: 0.75rem; }
    
    .hero-text {
        bottom: 10%;
        left: 5%;
        padding: 12px 18px;
        max-width: 90%;
    }
    
    .hero-text h1 { font-size: 1.2rem; }
    .hero-text p { font-size: 0.75rem; }
    
    .about-madrasa { padding: 50px 20px; }
    .about-madrasa h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .subjects-detailed { padding: 50px 20px; }
    .subjects-detailed h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .subjects-detailed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subject-detailed-card img { height: 200px; }
    .subject-detailed-card h3 { font-size: 1.2rem; }
    .subject-detailed-card p { font-size: 0.9rem; }

    .about-section h2 { font-size: 2rem; }
    .about-section > .container > p { font-size: 1rem; margin-bottom: 30px; }
    .mission-vision { grid-template-columns: 1fr; gap: 20px; }
    .mission-box, .vision-box { padding: 25px; }
    .objectives-box { padding: 25px; margin-bottom: 40px; }
    .team-section h3 { font-size: 1.6rem; margin-bottom: 25px; }
    .team-grid { grid-template-columns: 1fr; gap: 20px; }

    .projects-section {
        padding: 50px 20px;
    }
    
    .projects-section h2 {
        font-size: 2rem;
    }
    
    .projects-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-img {
        height: 200px;
    }
    
    .donate-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .fundraising { padding: 50px 20px; }
    .fundraising-content h2 { font-size: 1.8rem; }
    .fundraising-content p { font-size: 1rem; }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .donate-hero h1 {
        font-size: 2rem;
    }
    
    .donate-hero p {
        font-size: 1rem;
    }
    
    .donate-form-wrapper {
        margin: -20px 15px 0;
        padding: 25px;
    }
    
    .donate-networks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .logo-text { font-size: 1rem !important; }
    .mySlides img { height: 300px; }
    
    .slide-caption h3 { font-size: 0.9rem; }
    .slide-caption p { font-size: 0.7rem; }
    
    .hero-text h1 { font-size: 1rem; }
    .hero-text p { font-size: 0.7rem; }
    
    .about-madrasa h2,
    .subjects-detailed h2,
    .fundraising-content h2 {
        font-size: 1.5rem;
    }
    
    .about-text p { font-size: 0.9rem; }
    .subject-detailed-card h3 { font-size: 1.1rem; }
    .subject-detailed-card p { font-size: 0.85rem; }
    .fundraising-content p { font-size: 0.9rem; }
    
    .about-section h2 { font-size: 1.6rem; }
    .team-card img { width: 120px; height: 120px; }
    .team-card h4 { font-size: 1.1rem; }
    
    .projects-section { padding: 40px 15px; }
    .projects-section h2 { font-size: 1.7rem; }
    .projects-intro { font-size: 0.9rem; }
    
    .card-img, .subject-detailed-card img {
        height: 180px;
    }
    
    .card h3 { font-size: 1.1rem; }
    .card p { font-size: 0.85rem; }
    
    .donate-btn {
        padding: 10px 22px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .donate-now-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .donate-form-wrapper {
        padding: 20px;
    }
    
    .donate-form-title {
        font-size: 1.4rem;
    }
    
    .donate-networks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}