/* HOME PAGE STYLES */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Services Preview */
.services-preview {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 2, 32, 0.15);
    border-color: var(--primary);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary) 100%);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.service-link:hover {
    color: var(--accent);
}

/* Why Choose Section */
.why-choose {
    background: var(--secondary);
}

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

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.cta-box-large {
    text-align: center;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box-large h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box-large p {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--secondary);
}

.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* SERVICES PAGE STYLES */
.service-detail-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.service-detail-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-features-list {
    list-style: none;
    margin: 2rem 0;
}

.service-features-list li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
}

.service-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
}

/* WORK WITH ME PAGE STYLES */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--accent);
    opacity: 0.3;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.cta-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* PROJECTS PAGE STYLES */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: block; /* Makes the whole area clickable */
    text-decoration: none; /* Removes underline from text */
    color: inherit; /* Keeps your original text colors */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 2, 32, 0.15);
}

.project-card .project-content h3 {
    margin-top: 0;
}
.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-category {
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    flex-wrap: wrap;
}

.project-stats span {
    background: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 15px;
}

/* Testimonials */
.testimonials {
    padding: 3rem;
    background: var(--secondary);
    border-radius: 15px;
}

.testimonials-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.stars {
    color: #ffa500;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--text-light);
    font-weight: 600;
}

