/* stories.html */
/* Hero Section */
.stories-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/stories.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 140px;
}

.stories-hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.stories-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: "Lora", serif;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-in-out;
}

.stories-hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-in-out 0.3s forwards;
    opacity: 0;
}

/* Introduction Section */
.stories-intro {
    padding: 80px 0;
    background-color: var(--white);
}

.stories-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stories-intro h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-family: "Lora", serif;
    position: relative;
    display: inline-block;
}

.stories-intro h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.stories-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
}

.stories-scripture {
    background: var(--secondary-light);
    padding: 30px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 700px;
    position: relative;
    box-shadow: var(--shadow);
}

.stories-scripture i {
    font-size: 2rem;
    color: var(--secondary);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.stories-scripture blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.stories-scripture cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    margin-top: 15px;
    text-align: right;
    color: var(--primary);
}

/* Featured Story Section */
.featured-story {
    padding: 80px 0;
    background-color: #f9f9f9;
    width: 100%;
}

.featured-story-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.featured-story-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.featured-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-story-content {
    flex: 1.5;
    min-width: 300px;
    padding: 40px;
}

.story-label {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-story-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: "Lora", serif;
}

.featured-story-content h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.story-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--secondary);
}

.featured-story-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-read-more {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-read-more:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Stories Navigation */
.stories-nav {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.stories-nav h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-family: "Lora", serif;
}

.stories-nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.stories-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
    background: #f9f9f9;
    width: 200px;
    box-shadow: var(--shadow);
}

.stories-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    background: var(--secondary-light);
    color: var(--primary);
}

.stories-nav-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.stories-nav-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Stories Sections */
.stories-section {
    padding: 80px 0;
    width: 100%; /* make container of family & relationship and faith journey full width */
}

.alt-bg {
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-family: "Lora", serif;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.stories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.story-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.story-card-image {
    height: 220px;
    overflow: hidden;
}

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

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

.story-card-content {
    padding: 25px;
}

.story-card-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.story-subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.story-excerpt {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.btn-expand {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-expand:hover {
    background: var(--primary-light);
}

.story-expanded {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.story-expanded p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.story-expanded.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Share Your Story Section */
.share-story {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/share-story-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
}


.share-story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.share-story h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: "Lora", serif;
}

.share-story p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.story-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-align: left;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.story-form label {
    display: block;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 500;
}

.story-form input[type="text"],
.story-form input[type="email"],
.story-form input[type="tel"],
.story-form select,
.story-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.story-form input::placeholder,
.story-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.story-form input:focus,
.story-form select:focus,
.story-form textarea:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops (1200px and below) */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .stories-intro,
    .featured-stories,
    .story-categories,
    .share-story {
        padding: 60px 0;
    }
    
    .stories-hero h1 {
        font-size: 3rem;
    }
    
    .stories-hero p {
        font-size: 1.3rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Tablets (992px and below) */
@media (max-width: 992px) {
    .stories-hero {
        height: 50vh;
        margin-top: 120px;
    }
    
    .stories-hero h1 {
        font-size: 2.5rem;
    }
    
    .stories-hero p {
        font-size: 1.2rem;
    }
    
    .stories-intro,
    .featured-stories,
    .story-categories,
    .share-story {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .story-card {
        padding: 25px;
    }
    
    .category-card {
        padding: 25px;
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .stories-hero {
        height: 45vh;
        margin-top: 100px;
    }
    
    .stories-hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .stories-hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .stories-intro,
    .featured-stories,
    .story-categories,
    .share-story {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .story-card {
        padding: 20px;
    }
    
    .story-card h3 {
        font-size: 1.3rem;
    }
    
    .story-card p {
        font-size: 0.95rem;
    }
    
    .story-card .author {
        font-size: 0.9rem;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .category-card p {
        font-size: 0.95rem;
    }
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    .stories-hero {
        height: 40vh;
        margin-top: 80px;
    }
    
    .stories-hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .stories-hero p {
        font-size: 1rem;
    }
    
    .stories-intro,
    .featured-stories,
    .story-categories,
    .share-story {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .stories-intro-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .story-card {
        padding: 15px;
    }
    
    .story-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .story-card p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .story-card .author {
        font-size: 0.85rem;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .story-form {
        padding: 20px;
    }
    
    .story-form h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .story-form p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .story-form label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .story-form input,
    .story-form select,
    .story-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .story-form textarea {
        min-height: 100px;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .stories-hero h1 {
        font-size: 1.4rem;
    }
    
    .stories-hero p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .stories-intro-content p {
        font-size: 0.85rem;
    }
    
    .story-card h3 {
        font-size: 1.1rem;
    }
    
    .story-card p {
        font-size: 0.85rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
    }
    
    .story-form h3 {
        font-size: 1.2rem;
    }
    
    .story-form p {
        font-size: 0.85rem;
    }
}