.nav-link {
    color: #04eb04;
}

.navbar-nav .nav-link.active {
    color: #076c1e;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-toggler {
    background-color: #8cd68c;
}

body {
    background-image: url('../images/fotoM4.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1f411b;
    min-height: 100vh;
}

.namaz-corner {
    position: fixed !important;
    top: 150px !important;
    right: 20px !important;
    z-index: 9999 !important;
    cursor: pointer;
}

.namaz-corner img {
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: block !important;
}

.namaz-corner img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .namaz-corner {
        top: 120px !important;
        right: 10px !important;
    }
    .namaz-corner img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .namaz-corner {
        top: 100px !important;
        right: 8px !important;
    }
    .namaz-corner img {
        width: 80px;
    }
}

.qr-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    cursor: pointer;
}

.qr-corner img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
    transition: transform 0.2s;
}

.qr-corner img:hover {
    transform: scale(1.05);
}

.card {
    background-color: rgba(255, 255, 245, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(124, 179, 66, 0.3);
    transition: 0.2s;
}

.card:hover {
    background-color: rgba(243, 243, 237, 0.9);
    transform: translateY(-3px);
}

.card-body {
    background: transparent;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(124, 179, 66, 0.3);
}

.card-title,
.card-text,
.card-footer {
    color: #1e3a2f;
}

.news-feed {
    margin-top: 1rem;
}

.news-entry {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    transition: 0.2s;
    border: 1px solid rgba(124, 179, 66, 0.3);
    cursor: pointer;
}

.news-entry:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateY(-3px);
}

.news-date {
    font-size: 0.85rem;
    color: #7cb342;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e3a2f;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-summary {
    font-size: 1rem;
    color: #2d5a1e;
    line-height: 1.5;
    margin-bottom: 0;
}

.read-more {
    color: #7cb342;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
    margin-top: 0.25rem;
}

.read-more:hover {
    color: #5a8f2c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-entry {
        padding: 1.2rem 1.5rem;
    }
    .news-title {
        font-size: 1.3rem;
    }
}

.news-full {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(124, 179, 66, 0.5);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.news-full::-webkit-scrollbar {
    width: 6px;
}

.news-full::-webkit-scrollbar-track {
    background: #e0e8d4;
    border-radius: 10px;
}

.news-full::-webkit-scrollbar-thumb {
    background: #7cb342;
    border-radius: 10px;
}

.history-timeline {
    margin-top: 1rem;
}

.history-card {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    border-left: 8px solid #7cb342;
    transition: 0.2s;
}

.history-card:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateX(5px);
}

.history-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7cb342;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.history-title {
    font-size: 1.8rem;
    color: #1db477;
    margin-bottom: 1rem;
    font-weight: 600;
}

.history-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #569242;
}

.history-content p {
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .history-card {
        padding: 1.2rem;
    }
    .history-title {
        font-size: 1.4rem;
    }
}

.product-card {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(124, 179, 66, 0.3);
    transition: 0.2s;
}

.product-card:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateY(-5px);
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a2f;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #7cb342;
}

.shop-contacts {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 4px solid #7cb342;
    margin-top: 3rem;
}

.shop-contacts p {
    margin-bottom: 0.5rem;
    color: #2d5a1e;
}

.shop-contacts a {
    color: #7cb342;
    text-decoration: none;
}

.shop-contacts a:hover {
    text-decoration: underline;
    color: #5a8f2c;
}

.library-card {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(124, 179, 66, 0.3);
    transition: 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.library-card:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateY(-5px);
}

.book-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a2f;
    margin-bottom: 0.3rem;
}

.book-author {
    font-size: 0.9rem;
    color: #7cb342;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.book-desc {
    font-size: 0.9rem;
    color: #2d5a1e;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.read-link {
    color: #7cb342;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(124, 179, 66, 0.15);
    padding: 6px 12px;
    border-radius: 40px;
    display: inline-block;
    align-self: flex-start;
    transition: 0.2s;
}

.read-link:hover {
    background: #7cb342;
    color: white;
    text-decoration: none;
}

.library-contacts {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 4px solid #7cb342;
}

.library-contacts p {
    margin-bottom: 0.5rem;
    color: #2d5a1e;
}

.library-contacts a {
    color: #7cb342;
    text-decoration: none;
}

.library-contacts a:hover {
    text-decoration: underline;
}

.navbar-nav .nav-link {
    font-size: 1.25rem;
    font-weight: 500;
}

