/* ==========================================================
   SINGLE PAGE/BLOG TEMPLATE - BEAUTIFUL STYLES
   ========================================================== */

/* ===== PAGE HEADING WITH FEATURED IMAGE ===== */
.single-page .page-heading {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.single-page .page-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 63, 96, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.single-page .page-heading .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 63, 96, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.single-page .page-heading .container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-page .page-heading .page-title {
    font-size: 56px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
    position: relative;
    display: inline-block;
}

.single-page .page-heading .page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #FBC333;
    border-radius: 2px;
    animation: expandWidth 0.8s ease 0.3s forwards;
    width: 0;
}

@keyframes expandWidth {
    to { width: 80px; }
}

/* ===== PAGE CONTENT SECTION ===== */
.single-page .page-content {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.single-page .page-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 195, 51, 0.03) 0%, rgba(251, 195, 51, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.single-page .page-content::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(28, 63, 96, 0.03) 0%, rgba(28, 63, 96, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.single-page .page-content .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Content Wrapper */
.single-page .content-wrapper {
    background: #ffffff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03), 0 10px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease;
}

.single-page .content-wrapper:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

/* ===== TYPOGRAPHY STYLES ===== */
.single-page .content-wrapper h1,
.single-page .content-wrapper h2,
.single-page .content-wrapper h3,
.single-page .content-wrapper h4,
.single-page .content-wrapper h5,
.single-page .content-wrapper h6 {
    font-family: 'Montserrat', sans-serif;
    color: #1C3F60;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-page .content-wrapper h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.single-page .content-wrapper h2 {
    font-size: 30px;
    font-weight: 700;
    border-bottom: 2px solid #FBC333;
    padding-bottom: 10px;
    display: inline-block;
}

.single-page .content-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
}

.single-page .content-wrapper p {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

.single-page .content-wrapper a {
    color: #FBC333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.single-page .content-wrapper a:hover {
    color: #1C3F60;
    border-bottom-color: #FBC333;
}

/* Lists */
.single-page .content-wrapper ul,
.single-page .content-wrapper ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.single-page .content-wrapper li {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.single-page .content-wrapper li::marker {
    color: #FBC333;
}

/* Blockquotes */
.single-page .content-wrapper blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 4px solid #FBC333;
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    color: #1C3F60;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
}

.single-page .content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(251, 195, 51, 0.2);
    font-family: serif;
}

.single-page .content-wrapper blockquote p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Images */
.single-page .content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.single-page .content-wrapper img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(251, 195, 51, 0.1);
}

/* Tables */
.single-page .content-wrapper table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.single-page .content-wrapper th {
    background: #1C3F60;
    color: #ffffff;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.single-page .content-wrapper td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.single-page .content-wrapper tr:last-child td {
    border-bottom: none;
}

.single-page .content-wrapper tr:hover td {
    background: rgba(251, 195, 51, 0.02);
}

/* ===== BUTTONS SECTION ===== */
.single-page .single-blog-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.single-page .single-blog-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1C3F60 0%, #2c5282 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(28, 63, 96, 0.15);
    min-width: 180px;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.single-page .single-blog-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.single-page .single-blog-buttons .btn:hover {
    background: linear-gradient(135deg, #FBC333 0%, #ffd966 100%);
    color: #1C3F60;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 195, 51, 0.25);
    border-color: #FBC333;
}

.single-page .single-blog-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.single-page .single-blog-buttons .btn:active {
    transform: translateY(-1px);
}

/* Button variations (if multiple buttons) */
.single-page .single-blog-buttons .btn:nth-child(2) {
    background: linear-gradient(135deg, #FBC333 0%, #ffd966 100%);
    color: #1C3F60;
    box-shadow: 0 10px 20px rgba(251, 195, 51, 0.2);
}

.single-page .single-blog-buttons .btn:nth-child(2):hover {
    background: linear-gradient(135deg, #1C3F60 0%, #2c5282 100%);
    color: #ffffff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .single-page .page-heading {
        height: 450px;
    }
    
    .single-page .page-heading .page-title {
        font-size: 48px;
    }
    
    .single-page .content-wrapper {
        padding: 40px;
    }
}

@media screen and (max-width: 768px) {
    .single-page .page-heading {
        height: 400px;
    }
    
    .single-page .page-heading .page-title {
        font-size: 38px;
    }
    
    .single-page .page-content {
        padding: 60px 0;
    }
    
    .single-page .content-wrapper {
        padding: 35px 30px;
        border-radius: 24px;
    }
    
    .single-page .content-wrapper h1 {
        font-size: 30px;
    }
    
    .single-page .content-wrapper h2 {
        font-size: 26px;
    }
    
    .single-page .content-wrapper h3 {
        font-size: 22px;
    }
    
    .single-page .content-wrapper p,
    .single-page .content-wrapper li {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .single-page .single-blog-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .single-page .single-blog-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .single-page .page-heading {
        height: 350px;
    }
    
    .single-page .page-heading .page-title {
        font-size: 28px;
    }
    
    .single-page .page-heading .page-title::after {
        bottom: -10px;
        height: 3px;
    }
    
    .single-page .page-content {
        padding: 40px 0;
    }
    
    .single-page .content-wrapper {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .single-page .content-wrapper h1 {
        font-size: 26px;
    }
    
    .single-page .content-wrapper h2 {
        font-size: 22px;
    }
    
    .single-page .content-wrapper h3 {
        font-size: 20px;
    }
    
    .single-page .content-wrapper p,
    .single-page .content-wrapper li {
        font-size: 15px;
    }
    
    .single-page .content-wrapper blockquote {
        padding: 20px;
        font-size: 16px;
    }
    
    .single-page .single-blog-buttons {
        margin-top: 30px;
    }
    
    .single-page .single-blog-buttons .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .single-page .page-heading {
        height: auto;
        background: none !important;
    }
    
    .single-page .page-heading .overlay {
        display: none;
    }
    
    .single-page .page-heading .page-title {
        color: #1C3F60;
        text-shadow: none;
    }
    
    .single-page .single-blog-buttons {
        display: none;
    }
}