* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #faf9f8;
    color: #1e293b;
    line-height: 1.6;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== STICKY NAVIGATION ===== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

/* Optional: shrink shadow on scroll */
.sticky-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #4f46e5;
    transition: transform 0.2s;
}
.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #4f46e5;
}
.admin-link {
    background: #4f46e5;
    color: white !important;
    padding: 6px 14px;
    border-radius: 40px;
    margin-left: 8px;
}
.admin-link:hover {
    background: #4338ca;
    transform: scale(1.02);
}

/* Mobile menu (hidden by default on desktop) */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
}

/* Responsive: for tablets/phones */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 24px;
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    .nav-links.active {
        left: 0;
    }
    .menu-icon {
        display: block;
    }
    .admin-link {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Cards */
.card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s;
}
.card:hover img {
    transform: scale(1.02);
}
.single-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 28px;
    margin: 20px 0;
}


/* Button */
.btn {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: #4338ca;
    transform: scale(1.03);
}

/* Hero section */
.hero {
    /*background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    padding: 80px 0;
    text-align: center;
    margin-top: 0;*/
    background: url('assets/hero-bg.jpg');
    /*background: linear-gradient(rgba(79, 70, 229, 0.6), rgba(79, 70, 229, 0.7)), url('assets/hero-bg.jpg');*/
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}
.hero img {
    max-width: 90%;
    height: auto;
}
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* fixed can be jumpy on mobile */
        background-position: center;
        padding: 60px 20px;
    }
}

.hero .container {
    background-color: rgba(0, 0, 0, 0.4); /* black at 40% opacity */
    width: 600px;
    max-width: 90%;  /* responsive */
    height: auto;    /* let height adjust to content */
    padding: 40px 30px;
    border-radius: 24px;
    margin: 0 auto;  /* center it */
}
/* On mobile, reduce padding */
@media (max-width: 768px) {
    .hero .container {
        padding: 25px 20px;
        width: 95%;
    }
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Scroll reveal (JS will add class) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Subscription section */
.subscribe-section {
    margin: 60px 0 40px;
}
.subscribe-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    padding: 48px 32px;
    border-radius: 32px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.3);
}
.subscribe-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.subscribe-card p {
    margin-bottom: 24px;
    opacity: 0.9;
}
.subscribe-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.subscribe-group input {
    padding: 14px 20px;
    border-radius: 60px;
    border: none;
    width: 280px;
    font-size: 1rem;
}
.subscribe-group button {
    background: #1e293b;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.subscribe-group button:hover {
    transform: scale(1.02);
    background: #0f172a;
}
.subscribe-message {
    margin-top: 16px;
    font-size: 0.9rem;
}


/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 20px 20px;
    margin-top: 80px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}
.footer-column h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.footer-column h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.footer-column p, .footer-column ul {
    line-height: 1.7;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-column a:hover {
    color: #a78bfa;
    text-decoration: underline;
}
.social-icons {
    display: flex;
    gap: 16px;
    font-size: 1.6rem;
}
.social-icons a {
    color: #cbd5e1;
    transition: transform 0.2s;
    display: inline-block;
}
.social-icons a:hover {
    transform: scale(1.1);
    color: white;
}
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}


.search-form {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}
.search-form input {
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    width: 200px;
}
.search-form button {
    background: #4f46e5;
    border: none;
    border-radius: 40px;
    padding: 0 12px;
    cursor: pointer;
    color: white;
}
@media (max-width: 768px) {
    .search-form {
        margin: 15px 0;
        width: 100%;
    }
    .search-form input {
        flex: 1;
    }
}


/* Social Share Buttons */
.share-section {
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.share-section h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #1e293b;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    background: #f1f5f9;
    color: #1e293b;
}
.share-btn:hover {
    transform: translateY(-2px);
}
.facebook {
    background: #1877f2;
    color: white;
}
.twitter {
    background: #1da1f2;
    color: white;
}
.whatsapp {
    background: #25d366;
    color: white;
}
.copylink {
    background: #334155;
    color: white;
}
.facebook:hover, .twitter:hover, .whatsapp:hover, .copylink:hover {
    filter: brightness(1.05);
}
@media (max-width: 640px) {
    .share-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0 30px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
}
.page-btn:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}
.page-btn.active {
    background: #4f46e5;
    color: white;
    cursor: default;
    transform: none;
}
@media (max-width: 640px) {
    .page-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
/*bible version reference*/
.bible-version-note {
    text-align: center;
    font-size: 0.75rem;
    color: white;
    margin-top: 20px;
}


/* ===== RESPONSIVE DESIGN FOR ALL PAGES ===== */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .grid {
        gap: 20px;
    }
}

/* Mobile devices (phones) */
@media (max-width: 768px) {
    /* General */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Grid - single column on mobile */
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cards */
    .card {
        padding: 18px;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card img {
        height: 160px;
    }
    
    /* Category page title */
    h1 {
        font-size: 1.8rem;
        margin-top: 20px;
    }
    
    /* Single page */
    .single-card {
        padding: 20px;
    }
    
    .single-card h1 {
        font-size: 1.6rem;
    }
    
    .single-card img {
        max-height: 250px;
    }
    
    /* Search page */
    .search-form {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-form input {
        width: 100%;
    }
    
    /* Pagination */
    .pagination {
        gap: 6px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Share buttons */
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Small mobile devices (under 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero .container {
        width: 95%;
        padding: 25px 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .verse-card {
        padding: 20px 15px;
    }
    
    .verse-text {
        font-size: 1rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 8px 4px;
    }
    
    .admin-link, .btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Fix for category.php back button on mobile */
@media (max-width: 768px) {
    .container > a.btn:first-child {
        display: inline-block;
        margin-bottom: 15px;
    }
}

/* Fix for search results on mobile */
@media (max-width: 768px) {
    .results-count {
        font-size: 0.9rem;
        margin: 10px 0;
    }
}

/* Fix for single.php content readability */
@media (max-width: 768px) {
    .single-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .single-content p {
        margin-bottom: 15px;
    }
}