/* ================================================================
   1. GLOBAL & LAYOUT
   ================================================================ */

.ast-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 20px; /* Side-la konjam gap venumna mathukonga */
}

/* Specific-ah single obituary page-la mattum remove panna */
/* .single-obituary .ast-container {
    max-width: none !important;
    width: 100% !important;
} */

.cad-single-obituary-wrapper {
    background-color: #f9f9f9;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.obituary-body { 
    padding: 50px 0; 
}

/* ================================================================
   2. HERO SECTION (BLUE BACKGROUND)
   ================================================================ */
.obituary-hero {
    background: linear-gradient(rgba(0, 31, 63, 0.9), rgba(0, 51, 102, 0.9)), 
                url('https://www.transparenttextures.com/patterns/clean-gray-paper.png');
    padding: 60px 0 80px;
    color: #fff;
    position: relative;
    text-align: center;
}

.back-nav {
    position: absolute;
    top: 20px;
    left: 30px;
}

.btn-back {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover { opacity: 1; color: #ff4d4d; }
/* =========================================================
HERO IMAGE FIX
========================================================= */

.obituary-hero .hero-image-wrapper {

    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* USE SAME LIST DESIGN */

.obituary-hero .image-wrapper {

    width: 320px;
    height: 320px;
    position: relative;
    margin: 0 auto;
}

/* FRAME */

.obituary-hero .frame-image {

    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* PROFILE IMAGE */

.obituary-hero .profile-image {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 2;
}

/* FRAME 1 */

.obituary-hero .profile-image.frame1 {

    width: 150px !important;
    height: 190px !important;
    border-radius: 8px;
    border: 4px solid #fff;
}

/* FRAME 2 */

.obituary-hero .profile-image.frame2 {

    width: 150px !important;
    height: 195px !important;
    border-radius: 8px;
    border: 4px solid #fff;
    transform: translate(-56%, -48%);
}

/* FRAME 3 */

.obituary-hero .profile-image.frame3 {

    width: 187px !important;
    height: 225px !important;
    top: 56%;
    left: 52%;
    transform: translate(-50%, -50%);
    clip-path: polygon(
        25% 4%,
        75% 4%,
        100% 50%,
        75% 96%,
        25% 96%,
        0% 50%
    );

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


.hero-name{

    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.hero-years{

    font-size: 20px;
    font-weight: 600;
    color: #ff5c5c;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}
/* ================================================================
   3. STICKY SUB-NAVIGATION
   ================================================================ */
.obituary-sub-nav {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 99999;
    padding: 10px 0;
}

/* IMPORTANT FIX */
.cad-single-obituary-wrapper,
.ast-container,
.site-content,
.ast-article-single,
.entry-content {
    overflow: visible !important;
}


.obituary-sub-nav ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.obituary-sub-nav ul li a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.obituary-sub-nav ul li.active a,
.obituary-sub-nav ul li a:hover {
    background: #003366;
    color: #fff;
}

/* ================================================================
   4. CONTENT CARDS
   ================================================================ */

   
.sticky-sidebar {
    position: sticky;
    position: -webkit-sticky;
    top: 100px;
}

   .content-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.card-header-line {
    border-bottom: 3px solid #003366;
    margin-bottom: 25px;
    display: inline-block;
    padding-bottom: 5px;
}

.section-title { margin: 0; color: #003366; font-size: 24px; font-weight: 700; }

/* ================================================================
   5. PROFESSIONAL SIDEBAR (FIXED BLUE DOTS)
   ================================================================ */
.pro-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    list-style: none !important; /* Removes Astra dots */
}

.info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start; /* Ensures alignment with multi-line text */
    position: relative;
    list-style: none !important;
}

/* Astra theme specific bullet removal */
.info-row::before, .pro-info-box::before {
    display: none !important;
    content: "" !important;
}

.info-icon {
    background: #003366;
    color: #fff;
    width: 28px;  /* Reduced size for professional look */
    height: 28px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px; /* Centers it with the first line of text */
}

.info-icon i {
    font-size: 13px !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #fff !important;
    display: block !important;
}

.info-data label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-data strong { 
    color: #1e293b; 
    font-size: 15px; 
    line-height: 1.4;
    display: block;
}

/* ================================================================
   6. BUTTONS & ICONS
   ================================================================ */
.btn-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    margin-top: 15px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-print { background: #eee; color: #333; }
.btn-share { background: #25d366; color: #fff; }

.btn-pro:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    color: inherit;
}

.btn-pro i, .btn-pro svg {
    font-size: 18px;
    color: inherit;
}

/* Ensure FontAwesome displays */
.fa, .fas, .fab, .fa-solid {
    display: inline-block !important;
    visibility: visible !important;
}

.btn-memorial{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    background:linear-gradient(135deg, #6a11cb, #2575fc);
    color:#fff !important;
    padding:14px 18px;
    border-radius:14px;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    transition:all 0.3s ease;
    box-shadow:0 6px 18px rgba(37,117,252,0.25);
}

.btn-memorial i{
    font-size:16px;
}
.btn-memorial:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 22px rgba(37,117,252,0.35);
    color:#fff !important;
}


/* ================================================================
   7. RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .hero-name { font-size: 30px; }
    .floral-frame { width: 280px; height: 280px; }
    .floral-frame img { width: 155px !important; height: 155px !important; }
    .obituary-sub-nav ul { gap: 10px; flex-wrap: wrap; }
    .obituary-sub-nav ul li a { padding: 6px 12px; font-size: 12px; }
}


/* ================================================================
   STICKY RIGHT SIDEBAR
   ================================================================ */