.ayat-day {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 22px 28px;
    border-radius: 20px;
    max-width: 420px;
    border-left: 6px solid #00ff41;
    box-shadow: none !important;
    transition: all 0.4s ease;
    animation: fadeSlideIn 0.8s ease-out;
}

.ayat-day:hover {
    transform: translateX(5px) scale(1.02);
}

.ayat-day h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffd700;
    margin: 0 0 6px 0;
    text-align: left;
    font-weight: 600;
    opacity: 0.9;
}

.ayat-arabic {
    font-size: 28px;
    line-height: 2;
    color: #b8d94a;
    text-align: right;
    font-family: 'Traditional Arabic', 'Amiri', 'Scheherazade New', serif;
    margin: 10px 0 8px 0;
    direction: rtl;
    font-weight: 600;
    text-shadow: 0 0 30px rgba(184, 217, 74, 0.15);
}

.ayat-text {
    font-size: 18px;
    line-height: 1.6;
    color: #00ff41 !important;
    text-align: left;
    margin: 8px 0 4px 0;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 0 25px rgba(0, 255, 65, 0.1);
}

.ayat-surah {
    font-size: 13px;
    color: #a5d6a7;
    text-align: left;
    margin-top: 6px;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ayat-day {
        bottom: 35px;
        left: 15px;
        max-width: 300px;
        padding: 16px 18px;
        z-index: 999;
    }
    .ayat-arabic {
        font-size: 22px;
    }
    .ayat-text {
        font-size: 15px;
    }
    .ayat-day h3 {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ayat-day {
        bottom: 35px;
        left: 10px;
        max-width: 260px;
        padding: 12px 14px;
    }
    .ayat-arabic {
        font-size: 18px;
    }
    .ayat-text {
        font-size: 13px;
    }
}

.modal-backdrop {
    background-color: transparent !important;
    opacity: 1 !important;
}

.modal-backdrop.fade {
    opacity: 1 !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.modal-open .modal {
    overflow: hidden !important;
} .nav-link {
    color: #04eb04;
}

.navbar-nav .nav-link.active {
    color: #076c1e;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-toggler {
    background-color: #8cd68c;
}

body {
    background-image: url('../images/fotoM4.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1f411b;
    min-height: 100vh;
}

.namaz-corner {
    position: fixed !important;
    top: 150px !important;
    right: 20px !important;
    z-index: 9999 !important;
    cursor: pointer;
}

.namaz-corner img {
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: block !important;
}

.namaz-corner img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .namaz-corner {
        top: 120px !important;
        right: 10px !important;
    }
    .namaz-corner img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .namaz-corner {
        top: 100px !important;
        right: 8px !important;
    }
    .namaz-corner img {
        width: 80px;
    }
}

.qr-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    cursor: pointer;
}

.qr-corner img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
    transition: transform 0.2s;
}

.qr-corner img:hover {
    transform: scale(1.05);
}

.card {
    background-color: rgba(255, 255, 245, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(124, 179, 66, 0.3);
    transition: 0.2s;
}

.card:hover {
    background-color: rgba(243, 243, 237, 0.9);
    transform: translateY(-3px);
}

.card-body {
    background: transparent;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(124, 179, 66, 0.3);
}

.card-title,
.card-text,
.card-footer {
    color: #1e3a2f;
}

.news-feed {
    margin-top: 1rem;
}

.news-entry {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    transition: 0.2s;
    border: 1px solid rgba(124, 179, 66, 0.3);
    cursor: pointer;
}

.news-entry:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateY(-3px);
}

.news-date {
    font-size: 0.85rem;
    color: #7cb342;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e3a2f;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-summary {
    font-size: 1rem;
    color: #2d5a1e;
    line-height: 1.5;
    margin-bottom: 0;
}

.read-more {
    color: #7cb342;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
    margin-top: 0.25rem;
}

.read-more:hover {
    color: #5a8f2c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-entry {
        padding: 1.2rem 1.5rem;
    }
    .news-title {
        font-size: 1.3rem;
    }
}

.news-full {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(124, 179, 66, 0.5);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.news-full::-webkit-scrollbar {
    width: 6px;
}

.news-full::-webkit-scrollbar-track {
    background: #e0e8d4;
    border-radius: 10px;
}

.news-full::-webkit-scrollbar-thumb {
    background: #7cb342;
    border-radius: 10px;
}

.history-timeline {
    margin-top: 1rem;
}

.history-card {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    border-left: 8px solid #7cb342;
    transition: 0.2s;
}

.history-card:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateX(5px);
}