/* BLOG PAGE STYLES */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 2, 32, 0.15);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-date,
.blog-category {
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-category {
    background: var(--secondary);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-link:hover {
    color: var(--accent);
}

/* ABOUT PAGE STYLES */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image-container {
    position: sticky;
    top: 100px;
}

.image-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-credentials {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.credential-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
}

.credential-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.credential-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.credential-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-extra {
    font-style: italic;
    color: var(--text-light);
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

/* CONTACT PAGE STYLES */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-cta-box {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.contact-cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-cta-box p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.sample-benefits {
    list-style: none;
}

.sample-benefits li {
    color: var(--text-dark);
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .projects-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-container {
        position: static;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px;
    background-color: #fcfcfc;
  }

  .card {
    background: #fff;
    border-radius: 15px;
    overflow: visible; /* Allows the cover to overlap the top */
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    position: relative;
    margin-top: 20px;
  }

  .header {
    background: #8b2f3e; /* Dark Maroon from your image */
    height: 140px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 15px;
  }

  .pill {
    background: #fff;
    color: #8b2f3e;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    height: fit-content;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .book-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    position: absolute;
    bottom: -30px; /* Overlaps into the content area */
    border-radius: 5px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    z-index: 2;
  }

  .content {
    padding: 50px 25px 25px 25px; /* Extra top padding to make room for overlapping cover */
    text-align: center;
  }

  .title {
    font-family: 'Georgia', serif;
    font-size: 22px;
    color: #8b2f3e;
    margin: 0;
  }

  .author {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #777;
    margin: 5px 0 20px 0;
  }

  .feedback {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    min-height: 90px;
  }

  .tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
  }

  .tag {
    background: #e8d5d8; /* Light mauve pill from screenshot */
    color: #5a2029;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
  }

  
  .genre-tag {
    background:  #5a2029;
    color: #e8d5d8 ;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
  }

   .genre-tags {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
  }

/* ==========================================================================
   SERVICES PAGE STYLES (Side Nav & Pricing)
   ========================================================================== */

/* Main Layout for Services */
.services-page {
    display: flex;
    gap: 60px; /* Space between sidebar and text */
    padding: 80px 40px; /* Added horizontal padding for the whole page */
    max-width: 1400px; /* Limits how wide the whole layout can go */
    margin: 0 auto; /* Centers the whole page */
}
/* 1. Sidebar Sticky Navigation */
.services-sidebar {
    width: 300px;
    position: sticky;
    top: 100px; /* Adjust based on your navbar height */
    height: fit-content;
    z-index: 10;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    border-left: 1px solid var(--secondary);
}

.side-nav li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover & Active States for Menu */
.side-nav li a:hover, 
.side-nav li a.active {
    color: var(--primary);
    background: #fdf5f6; /* Very light pink tint */
    border-left: 3px solid var(--primary);
    margin-left: -1px; /* Overlaps the border perfectly */
}

/* Sub-menu (the nested lists) */
.side-nav .sub-menu {
    border-left: none;
    margin-left: 20px;
}

.side-nav .sub-menu li a {
    font-size: 0.85rem;
    padding: 8px 25px;
}

/* 2. Content Area & Section Headers */
.services-content-wrapper {
    flex: 1;
    max-width: 900px; /* Prevents text from stretching too far right */
    margin-right: auto; /* Keeps the focus towards the left-center */
    padding-right: 20px; /* Safety gap on the far right */
}

.service-section {
    padding-bottom: 60px;
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 80px;
}
.section-num {
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.description-text {
    max-width: 750px; /* Optimal reading width for eyes */
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* 3. Pricing Cards Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    width: 100%;
}

.pricing-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--secondary);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(128, 2, 32, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: #fffafa; /* Highlighted background */
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Badge for "Popular" or "Best Value" */
.badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

/* 4. Detailed Pricing Tables (Manuscript & Poetry) */
.sub-service-box {
    background: #fcfcfc;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 35px;
    margin-top: 30px;
}

.price-list {
    list-style: none;
    margin-top: 20px;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--accent);
    font-family: var(--font-body);
}

.price-list li span {
    color: var(--text-dark);
}

.price-list li strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* 5. Extras & Add-ons */
.disclaimer-box {
    background: var(--secondary);
    padding: 20px 30px;
    border-left: 5px solid var(--primary);
    font-style: italic;
    margin: 30px 0;
    font-size: 0.95rem;
}

/* 6. Responsive Mobile Styles */
@media (max-width: 992px) {
    .services-page {
        flex-direction: column;
        padding: 40px 20px;
    }

    .services-sidebar {
        width: 100%;
        position: relative;
        top: 0;
      
    }

    .side-nav ul {
        display: flex;
        flex-wrap: wrap;
        border-left: none;
        border-bottom: 1px solid var(--secondary);
    }

    .side-nav li a {
        border-left: none !important;
        border-bottom: 2px solid transparent;
    }
    .services-content-wrapper {
        max-width: 100%;
        padding-right: 0;
    }

    .side-nav li a:hover, 
    .side-nav li a.active {
        border-bottom: 2px solid var(--primary);
        margin-left: 0;
    }
}


.calculator-box {
    background: var(--secondary);
  border: 1px solid var(--secondary);
    border-top: 4px solid var(--primary); /* Stylish top border */
    border-radius: 15px;
    padding: 40px;
    
    /* Centering Logic */
    margin: 60px auto; /* 'auto' handles the horizontal centering */
    max-width: 550px; /* Slightly narrower for a cleaner look */
    
    box-shadow: 0 10px 30px rgba(128, 2, 32, 0.05);
    text-align: center; /* Centers the text and title inside */

}

.calculator-box h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    text-align: left; /* Keeps the input labels aligned to the left inside the centered box */
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.calc-group input, 
.calc-group select {
    padding: 12px;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.calc-result {
    background: var(--secondary);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column; /* Stack 'Estimated Total' over the price */
    gap: 5px;
    align-items: center;
    margin-top: 15px;
}

.calc-result span {
    font-weight: 600;
    color: var(--primary);
}

#totalPrice {
    font-size: 1,6rem;
    color: var(--primary);
    font-family: var(--font-heading);
}
.calc-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
}

.calc-display-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

.calc-result {
    background: var(--secondary);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result.highlight {
    border: 2px solid var(--primary);
    background: var(--white);
}

.calc-result strong {
    color: var(--primary);
    font-size: 1.4rem;
}


#upfrontPrice { font-size: 1.6rem; }

.calc-display-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacks them beautifully */
    gap: 15px;
    margin-top: 25px;
}

.calc-result.highlight {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary); /* Your Maroon color */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(128, 2, 32, 0.05); /* Subtle shadow */
}

.calc-result.highlight span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.calc-result.highlight strong {
    color: var(--primary);
    font-size: 1.6rem; /* Large and clear */
    font-family: var(--font-heading);
}

/* Responsive adjustment for smaller screens */
@media (max-width: 480px) {
    .calc-result.highlight {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Container for the image and text */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Image on left, text on right */
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

/* The Image Wrapper */
.about-image-container {
    position: sticky;
    top: 120px; /* Keeps the photo visible as they read your long bio */
}

.image-placeholder {
    position: relative;
    z-index: 1;
}

/* The decorative "floating" box behind the image */
.image-placeholder::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--secondary); /* Your light pink/beige color */
    border: 2px solid var(--primary); /* Your maroon color */
    top: 20px;
    left: -20px;
    z-index: -1;
    border-radius: 15px;
}

/* Styling the actual Image */
.image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(128, 2, 32, 0.1); /* Very faint maroon border */
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .about-content-grid {
        grid-template-columns: 1fr; /* Stack image on top of text */
        gap: 40px;
    }
    
    .about-image-container {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto; /* Center image on mobile */
    }

    .image-placeholder::before {
        left: 15px; /* Adjust decorative box for mobile */
    }
}

.about-credentials {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.credential-item {
    display: flex;
    gap: 20px;
    background: #fffafa; /* Very light blush background */
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary); /* Maroon accent line */
    transition: transform 0.3s ease;
}

.credential-item:hover {
    transform: translateX(10px);
}

.credential-icon {
    font-size: 1.5rem;
}

.about-extra {
    background: var(--secondary);
    padding: 25px;
    border-radius: 15px;
    font-style: italic;
    color: var(--primary);
    margin-top: 30px;
}


/* Submission Portal Styling */
.portal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    border: 1px solid var(--secondary);
    box-shadow: 0 15px 35px rgba(128, 2, 32, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-badge {
    display: inline-block;
    background: #fffafa; /* Light blush */
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(128, 2, 32, 0.1);
}

.portal-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.portal-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

/* The Cool CTA Button */
.btn-portal {
    background: var(--primary);
    color: white !important;
    padding: 18px 30px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(128, 2, 32, 0.2);
    z-index: 2;
}

.btn-portal:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(128, 2, 32, 0.3);
}

.btn-portal .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-portal:hover .icon {
    transform: translate(3px, -3px);
}

/* Background Decoration */
.abstract-shape {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    position: absolute;
    right: -80px;
    bottom: -80px;
    z-index: 0;
}