.history-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7cb342;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.history-title {
    font-size: 1.8rem;
    color: #1db477;
    margin-bottom: 1rem;
    font-weight: 600;
}

.history-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #569242;
}

.history-content p {
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .history-card {
        padding: 1.2rem;
    }
    .history-title {
        font-size: 1.4rem;
    }
}

.product-card {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(124, 179, 66, 0.3);
    transition: 0.2s;
}

.product-card:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateY(-5px);
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a2f;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #7cb342;
}

.shop-contacts {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 4px solid #7cb342;
    margin-top: 3rem;
}

.shop-contacts p {
    margin-bottom: 0.5rem;
    color: #2d5a1e;
}

.shop-contacts a {
    color: #7cb342;
    text-decoration: none;
}

.shop-contacts a:hover {
    text-decoration: underline;
    color: #5a8f2c;
}

.library-card {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(124, 179, 66, 0.3);
    transition: 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.library-card:hover {
    background: rgba(255, 255, 245, 0.95);
    transform: translateY(-5px);
}

.book-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a2f;
    margin-bottom: 0.3rem;
}

.book-author {
    font-size: 0.9rem;
    color: #7cb342;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.book-desc {
    font-size: 0.9rem;
    color: #2d5a1e;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.read-link {
    color: #7cb342;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(124, 179, 66, 0.15);
    padding: 6px 12px;
    border-radius: 40px;
    display: inline-block;
    align-self: flex-start;
    transition: 0.2s;
}

.read-link:hover {
    background: #7cb342;
    color: white;
    text-decoration: none;
}

.library-contacts {
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 4px solid #7cb342;
}

.library-contacts p {
    margin-bottom: 0.5rem;
    color: #2d5a1e;
}

.library-contacts a {
    color: #7cb342;
    text-decoration: none;
}

.library-contacts a:hover {
    text-decoration: underline;
}

.navbar-nav .nav-link {
    font-size: 1.25rem;
    font-weight: 500;
}

.ayat-day {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 22px 28px;
    border-radius: 20px;
    max-width: 420px;
    border-left: 6px solid #00ff41;
    box-shadow: none !important;
    transition: all 0.4s ease;
    animation: fadeSlideIn 0.8s ease-out;
}

.ayat-day:hover {
    transform: translateX(5px) scale(1.02);
}

.ayat-day h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffd700;
    margin: 0 0 6px 0;
    text-align: left;
    font-weight: 600;
    opacity: 0.9;
}

.ayat-arabic {
    font-size: 28px;
    line-height: 2;
    color: #b8d94a;
    text-align: right;
    font-family: 'Traditional Arabic', 'Amiri', 'Scheherazade New', serif;
    margin: 10px 0 8px 0;
    direction: rtl;
    font-weight: 600;
    text-shadow: 0 0 30px rgba(184, 217, 74, 0.15);
}

.ayat-text {
    font-size: 18px;
    line-height: 1.6;
    color: #00ff41 !important;
    text-align: left;
    margin: 8px 0 4px 0;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 0 25px rgba(0, 255, 65, 0.1);
}

.ayat-surah {
    font-size: 13px;
    color: #a5d6a7;
    text-align: left;
    margin-top: 6px;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ayat-day {
        bottom: 35px;
        left: 15px;
        max-width: 300px;
        padding: 16px 18px;
        z-index: 999;
    }
    .ayat-arabic {
        font-size: 22px;
    }
    .ayat-text {
        font-size: 15px;
    }
    .ayat-day h3 {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ayat-day {
        bottom: 35px;
        left: 10px;
        max-width: 260px;
        padding: 12px 14px;
    }
    .ayat-arabic {
        font-size: 18px;
    }
    .ayat-text {
        font-size: 13px;
    }
}
/* ===== ПОЛНОЭКРАННАЯ МОДАЛКА ===== */
.modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.modal-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

.modal-body img {
    max-height: 100vh !important;
    max-width: 100vw !important;
    object-fit: contain !important;
    cursor: pointer !important;
}

.modal-backdrop {
    background-color: transparent !important;
    opacity: 1 !important;
}

.modal-backdrop.show {
    background-color: transparent !important;
    opacity: 1 !important;
}

.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

.namaz-corner {
    z-index: 9999 !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}


/* ===== КНОПКА ПОЖЕРТВОВАНИЯ ===== */
.donate-btn {
    position: fixed !important;
    top: 80px !important;
    left: 20px !important;
    z-index: 9999 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    background: #28a745 !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
    cursor: pointer !important;
}

.donate-btn:hover {
    transform: scale(1.05) !important;
}

